WO2022068302A1 - Chip, communication system and communication method - Google Patents

Chip, communication system and communication method Download PDF

Info

Publication number
WO2022068302A1
WO2022068302A1 PCT/CN2021/103888 CN2021103888W WO2022068302A1 WO 2022068302 A1 WO2022068302 A1 WO 2022068302A1 CN 2021103888 W CN2021103888 W CN 2021103888W WO 2022068302 A1 WO2022068302 A1 WO 2022068302A1
Authority
WO
WIPO (PCT)
Prior art keywords
state
port
data transmission
receiving port
chip
Prior art date
Application number
PCT/CN2021/103888
Other languages
French (fr)
Chinese (zh)
Inventor
王柯鉴
陈永炜
潘银海
李永耀
范茂斌
Original Assignee
华为技术有限公司
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
Priority claimed from CN202011196760.6A external-priority patent/CN114339896A/en
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2022068302A1 publication Critical patent/WO2022068302A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/16Central resource management; Negotiation of resources or communication parameters, e.g. negotiating bandwidth or QoS [Quality of Service]
    • H04W28/18Negotiating wireless communication parameters
    • H04W28/22Negotiating communication rate
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Definitions

  • the present application relates to the field of communication technologies, and in particular, to a chip, a communication system and a communication method.
  • the present application provides a chip, a communication system and a communication method, aiming at improving the reliability during communication.
  • a communication method is provided, the communication method is applied to the conversion of communication transmission links in a communication system, the communication method includes the following steps: when a data transmission error is detected in a data transmission state, controlling a sending port and receiving All ports enter the repair state, where the data transmission state includes high-speed data transmission state and low-speed data transmission state.
  • the data transmission state includes high-speed data transmission state and low-speed data transmission state.
  • the data transmission rate is greater than or equal to 1Gbps
  • the sending port is located on the main chip side
  • the receiving port is located on the side of the main chip.
  • the master chip has the slave chip side of the communication relationship; in the repair state, data repair is performed on the sending port and the receiving port, the parameters of the sending port are repaired to the parameters when the sending port is in the data transmission state, and the parameters of the receiving port are repaired to The parameters when the receiving port is in the data transmission state; after completing the data restoration of the sending port and the receiving port, control the sending port and the receiving port to enter the low power consumption state or enter the high-speed data transmission state again.
  • the repair state when the data transmission fails, the transmission link is repaired, which improves the reliability of the data transmission.
  • the matching parameters corresponding to data transmission are repaired, and there is no need to match the basic information of the two chips during handshake, which improves the repairing efficiency.
  • the method further includes: controlling the sending Both the port and the receiving port enter a low power consumption state.
  • the low-power state is used as an intermediate state to facilitate state switching.
  • controlling both the sending port and the receiving port to enter the repair state specifically refers to: controlling both the sending port and the receiving port to enter the low power consumption state to the repaired state. Repair the ports at both ends of the transmission link.
  • both the sending port and the receiving port are controlled to enter a repair state; specifically: when the data transmission error is detected, control the sending The port enters the repair state, and sends a repair control code stream to the slave chip, so that the protocol layer or controller of the slave chip controls the receiving port to enter the repair state according to the repair control code stream .
  • the main chip controls the sending port and the receiving port to enter the repair state.
  • the method further includes: after completing the data restoration and before controlling both the transmitting port and the receiving port to enter the low power consumption state, the method further includes: It is confirmed that the parameters of the sending port after the repair are the parameters when the sending port is in the data transmission state, and the parameters of the receiving port are the parameters when the receiving port is in the data transmission state. After the parameter configuration of the transmission link is changed, a handshake process is added to make a preliminary judgment on the accuracy of the repaired data transmission to improve the robustness of the transmission link.
  • both the transmitting port and the receiving port are in the low power consumption state.
  • the low-power state is used as an intermediate state to facilitate state switching.
  • the method further includes: after completing the data transmission, controlling both the sending port and the receiving port to enter the low power consumption state for waiting for a next state trigger condition.
  • the interoperability between the states of the state machine is improved through the low power consumption state, and the configuration process of the transmission link is reasonably arranged, so that the transition between any different states only needs to jump twice at most.
  • the method further includes: triggering the transmission link to enter a low-speed data transmission state through a low-speed data control code stream, and performing low-speed data transmission; after completing the low-speed data transmission, controlling the The transmission link enters the low power consumption state.
  • the interoperability between the states of the state machine is improved through the low power consumption state, and the configuration process of the transmission link is reasonably arranged, so that the transition between any different states only needs to jump twice at most.
  • the method before both the sending port and the receiving port enter the low power consumption state for the first time, the method further includes: establishing transmission between the master chip and the slave chip link, and perform port information exchange.
  • the port information exchange means that the master chip sends the port information of the sending port to the slave chip, and the slave chip sends the port information of the receiving port to the slave chip. the main chip; after completing the port information exchange, both the sending port and the receiving port enter the low power consumption state for the first time. It is convenient to switch state.
  • a communication method comprising: before a sending port and a receiving port enter a data transmission state, detecting the current parameters of the sending port and the current parameters of the receiving port, and judging the sending port Whether the current parameters are consistent with the parameters matched by the sending port when sending data according to the target data transmission rate, and determine whether the current parameters of the receiving port match the parameters when the receiving port receives data according to the target data transmission rate Whether it is consistent, the sending port is located on the master chip side, and the receiving port is located on the slave chip side that has a communication relationship with the master chip; the current parameters of the sending port and the receiving port are the same as their target data When the parameters matched in the transmission rate are inconsistent, control the sending port and the receiving port to enter a rate switching state; in the rate switching state, switch the current parameters of the sending port to the sending port that transmits data according to the target data The parameters matched when sending data at a rate, and the parameters of the receiving port are switched to the parameters matched when the receiving port
  • the method further includes: when the current parameter of the sending port is switched to the parameter matched when the sending port sends data according to the target data transmission rate, and the current parameter of the receiving port is switched After being switched to the parameters that the receiving port matches when receiving data according to the target data transmission rate, receive the data transmission control code stream and control the transmission link to switch from the low power consumption state to the transmission of the target data A rate-matched high-speed data transfer state or a low-speed data transfer state, the high-speed data transfer rate being greater than the low-speed data transfer rate. Enter the data transmission state after matching the parameters.
  • the method further includes: during the data transmission process, when the data transmission rate changes, controlling both the sending port and the receiving port to enter the low power consumption state, and both Enter the rate switching state from the low power consumption state; in the rate switching state, switch the current parameters of the sending port to match when the sending port transmits data according to the changed data transmission rate and, switch the current parameters of the receiving port to the parameters that the receiving port matches when receiving data according to the changed data transmission rate; after switching is completed, control the sending port and the receiving port The ports all enter the low power consumption state.
  • the method further includes: when the current parameter of the sending port is switched to the parameter matched by the sending port when sending data according to the changed data transmission rate, and the receiving When the current parameter of the port is switched to the parameter matched when the receiving port receives data according to the changed data transmission rate, the data transmission control code stream is received and the transmission link is controlled to be switched from the low power consumption state to a high-speed data transfer state or a low-speed data transfer state matching the transfer rate of the target data.
  • the method further includes: when a data transmission error is detected in the data transmission state, controlling both the sending port and the receiving port to enter a repair state; wherein, the data transmission The state includes a high-speed data transmission state and a low-speed data transmission state; in the repair state, data repair is performed on the sending port and the receiving port, and the parameters of the sending port are repaired until the sending port is in the data transmission state. state, and restore the parameters of the receiving port to the parameters when the receiving port is in the data transmission state; after completing the data restoration of the sending port and the receiving port, control the Both the transmitting port and the receiving port enter a low power consumption state or both enter the high-speed data transmission state again. The reliability of the transmission link is improved.
  • the method further includes: controlling the sending Both the port and the receiving port enter a low power consumption state. It is convenient to switch state.
  • a chip in a third aspect, includes a first sending port and a first controller; the first controller is configured to control the first sending port to enter when a data transmission error is detected in a data transmission state to the repair state; send a repair control code stream that controls the first receiving port of the opposite end chip to enter the repair state; wherein, the data transmission state includes a high-speed data transmission state and a low-speed data transmission state; the first A controller is further configured to perform data repair on the first sending port in the repair state, and repair the parameters of the first sending port to the parameters when the first sending port is in the data transmission state; The first controller is further configured to control the first sending port to enter a low power consumption state or enter the high-speed data transmission state again after completing the data restoration on the first sending port; wherein, in the In the high-speed data transmission state, the data transmission rate is greater than or equal to 1Gbps.
  • the first controller is further configured to control the first transmission after detecting the data transmission error and before controlling the first transmission port to enter the repair state
  • the port enters a low power state. It is convenient to switch state.
  • the first controller is further configured to, after completing the data restoration and before controlling the first sending port to enter the low power consumption state, confirm that the A parameter of a sending port is a parameter when the first sending port is in the data transmission state. The reliability of the transmission link is improved.
  • the first controller is further configured to control the first sending port to enter a low power consumption state before the first sending port enters the high-speed data transmission state. It is convenient to switch state.
  • the chip further includes a second receiving port; the second receiving port is configured to receive the port information of the first receiving port sent by the second sending port of the opposite chip;
  • the first controller is further configured to control the first sending port to establish a transmission link with the first receiving port of the opposite chip, and control the first sending port to send the port information of the first sending port to The first receiving port of the peer chip.
  • a chip in a fourth aspect, includes a first receiving port and a second controller; the first receiving port is used to receive a repair control code stream sent by a first sending port of a peer chip; the first receiving port The second controller is configured to control the first receiving port to enter a repair state according to the repair control code stream; wherein, the repair control code stream is that the first controller of the opposite end chip detects data in the data transmission state When a transmission error occurs, a repair control code stream is generated for controlling the first receiving port to switch to a repair state; wherein, the data transmission state includes a high-speed data transmission state and a low-speed data transmission state; the second controller also In the repair state, data repair is performed on the first receiving port, and the parameters of the first receiving port are repaired to the parameters when the first receiving port is in the data transmission state; the second receiving port The controller is further configured to control the first receiving port to enter a low power consumption state or enter the high-speed data transmission state again after completing the data restoration of the first receiving port; wherein,
  • the second controller is further configured to control the first receiving port after detecting the data transmission error and before controlling the first receiving port to enter the repair state
  • the port enters a low power state. It is convenient to switch state.
  • the second controller is further configured to, after completing the data restoration and before controlling the first receiving port to enter the low power consumption state, confirm that the A parameter of a receiving port is a parameter when the first receiving port is in the data transmission state. The reliability of the transmission link is improved.
  • the second controller is further configured to control the first receiving port to enter a low power consumption state before the first receiving port enters the high-speed data transmission state. It is convenient to switch state.
  • it further includes a second sending port; the second controller is further configured to control the first receiving port to establish a transmission link with the first sending port of the opposite chip, and control the The second sending port sends the port information of the first receiving port to the second receiving port of the opposite end chip; the first receiving port is also used to receive the data sent by the first sending port of the opposite end chip The port information of the first sending port.
  • a fifth aspect provides a chip, the chip includes a first sending port and a first controller, the first controller is configured to detect the current state of the first sending port before the first sending port enters a data transmission state parameters and determine whether the current parameters of the first sending port are consistent with the parameters matched by the first sending port when sending data according to the target data transmission rate; the first controller is also used for sending data at the first sending port When the current parameter is inconsistent with the parameter matched by the first sending port at the target data transmission rate, the first sending port is controlled to enter a rate switching state; the first controller is further configured to, in the rate switching state, Switching the current parameters of the first sending port to the parameters matched by the first sending port when sending data according to the target data transmission rate; the first controller is further configured to control the first sending port to send data to the opposite end
  • the first receiving port of the chip sends a control code stream that controls the first receiving port to enter a rate switching state; the first controller is further configured to control the first sending port to enter a low power consumption state after switching is completed state
  • the first controller is further configured to, after the current parameter of the first sending port is switched to the parameter matched by the first sending port when sending data according to the target data transmission rate , receiving a data transmission control code stream and controlling the first sending port to switch from the low power consumption state to a high-speed data transmission state or a low-speed data transmission state that matches the transmission rate of the target data; the first controller It is also used to control the first sending port to send the control to the first receiving port of the opposite chip to control the first receiving port to switch to a high-speed data transmission state or a low-speed data transmission state that matches the transmission rate of the target data.
  • a code stream wherein the high-speed data transmission rate is greater than the low-speed data transmission rate.
  • the first controller is further configured to control the first sending port to enter the low power consumption state when the data transmission rate changes during the data transmission process, and from The low power consumption state enters the rate switching state; the first controller is further configured to, in the rate switching state, control the current parameters of the first sending port to switch to the first sending port in accordance with: The parameter matched when the changed data transmission rate transmits data; the first controller is further configured to control the first sending port to send to the first receiving port of the opposite chip, and control the first receiving port to enter the The control code stream of the low power consumption state and the rate switching state; the first controller is further configured to control the first sending port to enter the low power consumption state after the switching is completed.
  • the reliability of the transmission link is improved.
  • the first controller is further configured to send data according to the changed data transmission rate when the current parameter of the first sending port is switched to the first sending port sending data according to the changed data transmission rate
  • the first controller is further configured to control the first sending port to send to the first receiving port of the opposite chip and control the first receiving port to switch to a high-speed data transmission state or low-speed data that matches the transmission rate of the target data
  • the control stream of the transmission state When matching parameters, receive a data transmission control code stream and control the first sending port to switch from the low power consumption state to a high-speed data transmission state or a low-speed data transmission state that matches the transmission rate of the target data
  • receive a data transmission control code stream and control the first sending port to switch from the low power consumption state to a high-speed data transmission state or a low-speed data transmission state that matches the
  • the first controller is further configured to control the first sending port to enter a repair state when a data transmission error is detected in the data transmission state; and send the control to the opposite end chip to the opposite end chip The repair control code stream in which the first receiving port enters the repair state; wherein, the data transmission state includes a high-speed data transmission state and a low-speed data transmission state; the first controller is further configured to, in the repair state, performing data restoration on the first sending port, and restoring the parameters of the first sending port to the parameters when the first sending port is in the data transmission state; the first controller is further configured to After the data of the first sending port is restored, the first sending port is controlled to enter a low power consumption state or enter the high-speed data transmission state again. The reliability of the transmission link is improved.
  • the first controller is further configured to control the first controller after detecting the data transmission error and before controlling the first sending port to enter the repair state
  • the transmit port enters a low power state. It is convenient to switch state.
  • a chip in a sixth aspect, includes a first receiving port and a second controller, and before the first receiving port enters a data transmission state, the first receiving port is used to receive the control station sent by the opposite end chip.
  • the first receiving port enters the rate-switching state of the control code stream;
  • the second controller is configured to control the first receiving port to enter the rate-switching state according to the control code stream; and according to the control code stream to control the
  • the first receiving port enters a rate switching state;
  • the second controller is further configured to switch the current parameters of the first receiving port in the rate switching state to the first receiving port sending according to the target data transmission rate and the second controller is further configured to control the first receiving port to enter a low power consumption state after switching is completed.
  • the reliability of the transmission link is improved.
  • the second controller is further configured to, after the current parameter of the first receiving port is switched to the parameter matched by the first receiving port when sending data according to the target data transmission rate , controlling the first receiving port to receive a control code stream that controls the first receiving port to switch to a high-speed data transmission state or a low-speed data transmission state that matches the transmission rate of the target data, and controls the control code stream according to the control code stream
  • the first receiving port is switched from the low power consumption state to a high-speed data transmission state or a low-speed data transmission state matching the transmission rate of the target data; wherein the high-speed data transmission rate is greater than the low-speed data transmission rate .
  • the first receiving port when the data transmission rate changes, is configured to receive the data sent by the opposite end chip and control the first receiving port to enter a low power consumption state and a control code stream in a rate switching state; the second controller is configured to control the first receiving port to enter a low power consumption state and a control code stream in a rate switching state according to the control code stream; and control the first receiving port according to the control code stream A receiving port enters a low power consumption state, and enters a rate switching state after entering the low power consumption state; the second controller is further configured to control the current parameter of the first receiving port to switch to the rate switching state in the rate switching state parameters matched by the first receiving port when transmitting data according to the changed data transmission rate; the second controller is further configured to control the first receiving port to enter the low-power mode after switching is completed consumption status.
  • the second controller is further configured to, after the current parameter of the first receiving port is switched to the parameter matched by the first receiving port when sending data according to the target data transmission rate , controlling the first receiving port to receive a control code stream that controls the first receiving port to switch to a high-speed data transmission state or a low-speed data transmission state that matches the transmission rate of the target data, and controls the control code stream according to the control code stream
  • the first receiving port is switched from the low power consumption state to a high-speed data transmission state or a low-speed data transmission state matching the transmission rate of the target data.
  • the second controller is further configured to control the first receiving port to enter a repair state according to the repair control code stream; wherein the repair control code stream is the opposite end
  • the first controller of the chip detects a data transmission error in the high-speed data transmission state, it generates a repair control code stream for controlling the first receiving port to switch to the repair state;
  • the second controller is further configured to perform data repair on the first receiving port in the repair state, and repair the parameters of the first receiving port to the parameters when the first receiving port is in a data transmission state ;
  • the data transmission state includes a high-speed data transmission state and a low-speed data transmission state;
  • the second controller is further configured to control the first receiving port to enter a low power consumption state or enter the high-speed data transmission state again after completing data restoration on the first receiving port.
  • the second controller is further configured to control the first receiving port after detecting the data transmission error and before controlling the first receiving port to enter the repair state The receive port enters a low power state.
  • a communication system in a seventh aspect, includes a first chip and a second chip; wherein the first chip is any one of the chips described in any one of the above; the second chip is a pair of the first chip A terminal chip; a transmission link is established between the first chip and the second chip.
  • a mobile terminal in an eighth aspect, includes a first chip and a second chip; wherein the first chip is the chip described in any one of the above; the second chip is a pair of the first chip A terminal chip; a transmission link is established between the first chip and the second chip.
  • an embodiment of the present application provides a signal processing module, where the signal processing module includes a processor, and is configured to implement the method described in the first aspect or the second aspect.
  • the signal processing module may also include a memory for storing instructions and data.
  • the memory is coupled to the processor, and when the processor executes the program instructions stored in the memory, the method described in the first aspect can be implemented.
  • the signal processing module may also include a communication port, which is used for the apparatus to communicate with other devices.
  • the communication port may be a transceiver, circuit, bus, module or other type of communication port. It can be a network device or a terminal device, etc.
  • the signal processing module includes: a memory for storing program instructions; a processor for invoking the instructions stored in the memory, so that the apparatus executes the first aspect and the first aspect of the present application Any of the possible design methods.
  • an embodiment of the present application further provides a computer-readable storage medium, including instructions, which, when executed on a computer, enable the computer to execute the first aspect of the present application and any possible design method of the first aspect , or the second aspect and any two possible design methods in the second aspect.
  • the embodiments of the present application further provide a computer program product, including instructions, which, when run on a computer, enable the computer to execute the first aspect of the present application and any possible design method in the first aspect , or the second aspect and any two possible design methods in the second aspect.
  • FIG. 1 is a scenario in which the communication method provided by the embodiment of the present application may be applied in a terminal device
  • FIG. 2 is a scenario in which the communication method provided by the embodiment of the present application may be applied in a storage device
  • FIG. 3 shows a logical schematic diagram of various states of a transmission link provided by an embodiment of the present application
  • FIG. 4 shows a working mode management process after the chip is powered on provided by an embodiment of the present application
  • FIG. 5 shows a working mode management process under high-speed data transmission provided by an embodiment of the present application
  • FIG. 6 shows a working mode management process under low-speed data transmission provided by an embodiment of the present application
  • FIG. 7 shows a working mode management process under ultra-low power consumption provided by an embodiment of the present application
  • FIG. 8 shows a communication system provided by the present application
  • Fig. 9 shows the workflow of the port under the communication system architecture in the LINK-STARTUP state
  • Figure 10 shows the workflow of the port in the SPEED-CHANGE state under the communication system architecture
  • Figure 11 shows the workflow of the port in the RECOVERY state under the communication system architecture
  • Figure 12 shows another communication system provided by the present application.
  • Figure 13 shows the workflow of the port in the LINK-STARTUP state under the communication system architecture
  • Figure 14 shows the workflow of the port in the SPEED-CHANGE state under the communication system architecture
  • Figure 15 shows the workflow of the port in the RECOVERY state under the communication system architecture
  • FIG. 16 shows a structural block diagram of a signal processing module provided by an embodiment of the present application.
  • the communication method provided by the embodiment of the present application is a high-speed communication method, which is mainly applied to various transmission links in terminal services that require high-speed communication.
  • Common scenarios include the processor-camera data communication transmission link of terminal products such as mobile phones and tablets, the processor-display data communication transmission link, and the data communication transmission link between storage devices.
  • FIG. 1 shows a scenario in which the communication method provided by the embodiment of the present application may be applied in a terminal device.
  • the terminal device 200 includes a processor, a camera module, a display module, a radio frequency module, a storage module, and the like, all of which can be regarded as chips.
  • Transmission links 201, 202, 203, and 204 respectively represent transmission links between the processor and the camera module, the processor and the display module, the processor and the radio frequency module, and the processor and the storage module.
  • the communication methods provided in the embodiments of the present application can be applied to the port working modes on both sides of the data transmission link such as 201 , 202 , 203 , and 204 for low power consumption management, so as to ensure stable and reliable data transmission in high-speed scenarios.
  • the main chip is also called the local chip, which refers to a chip used for sending data between two chips having a communication relationship.
  • the slave chip is also called the peer chip, which refers to the chip used to receive data between two chips with a communication relationship.
  • each chip has the function of data sending and sending.
  • the chip is used to send data, we can call the chip as the main chip or the local chip.
  • the chip is located on the opposite end of the chip and used for The chip that receives the data can be called the slave chip or the peer chip. It can be seen from the above description that among the two chips with a communication relationship, one chip is not a fixed master chip, or a fixed slave chip.
  • a specific chip is a master chip or a slave chip, It depends on whether it is sending data or receiving data.
  • the processor when the processor sends data to the camera module, the processor is the master chip (the local chip), and the camera module is the slave chip (the opposite end chip).
  • the camera module sends data to the processor, the camera module is the master chip (the local chip), and the processor is the slave chip (the opposite end chip).
  • FIG. 2 shows a scenario in which the communication method provided by the embodiment of the present application may be applied in a storage device.
  • Data exchange is performed between the storage device 1 and the storage device 2 through a physical layer port, and the transmit port and the receive port between the two devices constitute a data transmission link 301 .
  • the communication method provided by the present application ensures stable and reliable data transmission in high-speed scenarios by performing low power consumption management on the port working modes on both sides of the data transmission link such as 301 .
  • the scene of the local chip and the opposite chip shown in FIG. 1 is used for description.
  • the transmission link is formed by the sending port of the local end chip, the receiving port of the opposite end chip and the link between them.
  • both the local chip and the opposite chip include a protocol layer and a physical layer, wherein the protocol layer is used to send data or control instructions to the physical layer, and the physical layer sends and processes data according to the instructions of the protocol layer.
  • the sending port of the local chip and the receiving port of the opposite chip are both physical layer ports.
  • the working mode management method for a high-speed data serial port is expressed in the form of a state machine.
  • the state machine is shown in FIG. 3 .
  • Each state in FIG. 3 corresponds to each working mode of the transmission link.
  • the link includes the following working states: DISABLED state, PHY-INIT state, LINK-STARTUP state, LOW-POWER0 state, LOW-POWER1 state, TRANS0 state, TRANS1 state, RECOVERY state, and SPEED-CHANGE state.
  • the functions of the transmission link in each state are defined in detail below. First, refer to Table 1, which shows the Chinese meanings corresponding to the English abbreviations of various states.
  • the sending port and the receiving port also correspond to the same working mode.
  • the road is in a different working mode.
  • the above working modes are described in detail below:
  • This state represents the state when the chip is powered on and reset. This state can be entered automatically after the chip is initially powered on, or can be entered in any state after being triggered by the trigger condition Trigger0.
  • the physical layer port disables transmit and receive operations and does not enter the PHY-INIT state until Trigger0 ends or fails.
  • This state represents the state of the port being initialized, which can be entered automatically after the DISABLED state ends, or can be entered after being triggered by the trigger condition Trigger1 in any state.
  • the trigger condition for entering LINK-STARTUP can come from the control of the upper-layer chip or from the control code stream on the transmission link.
  • This state represents the state of establishing a reliable connection between physical layer ports.
  • the physical layer port allows transmit and receive operations.
  • the physical layer port in this state needs to determine the state of the transmission link, establish a link with the physical layer port on the other end of the transmission link, and exchange basic information of the physical layer port.
  • the physical layer port in this state communicates at the lowest rate supported by the chip, and the operation performed at this rate is considered reliable. If the communication fails due to the timeout due to the chip synchronization problem, the connection with the peer chip will be stopped. , notify the upper layer and enter the PHY-INIT state.
  • the physical layer port After the physical layer port establishes a reliable connection, it is triggered by the upper layer control or the control code stream on the transmission link to enter the LOW-POWER0 state.
  • This state represents a low power state.
  • the physical layer port in this state needs to save power without affecting the start-up time of data transfer.
  • the physical layer port in this state does not perform parameter configuration, and only immediately enters the next state under the triggering condition of the upper layer control or the control code stream on the transmission link.
  • This state is an ultra-low power state.
  • the physical layer port keeps the current configuration and register values of the chip unchanged, and shuts down specific circuit modules.
  • the physical layer port in this state does not perform sending and receiving operations, and the corresponding circuit module is reopened to enter the LOW-POWER0 state under the triggering condition of the upper layer control or the control code stream on the transmission link.
  • This state is the low-speed data transmission state of the physical layer port.
  • the port in this state performs low-speed (less than 1Gbps) data transmission and can support different low-speed speed gears.
  • the physical layer port in this state will enter the LOW-POWER0 state after the data transfer is completed.
  • This state is the high-speed data transmission state of the physical layer port.
  • the physical layer port performs high-speed and large-volume data transmission, and can support different high-speed speed gears.
  • the data transmission rate is greater than or equal to 1 Gbps.
  • the physical layer port in this state will enter the LOW-POWER0 state after the data transmission is completed, and will enter the RECOVERY state only when the upper layer control or the control code stream on the transmission link is triggered.
  • This state represents the data recovery state of the physical layer port.
  • the port should enter the RECOVERY state to repair the corresponding data transmission link.
  • the physical layer port in this state can take corresponding repair measures according to different transmission error conditions, and only perform data transmission related to the repair, that is, only repair the matching parameters corresponding to the data transmission state, and do not process the establishment of the transmission link handshake. time base configuration. After the configuration is completed, the physical layer port can send some handshake information to confirm that the transmission link is available again, and then enter the next state according to the upper layer control or the control code flow on the transmission link.
  • This state represents the physical layer port data transmission rate switching state.
  • the physical layer port enters the SPEED-CHANGE state according to the instructions of the upper layer to change the rate configuration parameters of the port.
  • the physical layer port in this state only performs data transmission related to cutting speed. After the configuration is completed, the physical layer port needs to send some handshake information at the new rate to confirm that the transmission link is available again, and then trigger back to the LOW-POWER0 state according to the upper layer control or the control code flow on the transmission link.
  • the communication method provided by the embodiment of the present application mainly involves several states, and the other states are optional states of the transmission link. In practical application, the above several optional states can be set as required.
  • the communication methods provided by the embodiments of the present application are used to switch several working states of the above-mentioned transmission link. .
  • the working state of the transmission link corresponds to the working state of the sending port of the end chip and the receiving port of the opposite end chip.
  • the transmission link has the above several working states, the corresponding sending port and the receiving port also have the above several working states.
  • interfaces in the flowcharts shown in FIG. 4 to FIG. 7 refer to the sending port and/or the receiving port of the end chip and the opposite end chip.
  • Port information exchange means that the first chip sends the port information of the sending port to the second chip, and the second chip will receive The port information of the port is sent to the first chip; after the port information exchange is completed, both the sending port and the receiving port enter a low power consumption state for the first time.
  • FIG. 4 shows the working mode management flow after the chip is powered on.
  • the power-on reset signal of the chip can be regarded as a kind of trigger condition Trigger0.
  • the first chip and the second chip shake hands to establish a transmission link; and exchange basic information of ports at both ends of the transmission link.
  • the first chip is taken as an end chip
  • the second chip is an opposite end chip as an example for description.
  • the first chip has a sending port
  • the second chip has a receiving port.
  • the sending port and the receiving port are the two ends of the transmission link. port.
  • the sending port of the first chip After the first chip is powered on and reset, the sending port of the first chip enters the DISABLED state from any previous state. After the power-on reset signal ends or fails, the transmitting port automatically enters the PHY-INIT state and performs initialization operations. After the initialization operation is completed, the transmit port waits for the trigger condition to enter LINK-STARTUP in a very low power state. The sending port enters the LINK-STARTUP state after receiving the trigger condition, tries to establish a reliable link with the receiving port of the second chip, and the first chip transmits the basic information (such as capability information and version information) of the sending port to the second chip, and The second chip transmits the basic information of the receiving port (such as capability information and version information) to the first chip.
  • the basic information such as capability information and version information
  • the sending port If the link establishment (establishing the transmission link) fails, the sending port returns to the PHY-INIT state and re-initializes. If after the initialization is completed, the sending port and the receiving port also complete the reliable link establishment, then enter the LOW-POWER0 state under the trigger of the upper layer control or the control code stream on the transmission link, and wait for the trigger condition to enter the next state.
  • the above LOW-POWER0 state as an intermediate state, after the sending port and the receiving port complete any data transmission work, the first chip can control the transmission link to enter the LOW-POWER0 state and wait for the next state trigger condition to reduce energy consumption .
  • FIG. 5 shows a working mode management flow under high-speed data transmission.
  • the transmission link is in a LOW-POWER0 state before high-speed data transmission, that is, before the sending port and the receiving port enter the high-speed data transmission state, they are in a low-power state.
  • the transmission link can be triggered to enter a high-speed data transmission state through a high-speed data control code stream to perform high-speed data transmission.
  • the controller or the protocol layer of the first chip triggers both the sending port and the receiving port to enter the high-speed data transmission state through the high-speed data control code stream.
  • the transmission link can be controlled to enter a repair state. For example, if an error occurs during data transmission, the upper layer control or the control code stream on the transmission link can trigger the transmission link to exit the TRANS1 state and directly enter the RECOVERY state, and the transmission link is repaired in the RECOVERY state.
  • the protocol layer of the first chip controls both the sending port and the receiving port to enter the repair state; when a high-speed data transmission error is detected, the controller or the protocol layer of the first chip controls the sending port to enter the repair state, and Sending the repair control code stream to the second chip, so that the protocol layer or the controller of the second chip controls the receiving port to enter the repair state according to the repair control code stream, and the protocol layer of the first chip controls the receiving port to enter the repair state. It refers to the above-mentioned control of the second chip through the repair control code flow, so that the receiving port enters the repair state, so that both the sending port and the receiving port enter the repair state.
  • both the sending port and the receiving port are controlled to enter a low power consumption state. Specifically, it refers to controlling both the sending port and the receiving port to enter the restoration state from the low power consumption state.
  • the controller or the protocol layer of the first chip performs data repair (reset and repair) on the sending port and the receiving port, and restores the parameters of the sending port to the parameters when the sending port is in a high-speed data transmission state, And, the parameters of the receiving port are repaired to the parameters when the receiving port is in a high-speed data transmission state.
  • the sending port and the receiving port can take corresponding repair measures according to different transmission error conditions, that is, only repair the corresponding matching parameters in the state of data transmission, and do not involve the basic configuration when the transmission link handshake is established.
  • the controller or the protocol layer of the first chip resets the parameters of the sending port to the parameters matching the high-speed data transmission state.
  • the protocol layer or controller of the second chip resets the parameters of the receiving port to the parameters matching the high-speed data transmission state according to the relevant code stream sent by the first chip.
  • a handshake process is added. Through the handshake process, it is confirmed that the parameters of the repaired sending port are the parameters when the sending port is in a high-speed data transmission state and the parameters of the receiving port are the receiving port. Parameters in the state of high-speed data transmission to ensure the robustness of the transmission link.
  • the protocol layer or the controller of the first chip controls the transmission link to exit the TRANS1 state, enter the LOW-POWER0 state, and wait for a trigger condition for entering the next state.
  • the protocol layer or controller of the first chip detects whether the transmission rate of the transmission link is consistent with the transmission rate of the target data
  • detecting the current parameters of the sending port and the current parameters of the receiving port and judging whether the current parameters of the sending port are consistent with the parameters matched by the sending port when sending data according to the target data transmission rate, and judging the current parameters of the receiving port Whether it is consistent with the parameters matched by the receiving port when receiving data according to the target data transmission rate, that is, it is judged whether the current parameters of the ports at both ends of the transmission link are consistent with the parameters matched when the ports at both ends of the transmission link send and receive data according to the target data transmission rate.
  • the protocol layer or controller of the first chip controls the sending port and the receiving port to enter a rate switching state.
  • the protocol layer or the controller of the first chip controls the sending port to enter the low power consumption state, and after entering the low power consumption state, enters the rate switching state.
  • the protocol layer or controller of the first chip controls the sending port to send the relevant switching control code stream to the receiving port of the second chip, and the protocol layer or controller of the second chip passes the received relevant control code.
  • the flow control receiving port correspondingly enters the low power consumption state, and enters the rate switching state after entering the low power consumption state.
  • the protocol layer or controller of the first chip switches the current parameters of the sending port to the parameters matched by the sending port when sending data according to the target data transmission rate.
  • the protocol layer or controller of the second chip will receive The parameters of the port are switched to the parameters matched by the receiving port when receiving data according to the target data transmission rate; and after the switching is completed, both the transmitting port and the receiving port enter a low power consumption state.
  • the current parameters of the first sending port are consistent with the parameters that the first sending port matches when sending data according to the target data transmission rate, and the current parameters of the receiving port are the same as the parameters that the receiving port matches when receiving data according to the target data receiving rate.
  • the control transmission link is switched from a low power consumption state to a high-speed data transmission state or a low-speed data transmission state that matches the transmission rate of the target data.
  • the sending port needs to determine whether the data transmission rate supported by the current transmission link configuration is consistent with the transmission rate of the target data. If inconsistent, the sending port needs to enter the SPEED-CHANGE state, and reconfigure the parameters of the transmission link to meet the transmission rate requirements of the target data. If the data transmission rate supported by the current transmission link configuration is consistent with the transmission rate of the target data, the sending port directly enters the TRANS1 state under the trigger of the trigger condition (high-speed data control code stream) to perform high-speed data transmission. Similarly, the receiving port also performs corresponding operations.
  • the control transmission link when the data transmission rate changes, after the control transmission link enters the low power consumption state, it switches to the rate switching state; the parameters of the ports at both ends of the transmission link are switched to the two ends of the transmission link.
  • the data transmission rate of the transmission link can be changed.
  • the sending port and the receiving port can be triggered to exit the TRANS1 state and enter the LOW-POWER0 state through the upper layer control or the control code stream on the transmission link, and then trigger the sending port and the receiving port to enter the SPEED-CHANGE state; in the SPEED-CHANGE state, to
  • the data parameters of the sending port and the receiving port are configured, that is, the parameters of the ports at both ends of the transmission link are switched to the parameters matching the transmission rate corresponding to the data after the changed rate, so as to adapt to the changed rate requirement.
  • the above-mentioned transmission rate switching during the data transmission process is the same as the transmission rate switching before entering the high-speed data transmission state, and details are not described herein again.
  • FIG. 6 shows the working mode management flow under low-speed data transmission.
  • the low-speed data control code stream can trigger the transmission link to enter the low-speed data transmission state, and perform low-speed data transmission; after completing the low-speed data transmission, control the transmission link to enter the low-speed data transmission state.
  • the transmission link is in the LOW-POWER0 state before low-speed data transmission.
  • the sending port and the receiving port Before entering the TRANS0 state, the sending port and the receiving port need to determine whether the data transmission rate supported by the current transmission link configuration is consistent with the target data transmission rate. If inconsistent, the transmission link needs to enter the SPEED-CHANGE state, and reconfigure the transmission link parameters to meet the transmission rate requirements of the target data. If the data transmission rate supported by the current transmission link configuration is consistent with the transmission rate of the target data, the sending port and the receiving port directly enter the TRANS0 state under the trigger condition to perform low-speed data transmission. The process is similar to the related description in FIG. 5 above, and will not be repeated here.
  • the transmission link can be controlled to enter a repair state. For example, if an error occurs during data transmission, the upper layer control or the control code stream on the transmission link can trigger the transmission link to exit the TRANS0 state and directly enter the RECOVERY state, and the transmission link is repaired in the RECOVERY state.
  • a repair state For example, if an error occurs during data transmission, the upper layer control or the control code stream on the transmission link can trigger the transmission link to exit the TRANS0 state and directly enter the RECOVERY state, and the transmission link is repaired in the RECOVERY state.
  • the specific repair process Reference may be made to the related description in FIG. 5 , which will not be repeated here.
  • the sending port and the receiving port exit the TRANS0 state, enter the LOW-POWER0 state, and wait for the trigger condition to enter the next state.
  • FIG. 7 shows the working mode management flow under ultra-low power consumption.
  • the transmission link enters an ultra-low power consumption state from a low power consumption state.
  • the sending port and the receiving port are in the LOW-POWER0 state before entering the LOW-POWER1 state, and the sending port and the receiving port are triggered to exit the LOW-POWER0 state and enter the LOW-POWER1 state through the upper layer control or the control code stream on the transmission link.
  • the sending port and the receiving port need to exit the LOW-POWER1 state, the sending port is triggered to exit the LOW-POWER1 state and enter the LOW-POWER0 state through the upper layer control or the control code stream on the transmission link.
  • the communication system shown in FIG. 8 includes a first chip 100 and a second chip 200, wherein both the first chip 100 and the second chip 200 are opposite chips of another chip, and the first chip 100 and the second chip 200 have similar composition structure.
  • the first chip 100 includes a protocol layer and a physical layer structure.
  • the protocol layer is responsible for sending upper-layer data information and control information, receiving data information and control information from other chips of the same level or upper-layer chips, and can control the physical layer.
  • the physical layer of the first chip 100 includes a sending module, a receiving module and a first controller 105 .
  • the sending module is used to send data
  • the receiving module is used to receive data
  • the first controller 105 is used to control the sending module and the receiving module.
  • the sending module includes a first data processing module 102 and a first sending port 101.
  • the first data processing module 102 performs operations such as encoding, scrambling, and serial processing on the data information and control information from the protocol layer to process the data information into data. packet, and then send the data packet out through the first sending port 101 .
  • the receiving module includes a second data processing module 104 and a second receiving port 103, the second receiving port 103 receives data packets from the transmission link, and the second data processing module 104 performs decoding, descrambling, and decoding on the data packets. Serial processing and other operations, and then transmit the data information and control information to the protocol layer, or indirectly control the first controller 105 according to the control information.
  • the first controller 105 is directly controlled by the protocol layer, and can also be indirectly controlled from the receiving module, so as to manage the sending module and the receiving module.
  • the first controller 105 can manage the sending and receiving of data by managing the sending module and the receiving module.
  • the structure of the second chip 200 is similar to that of the first chip 100 .
  • the second sending port 201 , the third data processing module 202 , the first receiving port 203 , the fourth data processing module 204 and the second The controller 205 may refer to the related description of the same type of structure in the first chip 100 .
  • the second sending port 201 of the second chip 200 is connected with the second receiving port 103 of the first chip 100 to form a transmission link, and the first receiving port 203 of the second chip 200 and the first sending port 101 of the first chip 100 form a transmission link link.
  • the above two transmission links are established synchronously.
  • the port information of the first receiving port can be sent to the second receiving port 103 through the second sending port 201, so as to realize the connection between the first receiving port 203 and the second receiving port 103.
  • the port information of the second receiving port 103 may be sent to the first receiving port 203 through the first sending port 101 .
  • the communication system provided by the embodiment of the present application realizes the management of the transmission link of the communication system by managing the port working mode state machine.
  • the transmission link between the first chip 100 and the second chip 200 of the communication system can perform power-on operation, high-speed data transmission operation, low-speed data transmission operation and ultra-low power consumption operation according to the above-described working states.
  • the flow of the LINK-STARTUP state, the SPEED-CHANGE state and the RECOVERY state of the first chip 100 is as follows:
  • the sending port hereinafter refers to the first sending port 101 in the first chip 100
  • the receiving port refers to the first receiving port 203 of the second chip 200 .
  • FIG. 9 shows the workflow of the port in the LINK-STARTUP state under the communication system architecture.
  • the first chip and the second chip shake hands, establish a transmission link, and exchange basic information of ports at both ends of the transmission link (the first sending port and the first receiving port, and the second sending port and the first receiving port).
  • the protocol layer of the first chip controls the first sending port to enter the LINK-STARTUP state, and the first sending port sends the LINK-STARTUP control code stream on the transmission link to the first receiving port,
  • the LINK-STARTUP control code stream is used as a condition for triggering the first receiving port to enter the LINK-STARTUP.
  • the second controller of the second chip controls the first receiving port to enter the LINK-STARTUP state according to the received LINK-STARTUP control code stream.
  • the second sending port of the second chip sends the LINK-STARTUP control code stream to the second receiving port of the first chip, and the first controller of the first chip controls the second receiving port according to the received LINK-STARTUP control code stream. Enter the LINK-STARTUP state.
  • the first sending port When the first sending port enters the LINK-STARTUP state, the first sending port attempts to establish a link with the first receiving port and confirms the status of the transmission link by sending a link-building related code stream on the transmission link; Send a link establishment related code stream on the transmission link, try to establish a link with the second receiving port and confirm the status of the transmission link.
  • the link establishment related code stream includes the judgment information for establishing a reliable link of the transmission link and the basic information that the ports need to exchange.
  • the first controller needs to determine whether a reliable link is established with the opposite port according to the link establishment related code streams sent and received by the first sending port and the second receiving port, and refresh the basic information exchanged in time. If it is judged that the port has not established a reliable link, it will notify the protocol layer that the link building fails and return to the PHY-INIT state; if it is judged that the first sending port and the second receiving port have established a reliable link with the opposite port, it means that the link has been established successfully and LINK-STARTUP The state ends, waiting for the trigger condition to enter the next state. Similarly, the second controller also needs to perform the same operations as the first controller, and details are not repeated here.
  • the transmission link may enter a low power consumption state through a trigger condition, and wait for the next state trigger condition.
  • FIG. 10 shows the workflow of the port in the SPEED-CHANGE state under the communication system architecture.
  • the first sending port and the first receiving port are in the LOW-POWER0 state before entering the SPEED-CHANGE state.
  • the protocol layer of the first chip sends the SPEED-CHANGE request
  • the first sending port enters the SPEED-CHANGE state and is in the first sending port.
  • the SPEED-CHANGE control code stream is sent on the transmission link with the first receiving port (that is, the control code stream entering the rate switching state is sent to the first receiving port), and the SPEED-CHANGE control code stream is used as the physical The condition for the layer port (the first receiving port) to enter the SPEED-CHANGE state.
  • the second controller controls the first receiving port to enter the SPEED-CHANGE state according to the SPEED-CHANGE control code stream received by the first receiving port.
  • the first sending port After entering the SPEED-CHANGE state, the first sending port changes the current configuration parameters to the configuration parameters matching the target rate according to the request of the protocol layer or the transmission rate (target rate) of the target data in the SPEED-CHANGE control code stream. After the configuration of the parameters of the first sending port is completed, the speed-cutting related code stream will be sent to the first receiving port at the target rate to try to communicate at the target rate.
  • the rate-cutting related code stream includes but is not limited to the judgment information of the link rate-cutting success.
  • a code stream is sent to confirm the matching parameters of the transmission link and the target data.
  • the first sending port and the second receiving port need to determine whether the port successfully communicates with the first receiving port and the second sending port at the new rate according to the rate-cutting related code streams sent and received. If it is judged that the port fails to communicate, it will notify the protocol layer that the speed cut fails and return to the LOW-POWER0 state; if it is judged that the communication can be performed at the transmission rate of the target data, it means that the speed cut is successful, the SPEED-CHANGE state is over, and it is waiting to enter the next state. Triggering conditions. It can be seen from the above description that a handshake process is added after the parameter configuration of the data transmission link is changed, and a preliminary judgment is made on the accuracy of the data transmission at the cutting speed, so as to improve the robustness of the transmission link.
  • the above SPEED-CHANGE state is applied in two scenarios.
  • One state is: before data transmission, before entering the low-speed data transmission state or the high-speed data transmission state as shown in FIG. 5 and FIG. 6 , the parameters of the ports at both ends of the transmission link are modified.
  • the protocol layer of the first chip or the first controller detects the current parameters of the first sending port, and determines that the current parameters of the first sending port and the first sending port are in accordance with the target data. Whether the parameters matched when sending data at the transmission rate are consistent.
  • the protocol layer of the second chip or the second controller detects the current parameters of the second receiving port, and determines whether the current parameters of the second receiving port are consistent with the parameters matched by the second receiving port when receiving data according to the target data transmission rate, That is, it is judged whether the current parameters of the ports at both ends of the transmission link are consistent with the parameters matched when the ports at both ends of the transmission link send and receive data according to the target data transmission rate.
  • the protocol layer of the first chip or the first controller controls the first sending port to enter the SPEED-CHANGE state.
  • the protocol layer of the first chip or the first controller controls the first sending port to enter the low power consumption state, and after entering the low power consumption state, controls the first sending port to enter the SPEED-CHANGE state.
  • the protocol layer or the first controller of the first chip controls the first sending port to send the relevant switching control code stream to the first receiving port of the second chip, and the protocol layer or the second controller of the second chip sends the relevant switching control code stream.
  • the controller controls the first receiving port to correspondingly enter the low power consumption state through the received related control code stream, and enters the SPEED-CHANGE state after entering the low power consumption state.
  • the second receiving port of the first chip and the second sending port of the second chip also perform the above operations.
  • the protocol layer of the first chip or the first controller switches the current parameters of the first sending port to the first sending port and transmits data according to the target data The parameter to match when sending data at the rate.
  • the protocol layer of the second chip or the second controller switches the parameters of the first receiving port to the parameters matched by the first receiving port when receiving data according to the target data transmission rate; and after the switching is completed, the first sending port and The first receiving ports all enter into a low power consumption state.
  • a code stream is sent to confirm the matching parameters corresponding to the transmission link and the target data, so as to improve the robustness of the transmission link.
  • the current parameters of the first sending port are consistent with the parameters that the first sending port matches when sending data according to the target data transmission rate, and the current parameters of the first receiving port and the first receiving port are receiving data according to the target data receiving rate.
  • the first controller or the protocol layer of the first chip controls the first sending port to switch from a low power consumption state to a high-speed data transmission state or a low-speed data transmission state matching the transmission rate of the target data.
  • the second controller or protocol layer of the second chip controls the first receiving port to switch from a low power consumption state to a high-speed data transmission state or a low-speed data transmission state matching the transmission rate of the target data. That is, the control transmission link is switched from a low power consumption state to a high-speed data transmission state or a low-speed data transmission state that matches the transmission rate of the target data.
  • the other involves the SPEED-CHANGE state that the transmission link is in data transmission, and when the data transmission rate changes, the transmission rate needs to be switched.
  • the transmission rate of the transmission link needs to be adjusted to the transmission rate corresponding to the changed rate data.
  • the protocol layer of the first chip or the first controller controls the first sending port to enter the SPEED-CHANGE state.
  • the protocol layer of the first chip or the first controller controls the first sending port to enter the low power consumption state, and after entering the low power consumption state, controls the first sending port to enter the SPEED-CHANGE state.
  • the protocol layer or the first controller of the first chip controls the first sending port to send the relevant switching control code stream to the first receiving port of the second chip, and the protocol layer or the second controller of the second chip sends the relevant switching control code stream.
  • the controller controls the first receiving port to correspondingly enter the low power consumption state through the received related control code stream, and enters the SPEED-CHANGE state after entering the low power consumption state.
  • the first receiving port of the first chip and the second sending port of the second chip also perform the above operations.
  • Switch to SPEED-CHANGE state In the SPEED-CHANGE state, according to the flow shown in Figure 10 above, the parameters of the ports at both ends of the transmission link are switched to parameters that match the transmission rate of the target data; and after the matching is completed, it enters the low-power state, waiting for the target data to enter.
  • the transmission corresponds to the high-speed data transmission state or the low-speed data transmission state.
  • a code stream is sent to confirm the matching parameters corresponding to the transmission link and the target data, so as to improve the robustness of the transmission link.
  • FIG. 11 shows the workflow of the port in the RECOVERY state under the communication system architecture.
  • control stream on the protocol layer of the first chip can trigger the transmission link to exit the TRANS1 state and directly enter the RECOVERY state, and the transmission link is repaired in the RECOVERY state.
  • the first controller or the protocol layer of the first chip controls the first sending port to enter the repair state, and sends the repair control code stream (RECOVER control code stream) to the second chip. ), so that the protocol layer of the second chip or the second controller controls the first receiving port to enter the repair state according to the repair control code flow. In this way, both the first sending port and the first receiving port enter the repair state.
  • the first receiving port After entering the RECOVERY state, the first receiving port sends a repair related code stream according to the type of error occurred in the data transmission link described in the RECOVERY control code stream.
  • the repair-related code stream may include, but is not limited to, the receiver bit synchronization code stream, the receiver equalization training code stream, and the judging information that the transmission link is repaired successfully.
  • the first controller or protocol layer of the first chip performs data recovery (reset and repair) on the first sending port
  • the second controller or protocol layer of the second chip performs data recovery on the first receiving port
  • the modification is to restore the parameters of the first receiving port to the parameters when the first receiving port is in a high-speed data transmission state.
  • the first sending port and the first receiving port can take corresponding repair measures according to different transmission error conditions, that is, only repair the corresponding matching parameters in the state of data transmission, not involving the establishment of the transmission link handshake.
  • Basic configuration Taking reset as an example, the controller or the protocol layer of the first chip resets the parameters of the sending port to the parameters matching the high-speed data transmission state. Similarly, the protocol layer or controller of the second chip resets the parameters of the receiving port to the parameters matching the high-speed data transmission state according to the relevant code stream sent by the first chip.
  • the sending port can judge whether the port is repaired successfully according to the repair-related code streams sent and received. If it is judged that the sending port is not repaired successfully, it will notify the protocol layer that the repair fails and return to the LOW-POWER0 state; if it is judged that the port is repaired successfully, the RECOVERY state ends, waiting for the trigger condition to enter the next state. It can be seen from the above description that a handshake process is added after the parameter configuration of the data transmission link is changed, and a preliminary judgment is made on the accuracy of the repaired data transmission to improve the robustness of the transmission link.
  • the transmission link After completing the repair of the transmission link, the transmission link is controlled to enter a low power consumption state to wait for the next trigger condition.
  • the communication method provided by the embodiment of the present application further includes the TRANS1 state, and for details, reference may be made to the related description in FIG. 5 .
  • the transmission link After the transmission link completes high-speed data transmission, the transmission link is controlled to enter a low power consumption state and wait for the next state trigger condition.
  • the low-speed data control stream can trigger the transmission link to enter the low-speed data transmission state, and perform low-speed data transmission; after completing the low-speed data transmission, control the transmission link to enter the low-power state.
  • the transmission link When data transmission is not performed, the transmission link enters the ultra-low power consumption state from the low power consumption state.
  • the communication method in this embodiment of the present application may include only the workflow shown in FIG. 10 , or only the workflow shown in FIG. 11 , or may also include a combination of the workflows shown in FIG. 10 and FIG. 11 . .
  • the embodiment of the present application further provides a chip, and the chip can be the above-mentioned first chip and second chip.
  • the chip can be the above-mentioned first chip and second chip.
  • the first chip 100 includes a first sending port 101 and a first controller 105 ; the first controller 105 is used for When a data transmission error is detected in the high-speed data transmission state, the first transmission port 101 is controlled to enter the repair state; Repair the control code stream; the first controller 105 is further configured to perform data repair on the first sending port 101 in the repair state, and repair the parameters of the first sending port 101 to the parameters when the first sending port 101 is in the high-speed data transmission state ; The first controller 105 is further configured to control the first transmission port 101 to enter a low power consumption state or enter a high-speed data transmission state again after completing the data restoration of the first transmission port 101; wherein, in the high-speed data transmission state , the data transfer rate is greater than or equal to 1Gbps. In a specific implementation, the first controller 105 is further configured to control the first sending port 101 to enter a low power consumption state after detecting a data transmission error and
  • the first controller 105 is further configured to control the first sending port 101 to enter the low power consumption state before the first sending port 101 enters the high-speed data transmission state. After completing the data restoration and before controlling the first sending port 101 to enter a low power consumption state, confirm that the parameters of the first sending port 101 after restoration are the parameters when the first sending port 101 is in a high-speed data transmission state. The reliability of the transmission link is improved.
  • the first chip 100 When establishing a transmission link, the first chip 100 further includes a second receiving port 103; the second receiving port 103 is used to receive the port information of the first receiving port 203 sent by the second sending port 201 of the opposite chip; the first control The device 105 is further configured to control the first sending port 101 to establish a transmission link with the first receiving port 203 of the opposite chip, and control the first sending port 101 to send the port information of the first sending port 101 to the first receiving port 203 of the opposite chip.
  • Receive port 203 When establishing a transmission link, the first chip 100 further includes a second receiving port 103; the second receiving port 103 is used to receive the port information of the first receiving port 203 sent by the second sending port 201 of the opposite chip; the first control The device 105 is further configured to control the first sending port 101 to establish a transmission link with the first receiving port 203 of the opposite chip, and control the first sending port 101 to send the port information of the first sending port 101 to the first receiving port 203 of the opposite chip.
  • the second chip 200 includes a first receiving port 203 and a second controller 205 ; the first receiving port 203 is used to receive the transmission from the first sending port 103 of the opposite chip (the first chip 100 )
  • the second controller 205 is used to control the first receiving port 203 to enter the repair state according to the repair control code stream; wherein, the repair control code stream is that the first controller 105 of the opposite end chip is in a high-speed data transmission state
  • a repair control code stream is generated for controlling the first receiving port 203 to switch to the repair state
  • the second controller 205 is also used to perform data repair on the first receiving port 203 in the repair state, Restoring the parameters of the first receiving port 203 to the parameters when the first receiving port 203 is in a high-speed data transmission state
  • the second controller 205 is further configured to control the first receiving port after completing the data restoration of the first receiving port 203 203 Enter into a low power consumption state or enter into a high-speed data transmission state
  • the second controller 205 is further configured to control the first receiving port 203 to enter a low power consumption state before the first receiving port 203 enters a high-speed data transmission state.
  • the first receiving port 203 is controlled to enter the low power consumption state.
  • the second controller 205 is further configured to confirm that the parameter of the first receiving port 203 after the repair is that the first receiving port 203 is in a high-speed data transmission state after completing the data repair and before controlling the first receiving port 203 to enter the low power consumption state time parameters. The reliability of the transmission link is improved. For details, please refer to the description in FIG. 11 .
  • the second chip 200 When establishing a transmission link, the second chip 200 further includes a second sending port 201; the second controller 205 is further configured to control the first receiving port 203 to establish a transmission link with the first sending port 103 of the opposite chip, and control the The second sending port 201 sends the port information of the first receiving port 203 to the second receiving port 103 of the opposite chip; the first receiving port 203 is also used to receive the first sending port sent by the first sending port 103 of the opposite chip 103 port information.
  • the second controller 205 is further configured to control the first receiving port 203 to establish a transmission link with the first sending port 103 of the opposite chip, and control the The second sending port 201 sends the port information of the first receiving port 203 to the second receiving port 103 of the opposite chip; the first receiving port 203 is also used to receive the first sending port sent by the first sending port 103 of the opposite chip 103 port information.
  • the description in FIG. 11 please refer to the description in FIG. 11 .
  • the first chip when the chip is used to implement the work flow shown in FIG. 10 and FIG. 11 , when the chip is the first chip, the first chip includes a first sending port 101 and a first controller 105 , and the first controller 105 is used for Before the sending port 101 enters the data transmission state, detect the current parameters of the first sending port 101 and determine whether the current parameters of the first sending port 101 are consistent with the parameters matched when the first sending port 101 sends data according to the target data transmission rate; The first controller 105 is further configured to control the first sending port 101 to enter the rate switching state when the current parameters of the first sending port 101 are inconsistent with the parameters matched by the first sending port 101 at the target data transmission rate; the first controller 105 is also used to switch the current parameters of the first sending port 101 to the parameters matched when the first sending port 101 sends data according to the target data transmission rate in the rate switching state; the first controller 105 is also used to control the first sending The port 101 sends a control code stream that controls the first receiving port 203 to enter the rate switching state to the
  • the first controller 105 is further configured to receive the data transmission control code stream and control the first transmission after the current parameters of the first transmission port 101 are switched to the parameters matched when the first transmission port 101 transmits data according to the target data transmission rate.
  • the port 101 is switched from a low power consumption state to a high-speed data transmission state or a low-speed data transmission state that matches the transmission rate of the target data;
  • the first controller 105 is further configured to control the first sending port 101 to the first receiving port of the opposite chip 203 sends a control code stream that controls the first receiving port 203 to switch to a high-speed data transmission state or a low-speed data transmission state matching the transmission rate of the target data; wherein the high-speed data transmission rate is greater than the low-speed data transmission rate.
  • the first controller 105 is further configured to control the first sending port 101 to enter the low power consumption state and enter the rate switching state from the low power consumption state when the data transmission rate changes during the data transmission process;
  • a controller 105 is further configured to control the current parameters of the first sending port 101 to switch to the parameters matched when the first sending port 101 transmits data according to the changed data transmission rate in the rate switching state;
  • the first controller 105 also uses To control the first sending port 101 to send a control code stream for controlling the first receiving port 203 to enter the low power consumption state and the rate switching state to the first receiving port 203 of the opposite chip; the first controller 105 is also used to complete the switching Then, the first sending port 101 is controlled to enter a low power consumption state.
  • the first controller 105 is further configured to receive the data transmission control code stream and control the data transmission control code stream when the current parameters of the first transmission port 101 are switched to the parameters matched by the first transmission port 101 when transmitting data according to the changed data transmission rate.
  • the first sending port 101 is switched from a low power consumption state to a high-speed data transmission state or a low-speed data transmission state that matches the transmission rate of the target data; the first controller 105 is also used to control the first sending port 101 to the opposite end chip.
  • a receiving port 203 sends a control code stream that controls the first receiving port 203 to switch to a high-speed data transmission state or a low-speed data transmission state matching the transmission rate of the target data. For details, refer to the workflow shown in FIG. 10 .
  • the first controller 105 is also used to control the first sending port 101 to enter a high-speed data transmission state to perform high-speed data transmission when the data transmission control code stream is a high-speed data transmission control code stream;
  • the first sending port 101 is controlled to enter the repair state;
  • the repair control code stream that controls the first receiving port 203 of the opposite end chip to enter the repair state is sent to the opposite end chip;
  • the first control The controller 105 is further configured to perform data repair on the first sending port 101 in the repair state, and repair the parameters of the first sending port 101 to the parameters when the first sending port 101 is in the high-speed data transmission state;
  • the first controller 105 also uses After the data restoration of the first sending port 101 is completed, the first sending port 101 is controlled to enter a low power consumption state or enter a high-speed data transmission state again.
  • the first controller 105 is further configured to control the first sending port 101 to enter a low power consumption state after detecting a data transmission error and before controlling the first sending port 101 to enter the repair state.
  • the second chip When the chip is the second chip, the second chip includes the first receiving port 203 and the second controller 205. Before the first receiving port 203 enters the data transmission state, the first receiving port 203 is used to receive the control sent by the opposite end chip. The first receiving port 203 enters the control code stream of the rate switching state; the second controller 205 is used to control the first receiving port 203 to enter the rate switching state according to the control code stream; and control the first receiving port 203 according to the control code stream Enter the rate switching state; the second controller 205 is also used to switch the current parameters of the first receiving port 203 to the parameters matched when the first receiving port 203 sends data according to the target data transmission rate in the rate switching state; the second control The controller 205 is further configured to control the first receiving port 203 to enter a low power consumption state after switching is completed.
  • the second controller 205 is further configured to control the first receiving port 203 to receive and control the first receiving port 203 after the current parameters of the first receiving port 203 are switched to the parameters matched by the first receiving port 203 when sending data according to the target data transmission rate
  • the port 203 switches to a control code stream of a high-speed data transmission state or a low-speed data transmission state that matches the transmission rate of the target data, and controls the first receiving port 203 to switch from a low-power state to the transmission rate of the target data according to the control code stream A matching high-speed data transfer state or a low-speed data transfer state; wherein the high-speed data transfer rate is greater than the low-speed data transfer rate.
  • the port 203 switches to a control code stream of a high-speed data transmission state or a low-speed data transmission state that matches the transmission rate of the target data, and controls the first receiving port 203 to switch from a low-power state to the transmission rate of the target data according to the control code stream A matching high-speed data transfer state or a
  • the first receiving port 203 is used to receive the control code stream sent by the opposite chip to control the first receiving port 203 to enter the low power consumption state and the rate switching state;
  • the controller 205 is used to control the first receiving port 203 to enter the low power consumption state and the rate switching state according to the control code stream; and control the first receiving port 203 to enter the low power consumption state according to the control code stream, and enter the low power consumption state
  • the second controller 205 is also used to control the current parameters of the first receiving port 203 to switch to the parameters matched when the first receiving port 203 transmits data according to the changed data transmission rate in the rate switching state.
  • the second controller 205 is further configured to control the first receiving port 203 to enter a low power consumption state after switching is completed.
  • the second controller 205 is further configured to control the first receiving port 203 to receive and control the first receiving port 203 after the current parameters of the first receiving port 203 are switched to the parameters matched by the first receiving port 203 when sending data according to the target data transmission rate
  • the port 203 switches to a control code stream of a high-speed data transmission state or a low-speed data transmission state that matches the transmission rate of the target data, and controls the first receiving port 203 to switch from a low-power state to the transmission rate of the target data according to the control code stream Matching high-speed data transfer state or low-speed data transfer state.
  • the workflow in FIG. 10 For details, refer to the workflow in FIG. 10 .
  • the second controller 205 is further configured to control the first receiving port 203 to enter the high-speed data transmission state to perform high-speed data transmission when the control code stream is the control code stream that controls the first receiving port 203 to switch to the high-speed data transmission state; the second control The controller 205 is configured to control the first receiving port 203 to enter the repair state according to the repair control code stream; wherein, the repair control code stream is that when the first controller 105 of the opposite chip detects a data transmission error in the high-speed data transmission state, it generates a The repair control code stream used to control the first receiving port 203 to switch to the repairing state; the second controller 205 is also used to perform data repairing on the first receiving port 203 in the repairing state, and repair the parameters of the first receiving port 203 The parameters to when the first receiving port 203 is in a high-speed data transmission state; the second controller 205 is also used to control the first receiving port 203 to enter a low power consumption state after completing the data restoration of the first receiving port 203 Enter the high-speed
  • first chip and second chip provided in the embodiments of the present application may also be applied to the modification of data transmission errors that occur in the state of low-speed data transmission.
  • the first controller and the second controller can perform the same repair process as when a data transmission error occurs in the high-speed data state, which will not be repeated here.
  • FIG. 12 is another communication system to which the present application may be applied, including a first chip 300, a second chip 400 and an out-of-band control link.
  • the first chip 300 only has the ability to receive data
  • the second chip 400 only has the ability to send data.
  • the out-of-band control link is a communication path outside the first chip 300 and the second chip 400 , has a certain bidirectional communication capability, and does not share a physical layer port with the first chip 300 and the second chip 400 .
  • Commonly used out-of-band control links such as I2C, SPI, etc., whose main function is to transmit control information and configuration information from the protocol layer.
  • the first chip 300 applied in this application includes a protocol layer and a physical layer structure.
  • the protocol layer is responsible for sending or receiving data information, sending and receiving control information of the out-of-band control link, and can control the physical layer according to the control information of the out-of-band control link.
  • the physical layer includes a first controller 303, a sending module or a receiving module.
  • the first controller 303 and the second controller 403 are directly controlled by the protocol layer to manage the sending module or the receiving module corresponding to the first chip 300 and the second chip 400 .
  • the sending module includes a first data processing module 302 and a sending port 301.
  • the first data processing module 302 performs operations such as encoding, scrambling, serial processing, etc.
  • the receiving module includes a second data processing module 402 and a receiving port 401, the receiving port 401 receives data packets from the transmission link, and the second data processing module 402 performs decoding, descrambling, and deserialization processing on the data packets, etc. operation, and then transmit the data information to the protocol layer.
  • the present application manages the ports of the communication system through the port working mode state machine, and the ports of the first chip 300 and the second chip 400 of the communication system perform power-on operation, high-speed data transmission operation, and low-speed data transmission according to the port working mode management process operation and ultra-low power operation.
  • the chip's LINK-STARTUP state, SPEED-CHANGE state and RECOVERY state flow are as follows:
  • Figure 13 shows the workflow of the port in the LINK-STARTUP state under the communication system architecture.
  • the protocol layer of the first chip controls the receiving port to enter the LINK-STARTUP state.
  • the protocol layer can exchange basic information with the sending port of the second chip through the out-of-band control link, and negotiate the rate of in-band communication.
  • the physical layer configures port parameters according to the basic information of the two ports and the negotiated in-band communication rate, and communicates over the in-band transmission link at the negotiated rate. If the communication is successful, wait for the condition to enter the next state; if the communication fails, notify the protocol layer and return to the PHY-INIT state.
  • FIG. 14 shows the workflow of the port in the SPEED-CHANGE state under the communication system architecture.
  • the protocol layer needs to change the current in-band communication rate
  • the target communication rate of the in-band transmission link can be negotiated with the opposite port through the out-of-band control link.
  • the protocol layer instructs the physical layer port to end the current state (LOW-POWER0 state or TRANS0 state or TRANS1 state) and enter the SPEED-CHANGE state.
  • the physical layer configures port parameters according to the negotiated transmission rate of the target data of the in-band transmission link, and communicates on the in-band transmission link at the negotiated rate. If the communication is successful, wait for the condition to enter the next state; if the communication fails, notify the protocol layer and return to the LOW-POWER0 state.
  • Figure 15 shows the workflow of the port in the RECOVERY state under the communication system architecture.
  • the protocol layer confirms the error type of the in-band transmission link with the peer port through the out-of-band control link. After that, the protocol layer instructs the physical layer port to end the current state (LOW-POWER0 state or TRANS1 state) and enter the RECOVERY state.
  • the physical layer sends or receives the repair-related code stream on the in-band transmission link according to the error type, and performs repair measures on the in-band communication transmission link according to the repair-related code stream.
  • the repair-related code stream may include, but is not limited to, the receiver bit synchronization code stream and the receiver equalization training code stream. If the repair is successful, wait for the condition to enter the next state; if the repair fails, notify the protocol layer and return to the LOW-POWER0 state.
  • first chip, second chip, and out-of-band control link provided in the embodiments of the present application can also be applied to the modification of data transmission errors that occur in the state of low-speed data transmission.
  • the first chip, the second chip and the out-of-band control link can perform the same repair process as when a data transmission error occurs in the high-speed data state, which will not be repeated here.
  • the embodiment of the present application provides a high-speed communication method, which increases the handshake process of the port after reconfiguring the parameters of the transmission link, and judges the accuracy of data transmission of the transmission link;
  • the interoperability between the states of the state machine reduces the number of port jumps between different states.
  • An embodiment of the present application further provides a mobile terminal, where the mobile terminal includes a chip and an opposite-end chip communicatively connected to the chip; wherein the chip and the opposite-end chip are the chips of any of the above.
  • the embodiment of the present application further provides a signal processing module 1000 for implementing the functions of the above method.
  • the signal processing module 1000 may be a communication device, or may be a device in a communication device.
  • the signal processing module 1000 includes at least one processor 1001 for implementing the functions of the apparatus in the above method.
  • the processor 1001 may be configured to control the communication port 1003 (transmitting port) to perform state switching according to the acquired sending and receiving requirements of the first chip.
  • the communication port 1003 transmitting port
  • the signal processing module 1000 may further include at least one memory 1002 for storing program instructions and/or data.
  • Memory 1002 is coupled to processor 1001 .
  • the coupling in the embodiments of the present application is the spaced coupling or communication connection between devices, units or modules, which may be in electrical, mechanical or other forms, and is used for information interaction between the devices, units or modules.
  • the memory 1002 may also be located outside the signal processing module 1000 .
  • the processor 1001 may cooperate with the memory 1002 .
  • Processor 1001 may execute program instructions stored in memory 1002 . At least one of the at least one memory may be included in the processor.
  • the signal processing module 1000 includes a communication port 1003 for communicating with other devices through a transmission medium, so that the apparatus used in the signal processing module 1000 can communicate with other devices.
  • the communication port 1003 may be a transceiver, circuit, bus, module or other type of communication port, and the other device may be a network device or other terminal device or the like.
  • the processor 1001 uses the communication port 1003 to send and receive data, and is used to implement the methods in the above embodiments.
  • the communication port 1003 may be used to communicate signals.
  • the embodiment of the present application does not limit the connection medium between the communication port 1003 , the processor 1001 , and the memory 1002 .
  • the memory 1002, the processor 1001, and the communication port 1003 may be connected through a bus in FIG. 16, and the bus may be divided into an address bus, a data bus, and a control bus.
  • the processor may be a general-purpose processor, a digital signal processor, an application-specific integrated circuit, a field programmable gate array or other programmable logic device, a discrete gate or transistor logic device, or a discrete hardware component, which can implement or
  • a general purpose processor may be a microprocessor or any conventional processor or the like.
  • the steps of the methods disclosed in conjunction with the embodiments of the present application may be directly embodied as executed by a hardware processor, or executed by a combination of hardware and software modules in the processor.
  • the memory may be a non-volatile memory, such as a hard disk drive (HDD) or a solid-state drive (SSD), etc., or may also be a volatile memory (volatile memory), for example Random-access memory (RAM).
  • Memory is, but is not limited to, any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer.
  • the memory in this embodiment of the present application may also be a circuit or any other device capable of implementing a storage function, for storing program instructions and/or data.
  • the methods provided in the embodiments of the present application may be implemented in whole or in part by software, hardware, firmware, or any combination thereof.
  • software When implemented in software, it can be implemented in whole or in part in the form of a computer program product.
  • a computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the procedures or functions according to the embodiments of the present application are generated in whole or in part.
  • a computer may be a general purpose computer, a special purpose computer, a computer network, network equipment, user equipment, or other programmable apparatus.
  • Computer instructions may be stored on or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website site, computer, server, or data center over a wire (e.g.
  • Coaxial cable, optical fiber, digital subscriber line (DSL) or wireless means to transmit to another website site, computer, server or data center.
  • a computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server, data center, or the like that contains an integration of one or more available media.
  • Useful media may be magnetic media (eg, floppy disks, hard disks, magnetic tapes), optical media (eg, digital video discs (DVD)), or semiconductor media (eg, SSDs), and the like.

Landscapes

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

Abstract

Provided are a chip, a communication system and a communication method. The communication method comprises the following steps: a chip shaking hands with an opposite chip, so as to establish a transmission link; when a data transmission error is detected, controlling the transmission link to enter a recovery state; in the recovery state, performing data recovery on the transmission link, and correcting matching parameters of ports at two ends of the transmission link when same is in a data transmission state; and after the recovery of the transmission link is completed, controlling the transmission link to enter a low power consumption state. In the solution, by means of setting a recovery state, when data transmission fails, a transmission link is recovered, such that the reliability thereof during data transmission is improved. In addition, during recovery, only matching parameters corresponding to data transmission are recovered, and it is not necessary to re-match basic information of two chips during handshaking, thereby improving the recovery effect.

Description

一种芯片、通信系统及通信方法A chip, communication system and communication method
相关申请的交叉引用CROSS-REFERENCE TO RELATED APPLICATIONS
本申请要求在2020年09月30日提交中国专利局、申请号为202011066534.6、申请名称为“一种芯片、通信系统及通信方法”的中国专利申请的优先权,其全部内容通过引用结合在本申请中;本申请要求在2020年10月31日提交中国专利局、申请号为202011196760.6、申请名称为“一种芯片、通信系统及通信方法”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application filed on September 30, 2020 with the application number 202011066534.6 and the application title is "a chip, communication system and communication method", the entire contents of which are incorporated herein by reference In application; this application claims the priority of the Chinese patent application with the application number 202011196760.6 and the application name "a chip, communication system and communication method" submitted to the Chinese Patent Office on October 31, 2020, the entire contents of which are by reference Incorporated in this application.
技术领域technical field
本申请涉及到通信技术领域,尤其涉及到一种芯片、通信系统及通信方法。The present application relates to the field of communication technologies, and in particular, to a chip, a communication system and a communication method.
背景技术Background technique
近年来,工业技术的进步促使移动设备行业的端口数据传输水平大幅度提高,移动设备行业开始在终端类产品中广泛地应用高速数据串行端口,物理层端口必然需要面对数据传输速率越来越高的挑战。在高速数据传输条件下,端口的工作状态需要严谨的逻辑支持。In recent years, the progress of industrial technology has led to a substantial increase in the level of port data transmission in the mobile device industry. The mobile device industry has begun to widely use high-speed data serial ports in terminal products. Physical layer ports must face the increasing data transmission rate. higher challenge. Under the condition of high-speed data transmission, the working state of the port needs strict logic support.
目前在终端类产品中应用高速数据串行端口的环境大致分为如下几个应用场景:应用处理器—摄像头、应用处理器—显示屏、存储等,因此高速数据串行端口需要支持多种应用场景,并且由于应用场景的限制,随着数据传输速率的不断提高,数据传输链路发生各种错误的可能越来越大,这对传输链路的稳定性造成较大的挑战,现有技术中的数据传输已经无法满足需求。At present, the environment in which high-speed data serial ports are used in terminal products can be roughly divided into the following application scenarios: application processor-camera, application processor-display, storage, etc. Therefore, high-speed data serial ports need to support a variety of applications Due to the limitation of application scenarios, with the continuous improvement of data transmission rate, the possibility of various errors in the data transmission link is increasing, which poses a great challenge to the stability of the transmission link. The data transmission in the network can no longer meet the demand.
发明内容SUMMARY OF THE INVENTION
本申请提供了一种芯片、通信系统及通信方法,旨在改善通信时的可靠性。The present application provides a chip, a communication system and a communication method, aiming at improving the reliability during communication.
第一方面,提供了一种通信方法,该通信方法应用于通信系统中的通信传输链路转换,该通信方法包括以下步骤:在数据传输状态内检测到数据传输错误时,控制发送端口和接收端口均进入到修复状态,其中,数据传输状态包括高速数据传输状态和低速数据传输状态,在高速数据传输状态下,数据的传输速率大于或等于1Gbps,发送端口位于主芯片侧,接收端口位于与主芯片具有通信关系的从芯片侧;在修复状态,对发送端口和接收端口进行数据修复,将发送端口的参数修复到发送端口处于数据传输状态时的参数,以及,将接收端口的参数修复到接收端口处于数据传输状态时的参数;在完成对发送端口和接收端口的数据修复后,控制发送端口和接收端口均进入到低功耗状态或均再次进入到高速数据传输状态。在上述方案中,通过设置了修复状态,在数据传输出现故障时,对传输链路进行修复,提高了数据传输时的可靠性。另外,在修复时,仅修复与数据传输对应的匹配参数,无需再次对两个芯片在握手时的基础信息进行匹配,提高了修复效率。In a first aspect, a communication method is provided, the communication method is applied to the conversion of communication transmission links in a communication system, the communication method includes the following steps: when a data transmission error is detected in a data transmission state, controlling a sending port and receiving All ports enter the repair state, where the data transmission state includes high-speed data transmission state and low-speed data transmission state. In the high-speed data transmission state, the data transmission rate is greater than or equal to 1Gbps, the sending port is located on the main chip side, and the receiving port is located on the side of the main chip. The master chip has the slave chip side of the communication relationship; in the repair state, data repair is performed on the sending port and the receiving port, the parameters of the sending port are repaired to the parameters when the sending port is in the data transmission state, and the parameters of the receiving port are repaired to The parameters when the receiving port is in the data transmission state; after completing the data restoration of the sending port and the receiving port, control the sending port and the receiving port to enter the low power consumption state or enter the high-speed data transmission state again. In the above solution, by setting the repair state, when the data transmission fails, the transmission link is repaired, which improves the reliability of the data transmission. In addition, when repairing, only the matching parameters corresponding to data transmission are repaired, and there is no need to match the basic information of the two chips during handshake, which improves the repairing efficiency.
在一个具体的可实施方案中,在检测到所述数据传输错误之后,以及在控制所述发送端口和所述接收端口均进入到所述修复状态之前,所述方法还包括:控制所述发送端口和所述接收端口均进入到低功耗状态。采用低功耗状态作为一个中间态,方便进行状态切换。In a specific implementation, after the data transmission error is detected, and before both the sending port and the receiving port are controlled to enter the repair state, the method further includes: controlling the sending Both the port and the receiving port enter a low power consumption state. The low-power state is used as an intermediate state to facilitate state switching.
在一个具体的可实施方案中,所述控制所述发送端口和所述接收端口均进入到修复状态,具体是指:控制所述发送端口和所述接收端口均从所述低功耗状态进入到所述修复状态。对传输链路两端的端口均进行修复。In a specific implementation, the controlling both the sending port and the receiving port to enter the repair state specifically refers to: controlling both the sending port and the receiving port to enter the low power consumption state to the repaired state. Repair the ports at both ends of the transmission link.
在一个具体的可实施方案中,在检测到数据传输错误时,控制所述发送端口和所述接收端口均进入到修复状态;具体为:在检测到所述数据传输错误时,控制所述发送端口进入到所述修复状态,并向所述从芯片发送修复控制码流,以使所述从芯片的协议层或控制器根据所述修复控制码流控制所述接收端口进入到所述修复状态。通过主芯片控制发送端口和接收端口进入到修复状态。In a specific implementation, when a data transmission error is detected, both the sending port and the receiving port are controlled to enter a repair state; specifically: when the data transmission error is detected, control the sending The port enters the repair state, and sends a repair control code stream to the slave chip, so that the protocol layer or controller of the slave chip controls the receiving port to enter the repair state according to the repair control code stream . The main chip controls the sending port and the receiving port to enter the repair state.
在一个具体的可实施方案中,该方法还包括:在完成所述数据修复后,以及控制所述发送端口和所述接收端口均进入到所述低功耗状态之前,所述方法还包括:确认修复后所述发送端口的参数为所述发送端口处于数据传输状态时的参数以及所述接收端口的参数为所述接收端口处于数据传输状态时的参数。在传输链路改变参数配置后增加握手过程,对修复后的数据传输准确性进行初步判断,提高传输链路健壮性。In a specific implementation, the method further includes: after completing the data restoration and before controlling both the transmitting port and the receiving port to enter the low power consumption state, the method further includes: It is confirmed that the parameters of the sending port after the repair are the parameters when the sending port is in the data transmission state, and the parameters of the receiving port are the parameters when the receiving port is in the data transmission state. After the parameter configuration of the transmission link is changed, a handshake process is added to make a preliminary judgment on the accuracy of the repaired data transmission to improve the robustness of the transmission link.
在一个具体的可实施方案中,在检测到所述数据传输错误的所述高速数据传输状态之前,所述发送端口和所述接收端口均处于所述低功耗状态。采用低功耗状态作为一个中间态,方便进行状态切换。In a specific implementation, before the high-speed data transmission state in which the data transmission error is detected, both the transmitting port and the receiving port are in the low power consumption state. The low-power state is used as an intermediate state to facilitate state switching.
在一个具体的可实施方案中,所述方法还包括:在完成数据传输后,控制所述发送端口和所述接收端口均进入到所述低功耗状态,用于等待下一状态触发条件。通过低功耗状态提高状态机各状态间的互通性,合理安排传输链路配置过程,使任意不同状态间的转换最多仅需跳转2次。In a specific implementation, the method further includes: after completing the data transmission, controlling both the sending port and the receiving port to enter the low power consumption state for waiting for a next state trigger condition. The interoperability between the states of the state machine is improved through the low power consumption state, and the configuration process of the transmission link is reasonably arranged, so that the transition between any different states only needs to jump twice at most.
在一个具体的可实施方案中,该方法还包括:通过低速数据控制码流触发所述传输链路进入低速数据传输状态,并进行低速数据传输;在完成所述低速数据传输后,控制所述传输链路进入所述低功耗状态。通过低功耗状态提高状态机各状态间的互通性,合理安排传输链路配置过程,使任意不同状态间的转换最多仅需跳转2次。In a specific implementation, the method further includes: triggering the transmission link to enter a low-speed data transmission state through a low-speed data control code stream, and performing low-speed data transmission; after completing the low-speed data transmission, controlling the The transmission link enters the low power consumption state. The interoperability between the states of the state machine is improved through the low power consumption state, and the configuration process of the transmission link is reasonably arranged, so that the transition between any different states only needs to jump twice at most.
在一个具体的可实施方案中,在所述发送端口和所述接收端口均首次进入到所述低功耗状态之前,所述方法还包括:所述主芯片和所述从芯片之间建立传输链路,并进行端口信息交换,所述端口信息交换是指所述主芯片将所述发送端口的端口信息发送给所述从芯片,以及所述从芯片将所述接收端口的端口信息发送给所述主芯片;在完成所述端口信息交换之后,所述发送端口和所述接收端口均首次进入到所述低功耗状态。方便进行状态切换。In a specific implementation, before both the sending port and the receiving port enter the low power consumption state for the first time, the method further includes: establishing transmission between the master chip and the slave chip link, and perform port information exchange. The port information exchange means that the master chip sends the port information of the sending port to the slave chip, and the slave chip sends the port information of the receiving port to the slave chip. the main chip; after completing the port information exchange, both the sending port and the receiving port enter the low power consumption state for the first time. It is convenient to switch state.
第二方面,提供了一种通信方法,该方法包括:在发送端口和接收端口进入数据传输状态之前,检测所述发送端口当前的参数和所述接收端口当前的参数,并判断所述发送端口当前的参数与所述发送端口在按照目标数据传输速率发送数据时匹配的参数是否一致,以及,判断所述接收端口当前的参数与所述接收端口在按照目标数据传输速率接收数据时匹配的参数是否一致,所述发送端口位于主芯片侧,所述接收端口位于与所述主芯片之间具有通信关系的从芯片侧;在所述发送端口和所述接收端口当前的参数与它们在目标数据传输速率时匹配的参数不一致时,控制所述发送端口和所述接收端口进入速率切换状态;在所述速率切换状态,将所述发送端口当前的参数切换为所述发送端口在按照目标数据传输速率发送数据时匹配的参数,以及,将所述接收端口的参数切换为所述接收端口在按照目标数据传输速率接收数据时匹配的参数;在完成切换后,所述发送端口以及所述接收端 口均进入到低功耗状态。通过在传输数据前对传输链路进行匹配,提高了数据传输的可靠性。In a second aspect, a communication method is provided, the method comprising: before a sending port and a receiving port enter a data transmission state, detecting the current parameters of the sending port and the current parameters of the receiving port, and judging the sending port Whether the current parameters are consistent with the parameters matched by the sending port when sending data according to the target data transmission rate, and determine whether the current parameters of the receiving port match the parameters when the receiving port receives data according to the target data transmission rate Whether it is consistent, the sending port is located on the master chip side, and the receiving port is located on the slave chip side that has a communication relationship with the master chip; the current parameters of the sending port and the receiving port are the same as their target data When the parameters matched in the transmission rate are inconsistent, control the sending port and the receiving port to enter a rate switching state; in the rate switching state, switch the current parameters of the sending port to the sending port that transmits data according to the target data The parameters matched when sending data at a rate, and the parameters of the receiving port are switched to the parameters matched when the receiving port receives data according to the target data transmission rate; after the switching is completed, the sending port and the receiving port into a low-power state. By matching the transmission link before data transmission, the reliability of data transmission is improved.
在一个具体的可实施方案中,该方法还包括:在所述发送端口当前的参数被切换为所述发送端口在按照目标数据传输速率发送数据时匹配的参数,且所述接收端口当前的参数被切换为所述接收端口在按照目标数据传输速率接收数据时匹配的参数之后,接收数据传输控制码流且控制所述传输链路由所述低功耗状态切换到与所述目标数据的传输速率匹配的高速数据传输状态或低速数据传输状态,所述高速数据传输速率大于所述低速数据传输速率。在匹配参数后进入到数据传输状态。In a specific implementation, the method further includes: when the current parameter of the sending port is switched to the parameter matched when the sending port sends data according to the target data transmission rate, and the current parameter of the receiving port is switched After being switched to the parameters that the receiving port matches when receiving data according to the target data transmission rate, receive the data transmission control code stream and control the transmission link to switch from the low power consumption state to the transmission of the target data A rate-matched high-speed data transfer state or a low-speed data transfer state, the high-speed data transfer rate being greater than the low-speed data transfer rate. Enter the data transmission state after matching the parameters.
在一个具体的可实施方案中,该方法还包括:在数据传输过程中,当数据传输速率发生改变时,控制所述发送端口和所述接收端口均进入到所述低功耗状态,并均从所述低功耗状态进入到所述速率切换状态;在所述速率切换状态,将所述发送端口当前的参数切换到所述发送端口在按照所述改变后的数据传输速率传输数据时匹配的参数,以及,将所述接收端口当前的参数切换到所述接收端口在按照所述改变后的数据传输速率接收数据时匹配的参数;在完成切换后,控制所述发送端口以及所述接收端口均进入到所述低功耗状态。In a specific implementation, the method further includes: during the data transmission process, when the data transmission rate changes, controlling both the sending port and the receiving port to enter the low power consumption state, and both Enter the rate switching state from the low power consumption state; in the rate switching state, switch the current parameters of the sending port to match when the sending port transmits data according to the changed data transmission rate and, switch the current parameters of the receiving port to the parameters that the receiving port matches when receiving data according to the changed data transmission rate; after switching is completed, control the sending port and the receiving port The ports all enter the low power consumption state.
在一个具体的可实施方案中,该方法还包括:在所述发送端口当前的参数被切换为所述发送端口在按照所述改变后的数据传输速率发送数据时匹配的参数,且所述接收端口当前的参数被切换为所述接收端口在按照所述改变后的数据传输速率接收数据时匹配的参数时,接收数据传输控制码流且控制所述传输链路由所述低功耗状态切换到与所述目标数据的传输速率匹配的高速数据传输状态或低速数据传输状态。In a specific implementation, the method further includes: when the current parameter of the sending port is switched to the parameter matched by the sending port when sending data according to the changed data transmission rate, and the receiving When the current parameter of the port is switched to the parameter matched when the receiving port receives data according to the changed data transmission rate, the data transmission control code stream is received and the transmission link is controlled to be switched from the low power consumption state to a high-speed data transfer state or a low-speed data transfer state matching the transfer rate of the target data.
在一个具体的可实施方案中,该方法还包括:在所述数据传输状态内检测到数据传输错误时,控制所述发送端口和所述接收端口均进入到修复状态;其中,所述数据传输状态包括高速数据传输状态和低速数据传输状态;在所述修复状态,对所述发送端口和所述接收端口进行数据修复,将所述发送端口的参数修复到所述发送端口处于所述数据传输状态时的参数,以及,将所述接收端口的参数修复到所述接收端口处于所述数据传输状态时的参数;在完成对所述发送端口和所述接收端口的数据修复后,控制所述发送端口和所述接收端口均进入到低功耗状态或均再次进入到所述高速数据传输状态。提高了传输链路的可靠性。In a specific implementation, the method further includes: when a data transmission error is detected in the data transmission state, controlling both the sending port and the receiving port to enter a repair state; wherein, the data transmission The state includes a high-speed data transmission state and a low-speed data transmission state; in the repair state, data repair is performed on the sending port and the receiving port, and the parameters of the sending port are repaired until the sending port is in the data transmission state. state, and restore the parameters of the receiving port to the parameters when the receiving port is in the data transmission state; after completing the data restoration of the sending port and the receiving port, control the Both the transmitting port and the receiving port enter a low power consumption state or both enter the high-speed data transmission state again. The reliability of the transmission link is improved.
在一个具体的可实施方案中,在检测到所述数据传输错误之后,以及在控制所述发送端口和所述接收端口均进入到所述修复状态之前,所述方法还包括:控制所述发送端口和所述接收端口均进入到低功耗状态。方便进行状态切换。In a specific implementation, after the data transmission error is detected, and before both the sending port and the receiving port are controlled to enter the repair state, the method further includes: controlling the sending Both the port and the receiving port enter a low power consumption state. It is convenient to switch state.
第三方面,提供了一种芯片,该芯片包括第一发送端口和第一控制器;所述第一控制器用于在数据传输状态内检测到数据传输错误时,控制所述第一发送端口进入到修复状态;并向对端芯片发送控制对端芯片的第一接收端口进入到修复状态的修复控制码流;其中,所述数据传输状态包括高速数据传输状态和低速数据传输状态;所述第一控制器还用于在所述修复状态,对所述第一发送端口进行数据修复,将所述第一发送端口的参数修复到所述第一发送端口处于所述数据传输状态时的参数;所述第一控制器还用于在完成对所述第一发送端口的数据修复后,控制所述第一发送端口进入到低功耗状态或再次进入到所述高速数据传输状态;其中,在高速数据传输状态下,数据的传输速率大于或等于1Gbps。在上述方案中,通过设置了修复状态,在高速数据传输出现故障时,对第一发送端口进行修 复,提高了高速数据传输时的可靠性。另外,在修复时,仅修复与高速数据传输对应的匹配参数,提高了修复效率。In a third aspect, a chip is provided, the chip includes a first sending port and a first controller; the first controller is configured to control the first sending port to enter when a data transmission error is detected in a data transmission state to the repair state; send a repair control code stream that controls the first receiving port of the opposite end chip to enter the repair state; wherein, the data transmission state includes a high-speed data transmission state and a low-speed data transmission state; the first A controller is further configured to perform data repair on the first sending port in the repair state, and repair the parameters of the first sending port to the parameters when the first sending port is in the data transmission state; The first controller is further configured to control the first sending port to enter a low power consumption state or enter the high-speed data transmission state again after completing the data restoration on the first sending port; wherein, in the In the high-speed data transmission state, the data transmission rate is greater than or equal to 1Gbps. In the above solution, by setting the repair state, when the high-speed data transmission fails, the first sending port is repaired, which improves the reliability of the high-speed data transmission. In addition, during repair, only matching parameters corresponding to high-speed data transmission are repaired, which improves repair efficiency.
在一个具体的可实施方案中,所述第一控制器还用于在检测到所述数据传输错误之后以及在控制所述第一发送端口进入到所述修复状态之前,控制所述第一发送端口进入到低功耗状态。方便进行状态切换。In a specific implementation, the first controller is further configured to control the first transmission after detecting the data transmission error and before controlling the first transmission port to enter the repair state The port enters a low power state. It is convenient to switch state.
在一个具体的可实施方案中,所述第一控制器还用于在完成所述数据修复后,以及控制所述第一发送端口进入到所述低功耗状态之前,确认修复后所述第一发送端口的参数为所述第一发送端口处于所述数据传输状态时的参数。提高了传输链路的可靠性。In a specific implementation, the first controller is further configured to, after completing the data restoration and before controlling the first sending port to enter the low power consumption state, confirm that the A parameter of a sending port is a parameter when the first sending port is in the data transmission state. The reliability of the transmission link is improved.
在一个具体的可实施方案中,所述第一控制器还用于在所述第一发送端口进入所述高速数据传输状态之前,控制所述第一发送端口进入到低功耗状态。方便进行状态切换。In a specific implementation, the first controller is further configured to control the first sending port to enter a low power consumption state before the first sending port enters the high-speed data transmission state. It is convenient to switch state.
在一个具体的可实施方案中,所述芯片还包括第二接收端口;所述第二接收端口用于接收所述对端芯片的第二发送端口发送的所述第一接收端口的端口信息;所述第一控制器还用于控制所述第一发送端口与所述对端芯片的第一接收端口建立传输链路,并控制所述第一发送端口将第一发送端口的端口信息发送给所述对端芯片的第一接收端口。In a specific implementation, the chip further includes a second receiving port; the second receiving port is configured to receive the port information of the first receiving port sent by the second sending port of the opposite chip; The first controller is further configured to control the first sending port to establish a transmission link with the first receiving port of the opposite chip, and control the first sending port to send the port information of the first sending port to The first receiving port of the peer chip.
第四方面,提供了一种芯片,该芯片包括第一接收端口和第二控制器;所述第一接收端口用于接收对端芯片的第一发送端口发送的修复控制码流;所述第二控制器用于根据所述修复控制码流控制所述第一接收端口进入到修复状态;其中,所述修复控制码流为所述对端芯片的第一控制器在数据传输状态内检测到数据传输错误时,产生的用于控制所述第一接收端口切换到修复状态的修复控制码流;其中,所述数据传输状态包括高速数据传输状态和低速数据传输状态;所述第二控制器还用于在所述修复状态,对所述第一接收端口进行数据修复,将所述第一接收端口的参数修复到所述第一接收端口处于所述数据传输状态时的参数;所述第二控制器还用于在完成对所述第一接收端口的数据修复后,控制所述第一接收端口进入到低功耗状态或再次进入到所述高速数据传输状态;其中,在高速数据传输状态下,数据的传输速率大于或等于1Gbps。提高了传输链路的可靠性。In a fourth aspect, a chip is provided, the chip includes a first receiving port and a second controller; the first receiving port is used to receive a repair control code stream sent by a first sending port of a peer chip; the first receiving port The second controller is configured to control the first receiving port to enter a repair state according to the repair control code stream; wherein, the repair control code stream is that the first controller of the opposite end chip detects data in the data transmission state When a transmission error occurs, a repair control code stream is generated for controlling the first receiving port to switch to a repair state; wherein, the data transmission state includes a high-speed data transmission state and a low-speed data transmission state; the second controller also In the repair state, data repair is performed on the first receiving port, and the parameters of the first receiving port are repaired to the parameters when the first receiving port is in the data transmission state; the second receiving port The controller is further configured to control the first receiving port to enter a low power consumption state or enter the high-speed data transmission state again after completing the data restoration of the first receiving port; wherein, in the high-speed data transmission state , the data transfer rate is greater than or equal to 1Gbps. The reliability of the transmission link is improved.
在一个具体的可实施方案中,所述第二控制器还用于在检测到所述数据传输错误之后以及在控制所述第一接收端口进入到所述修复状态之前,控制所述第一接收端口进入到低功耗状态。方便进行状态切换。In a specific implementation, the second controller is further configured to control the first receiving port after detecting the data transmission error and before controlling the first receiving port to enter the repair state The port enters a low power state. It is convenient to switch state.
在一个具体的可实施方案中,所述第二控制器还用于在完成所述数据修复后,以及控制所述第一接收端口进入到所述低功耗状态之前,确认修复后所述第一接收端口的参数为所述第一接收端口处于所述数据传输状态时的参数。提高了传输链路的可靠性。In a specific implementation, the second controller is further configured to, after completing the data restoration and before controlling the first receiving port to enter the low power consumption state, confirm that the A parameter of a receiving port is a parameter when the first receiving port is in the data transmission state. The reliability of the transmission link is improved.
在一个具体的可实施方案中,所述第二控制器还用于在所述第一接收端口进入所述高速数据传输状态之前,控制所述第一接收端口进入到低功耗状态。方便进行状态切换。In a specific implementation, the second controller is further configured to control the first receiving port to enter a low power consumption state before the first receiving port enters the high-speed data transmission state. It is convenient to switch state.
在一个具体的可实施方案中,还包括第二发送端口;所述第二控制器还用于控制所述第一接收端口与所述对端芯片的第一发送端口建立传输链路,并控制所述第二发送端口将所述第一接收端口的端口信息发送给所述对端芯片的第二接收端口;所述第一接收端口还用于接收所述对端芯片的第一发送端口发送的第一发送端口的端口信息。In a specific implementation, it further includes a second sending port; the second controller is further configured to control the first receiving port to establish a transmission link with the first sending port of the opposite chip, and control the The second sending port sends the port information of the first receiving port to the second receiving port of the opposite end chip; the first receiving port is also used to receive the data sent by the first sending port of the opposite end chip The port information of the first sending port.
第五方面,提供了一种芯片,该芯片包括第一发送端口和第一控制器,所述第一控制器用于在第一发送端口进入数据传输状态之前,检测所述第一发送端口当前的参数并判断所述第一发送端口当前的参数与所述第一发送端口在按照目标数据传输速率发送数据时匹配的参数是否一致;所述第一控制器还用于在所述第一发送端口当前的参数与所述第一 发送端口在目标数据传输速率时匹配的参数不一致时,控制所述第一发送端口进入速率切换状态;所述第一控制器还用于在所述速率切换状态,将所述第一发送端口当前的参数切换为所述第一发送端口在按照目标数据传输速率发送数据时匹配的参数;所述第一控制器还用于控制所述第一发送端口向对端芯片的第一接收端口发送控制所述第一接收端口进入到速率切换状态的控制码流;所述第一控制器还用于在完成切换后,控制所述第一发送端口进入到低功耗状态。提高了传输链路的可靠性。A fifth aspect provides a chip, the chip includes a first sending port and a first controller, the first controller is configured to detect the current state of the first sending port before the first sending port enters a data transmission state parameters and determine whether the current parameters of the first sending port are consistent with the parameters matched by the first sending port when sending data according to the target data transmission rate; the first controller is also used for sending data at the first sending port When the current parameter is inconsistent with the parameter matched by the first sending port at the target data transmission rate, the first sending port is controlled to enter a rate switching state; the first controller is further configured to, in the rate switching state, Switching the current parameters of the first sending port to the parameters matched by the first sending port when sending data according to the target data transmission rate; the first controller is further configured to control the first sending port to send data to the opposite end The first receiving port of the chip sends a control code stream that controls the first receiving port to enter a rate switching state; the first controller is further configured to control the first sending port to enter a low power consumption state after switching is completed state. The reliability of the transmission link is improved.
在一个具体的可实施方案中,所述第一控制器还用于在所述第一发送端口当前的参数被切换为所述第一发送端口在按照目标数据传输速率发送数据时匹配的参数之后,接收数据传输控制码流且控制所述第一发送端口由所述低功耗状态切换到与所述目标数据的传输速率匹配的高速数据传输状态或低速数据传输状态;所述第一控制器还用于控制所述第一发送端口向对端芯片的第一接收端口发送控制所述第一接收端口切换到与所述目标数据的传输速率匹配的高速数据传输状态或低速数据传输状态的控制码流;其中,所述高速数据传输速率大于所述低速数据传输速率。In a specific implementation, the first controller is further configured to, after the current parameter of the first sending port is switched to the parameter matched by the first sending port when sending data according to the target data transmission rate , receiving a data transmission control code stream and controlling the first sending port to switch from the low power consumption state to a high-speed data transmission state or a low-speed data transmission state that matches the transmission rate of the target data; the first controller It is also used to control the first sending port to send the control to the first receiving port of the opposite chip to control the first receiving port to switch to a high-speed data transmission state or a low-speed data transmission state that matches the transmission rate of the target data. A code stream; wherein the high-speed data transmission rate is greater than the low-speed data transmission rate.
在一个具体的可实施方案中,所述第一控制器还用于在数据传输过程中,在数据传输速率发生改变时,控制所述第一发送端口进入到所述低功耗状态,并从所述低功耗状态进入到所述速率切换状态;所述第一控制器还用于在所述速率切换状态,控制所述第一发送端口当前的参数切换到所述第一发送端口在按照所述改变后的数据传输速率传输数据时匹配的参数;所述第一控制器还用于控制所述第一发送端口向对端芯片的第一接收端口发送控制所述第一接收端口进入到低功耗状态以及速率切换状态的控制码流;所述第一控制器还用于在完成切换后,控制所述第一发送端口进入到所述低功耗状态。提高了传输链路的可靠性。In a specific implementation, the first controller is further configured to control the first sending port to enter the low power consumption state when the data transmission rate changes during the data transmission process, and from The low power consumption state enters the rate switching state; the first controller is further configured to, in the rate switching state, control the current parameters of the first sending port to switch to the first sending port in accordance with: The parameter matched when the changed data transmission rate transmits data; the first controller is further configured to control the first sending port to send to the first receiving port of the opposite chip, and control the first receiving port to enter the The control code stream of the low power consumption state and the rate switching state; the first controller is further configured to control the first sending port to enter the low power consumption state after the switching is completed. The reliability of the transmission link is improved.
在一个具体的可实施方案中,所述第一控制器还用于在所述第一发送端口当前的参数被切换为所述第一发送端口在按照所述改变后的数据传输速率发送数据时匹配的参数时,接收数据传输控制码流且控制所述第一发送端口由所述低功耗状态切换到与所述目标数据的传输速率匹配的高速数据传输状态或低速数据传输状态;所述第一控制器还用于控制所述第一发送端口向对端芯片的第一接收端口发送控制所述第一接收端口切换到与所述目标数据的传输速率匹配的高速数据传输状态或低速数据传输状态的控制码流。In a specific implementation, the first controller is further configured to send data according to the changed data transmission rate when the current parameter of the first sending port is switched to the first sending port sending data according to the changed data transmission rate When matching parameters, receive a data transmission control code stream and control the first sending port to switch from the low power consumption state to a high-speed data transmission state or a low-speed data transmission state that matches the transmission rate of the target data; the The first controller is further configured to control the first sending port to send to the first receiving port of the opposite chip and control the first receiving port to switch to a high-speed data transmission state or low-speed data that matches the transmission rate of the target data The control stream of the transmission state.
在一个具体的可实施方案中,所述第一控制器还用于在数据传输状态内检测到数据传输错误时,控制第一发送端口进入到修复状态;并向对端芯片发送控制对端芯片的第一接收端口进入到修复状态的修复控制码流;其中,所述数据传输状态包括高速数据传输状态和低速数据传输状态;所述第一控制器还用于在所述修复状态,对所述第一发送端口进行数据修复,将所述第一发送端口的参数修复到所述第一发送端口处于所述数据传输状态时的参数;所述第一控制器还用于在完成对所述第一发送端口的数据修复后,控制所述第一发送端口进入到低功耗状态或再次进入到所述高速数据传输状态。提高了传输链路的可靠性。In a specific implementation, the first controller is further configured to control the first sending port to enter a repair state when a data transmission error is detected in the data transmission state; and send the control to the opposite end chip to the opposite end chip The repair control code stream in which the first receiving port enters the repair state; wherein, the data transmission state includes a high-speed data transmission state and a low-speed data transmission state; the first controller is further configured to, in the repair state, performing data restoration on the first sending port, and restoring the parameters of the first sending port to the parameters when the first sending port is in the data transmission state; the first controller is further configured to After the data of the first sending port is restored, the first sending port is controlled to enter a low power consumption state or enter the high-speed data transmission state again. The reliability of the transmission link is improved.
在一个具体的可实施方案中,所述第一控制器还用于在检测到所述数据传输错误之后,以及在控制所述第一发送端口进入到所述修复状态之前,控制所述第一发送端口进入到低功耗状态。方便进行状态切换。In a specific implementation, the first controller is further configured to control the first controller after detecting the data transmission error and before controlling the first sending port to enter the repair state The transmit port enters a low power state. It is convenient to switch state.
第六方面,提供了一种芯片,该芯片包括第一接收端口和第二控制器,在第一接收端口进入数据传输状态之前,所述第一接收端口用于接收对端芯片发送的控制所述第一接收 端口进入到速率切换状态的控制码流;所述第二控制器用于根据控制所述第一接收端口进入到速率切换状态的控制码流;并根据所述控制码流控制所述第一接收端口进入速率切换状态;所述第二控制器还用于在所述速率切换状态,将所述第一接收端口当前的参数切换为所述第一接收端口在按照目标数据传输速率发送数据时匹配的参数;所述第二控制器还用于在完成切换后,控制所述第一接收端口进入到低功耗状态。提高了传输链路的可靠性。In a sixth aspect, a chip is provided, the chip includes a first receiving port and a second controller, and before the first receiving port enters a data transmission state, the first receiving port is used to receive the control station sent by the opposite end chip. The first receiving port enters the rate-switching state of the control code stream; the second controller is configured to control the first receiving port to enter the rate-switching state according to the control code stream; and according to the control code stream to control the The first receiving port enters a rate switching state; the second controller is further configured to switch the current parameters of the first receiving port in the rate switching state to the first receiving port sending according to the target data transmission rate and the second controller is further configured to control the first receiving port to enter a low power consumption state after switching is completed. The reliability of the transmission link is improved.
在一个具体的可实施方案中,所述第二控制器还用于在所述第一接收端口当前的参数被切换为所述第一接收端口在按照目标数据传输速率发送数据时匹配的参数之后,控制所述第一接收端口接收控制所述第一接收端口切换到与所述目标数据的传输速率匹配的高速数据传输状态或低速数据传输状态的控制码流,且根据所述控制码流控制所述第一接收端口由所述低功耗状态切换到与所述目标数据的传输速率匹配的高速数据传输状态或低速数据传输状态;其中,所述高速数据传输速率大于所述低速数据传输速率。In a specific implementation, the second controller is further configured to, after the current parameter of the first receiving port is switched to the parameter matched by the first receiving port when sending data according to the target data transmission rate , controlling the first receiving port to receive a control code stream that controls the first receiving port to switch to a high-speed data transmission state or a low-speed data transmission state that matches the transmission rate of the target data, and controls the control code stream according to the control code stream The first receiving port is switched from the low power consumption state to a high-speed data transmission state or a low-speed data transmission state matching the transmission rate of the target data; wherein the high-speed data transmission rate is greater than the low-speed data transmission rate .
在一个具体的可实施方案中,在数据传输过程中,在数据传输速率发生改变时,所述第一接收端口用于接收对端芯片发送的控制所述第一接收端口进入到低功耗状态以及速率切换状态的控制码流;所述第二控制器用于根据控制所述第一接收端口进入到低功耗状态以及速率切换状态的控制码流;并根据所述控制码流控制所述第一接收端口进入低功耗状态,并在进入低功耗状态后进入速率切换状态;所述第二控制器还用于在所述速率切换状态,控制所述第一接收端口当前的参数切换到所述第一接收端口在按照所述改变后的数据传输速率传输数据时匹配的参数;所述第二控制器还用于在完成切换后,控制所述第一接收端口进入到所述低功耗状态。In a specific implementation, in the process of data transmission, when the data transmission rate changes, the first receiving port is configured to receive the data sent by the opposite end chip and control the first receiving port to enter a low power consumption state and a control code stream in a rate switching state; the second controller is configured to control the first receiving port to enter a low power consumption state and a control code stream in a rate switching state according to the control code stream; and control the first receiving port according to the control code stream A receiving port enters a low power consumption state, and enters a rate switching state after entering the low power consumption state; the second controller is further configured to control the current parameter of the first receiving port to switch to the rate switching state in the rate switching state parameters matched by the first receiving port when transmitting data according to the changed data transmission rate; the second controller is further configured to control the first receiving port to enter the low-power mode after switching is completed consumption status.
在一个具体的可实施方案中,所述第二控制器还用于在所述第一接收端口当前的参数被切换为所述第一接收端口在按照目标数据传输速率发送数据时匹配的参数之后,控制所述第一接收端口接收控制所述第一接收端口切换到与所述目标数据的传输速率匹配的高速数据传输状态或低速数据传输状态的控制码流,且根据所述控制码流控制所述第一接收端口由所述低功耗状态切换到与所述目标数据的传输速率匹配的高速数据传输状态或低速数据传输状态。In a specific implementation, the second controller is further configured to, after the current parameter of the first receiving port is switched to the parameter matched by the first receiving port when sending data according to the target data transmission rate , controlling the first receiving port to receive a control code stream that controls the first receiving port to switch to a high-speed data transmission state or a low-speed data transmission state that matches the transmission rate of the target data, and controls the control code stream according to the control code stream The first receiving port is switched from the low power consumption state to a high-speed data transmission state or a low-speed data transmission state matching the transmission rate of the target data.
在一个具体的可实施方案中,所述第二控制器还用于根据所述修复控制码流控制所述第一接收端口进入到修复状态;其中,所述修复控制码流为所述对端芯片的第一控制器在高速数据传输状态内检测到数据传输错误时,产生的用于控制所述第一接收端口切换到修复状态的修复控制码流;In a specific implementation, the second controller is further configured to control the first receiving port to enter a repair state according to the repair control code stream; wherein the repair control code stream is the opposite end When the first controller of the chip detects a data transmission error in the high-speed data transmission state, it generates a repair control code stream for controlling the first receiving port to switch to the repair state;
所述第二控制器还用于在所述修复状态,对所述第一接收端口进行数据修复,将所述第一接收端口的参数修复到所述第一接收端口处于数据传输状态时的参数;其中,所述数据传输状态包括高速数据传输状态和低速数据传输状态;The second controller is further configured to perform data repair on the first receiving port in the repair state, and repair the parameters of the first receiving port to the parameters when the first receiving port is in a data transmission state ; Wherein, the data transmission state includes a high-speed data transmission state and a low-speed data transmission state;
所述第二控制器还用于在完成对所述第一接收端口的数据修复后,控制所述第一接收端口进入到低功耗状态或再次进入到所述高速数据传输状态。The second controller is further configured to control the first receiving port to enter a low power consumption state or enter the high-speed data transmission state again after completing data restoration on the first receiving port.
在一个具体的可实施方案中,所述第二控制器还用于在检测到所述数据传输错误之后,以及在控制所述第一接收端口进入到所述修复状态之前,控制所述第一接收端口进入到低功耗状态。In a specific implementation, the second controller is further configured to control the first receiving port after detecting the data transmission error and before controlling the first receiving port to enter the repair state The receive port enters a low power state.
第七方面,提供了一种通信系统,该通信系统包括第一芯片和第二芯片;其中,所述第一芯片为任一项所述的芯片;所述第二芯片为第一芯片的对端芯片;所述第一芯片和所述第二芯片之间建立有传输链路。在上述方案中,通过设置了修复状态,在高速数据传输 出现故障时,对传输链路进行修复,提高了高速数据传输时的可靠性。另外,在修复时,仅修复与高速数据传输对应的匹配参数,无需再次对两个芯片在握手时的基础信息进行匹配,提高了修复效率。In a seventh aspect, a communication system is provided, the communication system includes a first chip and a second chip; wherein the first chip is any one of the chips described in any one of the above; the second chip is a pair of the first chip A terminal chip; a transmission link is established between the first chip and the second chip. In the above solution, by setting the repair state, when the high-speed data transmission fails, the transmission link is repaired, which improves the reliability of the high-speed data transmission. In addition, when repairing, only matching parameters corresponding to high-speed data transmission are repaired, and there is no need to match the basic information of the two chips during handshake, which improves the repairing efficiency.
第八方面,提供了一种移动终端,该移动终端包括第一芯片和第二芯片;其中,所述第一芯片为任一项所述的芯片;所述第二芯片为第一芯片的对端芯片;所述第一芯片和所述第二芯片之间建立有传输链路。在上述方案中,通过设置了修复状态,在高速数据传输出现故障时,对传输链路进行修复,提高了高速数据传输时的可靠性。另外,在修复时,仅修复与高速数据传输对应的匹配参数,无需再次对两个芯片在握手时的基础信息进行匹配,提高了修复效率。In an eighth aspect, a mobile terminal is provided, the mobile terminal includes a first chip and a second chip; wherein the first chip is the chip described in any one of the above; the second chip is a pair of the first chip A terminal chip; a transmission link is established between the first chip and the second chip. In the above solution, by setting the repair state, when the high-speed data transmission fails, the transmission link is repaired, which improves the reliability of the high-speed data transmission. In addition, when repairing, only matching parameters corresponding to high-speed data transmission are repaired, and there is no need to match the basic information of the two chips during handshake, which improves the repairing efficiency.
第九方面,本申请实施例提供一种信号处理模块,所述信号处理模块包括处理器,用于实现上述第一方面或第二方面描述的方法。所述信号处理模块还可以包括存储器,用于存储指令和数据。所述存储器与所述处理器耦合,所述处理器执行所述存储器中存储的程序指令时,可以实现上述第一方面描述的方法。所述信号处理模块还可以包括通信端口,所述通信端口用于该装置与其它设备进行通信,示例性的,通信端口可以是收发器、电路、总线、模块或其它类型的通信端口,其它设备可以为网络设备或终端设备等。In a ninth aspect, an embodiment of the present application provides a signal processing module, where the signal processing module includes a processor, and is configured to implement the method described in the first aspect or the second aspect. The signal processing module may also include a memory for storing instructions and data. The memory is coupled to the processor, and when the processor executes the program instructions stored in the memory, the method described in the first aspect can be implemented. The signal processing module may also include a communication port, which is used for the apparatus to communicate with other devices. Exemplarily, the communication port may be a transceiver, circuit, bus, module or other type of communication port. It can be a network device or a terminal device, etc.
在一个具体的可实现方案中,该信号处理模块包括:存储器,用于存储程序指令;处理器,用于调用存储器中存储的指令,使得所述装置执行本申请第一方面以及第一方面中任意一种可能的设计的方法。In a specific implementation solution, the signal processing module includes: a memory for storing program instructions; a processor for invoking the instructions stored in the memory, so that the apparatus executes the first aspect and the first aspect of the present application Any of the possible design methods.
第十方面,本申请实施例还提供一种计算机可读存储介质,包括指令,当其在计算机上运行时,使得计算机执行本申请第一方面以及第一方面中任意一种可能的设计的方法,或第二方面以及第二方面中任意二种可能的设计的方法。In a tenth aspect, an embodiment of the present application further provides a computer-readable storage medium, including instructions, which, when executed on a computer, enable the computer to execute the first aspect of the present application and any possible design method of the first aspect , or the second aspect and any two possible design methods in the second aspect.
第十一方面,本申请实施例中还提供一种计算机程序产品,包括指令,当其在计算机上运行时,使得计算机执行本申请第一方面以及第一方面中任意一种可能的设计的方法,或第二方面以及第二方面中任意二种可能的设计的方法。In an eleventh aspect, the embodiments of the present application further provide a computer program product, including instructions, which, when run on a computer, enable the computer to execute the first aspect of the present application and any possible design method in the first aspect , or the second aspect and any two possible design methods in the second aspect.
另外,第九方面至第十一方面中任一种可能设计方式所带来的技术效果可参见方法部分中不同设计方式带来的效果,在此不再赘述。In addition, for the technical effects brought by any of the possible design methods in the ninth aspect to the eleventh aspect, reference may be made to the effects brought by different design methods in the method section, which will not be repeated here.
附图说明Description of drawings
图1为本申请实施例提供的通信方法可能在终端设备中应用的场景;FIG. 1 is a scenario in which the communication method provided by the embodiment of the present application may be applied in a terminal device;
图2为本申请实施例提供的通信方法可能在存储设备中应用的场景;FIG. 2 is a scenario in which the communication method provided by the embodiment of the present application may be applied in a storage device;
图3示出了本申请实施例提供的传输链路的各个状态的逻辑示意图;FIG. 3 shows a logical schematic diagram of various states of a transmission link provided by an embodiment of the present application;
图4示出了本申请实施例提供的芯片上电之后的工作模式管理流程;FIG. 4 shows a working mode management process after the chip is powered on provided by an embodiment of the present application;
图5示出了本申请实施例提供的高速数据传输下工作模式管理流程;FIG. 5 shows a working mode management process under high-speed data transmission provided by an embodiment of the present application;
图6示出了本申请实施例提供的低速数据传输下工作模式管理流程;FIG. 6 shows a working mode management process under low-speed data transmission provided by an embodiment of the present application;
图7示出了本申请实施例提供的超低功耗下的工作模式管理流程;FIG. 7 shows a working mode management process under ultra-low power consumption provided by an embodiment of the present application;
图8示出了本申请提供的一种通信系统;FIG. 8 shows a communication system provided by the present application;
图9示出了通信系统架构下的端口在LINK-STARTUP状态的工作流程;Fig. 9 shows the workflow of the port under the communication system architecture in the LINK-STARTUP state;
图10示出了通信系统架构下的端口在SPEED-CHANGE状态的工作流程;Figure 10 shows the workflow of the port in the SPEED-CHANGE state under the communication system architecture;
图11示出了通信系统架构下的端口在RECOVERY状态的工作流程;Figure 11 shows the workflow of the port in the RECOVERY state under the communication system architecture;
图12示出了本申请提供的另一种通信系统;Figure 12 shows another communication system provided by the present application;
图13示出了通信系统架构下的端口在LINK-STARTUP状态的工作流程;Figure 13 shows the workflow of the port in the LINK-STARTUP state under the communication system architecture;
图14示出了通信系统架构下的端口在SPEED-CHANGE状态的工作流程;Figure 14 shows the workflow of the port in the SPEED-CHANGE state under the communication system architecture;
图15示出了通信系统架构下的端口在RECOVERY状态的工作流程;Figure 15 shows the workflow of the port in the RECOVERY state under the communication system architecture;
图16示出了本申请实施例提供的信号处理模块的结构框图。FIG. 16 shows a structural block diagram of a signal processing module provided by an embodiment of the present application.
具体实施方式Detailed ways
下面将结合附图对本申请实施例作进一步描述。The embodiments of the present application will be further described below with reference to the accompanying drawings.
首先说明一下本申请实施例提供的通信方法为一种高速通信方法,主要应用于终端业务中各种需要高速通信的传输链路。常见的场景如手机、平板等终端产品的处理器—摄像头的数据通信传输链路、处理器—显示器的数据通信传输链路、存储设备间的数据通信传输链路等。First, it is explained that the communication method provided by the embodiment of the present application is a high-speed communication method, which is mainly applied to various transmission links in terminal services that require high-speed communication. Common scenarios include the processor-camera data communication transmission link of terminal products such as mobile phones and tablets, the processor-display data communication transmission link, and the data communication transmission link between storage devices.
参考图1,图1示出了本申请实施例提供的通信方法可能在终端设备中应用的场景。终端设备200中,包括处理器、摄像模组、显示模块、射频模块和存储模块等,上述几种模块均可看作为芯片。传输链路201、202、203、204分别表示处理器与摄像模组、处理器与显示模块、处理器与射频模块、处理器与存储模块间的传输链路。本申请实施例提供的通信方法可应用于如201、202、203、204的数据传输链路两侧的端口工作模式进行低功耗管理,以保障高速场景下数据的稳定可靠的传输。Referring to FIG. 1 , FIG. 1 shows a scenario in which the communication method provided by the embodiment of the present application may be applied in a terminal device. The terminal device 200 includes a processor, a camera module, a display module, a radio frequency module, a storage module, and the like, all of which can be regarded as chips. Transmission links 201, 202, 203, and 204 respectively represent transmission links between the processor and the camera module, the processor and the display module, the processor and the radio frequency module, and the processor and the storage module. The communication methods provided in the embodiments of the present application can be applied to the port working modes on both sides of the data transmission link such as 201 , 202 , 203 , and 204 for low power consumption management, so as to ensure stable and reliable data transmission in high-speed scenarios.
应理解,在本申请实施例中,主芯片又叫本端芯片,是指在具有通信关系的两个芯片之间用于发送数据的芯片。从芯片又叫对端芯片,是指在具有通信关系的两个芯片之间用于接收数据的芯片。通常来说,每个芯片都具有数据发送和发送的功能,当该芯片用于发送数据时,我们可以将该芯片称为主芯片或本端芯片,相应的,位于该芯片对端且用于接收数据的芯片可以被称为从芯片或对端芯片。由上述描述可知,在具有通信关系的两个芯片中,一个芯片并非固定不变的为主芯片,或固定不变的为从芯片,至于一个特定的芯片到底是为主芯片还是为从芯片,要根据它是发送数据还是接收数据来定。示例性的,以处理器与摄像模组为例,在处理器向摄像模组发送数据时,处理器为主芯片(本端芯片),摄像模组为从芯片(对端芯片)。在摄像模组向处理器发送数据时,摄像模组为主芯片(本端芯片),处理器为从芯片(对端芯片)。It should be understood that, in the embodiments of the present application, the main chip is also called the local chip, which refers to a chip used for sending data between two chips having a communication relationship. The slave chip is also called the peer chip, which refers to the chip used to receive data between two chips with a communication relationship. Generally speaking, each chip has the function of data sending and sending. When the chip is used to send data, we can call the chip as the main chip or the local chip. Correspondingly, it is located on the opposite end of the chip and used for The chip that receives the data can be called the slave chip or the peer chip. It can be seen from the above description that among the two chips with a communication relationship, one chip is not a fixed master chip, or a fixed slave chip. As for whether a specific chip is a master chip or a slave chip, It depends on whether it is sending data or receiving data. Exemplarily, taking the processor and the camera module as an example, when the processor sends data to the camera module, the processor is the master chip (the local chip), and the camera module is the slave chip (the opposite end chip). When the camera module sends data to the processor, the camera module is the master chip (the local chip), and the processor is the slave chip (the opposite end chip).
参考图2,图2示出了本申请实施例提供的通信方法可能在存储设备中应用的场景。存储设备1和存储设备2之间通过物理层端口进行数据交互,两个设备间的发射端口和接收端口构成数据传输链路301。本申请提供的通信方法通过对如301的数据传输链路两侧的端口工作模式进行低功耗管理,保障高速场景下数据的稳定可靠的传输。Referring to FIG. 2, FIG. 2 shows a scenario in which the communication method provided by the embodiment of the present application may be applied in a storage device. Data exchange is performed between the storage device 1 and the storage device 2 through a physical layer port, and the transmit port and the receive port between the two devices constitute a data transmission link 301 . The communication method provided by the present application ensures stable and reliable data transmission in high-speed scenarios by performing low power consumption management on the port working modes on both sides of the data transmission link such as 301 .
为方便理解本申请实施例提供的通信方法中涉及到的传输链路的几种工作状态,以图1所示的本端芯片和对端芯片的场景进行说明。其中,本端芯片和对端芯片建立传输链路时,通过本端芯片的发送端口和对端芯片的接收端口以及他们之间的链路组成传输链路。应理解,本端芯片和对端芯片均包含协议层和物理层,其中,协议层用于发送数据或控制指令到物理层,物理层根据协议层的指令对数据进行发送和处理。本端芯片的发送端口和对端芯片的接收端口均为物理层端口。In order to facilitate understanding of several working states of the transmission link involved in the communication method provided by the embodiment of the present application, the scene of the local chip and the opposite chip shown in FIG. 1 is used for description. Wherein, when the local chip and the opposite end chip establish a transmission link, the transmission link is formed by the sending port of the local end chip, the receiving port of the opposite end chip and the link between them. It should be understood that both the local chip and the opposite chip include a protocol layer and a physical layer, wherein the protocol layer is used to send data or control instructions to the physical layer, and the physical layer sends and processes data according to the instructions of the protocol layer. The sending port of the local chip and the receiving port of the opposite chip are both physical layer ports.
针对本申请实施例提供的高速数据串行端口的工作模式管理方法以状态机的形式表现,该状态机如图3所示,图3中的各个状态对应于传输链路的各工作模式,传输链路包括如下几种工作状态:DISABLED状态、PHY-INIT状态、LINK-STARTUP状态、 LOW-POWER0状态、LOW-POWER1状态、TRANS0状态、TRANS1状态、RECOVERY状态、SPEED-CHANGE状态。下文详细定义在各状态时,传输链路所具备的功能。首先参考表1,表1示出了各种状态的英文简写对应的中文含义。The working mode management method for a high-speed data serial port provided by the embodiment of the present application is expressed in the form of a state machine. The state machine is shown in FIG. 3 . Each state in FIG. 3 corresponds to each working mode of the transmission link. The link includes the following working states: DISABLED state, PHY-INIT state, LINK-STARTUP state, LOW-POWER0 state, LOW-POWER1 state, TRANS0 state, TRANS1 state, RECOVERY state, and SPEED-CHANGE state. The functions of the transmission link in each state are defined in detail below. First, refer to Table 1, which shows the Chinese meanings corresponding to the English abbreviations of various states.
表1Table 1
Figure PCTCN2021103888-appb-000001
Figure PCTCN2021103888-appb-000001
应理解,在上述传输链路的各种工作模式中,发送端口和接收端口也对应具有相同的工作模式,通过匹配发送端口和接收端口的参数处于不同工作模式对应的参数要求,以使得传输链路处于不同的工作模式。下面详细说明上述几种工作模式:It should be understood that in the various working modes of the above-mentioned transmission link, the sending port and the receiving port also correspond to the same working mode. The road is in a different working mode. The above working modes are described in detail below:
DISABLED状态:DISABLED status:
此状态表征的是芯片上电复位时的状态。该状态可在芯片初始上电后自动进入,也可在任意状态下由触发条件Trigger0触发后进入。This state represents the state when the chip is powered on and reset. This state can be entered automatically after the chip is initially powered on, or can be entered in any state after being triggered by the trigger condition Trigger0.
在此状态期间,物理层端口禁用发送和接收操作,直到Trigger0结束或失效,才进入PHY-INIT状态。During this state, the physical layer port disables transmit and receive operations and does not enter the PHY-INIT state until Trigger0 ends or fails.
PHY-INIT状态:PHY-INIT status:
此状态表征的是端口进行初始化的状态,该状态可由DISABLED状态结束后自动进入,也可在任意状态下由触发条件Trigger1触发后进入。This state represents the state of the port being initialized, which can be entered automatically after the DISABLED state ends, or can be entered after being triggered by the trigger condition Trigger1 in any state.
在此状态期间,所有传输链路配置和寄存器均修复为默认值,并在传输链路初始化结束后,仍然禁用物理层端口发送和接收操作,使物理层保持在一种极低功耗状态,等待进入LINK-STARTUP的触发条件。During this state, all transport link configurations and registers are restored to default values, and after the initialization of the transport link, the physical layer port transmit and receive operations are still disabled, keeping the physical layer in a very low power state, Wait for the trigger condition to enter LINK-STARTUP.
进入LINK-STARTUP的触发条件可以来自上层芯片的控制,也可以来自传输链路上的控制码流。The trigger condition for entering LINK-STARTUP can come from the control of the upper-layer chip or from the control code stream on the transmission link.
LINK-STARTUP状态:LINK-STARTUP status:
此状态表征的是物理层端口之间建立可靠连接的状态。在此状态下,物理层端口允许发送和接收操作。此状态下的物理层端口需要确定传输链路的状态,与传输链路另外一端物理层端口建立链接,并交换物理层端口的基础信息。This state represents the state of establishing a reliable connection between physical layer ports. In this state, the physical layer port allows transmit and receive operations. The physical layer port in this state needs to determine the state of the transmission link, establish a link with the physical layer port on the other end of the transmission link, and exchange basic information of the physical layer port.
此状态下的物理层端口以芯片所支持的最低速率进行通信,该速率下所进行的操作被认定为是可靠的,如果因为芯片同步问题而超时导致通信失败,则停止与对端芯片的连接,通知上层并进入PHY-INIT状态。The physical layer port in this state communicates at the lowest rate supported by the chip, and the operation performed at this rate is considered reliable. If the communication fails due to the timeout due to the chip synchronization problem, the connection with the peer chip will be stopped. , notify the upper layer and enter the PHY-INIT state.
物理层端口在建立可靠连接后,受上层控制或传输链路上的控制码流触发进入LOW-POWER0状态的条件。After the physical layer port establishes a reliable connection, it is triggered by the upper layer control or the control code stream on the transmission link to enter the LOW-POWER0 state.
LOW-POWER0状态:LOW-POWER0 state:
此状态表征一种低功耗状态。此状态下的物理层端口需要节省功耗,同时不影响数据传输的启动时间。此状态下的物理层端口不进行参数配置,只在上层控制或传输链路上的控制码流触发条件下立即进入下一状态。This state represents a low power state. The physical layer port in this state needs to save power without affecting the start-up time of data transfer. The physical layer port in this state does not perform parameter configuration, and only immediately enters the next state under the triggering condition of the upper layer control or the control code stream on the transmission link.
LOW-POWER1状态:LOW-POWER1 state:
此状态是一种超低功耗状态。在此状态期间,物理层端口保持芯片当前配置和寄存器 数值不变,关闭特定电路模块。此状态下的物理层端口不进行发送和接收操作,上层控制或传输链路上的控制码流触发条件下重新打开相应电路模块进入LOW-POWER0状态。This state is an ultra-low power state. During this state, the physical layer port keeps the current configuration and register values of the chip unchanged, and shuts down specific circuit modules. The physical layer port in this state does not perform sending and receiving operations, and the corresponding circuit module is reopened to enter the LOW-POWER0 state under the triggering condition of the upper layer control or the control code stream on the transmission link.
TRANS0状态:TRANS0 state:
此状态是物理层端口进行低速数据传输状态。在此状态下的端口进行低速(小于1Gbps)数据传输,可以支持不同的低速速率挡位。此状态下的物理层端口在数据传输完成后将进入LOW-POWER0状态。This state is the low-speed data transmission state of the physical layer port. The port in this state performs low-speed (less than 1Gbps) data transmission and can support different low-speed speed gears. The physical layer port in this state will enter the LOW-POWER0 state after the data transfer is completed.
TRANS1状态:TRANS1 state:
此状态是物理层端口进行高速数据传输状态。在此状态下的物理层端口进行高速大数据量的数据传输,可以支持不同的高速速率挡位。具体的,数据的传输速率大于或等于1Gbps。This state is the high-speed data transmission state of the physical layer port. In this state, the physical layer port performs high-speed and large-volume data transmission, and can support different high-speed speed gears. Specifically, the data transmission rate is greater than or equal to 1 Gbps.
此状态下的物理层端口在数据传输完成后将进入LOW-POWER0状态,只有在接收到上层控制或传输链路上的控制码流触发条件下才会进入RECOVERY状态。The physical layer port in this state will enter the LOW-POWER0 state after the data transmission is completed, and will enter the RECOVERY state only when the upper layer control or the control code stream on the transmission link is triggered.
RECOVERY状态:RECOVERY status:
此状态表征物理层端口进行数据修复状态。当物理层端口的数据传输链路在进行数据传输过程中出现错误,端口应该进入RECOVERY状态以对相应数据传输链路进行修复。This state represents the data recovery state of the physical layer port. When an error occurs in the data transmission link of the physical layer port during data transmission, the port should enter the RECOVERY state to repair the corresponding data transmission link.
此状态下的物理层端口可以根据不同的传输错误情况采取相应的修复措施,只进行与修复相关的数据传输,即仅修复在数据传输的状态下对应的匹配参数,不处理传输链路握手建立时的基础配置。在配置完成后物理层端口可发送某些握手信息以确认传输链路重新可用,之后根据上层控制或传输链路上的控制码流触发进入下一状态。The physical layer port in this state can take corresponding repair measures according to different transmission error conditions, and only perform data transmission related to the repair, that is, only repair the matching parameters corresponding to the data transmission state, and do not process the establishment of the transmission link handshake. time base configuration. After the configuration is completed, the physical layer port can send some handshake information to confirm that the transmission link is available again, and then enter the next state according to the upper layer control or the control code flow on the transmission link.
SPEED-CHANGE状态:SPEED-CHANGE Status:
此状态表征物理层端口数据传输速率切换状态。物理层端口根据上层的指示进入SPEED-CHANGE状态改变端口的速率配置参数。This state represents the physical layer port data transmission rate switching state. The physical layer port enters the SPEED-CHANGE state according to the instructions of the upper layer to change the rate configuration parameters of the port.
此状态下的物理层端口只进行与切速有关的数据传输。在配置完成后物理层端口需要在新速率下发送某些握手信息以确认传输链路重新可用,之后根据上层控制或传输链路上的控制码流触发回到LOW-POWER0状态。The physical layer port in this state only performs data transmission related to cutting speed. After the configuration is completed, the physical layer port needs to send some handshake information at the new rate to confirm that the transmission link is available again, and then trigger back to the LOW-POWER0 state according to the upper layer control or the control code flow on the transmission link.
上述DISABLED状态、PHY-INIT状态、LINK-STARTUP状态、LOW-POWER0状态、LOW-POWER1状态、TRANS0状态、TRANS1状态、RECOVERY状态、SPEED-CHANGE状态中,LOW-POWER0状态、TRANS1状态、RECOVERY状态为本申请实施例提供的通信方法主要涉及的几种状态,其余几种状态为传输链路可选的状态,在实际应用时,可根据需要设定上述几种可选的状态。Among the above DISABLED status, PHY-INIT status, LINK-STARTUP status, LOW-POWER0 status, LOW-POWER1 status, TRANS0 status, TRANS1 status, RECOVERY status, and SPEED-CHANGE status, the LOW-POWER0 status, TRANS1 status, and RECOVERY status are: The communication method provided by the embodiment of the present application mainly involves several states, and the other states are optional states of the transmission link. In practical application, the above several optional states can be set as required.
为方便理解本申请实施例提供的方法,下面结合具体的附图对本申请实施例提供的通信方法进行说明,本申请实施例提供的通信方法用于对上述传输链路的几种工作状态进行切换。应理解,传输链路的工作状态对应为本端芯片的发送端口和对端芯片接收端口的工作在状态。在传输链路具有上述几种工作状态时,对应的发送端口和接收端口也具备以上几种工作状态。In order to facilitate understanding of the methods provided by the embodiments of the present application, the following describes the communication methods provided by the embodiments of the present application with reference to the specific drawings. The communication methods provided by the embodiments of the present application are used to switch several working states of the above-mentioned transmission link. . It should be understood that the working state of the transmission link corresponds to the working state of the sending port of the end chip and the receiving port of the opposite end chip. When the transmission link has the above several working states, the corresponding sending port and the receiving port also have the above several working states.
首先说明图4~图7中所示的流程图中的接口指代的为本端芯片和对端芯片的发送端口和/或接收端口。First, it will be explained that the interfaces in the flowcharts shown in FIG. 4 to FIG. 7 refer to the sending port and/or the receiving port of the end chip and the opposite end chip.
参考图4,第一芯片和第二芯片之间建立传输链路,并进行端口信息交换,端口信息交换是指第一芯片将发送端口的端口信息发送给第二芯片,以及第二芯片将接收端口的端口信息发送给第一芯片;在完成端口信息交换之后,发送端口和接收端口均首次进入到低功耗状态。Referring to FIG. 4, a transmission link is established between the first chip and the second chip, and port information exchange is performed. Port information exchange means that the first chip sends the port information of the sending port to the second chip, and the second chip will receive The port information of the port is sent to the first chip; after the port information exchange is completed, both the sending port and the receiving port enter a low power consumption state for the first time.
示例性的,图4示出了在芯片上电之后的工作模式管理流程。芯片的上电复位信号可以当作是触发条件Trigger0的一种。首先,第一芯片和第二芯片握手,建立传输链路;并交换传输链路两端端口的基础信息。在本申请实施例中,以第一芯片为本端芯片,第二芯片为对端芯片为例进行说明。在第一芯片为本端芯片,第二芯片为对端芯片时,第一芯片具有发送端口,第二芯片具有接收端口,在建立传输链路时,发送端口和接收端口为传输链路两端的端口。Exemplarily, FIG. 4 shows the working mode management flow after the chip is powered on. The power-on reset signal of the chip can be regarded as a kind of trigger condition Trigger0. First, the first chip and the second chip shake hands to establish a transmission link; and exchange basic information of ports at both ends of the transmission link. In the embodiments of the present application, the first chip is taken as an end chip, and the second chip is an opposite end chip as an example for description. When the first chip is the end chip and the second chip is the opposite end chip, the first chip has a sending port, and the second chip has a receiving port. When a transmission link is established, the sending port and the receiving port are the two ends of the transmission link. port.
当第一芯片上电复位后,第一芯片的发送端口由之前的任意状态进入DISABLED状态。上电复位信号结束或失效后,发送端口自动进入PHY-INIT状态,进行初始化操作。初始化操作完成后,发送端口以一种极低功耗状态等待进入LINK-STARTUP的触发条件。发送端口收到触发条件后进入LINK-STARTUP状态,尝试与第二芯片的接收端口建立可靠链接,并且第一芯片将发送端口的基础信息(如能力信息和版本信息)传递给第二芯片,以及第二芯片将接收端口的基础信息(如能力信息和版本信息)传递给第一芯片。After the first chip is powered on and reset, the sending port of the first chip enters the DISABLED state from any previous state. After the power-on reset signal ends or fails, the transmitting port automatically enters the PHY-INIT state and performs initialization operations. After the initialization operation is completed, the transmit port waits for the trigger condition to enter LINK-STARTUP in a very low power state. The sending port enters the LINK-STARTUP state after receiving the trigger condition, tries to establish a reliable link with the receiving port of the second chip, and the first chip transmits the basic information (such as capability information and version information) of the sending port to the second chip, and The second chip transmits the basic information of the receiving port (such as capability information and version information) to the first chip.
如果建链(建立传输链路)失败,则发送端口返回PHY-INIT状态,重新进行初始化。如果初始化完成后,发送端口和接收端口还完成可靠建链,则在上层控制或传输链路上的控制码流触发下进入LOW-POWER0状态,等待进入下一状态的触发条件。上述的LOW-POWER0状态,作为一个中间状态,在发送端口和接收端口完成任何数据传输工作后,第一芯片可控制传输链路进入LOW-POWER0状态,等待下一状态触发条件,以减少能耗。If the link establishment (establishing the transmission link) fails, the sending port returns to the PHY-INIT state and re-initializes. If after the initialization is completed, the sending port and the receiving port also complete the reliable link establishment, then enter the LOW-POWER0 state under the trigger of the upper layer control or the control code stream on the transmission link, and wait for the trigger condition to enter the next state. The above LOW-POWER0 state, as an intermediate state, after the sending port and the receiving port complete any data transmission work, the first chip can control the transmission link to enter the LOW-POWER0 state and wait for the next state trigger condition to reduce energy consumption .
参考图5,图5示出了在高速数据传输下工作模式管理流程。传输链路在进行高速数据传输前处于LOW-POWER0状态,即发送端口和接收端口在进入高速数据传输状态之前,它们均处于低功耗状态。Referring to FIG. 5, FIG. 5 shows a working mode management flow under high-speed data transmission. The transmission link is in a LOW-POWER0 state before high-speed data transmission, that is, before the sending port and the receiving port enter the high-speed data transmission state, they are in a low-power state.
在进行高速数据传输时,可通过高速数据控制码流触发所述传输链路进入高速数据传输状态,进行高速数据传输。具体的,第一芯片的控制器或协议层通过高速数据控制码流触发发送端口和接收端口均进入高速数据传输状态,其中,高速数据传输是指数据的传输速率为Gbps量级的数据传输。When performing high-speed data transmission, the transmission link can be triggered to enter a high-speed data transmission state through a high-speed data control code stream to perform high-speed data transmission. Specifically, the controller or the protocol layer of the first chip triggers both the sending port and the receiving port to enter the high-speed data transmission state through the high-speed data control code stream.
在检测到高速数据传输错误时,可控制传输链路进入到修复状态。如在数据传输过程中如果发生错误,可以通过上层控制或传输链路上的控制码流触发传输链路退出TRANS1状态直接进入RECOVERY状态,并在RECOVERY状态进行传输链路修复。When a high-speed data transmission error is detected, the transmission link can be controlled to enter a repair state. For example, if an error occurs during data transmission, the upper layer control or the control code stream on the transmission link can trigger the transmission link to exit the TRANS1 state and directly enter the RECOVERY state, and the transmission link is repaired in the RECOVERY state.
在上述过程中,第一芯片的协议层控制发送端口和接收端口均进入到修复状态;在检测到高速数据传输错误时,第一芯片的控制器或协议层控制发送端口进入到修复状态,并向第二芯片发送修复控制码流,以使第二芯片的协议层或控制器根据修复控制码流控制接收端口进入到修复状态,上述的第一芯片的协议层控制接收端口进入到修复状态,指代的是上述通过修复控制码流控制第二芯片,以使得接收端口进入到修复状态,从而实现发送端口和接收端口均进入到修复状态。In the above process, the protocol layer of the first chip controls both the sending port and the receiving port to enter the repair state; when a high-speed data transmission error is detected, the controller or the protocol layer of the first chip controls the sending port to enter the repair state, and Sending the repair control code stream to the second chip, so that the protocol layer or the controller of the second chip controls the receiving port to enter the repair state according to the repair control code stream, and the protocol layer of the first chip controls the receiving port to enter the repair state. It refers to the above-mentioned control of the second chip through the repair control code flow, so that the receiving port enters the repair state, so that both the sending port and the receiving port enter the repair state.
在检测到所述数据传输错误之后,以及在控制发送端口和接收端口均进入到所述修复状态之前,控制所述发送端口和所述接收端口均进入到低功耗状态。具体是指控制所述发送端口和所述接收端口均从所述低功耗状态进入到修复状态。After the data transmission error is detected, and before both the sending port and the receiving port are controlled to enter the repair state, both the sending port and the receiving port are controlled to enter a low power consumption state. Specifically, it refers to controlling both the sending port and the receiving port to enter the restoration state from the low power consumption state.
在修复状态中,第一芯片的控制器或协议层对发送端口和接收端口进行数据修复(重置reset和修复repair),将发送端口的参数修复到发送端口处于高速数据传输状态时的参数,以及,将接收端口的参数修复到接收端口处于高速数据传输状态时的参数。在此状态下的 发送端口和接收端口可以根据不同的传输错误情况采取相应的修复措施,即仅修复在数据传输的状态下对应的匹配参数,不涉及传输链路握手建立时的基础配置。以重置为例,第一芯片的控制器或协议层将发送端口的参数重置为与高速数据传输状态匹配的参数。同理,第二芯片的协议层或控制器根据第一芯片发送的相关码流将接收端口的参数重置为与高速数据传输状态匹配的参数。In the repair state, the controller or the protocol layer of the first chip performs data repair (reset and repair) on the sending port and the receiving port, and restores the parameters of the sending port to the parameters when the sending port is in a high-speed data transmission state, And, the parameters of the receiving port are repaired to the parameters when the receiving port is in a high-speed data transmission state. In this state, the sending port and the receiving port can take corresponding repair measures according to different transmission error conditions, that is, only repair the corresponding matching parameters in the state of data transmission, and do not involve the basic configuration when the transmission link handshake is established. Taking reset as an example, the controller or the protocol layer of the first chip resets the parameters of the sending port to the parameters matching the high-speed data transmission state. Similarly, the protocol layer or controller of the second chip resets the parameters of the receiving port to the parameters matching the high-speed data transmission state according to the relevant code stream sent by the first chip.
作为一个可选的方案,在完成传输链路修复后,增加握手过程,通过握手过程,确认修复后的发送端口的参数为发送端口处于高速数据传输状态时的参数以及接收端口的参数为接收端口处于高速数据传输状态时的参数,以保证传输链路的稳健性。As an optional solution, after the transmission link is repaired, a handshake process is added. Through the handshake process, it is confirmed that the parameters of the repaired sending port are the parameters when the sending port is in a high-speed data transmission state and the parameters of the receiving port are the receiving port. Parameters in the state of high-speed data transmission to ensure the robustness of the transmission link.
如果数据传输完成,第一芯片的协议层或控制器控制传输链路退出TRANS1状态,进入LOW-POWER0状态,等待进入下一状态的触发条件。If the data transmission is completed, the protocol layer or the controller of the first chip controls the transmission link to exit the TRANS1 state, enter the LOW-POWER0 state, and wait for a trigger condition for entering the next state.
作为一个可选的方案,在进入TRANS1状态前,即发送端口和接收端口进入数据传输状态之前,第一芯片的协议层或控制器检测传输链路的传输速率与目标数据的传输速率是否一致;As an optional solution, before entering the TRANS1 state, that is, before the sending port and the receiving port enter the data transmission state, the protocol layer or controller of the first chip detects whether the transmission rate of the transmission link is consistent with the transmission rate of the target data;
示例性的,检测发送端口当前的参数和接收端口当前的参数,并判断发送端口当前的参数与发送端口在按照目标数据传输速率发送数据时匹配的参数是否一致,以及,判断接收端口当前的参数与接收端口在按照目标数据传输速率接收数据时匹配的参数是否一致,即判断传输链路两端端口当前的参数与传输链路两端端口在按照目标数据传输速率收发数据时匹配的参数是否一致。Exemplarily, detecting the current parameters of the sending port and the current parameters of the receiving port, and judging whether the current parameters of the sending port are consistent with the parameters matched by the sending port when sending data according to the target data transmission rate, and judging the current parameters of the receiving port Whether it is consistent with the parameters matched by the receiving port when receiving data according to the target data transmission rate, that is, it is judged whether the current parameters of the ports at both ends of the transmission link are consistent with the parameters matched when the ports at both ends of the transmission link send and receive data according to the target data transmission rate. .
在发送端口和接收端口当前的参数与它们在目标数据传输速率时匹配的参数不一致时,第一芯片的协议层或控制器控制发送端口和接收端口进入速率切换状态。在具体控制时,第一芯片的协议层或控制器控制发送端口进入到低功耗状态,并在进入到低功耗状态后,进入到速率切换状态。且在上述切换过程中,第一芯片的协议层或控制器控制发送端口向第二芯片的接收端口发送相关的切换控制码流,第二芯片的协议层或控制器通过接收的相关的控制码流控制接收端口对应进入到低功耗状态,并在进入到低功耗状态后进入到速率切换状态。When the current parameters of the sending port and the receiving port are inconsistent with their matching parameters at the target data transmission rate, the protocol layer or controller of the first chip controls the sending port and the receiving port to enter a rate switching state. During specific control, the protocol layer or the controller of the first chip controls the sending port to enter the low power consumption state, and after entering the low power consumption state, enters the rate switching state. And in the above-mentioned switching process, the protocol layer or controller of the first chip controls the sending port to send the relevant switching control code stream to the receiving port of the second chip, and the protocol layer or controller of the second chip passes the received relevant control code. The flow control receiving port correspondingly enters the low power consumption state, and enters the rate switching state after entering the low power consumption state.
在速率切换状态,第一芯片的协议层或控制器将发送端口当前的参数切换为发送端口在按照目标数据传输速率发送数据时匹配的参数,同时,第二芯片的协议层或控制器将接收端口的参数切换为接收端口在按照目标数据传输速率接收数据时匹配的参数;并在完成切换后,发送端口以及接收端口均进入到低功耗状态。In the rate switching state, the protocol layer or controller of the first chip switches the current parameters of the sending port to the parameters matched by the sending port when sending data according to the target data transmission rate. At the same time, the protocol layer or controller of the second chip will receive The parameters of the port are switched to the parameters matched by the receiving port when receiving data according to the target data transmission rate; and after the switching is completed, both the transmitting port and the receiving port enter a low power consumption state.
另外,在第一发送端口当前的参数与第一发送端口在按照目标数据传输速率发送数据时匹配的参数一致,且接收端口当前的参数与接收端口在按照目标数据接收速率接收数据时匹配的参数一致时,控制传输链路由低功耗状态切换到与目标数据的传输速率匹配的高速数据传输状态或低速数据传输状态。In addition, the current parameters of the first sending port are consistent with the parameters that the first sending port matches when sending data according to the target data transmission rate, and the current parameters of the receiving port are the same as the parameters that the receiving port matches when receiving data according to the target data receiving rate. When they are consistent, the control transmission link is switched from a low power consumption state to a high-speed data transmission state or a low-speed data transmission state that matches the transmission rate of the target data.
在上述过程中,发送端口需要判断当前传输链路配置支持的数据传输速率与目标数据的传输速率是否一致。如不一致,发送端口需要进入SPEED-CHANGE状态,重新配置传输链路的参数以满足目标数据的传输速率要求。如果当前传输链路配置支持的数据传输速率与目标数据的传输速率一致,则发送端口在触发条件(高速数据控制码流)的触发下直接进入TRANS1状态,进行高速数据传输。同理,接收端口也执行相应的操作。In the above process, the sending port needs to determine whether the data transmission rate supported by the current transmission link configuration is consistent with the transmission rate of the target data. If inconsistent, the sending port needs to enter the SPEED-CHANGE state, and reconfigure the parameters of the transmission link to meet the transmission rate requirements of the target data. If the data transmission rate supported by the current transmission link configuration is consistent with the transmission rate of the target data, the sending port directly enters the TRANS1 state under the trigger of the trigger condition (high-speed data control code stream) to perform high-speed data transmission. Similarly, the receiving port also performs corresponding operations.
另外,在数据传输过程中,当数据传输的速率发生改变,控制传输链路进入到低功耗状态后,切换至速率切换状态;将传输链路两端端口的参数切换为传输链路两端端口在按 照改变后的数据传输速率进行数据传输时匹配的参数;并在完成切换后,发送端口以及接收端口均进入到低功耗状态。In addition, in the process of data transmission, when the data transmission rate changes, after the control transmission link enters the low power consumption state, it switches to the rate switching state; the parameters of the ports at both ends of the transmission link are switched to the two ends of the transmission link. The parameters matched when the port performs data transmission according to the changed data transmission rate; and after the switching is completed, both the sending port and the receiving port enter a low power consumption state.
具体的,如果传输的数据所需的传输速率与当前传输链路上的传输速率不同,可以改变传输链路的数据传输速率。如可通过上层控制或传输链路上的控制码流触发发送端口和接收端口退出TRANS1状态进入LOW-POWER0状态,再触发发送端口和接收端口进入SPEED-CHANGE状态;在SPEED-CHANGE状态下,对发送端口和接收端口的数据参数进行配置,即将传输链路两端端口的参数切换为匹配改变速率后的数据对应的传输速率的参数,以使得适应改变后的速率要求。上述在数据传输过程中的传输速率切换,与进入高速数据传输状态前的传输速率切换相同,在此不再详细赘述。Specifically, if the required transmission rate of the transmitted data is different from the transmission rate on the current transmission link, the data transmission rate of the transmission link can be changed. For example, the sending port and the receiving port can be triggered to exit the TRANS1 state and enter the LOW-POWER0 state through the upper layer control or the control code stream on the transmission link, and then trigger the sending port and the receiving port to enter the SPEED-CHANGE state; in the SPEED-CHANGE state, to The data parameters of the sending port and the receiving port are configured, that is, the parameters of the ports at both ends of the transmission link are switched to the parameters matching the transmission rate corresponding to the data after the changed rate, so as to adapt to the changed rate requirement. The above-mentioned transmission rate switching during the data transmission process is the same as the transmission rate switching before entering the high-speed data transmission state, and details are not described herein again.
图6示出了在低速数据传输下工作模式管理流程。可通过低速数据控制码流触发传输链路进入低速数据传输状态,并进行低速数据传输;在完成低速数据传输后,控制传输链路进入低功耗状态。FIG. 6 shows the working mode management flow under low-speed data transmission. The low-speed data control code stream can trigger the transmission link to enter the low-speed data transmission state, and perform low-speed data transmission; after completing the low-speed data transmission, control the transmission link to enter the low-speed data transmission state.
传输链路在进行低速数据传输前处于LOW-POWER0状态,在进入TRANS0状态前,发送端口和接收端口需要判断当前传输链路配置支持的数据传输速率与目标数据的传输速率是否一致。如不一致,传输链路需要进入SPEED-CHANGE状态,重新配置传输链路参数以满足目标数据的传输速率要求。如果当前传输链路配置支持的数据传输速率与目标数据的传输速率一致,则发送端口和接收端口在触发条件下直接进入TRANS0状态,进行低速数据传输。其过程与上述图5中的相关描述相类似,在此不再赘述。The transmission link is in the LOW-POWER0 state before low-speed data transmission. Before entering the TRANS0 state, the sending port and the receiving port need to determine whether the data transmission rate supported by the current transmission link configuration is consistent with the target data transmission rate. If inconsistent, the transmission link needs to enter the SPEED-CHANGE state, and reconfigure the transmission link parameters to meet the transmission rate requirements of the target data. If the data transmission rate supported by the current transmission link configuration is consistent with the transmission rate of the target data, the sending port and the receiving port directly enter the TRANS0 state under the trigger condition to perform low-speed data transmission. The process is similar to the related description in FIG. 5 above, and will not be repeated here.
在数据传输过程中,如果需要改变当前传输速率,可以改变传输链路的数据传输速率,通过上层控制或传输链路上的控制码流触发发送端口和接收端口退出TRANS0状态进入LOW-POWER0状态,再触发发送端口和接收端口进入SPEED-CHANGE状态;在SPEED-CHANGE状态下,对发送端口和接收端口的数据参数进行配置,即将传输链路两端端口的参数切换为匹配改变速率后的数据对应的传输速率的参数,以使得适应改变后的速率要求。其过程与上述图5中的相关描述相类似,在此不再赘述。In the process of data transmission, if you need to change the current transmission rate, you can change the data transmission rate of the transmission link, and trigger the sending port and the receiving port to exit the TRANS0 state and enter the LOW-POWER0 state through the upper layer control or the control code stream on the transmission link. Then trigger the sending port and the receiving port to enter the SPEED-CHANGE state; in the SPEED-CHANGE state, configure the data parameters of the sending port and the receiving port, that is, switch the parameters of the ports at both ends of the transmission link to match the data corresponding to the changed rate. The parameters of the transmission rate, so as to adapt to the changed rate requirements. The process is similar to the related description in FIG. 5 above, and will not be repeated here.
在数据传输过程中,如果出现数据传输错误时,可控制传输链路进入到修复状态。如在数据传输过程中如果发生错误,可以通过上层控制或传输链路上的控制码流触发传输链路退出TRANS0状态直接进入RECOVERY状态,并在RECOVERY状态进行传输链路修复.在具体修复过程,可参考图5中的相关描述,在此不再赘述。During data transmission, if a data transmission error occurs, the transmission link can be controlled to enter a repair state. For example, if an error occurs during data transmission, the upper layer control or the control code stream on the transmission link can trigger the transmission link to exit the TRANS0 state and directly enter the RECOVERY state, and the transmission link is repaired in the RECOVERY state. In the specific repair process, Reference may be made to the related description in FIG. 5 , which will not be repeated here.
如果数据传输完成,则发送端口和接收端口退出TRANS0状态,进入LOW-POWER0状态,等待进入下一状态的触发条件。If the data transmission is completed, the sending port and the receiving port exit the TRANS0 state, enter the LOW-POWER0 state, and wait for the trigger condition to enter the next state.
图7示出了在超低功耗下的工作模式管理流程。在不进行数据传输时,传输链路由低功耗状态进入超低功耗状态。FIG. 7 shows the working mode management flow under ultra-low power consumption. When data transmission is not performed, the transmission link enters an ultra-low power consumption state from a low power consumption state.
具体的,发送端口和接收端口在进入LOW-POWER1状态前处于LOW-POWER0状态,通过上层控制或传输链路上的控制码流触发发送端口和接收端口退出LOW-POWER0状态进入LOW-POWER1状态。当发送端口和接收端口需要退出LOW-POWER1状态时,通过上层控制或传输链路上的控制码流触发发送端口退出LOW-POWER1状态进入LOW-POWER0状态。Specifically, the sending port and the receiving port are in the LOW-POWER0 state before entering the LOW-POWER1 state, and the sending port and the receiving port are triggered to exit the LOW-POWER0 state and enter the LOW-POWER1 state through the upper layer control or the control code stream on the transmission link. When the sending port and the receiving port need to exit the LOW-POWER1 state, the sending port is triggered to exit the LOW-POWER1 state and enter the LOW-POWER0 state through the upper layer control or the control code stream on the transmission link.
为方便理解本申请实施例提供的上述通信方法,结合图8所示的通信系统,对上述几种工作状态进行说明。In order to facilitate the understanding of the above-mentioned communication methods provided by the embodiments of the present application, the above-mentioned several working states are described with reference to the communication system shown in FIG. 8 .
图8示出的通信系统包括第一芯片100和第二芯片200,其中,第一芯片100和第二 芯片200均为另一芯片的对端芯片,第一芯片100和第二芯片200具有相似的组成结构。The communication system shown in FIG. 8 includes a first chip 100 and a second chip 200, wherein both the first chip 100 and the second chip 200 are opposite chips of another chip, and the first chip 100 and the second chip 200 have similar composition structure.
以第一芯片100为例,第一芯片100包含协议层和物理层结构。其中,协议层负责发送上层数据信息和控制信息,接收来自其他同级的芯片或者上层芯片的数据信息和控制信息,并且可以对物理层进行控制。第一芯片100的物理层包含发送模块、接收模块和第一控制器105。其中,发送模块用于发送数据,接收模块用于接收数据,第一控制器105用于控制发送模块和接收模块。Taking the first chip 100 as an example, the first chip 100 includes a protocol layer and a physical layer structure. Among them, the protocol layer is responsible for sending upper-layer data information and control information, receiving data information and control information from other chips of the same level or upper-layer chips, and can control the physical layer. The physical layer of the first chip 100 includes a sending module, a receiving module and a first controller 105 . The sending module is used to send data, the receiving module is used to receive data, and the first controller 105 is used to control the sending module and the receiving module.
发送模块包括第一数据处理模块102和第一发送端口101,第一数据处理模块102对来自协议层的数据信息和控制信息进行如编码、扰码、串行处理等操作将数据信息处理成数据包,再通过第一发送端口101将数据包发送出去。The sending module includes a first data processing module 102 and a first sending port 101. The first data processing module 102 performs operations such as encoding, scrambling, and serial processing on the data information and control information from the protocol layer to process the data information into data. packet, and then send the data packet out through the first sending port 101 .
接收模块包括第二数据处理模块104和第二接收端口103,第二接收端口103接收来自传输链路上的数据包,第二数据处理模块104对数据包进行如解编码、解扰码、解串行处理等操作,再将数据信息和控制信息传送给协议层,也可以根据控制信息对第一控制器105间接控制。The receiving module includes a second data processing module 104 and a second receiving port 103, the second receiving port 103 receives data packets from the transmission link, and the second data processing module 104 performs decoding, descrambling, and decoding on the data packets. Serial processing and other operations, and then transmit the data information and control information to the protocol layer, or indirectly control the first controller 105 according to the control information.
第一控制器105受协议层的直接控制,也可以接受来自接收模块的间接控制,实现对发送模块和接收模块的管理。第一控制器105可通过对发送模块和接收模块的管理实现对数据发送和接收的管理。The first controller 105 is directly controlled by the protocol layer, and can also be indirectly controlled from the receiving module, so as to manage the sending module and the receiving module. The first controller 105 can manage the sending and receiving of data by managing the sending module and the receiving module.
第二芯片200的结构与第一芯片100的结构相类似,第二芯片200中的第二发送端口201、第三数据处理模块202、第一接收端口203、第四数据处理模块204和第二控制器205可参考第一芯片100中的相同类型结构的相关描述。第二芯片200的第二发送端口201与第一芯片100的第二接收端口103连接组成传输链路,第二芯片200的第一接收端口203与第一芯片100的第一发送端口101组成传输链路。在建立传输链路时,上述两个传输链路同步进行建立。且在第一发送端口101和第一接收端口203建立传输链路时,第一接收端口的端口信息可通过第二发送端口201发送给第二接收端口103,以实现第一接收端口203与第一发送端口101的端口信息交互。同理,第二发送端口201与第二接收端口103建立传输链路时,可通过第一发送端口101将第二接收端口103的端口信息发送给第一接收端口203。The structure of the second chip 200 is similar to that of the first chip 100 . The second sending port 201 , the third data processing module 202 , the first receiving port 203 , the fourth data processing module 204 and the second The controller 205 may refer to the related description of the same type of structure in the first chip 100 . The second sending port 201 of the second chip 200 is connected with the second receiving port 103 of the first chip 100 to form a transmission link, and the first receiving port 203 of the second chip 200 and the first sending port 101 of the first chip 100 form a transmission link link. When establishing a transmission link, the above two transmission links are established synchronously. And when the first sending port 101 and the first receiving port 203 establish a transmission link, the port information of the first receiving port can be sent to the second receiving port 103 through the second sending port 201, so as to realize the connection between the first receiving port 203 and the second receiving port 103. A port information exchange of the sending port 101. Similarly, when the second sending port 201 establishes a transmission link with the second receiving port 103 , the port information of the second receiving port 103 may be sent to the first receiving port 203 through the first sending port 101 .
本申请实施例提供的通信系统通过对端口工作模式状态机的管理实现对通信系统的传输链路进行管理。通信系统的第一芯片100、第二芯片200之间的传输链路可根据上述描述的工作状态进行上电操作、高速数据传输操作、低速数据传输操作和超低功耗操作。The communication system provided by the embodiment of the present application realizes the management of the transmission link of the communication system by managing the port working mode state machine. The transmission link between the first chip 100 and the second chip 200 of the communication system can perform power-on operation, high-speed data transmission operation, low-speed data transmission operation and ultra-low power consumption operation according to the above-described working states.
在通信系统中,第一芯片100的LINK-STARTUP状态、SPEED-CHANGE状态和RECOVERY状态流程如下:In the communication system, the flow of the LINK-STARTUP state, the SPEED-CHANGE state and the RECOVERY state of the first chip 100 is as follows:
首先说明,下文中的发送端口指代的是第一芯片100中的第一发送端口101,接收端口指代的是第二芯片200的第一接收端口203。First of all, it should be noted that the sending port hereinafter refers to the first sending port 101 in the first chip 100 , and the receiving port refers to the first receiving port 203 of the second chip 200 .
图9示出了在通信系统架构下的端口在LINK-STARTUP状态的工作流程。第一芯片和第二芯片握手,建立传输链路,并交换传输链路两端端口(第一发送端口和第一接收端口,以及第二发送端口和第一接收端口)的基础信息。FIG. 9 shows the workflow of the port in the LINK-STARTUP state under the communication system architecture. The first chip and the second chip shake hands, establish a transmission link, and exchange basic information of ports at both ends of the transmission link (the first sending port and the first receiving port, and the second sending port and the first receiving port).
具体的,第一发送端口初始化结束后,第一芯片的协议层控制第一发送端口进入LINK-STARTUP状态,第一发送端口在传输链路上发送LINK-STARTUP控制码流到第一接收端口,LINK-STARTUP控制码流作为触发第一接收端口进入LINK-STARTUP的条件。第二芯片的第二控制器根据接收的LINK-STARTUP控制码流控制第一接收端口进入到 LINK-STARTUP状态。同理,第二芯片的第二发送端口向第一芯片的第二接收端口发送LINK-STARTUP控制码流,第一芯片的第一控制器根据接收的LINK-STARTUP控制码流控制第二接收端口进入到LINK-STARTUP状态。Specifically, after the initialization of the first sending port is completed, the protocol layer of the first chip controls the first sending port to enter the LINK-STARTUP state, and the first sending port sends the LINK-STARTUP control code stream on the transmission link to the first receiving port, The LINK-STARTUP control code stream is used as a condition for triggering the first receiving port to enter the LINK-STARTUP. The second controller of the second chip controls the first receiving port to enter the LINK-STARTUP state according to the received LINK-STARTUP control code stream. Similarly, the second sending port of the second chip sends the LINK-STARTUP control code stream to the second receiving port of the first chip, and the first controller of the first chip controls the second receiving port according to the received LINK-STARTUP control code stream. Enter the LINK-STARTUP state.
当第一发送端口进入LINK-STARTUP状态,第一发送端口通过在传输链路上发送建链相关码流,尝试与第一接收端口建立链接并确认传输链路的状态;第二发送端口通过在传输链路上发送建链相关码流,尝试与第二接收端口建立链接并确认传输链路的状态。建链相关码流包括传输链路建立可靠链接的判断信息和端口需要交换的基础信息。When the first sending port enters the LINK-STARTUP state, the first sending port attempts to establish a link with the first receiving port and confirms the status of the transmission link by sending a link-building related code stream on the transmission link; Send a link establishment related code stream on the transmission link, try to establish a link with the second receiving port and confirm the status of the transmission link. The link establishment related code stream includes the judgment information for establishing a reliable link of the transmission link and the basic information that the ports need to exchange.
第一控制器需要根据第一发送端口和第二接收端口发送和接收的建链相关码流判断是否与对端端口建立了可靠链接并对交换的基础信息及时刷新。如果判断端口未建立可靠链接,则通知协议层建链失败并返回PHY-INIT状态;如果判断第一发送端口和第二接收端口与对端端口建立了可靠链接,说明建链成功,LINK-STARTUP状态结束,等待进入下一状态的触发条件。同理,第二控制器也需要执行与第一控制器相同的操作,在此不再赘述。The first controller needs to determine whether a reliable link is established with the opposite port according to the link establishment related code streams sent and received by the first sending port and the second receiving port, and refresh the basic information exchanged in time. If it is judged that the port has not established a reliable link, it will notify the protocol layer that the link building fails and return to the PHY-INIT state; if it is judged that the first sending port and the second receiving port have established a reliable link with the opposite port, it means that the link has been established successfully and LINK-STARTUP The state ends, waiting for the trigger condition to enter the next state. Similarly, the second controller also needs to perform the same operations as the first controller, and details are not repeated here.
在建立传输链路后,可通过触发条件使得传输链路进入低功耗状态,等待下一状态触发条件。After the transmission link is established, the transmission link may enter a low power consumption state through a trigger condition, and wait for the next state trigger condition.
图10示出了在通信系统架构下的端口在SPEED-CHANGE状态的工作流程。第一发送端口和第一接收端口在进入SPEED-CHANGE状态前处于LOW-POWER0状态,第一芯片的协议层发送SPEED-CHANGE请求后,第一发送端口进入SPEED-CHANGE状态并在第一发送端口和第一接收端口之间的传输链路上发送SPEED-CHANGE控制码流(也即向第一接收端口发送进入到速率切换状态的控制码流),SPEED-CHANGE控制码流作为触发对端的物理层端口(第一接收端口)进入SPEED-CHANGE状态的条件。第二控制器根据第一接收端口接收的SPEED-CHANGE控制码流控制第一接收端口进入到SPEED-CHANGE状态。FIG. 10 shows the workflow of the port in the SPEED-CHANGE state under the communication system architecture. The first sending port and the first receiving port are in the LOW-POWER0 state before entering the SPEED-CHANGE state. After the protocol layer of the first chip sends the SPEED-CHANGE request, the first sending port enters the SPEED-CHANGE state and is in the first sending port. The SPEED-CHANGE control code stream is sent on the transmission link with the first receiving port (that is, the control code stream entering the rate switching state is sent to the first receiving port), and the SPEED-CHANGE control code stream is used as the physical The condition for the layer port (the first receiving port) to enter the SPEED-CHANGE state. The second controller controls the first receiving port to enter the SPEED-CHANGE state according to the SPEED-CHANGE control code stream received by the first receiving port.
进入SPEED-CHANGE状态后,第一发送端口根据协议层请求或SPEED-CHANGE控制码流中的目标数据的传输速率(目标速率),将当前配置参数改为与目标速率匹配的配置参数。第一发送端口参数配置完成后,将以目标速率向第一接收端口发送切速相关码流以尝试以目标速率进行通信。切速相关码流包括但不限于链路切速成功的判断信息。After entering the SPEED-CHANGE state, the first sending port changes the current configuration parameters to the configuration parameters matching the target rate according to the request of the protocol layer or the transmission rate (target rate) of the target data in the SPEED-CHANGE control code stream. After the configuration of the parameters of the first sending port is completed, the speed-cutting related code stream will be sent to the first receiving port at the target rate to try to communicate at the target rate. The rate-cutting related code stream includes but is not limited to the judgment information of the link rate-cutting success.
在完成数据传输速率改变,对传输链路的端口匹配后,发送码流确认传输链路与目标数据对应的匹配参数。以第一芯片为例,第一发送端口和第二接收端口需要根据发送和接收的切速相关码流判断端口是否在新速率下与第一接收端口和第二发送端口是否通信成功。如果判断端口未能通信,则通知协议层切速失败并返回LOW-POWER0状态;如果判断可以在目标数据的传输速率下通信,说明切速成功,SPEED-CHANGE状态结束,等待进入下一状态的触发条件。由上述描述可看出,在数据传输链路改变参数配置后增加握手过程,对切速的数据传输准确性进行初步判断,提高传输链路健壮性。After the data transmission rate change is completed and the ports of the transmission link are matched, a code stream is sent to confirm the matching parameters of the transmission link and the target data. Taking the first chip as an example, the first sending port and the second receiving port need to determine whether the port successfully communicates with the first receiving port and the second sending port at the new rate according to the rate-cutting related code streams sent and received. If it is judged that the port fails to communicate, it will notify the protocol layer that the speed cut fails and return to the LOW-POWER0 state; if it is judged that the communication can be performed at the transmission rate of the target data, it means that the speed cut is successful, the SPEED-CHANGE state is over, and it is waiting to enter the next state. Triggering conditions. It can be seen from the above description that a handshake process is added after the parameter configuration of the data transmission link is changed, and a preliminary judgment is made on the accuracy of the data transmission at the cutting speed, so as to improve the robustness of the transmission link.
上述的SPEED-CHANGE状态应用在两种场景下。一种状态为:在进行数据传输前,如图5和图6所示的在进入低速数据传输状态或者高速数据传输状态前,对传输链路的两端端口的参数进行修改。The above SPEED-CHANGE state is applied in two scenarios. One state is: before data transmission, before entering the low-speed data transmission state or the high-speed data transmission state as shown in FIG. 5 and FIG. 6 , the parameters of the ports at both ends of the transmission link are modified.
示例性的,在进入SPEED-CHANGE状态前,第一芯片的协议层或第一控制器检测第一发送端口当前的参数,并判断第一发送端口当前的参数与第一发送端口在按照目标数据传输速率发送数据时匹配的参数是否一致。同时,第二芯片的协议层或第二控制器检测第二 接收端口当前的参数,判断第二接收端口当前的参数与第二接收端口在按照目标数据传输速率接收数据时匹配的参数是否一致,即判断传输链路两端端口当前的参数与传输链路两端端口在按照目标数据传输速率收发数据时匹配的参数是否一致。Exemplarily, before entering the SPEED-CHANGE state, the protocol layer of the first chip or the first controller detects the current parameters of the first sending port, and determines that the current parameters of the first sending port and the first sending port are in accordance with the target data. Whether the parameters matched when sending data at the transmission rate are consistent. At the same time, the protocol layer of the second chip or the second controller detects the current parameters of the second receiving port, and determines whether the current parameters of the second receiving port are consistent with the parameters matched by the second receiving port when receiving data according to the target data transmission rate, That is, it is judged whether the current parameters of the ports at both ends of the transmission link are consistent with the parameters matched when the ports at both ends of the transmission link send and receive data according to the target data transmission rate.
在第一发送端口和第一接收端口当前的参数与它们在目标数据传输速率时匹配的参数不一致时,第一芯片的协议层或第一控制器控制第一发送端口进入SPEED-CHANGE状态。在具体控制时,第一芯片的协议层或第一控制器控制第一发送端口进入到低功耗状态,并在进入到低功耗状态后,控制第一发送端口进入到SPEED-CHANGE状态。且在上述切换过程中,第一芯片的协议层或第一控制器控制第一发送端口向第二芯片的第一接收端口发送相关的切换控制码流,第二芯片的协议层或第二控制器通过接收的相关的控制码流控制第一接收端口对应进入到低功耗状态,并在进入到低功耗状态后进入到SPEED-CHANGE状态。同理,第一芯片的第二接收端口和第二芯片的第二发送端口也执行上述操作。When the current parameters of the first sending port and the first receiving port are inconsistent with their matching parameters at the target data transmission rate, the protocol layer of the first chip or the first controller controls the first sending port to enter the SPEED-CHANGE state. During specific control, the protocol layer of the first chip or the first controller controls the first sending port to enter the low power consumption state, and after entering the low power consumption state, controls the first sending port to enter the SPEED-CHANGE state. And in the above switching process, the protocol layer or the first controller of the first chip controls the first sending port to send the relevant switching control code stream to the first receiving port of the second chip, and the protocol layer or the second controller of the second chip sends the relevant switching control code stream. The controller controls the first receiving port to correspondingly enter the low power consumption state through the received related control code stream, and enters the SPEED-CHANGE state after entering the low power consumption state. Similarly, the second receiving port of the first chip and the second sending port of the second chip also perform the above operations.
在SPEED-CHANGE状态,在SPEED-CHANGE状态,按照上述图10示例的流程,第一芯片的协议层或第一控制器将第一发送端口当前的参数切换为第一发送端口在按照目标数据传输速率发送数据时匹配的参数。同时,第二芯片的协议层或第二控制器将第一接收端口的参数切换为第一接收端口在按照目标数据传输速率接收数据时匹配的参数;并在完成切换后,第一发送端口以及第一接收端口均进入到低功耗状态。并在完成匹配后进入到低功耗状态,等待进入目标数据传输对应的高速数据传输状态或低速数据传输状态。另外,在完成传输链路的端口匹配后,发送码流确认传输链路与目标数据对应的匹配参数,以提高传输链路的健壮性。In the SPEED-CHANGE state, in the SPEED-CHANGE state, according to the flow of the example in FIG. 10, the protocol layer of the first chip or the first controller switches the current parameters of the first sending port to the first sending port and transmits data according to the target data The parameter to match when sending data at the rate. At the same time, the protocol layer of the second chip or the second controller switches the parameters of the first receiving port to the parameters matched by the first receiving port when receiving data according to the target data transmission rate; and after the switching is completed, the first sending port and The first receiving ports all enter into a low power consumption state. And after the matching is completed, it enters a low power consumption state, and waits to enter a high-speed data transmission state or a low-speed data transmission state corresponding to the target data transmission. In addition, after the port matching of the transmission link is completed, a code stream is sent to confirm the matching parameters corresponding to the transmission link and the target data, so as to improve the robustness of the transmission link.
另外,在第一发送端口当前的参数与第一发送端口在按照目标数据传输速率发送数据时匹配的参数一致,且第一接收端口当前的参数与第一接收端口在按照目标数据接收速率接收数据时匹配的参数一致时,第一芯片的第一控制器或协议层控制第一发送端口由低功耗状态切换到与目标数据的传输速率匹配的高速数据传输状态或低速数据传输状态。第二芯片的第二控制器或协议层控制第一接收端口由低功耗状态切换到与目标数据的传输速率匹配的高速数据传输状态或低速数据传输状态。即控制传输链路由低功耗状态切换到与目标数据的传输速率匹配的高速数据传输状态或低速数据传输状态。In addition, the current parameters of the first sending port are consistent with the parameters that the first sending port matches when sending data according to the target data transmission rate, and the current parameters of the first receiving port and the first receiving port are receiving data according to the target data receiving rate. When the matched parameters are consistent, the first controller or the protocol layer of the first chip controls the first sending port to switch from a low power consumption state to a high-speed data transmission state or a low-speed data transmission state matching the transmission rate of the target data. The second controller or protocol layer of the second chip controls the first receiving port to switch from a low power consumption state to a high-speed data transmission state or a low-speed data transmission state matching the transmission rate of the target data. That is, the control transmission link is switched from a low power consumption state to a high-speed data transmission state or a low-speed data transmission state that matches the transmission rate of the target data.
另一种涉及到SPEED-CHANGE状态为传输链路在数据传输中,当数据传输的速率发生改变时,需要进行传输速率的切换。如在低速数据传输时,或者高速数据传输时,当出现数据传输的速率进行改变时,需要将传输链路的传输速率调整为与改变速率后的数据对应的传输速率。具体的,第一芯片的协议层或第一控制器控制第一发送端口进入SPEED-CHANGE状态。在具体控制时,第一芯片的协议层或第一控制器控制第一发送端口进入到低功耗状态,并在进入到低功耗状态后,控制第一发送端口进入到SPEED-CHANGE状态。且在上述切换过程中,第一芯片的协议层或第一控制器控制第一发送端口向第二芯片的第一接收端口发送相关的切换控制码流,第二芯片的协议层或第二控制器通过接收的相关的控制码流控制第一接收端口对应进入到低功耗状态,并在进入到低功耗状态后进入到SPEED-CHANGE状态。同理,第一芯片的第一接收端口和第二芯片的第二发送端口也执行上述操作。The other involves the SPEED-CHANGE state that the transmission link is in data transmission, and when the data transmission rate changes, the transmission rate needs to be switched. For example, in the case of low-speed data transmission or high-speed data transmission, when the data transmission rate is changed, the transmission rate of the transmission link needs to be adjusted to the transmission rate corresponding to the changed rate data. Specifically, the protocol layer of the first chip or the first controller controls the first sending port to enter the SPEED-CHANGE state. During specific control, the protocol layer of the first chip or the first controller controls the first sending port to enter the low power consumption state, and after entering the low power consumption state, controls the first sending port to enter the SPEED-CHANGE state. And in the above switching process, the protocol layer or the first controller of the first chip controls the first sending port to send the relevant switching control code stream to the first receiving port of the second chip, and the protocol layer or the second controller of the second chip sends the relevant switching control code stream. The controller controls the first receiving port to correspondingly enter the low power consumption state through the received related control code stream, and enters the SPEED-CHANGE state after entering the low power consumption state. Similarly, the first receiving port of the first chip and the second sending port of the second chip also perform the above operations.
在切换至SPEED-CHANGE状态。在SPEED-CHANGE状态,按照上述图10示例的流程,将传输链路两端端口的参数切换为匹配目标数据的传输速率的参数;并在完成匹配 后进入到低功耗状态,等待进入目标数据传输对应的高速数据传输状态或低速数据传输状态。另外,在完成传输链路的端口匹配后,发送码流确认传输链路与目标数据对应的匹配参数,以提高传输链路的健壮性。Switch to SPEED-CHANGE state. In the SPEED-CHANGE state, according to the flow shown in Figure 10 above, the parameters of the ports at both ends of the transmission link are switched to parameters that match the transmission rate of the target data; and after the matching is completed, it enters the low-power state, waiting for the target data to enter. The transmission corresponds to the high-speed data transmission state or the low-speed data transmission state. In addition, after the port matching of the transmission link is completed, a code stream is sent to confirm the matching parameters corresponding to the transmission link and the target data, so as to improve the robustness of the transmission link.
图11示出了在通信系统架构下的端口在RECOVERY状态的工作流程。在第一发送端口以及第一接收端口均处于低功耗状态且接收到数据传输控制码流后,第一发送端口和第一接收端口均进入数据传输状态进行数据传输,数据传输控制码流为高速数据控制码流或低速数据控制码流,其中,高速是指数据传输速率为Gbps量级的速率,低速是指数据传输速率为Mbps的速率。在数据传输控制码流为高速数据传输控制码流时,第一发送端口和第一接收端口均进入高速数据传输状态进行高速数据传输。在进行高速数据传输时,可能会出现数据传输错误。在出现数据传输错误时,需要对传输链路进行修复。具体修复过程如下:FIG. 11 shows the workflow of the port in the RECOVERY state under the communication system architecture. After both the first sending port and the first receiving port are in a low power consumption state and receive the data transmission control code stream, both the first sending port and the first receiving port enter the data transmission state for data transmission, and the data transmission control code stream is A high-speed data control code stream or a low-speed data control code stream, wherein high speed refers to a data transmission rate of the order of Gbps, and low speed refers to a data transmission rate of Mbps. When the data transmission control code stream is a high-speed data transmission control code stream, both the first sending port and the first receiving port enter a high-speed data transmission state to perform high-speed data transmission. During high-speed data transfer, data transfer errors may occur. When data transmission errors occur, the transmission link needs to be repaired. The specific repair process is as follows:
在数据传输过程中如果发生错误,可以通过第一芯片的协议层上的控制码流触发传输链路退出TRANS1状态直接进入RECOVERY状态,并在RECOVERY状态进行传输链路修复。If an error occurs in the data transmission process, the control stream on the protocol layer of the first chip can trigger the transmission link to exit the TRANS1 state and directly enter the RECOVERY state, and the transmission link is repaired in the RECOVERY state.
在上述过程中,在检测到高速数据传输错误时,第一芯片的第一控制器或协议层控制第一发送端口进入到修复状态,并向第二芯片发送修复控制码流(RECOVER控制码流),以使第二芯片的协议层或第二控制器根据修复控制码流控制第一接收端口进入到修复状态。从而实现第一发送端口和第一接收端口均进入到修复状态。In the above process, when a high-speed data transmission error is detected, the first controller or the protocol layer of the first chip controls the first sending port to enter the repair state, and sends the repair control code stream (RECOVER control code stream) to the second chip. ), so that the protocol layer of the second chip or the second controller controls the first receiving port to enter the repair state according to the repair control code flow. In this way, both the first sending port and the first receiving port enter the repair state.
进入RECOVERY状态后,第一接收端口根据在RECOVERY控制码流中说明的数据传输链路发生错误的类型,发送修复相关码流。修复相关码流可以包括但不限于接收机位同步码流、接收机均衡训练码流和传输链路修复成功的判断信息。After entering the RECOVERY state, the first receiving port sends a repair related code stream according to the type of error occurred in the data transmission link described in the RECOVERY control code stream. The repair-related code stream may include, but is not limited to, the receiver bit synchronization code stream, the receiver equalization training code stream, and the judging information that the transmission link is repaired successfully.
在RECOVERY状态中,第一芯片的第一控制器或协议层对第一发送端口进行数据修复(重置reset和修复repair),第二芯片的第二控制器或协议层对第一接收端口进行修改,将第一接收端口的参数修复到第一接收端口处于高速数据传输状态时的参数。在此状态下的第一发送端口和第一接收端口可以根据不同的传输错误情况采取相应的修复措施,即仅修复在数据传输的状态下对应的匹配参数,不涉及传输链路握手建立时的基础配置。以重置为例,第一芯片的控制器或协议层将发送端口的参数重置为与高速数据传输状态匹配的参数。同理,第二芯片的协议层或控制器根据第一芯片发送的相关码流将接收端口的参数重置为与高速数据传输状态匹配的参数。In the RECOVERY state, the first controller or protocol layer of the first chip performs data recovery (reset and repair) on the first sending port, and the second controller or protocol layer of the second chip performs data recovery on the first receiving port The modification is to restore the parameters of the first receiving port to the parameters when the first receiving port is in a high-speed data transmission state. In this state, the first sending port and the first receiving port can take corresponding repair measures according to different transmission error conditions, that is, only repair the corresponding matching parameters in the state of data transmission, not involving the establishment of the transmission link handshake. Basic configuration. Taking reset as an example, the controller or the protocol layer of the first chip resets the parameters of the sending port to the parameters matching the high-speed data transmission state. Similarly, the protocol layer or controller of the second chip resets the parameters of the receiving port to the parameters matching the high-speed data transmission state according to the relevant code stream sent by the first chip.
在完成传输链路修复后,确认修复后传输链路两端端口的参数为实现高速数据传输状态时的匹配参数。发送端口可以根据发送和接收的修复相关码流判断端口是否修复成功。如果判断发送端口未修复成功,则通知协议层修复失败并返回LOW-POWER0状态;如果判断端口修复成功,RECOVERY状态结束,等待进入下一状态的触发条件。由上述描述可看出,在数据传输链路改变参数配置后增加握手过程,对修复后的数据传输准确性进行初步判断,提高传输链路健壮性。After the repair of the transmission link is completed, confirm that the parameters of the ports at both ends of the repaired transmission link are the matching parameters when the high-speed data transmission state is realized. The sending port can judge whether the port is repaired successfully according to the repair-related code streams sent and received. If it is judged that the sending port is not repaired successfully, it will notify the protocol layer that the repair fails and return to the LOW-POWER0 state; if it is judged that the port is repaired successfully, the RECOVERY state ends, waiting for the trigger condition to enter the next state. It can be seen from the above description that a handshake process is added after the parameter configuration of the data transmission link is changed, and a preliminary judgment is made on the accuracy of the repaired data transmission to improve the robustness of the transmission link.
在完成传输链路修复后,控制传输链路进入到低功耗状态,以等待下一触发条件。After completing the repair of the transmission link, the transmission link is controlled to enter a low power consumption state to wait for the next trigger condition.
本申请实施例提供的通信方法,还包括TRANS1状态,具体的可参考图5的相关描述。在传输链路完成高速数据传输后,控制传输链路进入到低功耗状态,等待下一状态触发条件。The communication method provided by the embodiment of the present application further includes the TRANS1 state, and for details, reference may be made to the related description in FIG. 5 . After the transmission link completes high-speed data transmission, the transmission link is controlled to enter a low power consumption state and wait for the next state trigger condition.
另外,针对TRANS1状态,可通过低速数据控制码流触发传输链路进入低速数据传输 状态,并进行低速数据传输;在完成低速数据传输后,控制传输链路进入低功耗状态。In addition, for the TRANS1 state, the low-speed data control stream can trigger the transmission link to enter the low-speed data transmission state, and perform low-speed data transmission; after completing the low-speed data transmission, control the transmission link to enter the low-power state.
针对LOW-POWER1状态,在不进行数据传输时,传输链路由低功耗状态进入超低功耗状态。For the LOW-POWER1 state, when data transmission is not performed, the transmission link enters the ultra-low power consumption state from the low power consumption state.
通过上述描述可看出,无论传输链路处于什么工作状态,在完成后,均跳入到低功耗状态,且通过低功耗状态提高状态机各状态间的互通性,合理安排传输链路配置过程,使任意不同状态间的转换最多仅需跳转2次。It can be seen from the above description that no matter what the working state of the transmission link is, after completion, it jumps into the low-power state, and the low-power state improves the interoperability between the states of the state machine and reasonably arranges the transmission link The configuration process makes the transition between any different states only need to jump two times at most.
在本申请实施例中的通信方法中,可仅包含图10所述的工作流程,也可仅包含图11所示的工作流程,或者还可以包括图10和图11所示的工作流程的组合。The communication method in this embodiment of the present application may include only the workflow shown in FIG. 10 , or only the workflow shown in FIG. 11 , or may also include a combination of the workflows shown in FIG. 10 and FIG. 11 . .
本申请实施例还提供了一种芯片,该芯片可为上述的第一芯片和第二芯片。具体可参考图8中所示的通信系统中的第一芯片或第二芯片。The embodiment of the present application further provides a chip, and the chip can be the above-mentioned first chip and second chip. For details, reference may be made to the first chip or the second chip in the communication system shown in FIG. 8 .
在芯片为第一芯片100时,且第一芯片100主要实现图11所示的工作流程时,第一芯片100包括第一发送端口101和第一控制器105;第一控制器105用于在高速数据传输状态内检测到数据传输错误时,控制第一发送端口101进入到修复状态;并向对端芯片(第二芯片200)发送控制对端芯片的第一接收端口203进入到修复状态的修复控制码流;第一控制器105还用于在修复状态,对第一发送端口101进行数据修复,将第一发送端口101的参数修复到第一发送端口101处于高速数据传输状态时的参数;第一控制器105还用于在完成对第一发送端口101的数据修复后,控制第一发送端口101进入到低功耗状态或再次进入到高速数据传输状态;其中,在高速数据传输状态下,数据的传输速率大于或等于1Gbps。在一个具体的可实施方案中,第一控制器105还用于在检测到数据传输错误之后以及在控制第一发送端口101进入到修复状态之前,控制第一发送端口101进入到低功耗状态。方便进行状态切换。When the chip is the first chip 100 and the first chip 100 mainly implements the workflow shown in FIG. 11 , the first chip 100 includes a first sending port 101 and a first controller 105 ; the first controller 105 is used for When a data transmission error is detected in the high-speed data transmission state, the first transmission port 101 is controlled to enter the repair state; Repair the control code stream; the first controller 105 is further configured to perform data repair on the first sending port 101 in the repair state, and repair the parameters of the first sending port 101 to the parameters when the first sending port 101 is in the high-speed data transmission state ; The first controller 105 is further configured to control the first transmission port 101 to enter a low power consumption state or enter a high-speed data transmission state again after completing the data restoration of the first transmission port 101; wherein, in the high-speed data transmission state , the data transfer rate is greater than or equal to 1Gbps. In a specific implementation, the first controller 105 is further configured to control the first sending port 101 to enter a low power consumption state after detecting a data transmission error and before controlling the first sending port 101 to enter the repair state . It is convenient to switch state.
另外,第一控制器105还用于在第一发送端口101进入高速数据传输状态之前,控制第一发送端口101进入到低功耗状态。在完成数据修复后,以及控制第一发送端口101进入到低功耗状态之前,确认修复后第一发送端口101的参数为第一发送端口101处于高速数据传输状态时的参数。提高了传输链路的可靠性。In addition, the first controller 105 is further configured to control the first sending port 101 to enter the low power consumption state before the first sending port 101 enters the high-speed data transmission state. After completing the data restoration and before controlling the first sending port 101 to enter a low power consumption state, confirm that the parameters of the first sending port 101 after restoration are the parameters when the first sending port 101 is in a high-speed data transmission state. The reliability of the transmission link is improved.
在建立传输链路时,第一芯片100还包括第二接收端口103;第二接收端口103用于接收对端芯片的第二发送端口201发送的第一接收端口203的端口信息;第一控制器105还用于控制第一发送端口101与对端芯片的第一接收端口203建立传输链路,并控制第一发送端口101将第一发送端口101的端口信息发送给对端芯片的第一接收端口203。When establishing a transmission link, the first chip 100 further includes a second receiving port 103; the second receiving port 103 is used to receive the port information of the first receiving port 203 sent by the second sending port 201 of the opposite chip; the first control The device 105 is further configured to control the first sending port 101 to establish a transmission link with the first receiving port 203 of the opposite chip, and control the first sending port 101 to send the port information of the first sending port 101 to the first receiving port 203 of the opposite chip. Receive port 203.
在芯片为第二芯片200时,第二芯片200包括第一接收端口203和第二控制器205;第一接收端口203用于接收对端芯片(第一芯片100)的第一发送端口103发送的修复控制码流;第二控制器205用于根据修复控制码流控制第一接收端口203进入到修复状态;其中,修复控制码流为对端芯片的第一控制器105在高速数据传输状态内检测到数据传输错误时,产生的用于控制第一接收端口203切换到修复状态的修复控制码流;第二控制器205还用于在修复状态,对第一接收端口203进行数据修复,将第一接收端口203的参数修复到第一接收端口203处于高速数据传输状态时的参数;第二控制器205还用于在完成对第一接收端口203的数据修复后,控制第一接收端口203进入到低功耗状态或再次进入到高速数据传输状态;其中,在高速数据传输状态下,数据的传输速率大于或等于1Gbps。具体可参考图11中的描述。When the chip is the second chip 200 , the second chip 200 includes a first receiving port 203 and a second controller 205 ; the first receiving port 203 is used to receive the transmission from the first sending port 103 of the opposite chip (the first chip 100 ) The second controller 205 is used to control the first receiving port 203 to enter the repair state according to the repair control code stream; wherein, the repair control code stream is that the first controller 105 of the opposite end chip is in a high-speed data transmission state When a data transmission error is detected, a repair control code stream is generated for controlling the first receiving port 203 to switch to the repair state; the second controller 205 is also used to perform data repair on the first receiving port 203 in the repair state, Restoring the parameters of the first receiving port 203 to the parameters when the first receiving port 203 is in a high-speed data transmission state; the second controller 205 is further configured to control the first receiving port after completing the data restoration of the first receiving port 203 203 Enter into a low power consumption state or enter into a high-speed data transmission state again; wherein, in the high-speed data transmission state, the data transmission rate is greater than or equal to 1 Gbps. For details, please refer to the description in FIG. 11 .
另外,第二控制器205还用于在第一接收端口203进入高速数据传输状态之前,控制 第一接收端口203进入到低功耗状态。另外,在检测到数据传输错误之后以及在控制第一接收端口203进入到修复状态之前,控制第一接收端口203进入到低功耗状态。第二控制器205还用于在完成数据修复后,以及控制第一接收端口203进入到低功耗状态之前,确认修复后第一接收端口203的参数为第一接收端口203处于高速数据传输状态时的参数。提高了传输链路的可靠性。具体可参考图11中的描述。In addition, the second controller 205 is further configured to control the first receiving port 203 to enter a low power consumption state before the first receiving port 203 enters a high-speed data transmission state. In addition, after the data transmission error is detected and before the first receiving port 203 is controlled to enter the repair state, the first receiving port 203 is controlled to enter the low power consumption state. The second controller 205 is further configured to confirm that the parameter of the first receiving port 203 after the repair is that the first receiving port 203 is in a high-speed data transmission state after completing the data repair and before controlling the first receiving port 203 to enter the low power consumption state time parameters. The reliability of the transmission link is improved. For details, please refer to the description in FIG. 11 .
在建立传输链路时,第二芯片200还包括第二发送端口201;第二控制器205还用于控制第一接收端口203与对端芯片的第一发送端口103建立传输链路,并控制第二发送端口201将第一接收端口203的端口信息发送给对端芯片的第二接收端口103;第一接收端口203还用于接收对端芯片的第一发送端口103发送的第一发送端口103的端口信息。具体可参考图11中的描述。When establishing a transmission link, the second chip 200 further includes a second sending port 201; the second controller 205 is further configured to control the first receiving port 203 to establish a transmission link with the first sending port 103 of the opposite chip, and control the The second sending port 201 sends the port information of the first receiving port 203 to the second receiving port 103 of the opposite chip; the first receiving port 203 is also used to receive the first sending port sent by the first sending port 103 of the opposite chip 103 port information. For details, please refer to the description in FIG. 11 .
在芯片用于实现图10和图11所示的工作流程时,在芯片为第一芯片时,第一芯片包括第一发送端口101和第一控制器105,第一控制器105用于在第一发送端口101进入数据传输状态之前,检测第一发送端口101当前的参数并判断第一发送端口101当前的参数与第一发送端口101在按照目标数据传输速率发送数据时匹配的参数是否一致;第一控制器105还用于在第一发送端口101当前的参数与第一发送端口101在目标数据传输速率时匹配的参数不一致时,控制第一发送端口101进入速率切换状态;第一控制器105还用于在速率切换状态,将第一发送端口101当前的参数切换为第一发送端口101在按照目标数据传输速率发送数据时匹配的参数;第一控制器105还用于控制第一发送端口101向对端芯片的第一接收端口203发送控制第一接收端口203进入到速率切换状态的控制码流;第一控制器105还用于在完成切换后,控制第一发送端口101进入到低功耗状态。具体可参考图10中所示的步骤流程。When the chip is used to implement the work flow shown in FIG. 10 and FIG. 11 , when the chip is the first chip, the first chip includes a first sending port 101 and a first controller 105 , and the first controller 105 is used for Before the sending port 101 enters the data transmission state, detect the current parameters of the first sending port 101 and determine whether the current parameters of the first sending port 101 are consistent with the parameters matched when the first sending port 101 sends data according to the target data transmission rate; The first controller 105 is further configured to control the first sending port 101 to enter the rate switching state when the current parameters of the first sending port 101 are inconsistent with the parameters matched by the first sending port 101 at the target data transmission rate; the first controller 105 is also used to switch the current parameters of the first sending port 101 to the parameters matched when the first sending port 101 sends data according to the target data transmission rate in the rate switching state; the first controller 105 is also used to control the first sending The port 101 sends a control code stream that controls the first receiving port 203 to enter the rate switching state to the first receiving port 203 of the opposite chip; the first controller 105 is also used to control the first sending port 101 to enter the rate switching state after the switching is completed Low power state. For details, refer to the step flow shown in FIG. 10 .
第一控制器105还用于在第一发送端口101当前的参数被切换为第一发送端口101在按照目标数据传输速率发送数据时匹配的参数之后,接收数据传输控制码流且控制第一发送端口101由低功耗状态切换到与目标数据的传输速率匹配的高速数据传输状态或低速数据传输状态;第一控制器105还用于控制第一发送端口101向对端芯片的第一接收端口203发送控制第一接收端口203切换到与目标数据的传输速率匹配的高速数据传输状态或低速数据传输状态的控制码流;其中,高速数据传输速率大于低速数据传输速率。另外,第一控制器105还用于在数据传输过程中,在数据传输速率发生改变时,控制第一发送端口101进入到低功耗状态,并从低功耗状态进入到速率切换状态;第一控制器105还用于在速率切换状态,控制第一发送端口101当前的参数切换到第一发送端口101在按照改变后的数据传输速率传输数据时匹配的参数;第一控制器105还用于控制第一发送端口101向对端芯片的第一接收端口203发送控制第一接收端口203进入到低功耗状态以及速率切换状态的控制码流;第一控制器105还用于在完成切换后,控制第一发送端口101进入到低功耗状态。且第一控制器105还用于在第一发送端口101当前的参数被切换为第一发送端口101在按照改变后的数据传输速率发送数据时匹配的参数时,接收数据传输控制码流且控制第一发送端口101由低功耗状态切换到与目标数据的传输速率匹配的高速数据传输状态或低速数据传输状态;第一控制器105还用于控制第一发送端口101向对端芯片的第一接收端口203发送控制第一接收端口203切换到与目标数据的传输速率匹配的高速数据传输状态或低速数据传输状态的控制码流。具体参考图10所示的工作流程。The first controller 105 is further configured to receive the data transmission control code stream and control the first transmission after the current parameters of the first transmission port 101 are switched to the parameters matched when the first transmission port 101 transmits data according to the target data transmission rate. The port 101 is switched from a low power consumption state to a high-speed data transmission state or a low-speed data transmission state that matches the transmission rate of the target data; the first controller 105 is further configured to control the first sending port 101 to the first receiving port of the opposite chip 203 sends a control code stream that controls the first receiving port 203 to switch to a high-speed data transmission state or a low-speed data transmission state matching the transmission rate of the target data; wherein the high-speed data transmission rate is greater than the low-speed data transmission rate. In addition, the first controller 105 is further configured to control the first sending port 101 to enter the low power consumption state and enter the rate switching state from the low power consumption state when the data transmission rate changes during the data transmission process; A controller 105 is further configured to control the current parameters of the first sending port 101 to switch to the parameters matched when the first sending port 101 transmits data according to the changed data transmission rate in the rate switching state; the first controller 105 also uses To control the first sending port 101 to send a control code stream for controlling the first receiving port 203 to enter the low power consumption state and the rate switching state to the first receiving port 203 of the opposite chip; the first controller 105 is also used to complete the switching Then, the first sending port 101 is controlled to enter a low power consumption state. And the first controller 105 is further configured to receive the data transmission control code stream and control the data transmission control code stream when the current parameters of the first transmission port 101 are switched to the parameters matched by the first transmission port 101 when transmitting data according to the changed data transmission rate. The first sending port 101 is switched from a low power consumption state to a high-speed data transmission state or a low-speed data transmission state that matches the transmission rate of the target data; the first controller 105 is also used to control the first sending port 101 to the opposite end chip. A receiving port 203 sends a control code stream that controls the first receiving port 203 to switch to a high-speed data transmission state or a low-speed data transmission state matching the transmission rate of the target data. For details, refer to the workflow shown in FIG. 10 .
第一控制器105还用于在数据传输控制码流为高速数据传输控制码流时,控制第一发 送端口101进入高速数据传输状态进行高速数据传输;第一控制器105还用于在高速数据传输状态内检测到数据传输错误时,控制第一发送端口101进入到修复状态;并向对端芯片发送控制对端芯片的第一接收端口203进入到修复状态的修复控制码流;第一控制器105还用于在修复状态,对第一发送端口101进行数据修复,将第一发送端口101的参数修复到第一发送端口101处于高速数据传输状态时的参数;第一控制器105还用于在完成对第一发送端口101的数据修复后,控制第一发送端口101进入到低功耗状态或再次进入到高速数据传输状态。第一控制器105还用于在检测到数据传输错误之后,以及在控制第一发送端口101进入到修复状态之前,控制第一发送端口101进入到低功耗状态。具体可参考图11所示的工作流程。The first controller 105 is also used to control the first sending port 101 to enter a high-speed data transmission state to perform high-speed data transmission when the data transmission control code stream is a high-speed data transmission control code stream; When a data transmission error is detected in the transmission state, the first sending port 101 is controlled to enter the repair state; the repair control code stream that controls the first receiving port 203 of the opposite end chip to enter the repair state is sent to the opposite end chip; the first control The controller 105 is further configured to perform data repair on the first sending port 101 in the repair state, and repair the parameters of the first sending port 101 to the parameters when the first sending port 101 is in the high-speed data transmission state; the first controller 105 also uses After the data restoration of the first sending port 101 is completed, the first sending port 101 is controlled to enter a low power consumption state or enter a high-speed data transmission state again. The first controller 105 is further configured to control the first sending port 101 to enter a low power consumption state after detecting a data transmission error and before controlling the first sending port 101 to enter the repair state. For details, refer to the workflow shown in FIG. 11 .
在芯片为第二芯片时,第二芯片包括第一接收端口203和第二控制器205,在第一接收端口203进入数据传输状态之前,第一接收端口203用于接收对端芯片发送的控制第一接收端口203进入到速率切换状态的控制码流;第二控制器205用于根据控制第一接收端口203进入到速率切换状态的控制码流;并根据控制码流控制第一接收端口203进入速率切换状态;第二控制器205还用于在速率切换状态,将第一接收端口203当前的参数切换为第一接收端口203在按照目标数据传输速率发送数据时匹配的参数;第二控制器205还用于在完成切换后,控制第一接收端口203进入到低功耗状态。第二控制器205还用于在第一接收端口203当前的参数被切换为第一接收端口203在按照目标数据传输速率发送数据时匹配的参数之后,控制第一接收端口203接收控制第一接收端口203切换到与目标数据的传输速率匹配的高速数据传输状态或低速数据传输状态的控制码流,且根据控制码流控制第一接收端口203由低功耗状态切换到与目标数据的传输速率匹配的高速数据传输状态或低速数据传输状态;其中,高速数据传输速率大于低速数据传输速率。具体可参考图10中的工作流程。When the chip is the second chip, the second chip includes the first receiving port 203 and the second controller 205. Before the first receiving port 203 enters the data transmission state, the first receiving port 203 is used to receive the control sent by the opposite end chip. The first receiving port 203 enters the control code stream of the rate switching state; the second controller 205 is used to control the first receiving port 203 to enter the rate switching state according to the control code stream; and control the first receiving port 203 according to the control code stream Enter the rate switching state; the second controller 205 is also used to switch the current parameters of the first receiving port 203 to the parameters matched when the first receiving port 203 sends data according to the target data transmission rate in the rate switching state; the second control The controller 205 is further configured to control the first receiving port 203 to enter a low power consumption state after switching is completed. The second controller 205 is further configured to control the first receiving port 203 to receive and control the first receiving port 203 after the current parameters of the first receiving port 203 are switched to the parameters matched by the first receiving port 203 when sending data according to the target data transmission rate The port 203 switches to a control code stream of a high-speed data transmission state or a low-speed data transmission state that matches the transmission rate of the target data, and controls the first receiving port 203 to switch from a low-power state to the transmission rate of the target data according to the control code stream A matching high-speed data transfer state or a low-speed data transfer state; wherein the high-speed data transfer rate is greater than the low-speed data transfer rate. For details, refer to the workflow in FIG. 10 .
在数据传输过程中,在数据传输速率发生改变时,第一接收端口203用于接收对端芯片发送的控制第一接收端口203进入到低功耗状态以及速率切换状态的控制码流;第二控制器205用于根据控制第一接收端口203进入到低功耗状态以及速率切换状态的控制码流;并根据控制码流控制第一接收端口203进入低功耗状态,并在进入低功耗状态后进入速率切换状态;第二控制器205还用于在速率切换状态,控制第一接收端口203当前的参数切换到第一接收端口203在按照改变后的数据传输速率传输数据时匹配的参数;第二控制器205还用于在完成切换后,控制第一接收端口203进入到低功耗状态。第二控制器205还用于在第一接收端口203当前的参数被切换为第一接收端口203在按照目标数据传输速率发送数据时匹配的参数之后,控制第一接收端口203接收控制第一接收端口203切换到与目标数据的传输速率匹配的高速数据传输状态或低速数据传输状态的控制码流,且根据控制码流控制第一接收端口203由低功耗状态切换到与目标数据的传输速率匹配的高速数据传输状态或低速数据传输状态。具体可参考图10中的工作流程。During the data transmission process, when the data transmission rate changes, the first receiving port 203 is used to receive the control code stream sent by the opposite chip to control the first receiving port 203 to enter the low power consumption state and the rate switching state; The controller 205 is used to control the first receiving port 203 to enter the low power consumption state and the rate switching state according to the control code stream; and control the first receiving port 203 to enter the low power consumption state according to the control code stream, and enter the low power consumption state The second controller 205 is also used to control the current parameters of the first receiving port 203 to switch to the parameters matched when the first receiving port 203 transmits data according to the changed data transmission rate in the rate switching state. ; The second controller 205 is further configured to control the first receiving port 203 to enter a low power consumption state after switching is completed. The second controller 205 is further configured to control the first receiving port 203 to receive and control the first receiving port 203 after the current parameters of the first receiving port 203 are switched to the parameters matched by the first receiving port 203 when sending data according to the target data transmission rate The port 203 switches to a control code stream of a high-speed data transmission state or a low-speed data transmission state that matches the transmission rate of the target data, and controls the first receiving port 203 to switch from a low-power state to the transmission rate of the target data according to the control code stream Matching high-speed data transfer state or low-speed data transfer state. For details, refer to the workflow in FIG. 10 .
第二控制器205还用于在控制码流为控制第一接收端口203切换到高速数据传输状态的控制码流时,控制第一接收端口203进入高速数据传输状态进行高速数据传输;第二控制器205用于根据修复控制码流控制第一接收端口203进入到修复状态;其中,修复控制码流为对端芯片的第一控制器105在高速数据传输状态内检测到数据传输错误时,产生的用于控制第一接收端口203切换到修复状态的修复控制码流;第二控制器205还用于在修复状态,对第一接收端口203进行数据修复,将第一接收端口203的参数修复到第一接收 端口203处于高速数据传输状态时的参数;第二控制器205还用于在完成对第一接收端口203的数据修复后,控制第一接收端口203进入到低功耗状态或再次进入到高速数据传输状态;第二控制器205还用于在检测到数据传输错误之后,以及在控制第一接收端口203进入到修复状态之前,控制第一接收端口203进入到低功耗状态。具体可参考图11中的工作流程。The second controller 205 is further configured to control the first receiving port 203 to enter the high-speed data transmission state to perform high-speed data transmission when the control code stream is the control code stream that controls the first receiving port 203 to switch to the high-speed data transmission state; the second control The controller 205 is configured to control the first receiving port 203 to enter the repair state according to the repair control code stream; wherein, the repair control code stream is that when the first controller 105 of the opposite chip detects a data transmission error in the high-speed data transmission state, it generates a The repair control code stream used to control the first receiving port 203 to switch to the repairing state; the second controller 205 is also used to perform data repairing on the first receiving port 203 in the repairing state, and repair the parameters of the first receiving port 203 The parameters to when the first receiving port 203 is in a high-speed data transmission state; the second controller 205 is also used to control the first receiving port 203 to enter a low power consumption state after completing the data restoration of the first receiving port 203 Enter the high-speed data transmission state; the second controller 205 is further configured to control the first receiving port 203 to enter a low power consumption state after detecting a data transmission error and before controlling the first receiving port 203 to enter the repairing state. For details, please refer to the workflow in FIG. 11 .
应理解在本申请实施例提供的上述第一芯片和第二芯片还可应用于对低速传输数据状态时出现数据传输错误的修改。第一控制器和第二控制器可执行与高速数据状态出现数据传输错误时的相同修复过程,在此不再赘述,具体可参考图5及图6中的数据修复时的描述。It should be understood that the above-mentioned first chip and second chip provided in the embodiments of the present application may also be applied to the modification of data transmission errors that occur in the state of low-speed data transmission. The first controller and the second controller can perform the same repair process as when a data transmission error occurs in the high-speed data state, which will not be repeated here.
图12是本申请可能应用的另一种通信系统,包含第一芯片300,第二芯片400和带外控制链路。其中第一芯片300仅具有接收数据的能力,第二芯片400仅具有发送数据的能力。带外控制链路是在第一芯片300和第二芯片400之外的通信通路,具有一定的双向通信能力,且不与第一芯片300和第二芯片400共用物理层端口。常用的带外控制链路如I2C,SPI等,其主要的功能是用于传输来自协议层的控制信息和配置信息等。FIG. 12 is another communication system to which the present application may be applied, including a first chip 300, a second chip 400 and an out-of-band control link. The first chip 300 only has the ability to receive data, and the second chip 400 only has the ability to send data. The out-of-band control link is a communication path outside the first chip 300 and the second chip 400 , has a certain bidirectional communication capability, and does not share a physical layer port with the first chip 300 and the second chip 400 . Commonly used out-of-band control links such as I2C, SPI, etc., whose main function is to transmit control information and configuration information from the protocol layer.
本申请所应用的第一芯片300包含协议层和物理层结构。协议层负责发送或接收数据信息,发送和接收带外控制链路的控制信息,并且可以根据带外控制链路的控制信息对物理层进行控制。物理层包含第一控制器303,发送模块或接收模块。第一控制器303和第二控制器403受协议层的直接控制实现对第一芯片300和第二芯片400对应的发送模块或接收模块的管理。发送模块包括第一数据处理模块302和发送端口301,第一数据处理模块302对来自协议层的数据信息进行如编码、扰码、串行处理等操作将数据信息处理成数据包,再通过发送端口301将数据包发送出去。接收模块包括第二数据处理模块402和接收端口401,接收端口401接收来自传输链路上的数据包,第二数据处理模块402对数据包进行如解编码、解扰码、解串行处理等操作,再将数据信息传送给协议层。The first chip 300 applied in this application includes a protocol layer and a physical layer structure. The protocol layer is responsible for sending or receiving data information, sending and receiving control information of the out-of-band control link, and can control the physical layer according to the control information of the out-of-band control link. The physical layer includes a first controller 303, a sending module or a receiving module. The first controller 303 and the second controller 403 are directly controlled by the protocol layer to manage the sending module or the receiving module corresponding to the first chip 300 and the second chip 400 . The sending module includes a first data processing module 302 and a sending port 301. The first data processing module 302 performs operations such as encoding, scrambling, serial processing, etc. on the data information from the protocol layer to process the data information into data packets, and then send the data information into data packets. Port 301 sends packets out. The receiving module includes a second data processing module 402 and a receiving port 401, the receiving port 401 receives data packets from the transmission link, and the second data processing module 402 performs decoding, descrambling, and deserialization processing on the data packets, etc. operation, and then transmit the data information to the protocol layer.
本申请通过端口工作模式状态机对该通信系统的端口进行管理,通信系统的第一芯片300、第二芯片400的端口按照端口工作模式管理流程进行上电操作、高速数据传输操作、低速数据传输操作和超低功耗操作。在通信系统下,芯片的LINK-STARTUP状态、SPEED-CHANGE状态和RECOVERY状态流程如下:The present application manages the ports of the communication system through the port working mode state machine, and the ports of the first chip 300 and the second chip 400 of the communication system perform power-on operation, high-speed data transmission operation, and low-speed data transmission according to the port working mode management process operation and ultra-low power operation. Under the communication system, the chip's LINK-STARTUP state, SPEED-CHANGE state and RECOVERY state flow are as follows:
图13示出了在通信系统架构下的端口在LINK-STARTUP状态的工作流程。端口初始化结束后,由第一芯片的协议层控制接收端口进入LINK-STARTUP状态。协议层可以通过带外控制链路与第二芯片的发送端口交换基础信息,并协商带内通信的速率。物理层根据双方端口的基础信息和协商的带内通信速率配置端口参数,并以协商的速率在带内传输链路进行通信。如果通信成功,则等待进入下一状态的条件;如果通信失败,则通知协议层,并返回PHY-INIT状态。Figure 13 shows the workflow of the port in the LINK-STARTUP state under the communication system architecture. After the port initialization is completed, the protocol layer of the first chip controls the receiving port to enter the LINK-STARTUP state. The protocol layer can exchange basic information with the sending port of the second chip through the out-of-band control link, and negotiate the rate of in-band communication. The physical layer configures port parameters according to the basic information of the two ports and the negotiated in-band communication rate, and communicates over the in-band transmission link at the negotiated rate. If the communication is successful, wait for the condition to enter the next state; if the communication fails, notify the protocol layer and return to the PHY-INIT state.
图14示出了在通信系统架构下的端口在SPEED-CHANGE状态的工作流程。当协议层需要改变当前的带内通信速率时,可以通过带外控制链路与对端端口协商带内传输链路的目标通信速率。之后协议层指示物理层端口结束当前状态(LOW-POWER0状态或TRANS0状态或TRANS1状态)并进入SPEED-CHANGE状态。物理层根据协商的带内传输链路目标数据的传输速率配置端口参数,并以协商的速率在带内传输链路进行通信。如果通信成功,则等待进入下一状态的条件;如果通信失败,则通知协议层,并返回LOW-POWER0状态。FIG. 14 shows the workflow of the port in the SPEED-CHANGE state under the communication system architecture. When the protocol layer needs to change the current in-band communication rate, the target communication rate of the in-band transmission link can be negotiated with the opposite port through the out-of-band control link. After that, the protocol layer instructs the physical layer port to end the current state (LOW-POWER0 state or TRANS0 state or TRANS1 state) and enter the SPEED-CHANGE state. The physical layer configures port parameters according to the negotiated transmission rate of the target data of the in-band transmission link, and communicates on the in-band transmission link at the negotiated rate. If the communication is successful, wait for the condition to enter the next state; if the communication fails, notify the protocol layer and return to the LOW-POWER0 state.
图15示出了在通信系统架构下的端口在RECOVERY状态的工作流程。当带内数据传输链路在通信过程中发生错误时,协议层通过带外控制链路与对端端口确认带内传输链路的错误类型。之后协议层指示物理层端口结束当前状态(LOW-POWER0状态或TRANS1状态)并进入RECOVERY状态。物理层根据错误类型在带内传输链路发送或接收修复相关码流,并根据修复相关码流对带内通信传输链路进行修复措施。修复相关码流可以包括但不限于接收机位同步码流、接收机均衡训练码流。如果修复成功,则等待进入下一状态的条件;如果修复失败,则通知协议层,并返回LOW-POWER0状态。Figure 15 shows the workflow of the port in the RECOVERY state under the communication system architecture. When an error occurs in the communication process of the in-band data transmission link, the protocol layer confirms the error type of the in-band transmission link with the peer port through the out-of-band control link. After that, the protocol layer instructs the physical layer port to end the current state (LOW-POWER0 state or TRANS1 state) and enter the RECOVERY state. The physical layer sends or receives the repair-related code stream on the in-band transmission link according to the error type, and performs repair measures on the in-band communication transmission link according to the repair-related code stream. The repair-related code stream may include, but is not limited to, the receiver bit synchronization code stream and the receiver equalization training code stream. If the repair is successful, wait for the condition to enter the next state; if the repair fails, notify the protocol layer and return to the LOW-POWER0 state.
应理解在本申请实施例提供的上述第一芯片、第二芯片及带外控制链路还可应用于对低速传输数据状态时出现数据传输错误的修改。第一芯片、第二芯片及带外控制链路可执行与高速数据状态出现数据传输错误时的相同修复过程,在此不再赘述,具体可参考图5及图6中的数据修复时的描述。It should be understood that the above-mentioned first chip, second chip, and out-of-band control link provided in the embodiments of the present application can also be applied to the modification of data transmission errors that occur in the state of low-speed data transmission. The first chip, the second chip and the out-of-band control link can perform the same repair process as when a data transmission error occurs in the high-speed data state, which will not be repeated here. For details, please refer to the description of the data repair in FIG. 5 and FIG. 6 . .
通过上述描述可看出,本申请实施例提供了一种应用在高速通信方法,增加端口在重新配置传输链路参数后的握手过程,判断传输链路数据传输准确性;通过低功耗状态提高状态机各状态间的互通性,减少端口在不同状态间的跳转次数。It can be seen from the above description that the embodiment of the present application provides a high-speed communication method, which increases the handshake process of the port after reconfiguring the parameters of the transmission link, and judges the accuracy of data transmission of the transmission link; The interoperability between the states of the state machine reduces the number of port jumps between different states.
本申请实施例还提供了一种移动终端,该移动终端包括芯片及与芯片通信连接的对端芯片;其中,芯片和对端芯片分别为上述任一项的芯片。在上述方案中,通过设置了修复状态,在高速数据传输出现故障时,对传输链路进行修复,提高了高速数据传输时的可靠性。另外,在修复时,仅修复与高速数据传输对应的匹配参数,无需再次对两个芯片在握手时的基础信息进行匹配,提高了修复效果。An embodiment of the present application further provides a mobile terminal, where the mobile terminal includes a chip and an opposite-end chip communicatively connected to the chip; wherein the chip and the opposite-end chip are the chips of any of the above. In the above solution, by setting the repair state, when the high-speed data transmission fails, the transmission link is repaired, which improves the reliability of the high-speed data transmission. In addition, when repairing, only matching parameters corresponding to high-speed data transmission are repaired, and there is no need to match the basic information of the two chips during handshake, which improves the repair effect.
如图16所示,本申请实施例还提供了信号处理模块1000用于实现上述方法的功能。该信号处理模块1000可以是通信设备,也可以是通信设备中的装置。信号处理模块1000包括至少一个处理器1001,用于实现上述方法中装置的功能。示例地,处理器1001可以用于根据获取的第一芯片的收发需求控制通信端口1003(发送端口)进行状态切换,具体参见方法中的详细描述,此处不再说明。As shown in FIG. 16 , the embodiment of the present application further provides a signal processing module 1000 for implementing the functions of the above method. The signal processing module 1000 may be a communication device, or may be a device in a communication device. The signal processing module 1000 includes at least one processor 1001 for implementing the functions of the apparatus in the above method. For example, the processor 1001 may be configured to control the communication port 1003 (transmitting port) to perform state switching according to the acquired sending and receiving requirements of the first chip. For details, refer to the detailed description in the method, which is not described herein again.
在一些实施例中,该信号处理模块1000还可以包括至少一个存储器1002,用于存储程序指令和/或数据。存储器1002和处理器1001耦合。本申请实施例中的耦合是装置、单元或模块之间的间隔耦合或通信连接,可以是电性,机械或其它的形式,用于装置、单元或模块之间的信息交互。作为另一种实现,存储器1002还可以位于信号处理模块1000之外。处理器1001可以和存储器1002协同操作。处理器1001可能执行存储器1002中存储的程序指令。至少一个存储器中的至少一个可以包括于处理器中。In some embodiments, the signal processing module 1000 may further include at least one memory 1002 for storing program instructions and/or data. Memory 1002 is coupled to processor 1001 . The coupling in the embodiments of the present application is the spaced coupling or communication connection between devices, units or modules, which may be in electrical, mechanical or other forms, and is used for information interaction between the devices, units or modules. As another implementation, the memory 1002 may also be located outside the signal processing module 1000 . The processor 1001 may cooperate with the memory 1002 . Processor 1001 may execute program instructions stored in memory 1002 . At least one of the at least one memory may be included in the processor.
在一些实施例中,信号处理模块1000包括通信端口1003,用于通过传输介质和其它设备进行通信,从而用于信号处理模块1000中的装置可以和其它设备进行通信。示例性地,通信端口1003可以是收发器、电路、总线、模块或其它类型的通信端口,该其它设备可以是网络设备或其它终端设备等。处理器1001利用通信端口1003收发数据,并用于实现上述实施例中的方法。示例性的,通信端口1003可以用于传递信号。In some embodiments, the signal processing module 1000 includes a communication port 1003 for communicating with other devices through a transmission medium, so that the apparatus used in the signal processing module 1000 can communicate with other devices. Illustratively, the communication port 1003 may be a transceiver, circuit, bus, module or other type of communication port, and the other device may be a network device or other terminal device or the like. The processor 1001 uses the communication port 1003 to send and receive data, and is used to implement the methods in the above embodiments. Illustratively, the communication port 1003 may be used to communicate signals.
本申请实施例中不限定上述通信端口1003、处理器1001以及存储器1002之间的连接介质。例如,本申请实施例在图16中以存储器1002、处理器1001以及通信端口1003之间可以通过总线连接,总线可以分为地址总线、数据总线、控制总线等。The embodiment of the present application does not limit the connection medium between the communication port 1003 , the processor 1001 , and the memory 1002 . For example, in the embodiment of the present application, the memory 1002, the processor 1001, and the communication port 1003 may be connected through a bus in FIG. 16, and the bus may be divided into an address bus, a data bus, and a control bus.
在本申请实施例中,处理器可以是通用处理器、数字信号处理器、专用集成电路、现场可编程门阵列或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件, 可以实现或者执行本申请实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者任何常规的处理器等。结合本申请实施例所公开的方法的步骤可以直接体现为硬件处理器执行完成,或者用处理器中的硬件及软件模块组合执行完成。In this embodiment of the present application, the processor may be a general-purpose processor, a digital signal processor, an application-specific integrated circuit, a field programmable gate array or other programmable logic device, a discrete gate or transistor logic device, or a discrete hardware component, which can implement or The methods, steps and logic block diagrams disclosed in the embodiments of this application are executed. A general purpose processor may be a microprocessor or any conventional processor or the like. The steps of the methods disclosed in conjunction with the embodiments of the present application may be directly embodied as executed by a hardware processor, or executed by a combination of hardware and software modules in the processor.
在本申请实施例中,存储器可以是非易失性存储器,比如硬盘(hard disk drive,HDD)或固态硬盘(solid-state drive,SSD)等,还可以是易失性存储器(volatile memory),例如随机存取存储器(random-access memory,RAM)。存储器是能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质,但不限于此。本申请实施例中的存储器还可以是电路或者其它任意能够实现存储功能的装置,用于存储程序指令和/或数据。In this embodiment of the present application, the memory may be a non-volatile memory, such as a hard disk drive (HDD) or a solid-state drive (SSD), etc., or may also be a volatile memory (volatile memory), for example Random-access memory (RAM). Memory is, but is not limited to, any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer. The memory in this embodiment of the present application may also be a circuit or any other device capable of implementing a storage function, for storing program instructions and/or data.
本申请实施例提供的方法中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行计算机程序指令时,全部或部分地产生按照本申请实施例的流程或功能。计算机可以是通用计算机、专用计算机、计算机网络、网络设备、用户设备或者其他可编程装置。计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(digital subscriber line,简称DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。计算机可读存储介质可以是计算机可以存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。可用介质可以是磁性介质(例如,软盘、硬盘、磁带)、光介质(例如,数字视频光盘(digital video disc,简称DVD))、或者半导体介质(例如,SSD)等。The methods provided in the embodiments of the present application may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, it can be implemented in whole or in part in the form of a computer program product. A computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the procedures or functions according to the embodiments of the present application are generated in whole or in part. A computer may be a general purpose computer, a special purpose computer, a computer network, network equipment, user equipment, or other programmable apparatus. Computer instructions may be stored on or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website site, computer, server, or data center over a wire (e.g. Coaxial cable, optical fiber, digital subscriber line (DSL) or wireless (such as infrared, wireless, microwave, etc.) means to transmit to another website site, computer, server or data center. A computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server, data center, or the like that contains an integration of one or more available media. Useful media may be magnetic media (eg, floppy disks, hard disks, magnetic tapes), optical media (eg, digital video discs (DVD)), or semiconductor media (eg, SSDs), and the like.
显然,本领域的技术人员可以对本申请进行各种改动和变型而不脱离本申请的精神和范围。这样,倘若本申请的这些修改和变型属于本申请权利要求及其等同技术的范围之内,则本申请也意图包含这些改动和变型在内。Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.

Claims (38)

  1. 一种通信方法,其特征在于,包括以下步骤:A communication method, comprising the steps of:
    在数据传输状态内检测到数据传输错误时,控制发送端口和接收端口均进入到修复状态,其中,数据传输状态包括高速数据传输状态和低速数据传输状态,所述发送端口位于主芯片侧,所述接收端口位于与所述主芯片具有通信关系的从芯片侧;When a data transmission error is detected in the data transmission state, both the sending port and the receiving port are controlled to enter a repair state, wherein the data transmission state includes a high-speed data transmission state and a low-speed data transmission state, and the sending port is located on the main chip side, so The receiving port is located on the side of the slave chip that has a communication relationship with the master chip;
    在所述修复状态,对所述发送端口和所述接收端口进行数据修复,将所述发送端口的参数修复到所述发送端口处于数据传输状态时的参数,以及,将所述接收端口的参数修复到所述接收端口处于数据传输状态时的参数;In the repair state, data repair is performed on the sending port and the receiving port, the parameters of the sending port are repaired to the parameters when the sending port is in the data transmission state, and the parameters of the receiving port are repaired Repair the parameters when the receiving port is in the data transmission state;
    在完成对所述发送端口和所述接收端口的数据修复后,控制所述发送端口和所述接收端口均进入到低功耗状态或均再次进入到所述高速数据传输状态。After completing the data restoration on the sending port and the receiving port, both the sending port and the receiving port are controlled to enter a low power consumption state or both enter the high-speed data transmission state again.
  2. 如权利要求1所述的通信方法,其特征在于,在检测到所述数据传输错误之后,以及在控制所述发送端口和所述接收端口均进入到所述修复状态之前,所述方法还包括:The communication method according to claim 1, wherein after detecting the data transmission error and before controlling both the sending port and the receiving port to enter the repair state, the method further comprises: :
    控制所述发送端口和所述接收端口均进入到低功耗状态。Both the transmitting port and the receiving port are controlled to enter a low power consumption state.
  3. 如权利要求1所述的通信方法,其特征在于,所述控制所述发送端口和所述接收端口均进入到修复状态,具体是指:The communication method according to claim 1, wherein the controlling both the sending port and the receiving port to enter a repair state specifically refers to:
    控制所述发送端口和所述接收端口均从所述低功耗状态进入到所述修复状态。Both the transmit port and the receive port are controlled to enter the repair state from the low power consumption state.
  4. 如权利要求1~3任一项所述的通信方法,其特征在于,在检测到数据传输错误时,控制所述发送端口和所述接收端口均进入到修复状态;具体为:The communication method according to any one of claims 1 to 3, wherein when a data transmission error is detected, both the sending port and the receiving port are controlled to enter a repair state; specifically:
    在检测到所述数据传输错误时,控制所述发送端口进入到所述修复状态,并向所述从芯片发送修复控制码流,以使所述从芯片的协议层或控制器根据所述修复控制码流控制所述接收端口进入到所述修复状态。When the data transmission error is detected, the sending port is controlled to enter the repair state, and a repair control code stream is sent to the slave chip, so that the protocol layer or the controller of the slave chip can perform the repair according to the repair state. The control code flow controls the receiving port to enter the repair state.
  5. 如权利要求1~4任一项所述的通信方法,其特征在于,还包括:The communication method according to any one of claims 1 to 4, further comprising:
    在完成所述数据修复后,以及控制所述发送端口和所述接收端口均进入到所述低功耗状态之前,所述方法还包括:确认修复后所述发送端口的参数为所述发送端口处于数据传输状态时的参数以及所述接收端口的参数为所述接收端口处于数据传输状态时的参数。After completing the data restoration and before controlling both the sending port and the receiving port to enter the low power consumption state, the method further includes: confirming that the parameter of the sending port after the restoration is the sending port The parameters in the data transmission state and the parameters of the receiving port are the parameters when the receiving port is in the data transmission state.
  6. 如权利要求1所述的通信方法,其特征在于,在检测到所述数据传输错误的所述数据传输状态之前,所述发送端口和所述接收端口均处于所述低功耗状态。The communication method of claim 1, wherein before the data transmission state in which the data transmission error is detected, both the sending port and the receiving port are in the low power consumption state.
  7. 如权利要求1所述的通信方法,其特征在于,在所述发送端口和所述接收端口均首次进入到所述低功耗状态之前,所述方法还包括:The communication method according to claim 1, wherein before both the transmitting port and the receiving port enter the low power consumption state for the first time, the method further comprises:
    所述主芯片和所述从芯片之间建立传输链路,并进行端口信息交换,所述端口信息交换是指所述主芯片将所述发送端口的端口信息发送给所述从芯片,以及所述从芯片将所述接收端口的端口信息发送给所述主芯片;A transmission link is established between the master chip and the slave chip, and port information exchange is performed. The port information exchange means that the master chip sends the port information of the sending port to the slave chip, and The slave chip sends the port information of the receiving port to the master chip;
    在完成所述端口信息交换之后,所述发送端口和所述接收端口均首次进入到所述低功耗状态。After the port information exchange is completed, both the sending port and the receiving port enter the low power consumption state for the first time.
  8. 如权利要求1~7任一项所述的通信方法,其特征在于,还包括:The communication method according to any one of claims 1 to 7, further comprising:
    在完成数据传输后,控制所述发送端口和所述接收端口均进入到所述低功耗状态,用于等待下一状态触发条件。After completing the data transmission, both the sending port and the receiving port are controlled to enter the low power consumption state for waiting for the next state trigger condition.
  9. 一种通信方法,其特征在于,该方法包括:A communication method, characterized in that the method comprises:
    在发送端口和接收端口进入数据传输状态之前,检测所述发送端口当前的参数和所述 接收端口当前的参数,并判断所述发送端口当前的参数与所述发送端口在按照目标数据传输速率发送数据时匹配的参数是否一致,以及,判断所述接收端口当前的参数与所述接收端口在按照目标数据传输速率接收数据时匹配的参数是否一致,所述发送端口位于主芯片侧,所述接收端口位于与所述主芯片之间具有通信关系的从芯片侧;Before the sending port and the receiving port enter the data transmission state, the current parameters of the sending port and the current parameters of the receiving port are detected, and it is determined that the current parameters of the sending port and the sending port are sending according to the target data transmission rate Whether the parameters matched at the time of data transmission are consistent, and whether the current parameters of the receiving port are consistent with the parameters matched when the receiving port receives data according to the target data transmission rate, the sending port is located on the main chip side, and the receiving port is located on the main chip side. The port is located on the side of the slave chip that has a communication relationship with the master chip;
    在所述发送端口和所述接收端口当前的参数与它们在目标数据传输速率时匹配的参数不一致时,控制所述发送端口和所述接收端口进入速率切换状态;When the current parameters of the sending port and the receiving port are inconsistent with their matching parameters at the target data transmission rate, controlling the sending port and the receiving port to enter a rate switching state;
    在所述速率切换状态,将所述发送端口当前的参数切换为所述发送端口在按照目标数据传输速率发送数据时匹配的参数,以及,将所述接收端口的参数切换为所述接收端口在按照目标数据传输速率接收数据时匹配的参数;In the rate switching state, the current parameter of the sending port is switched to the parameter matched by the sending port when sending data according to the target data transmission rate, and the parameter of the receiving port is switched to that the receiving port is in Parameters matched when receiving data according to the target data transmission rate;
    在完成切换后,所述发送端口以及所述接收端口均进入到低功耗状态。After the switching is completed, both the transmitting port and the receiving port enter a low power consumption state.
  10. 如权利要求9所述的通信方法,其特征在于,还包括:The communication method of claim 9, further comprising:
    在所述发送端口当前的参数被切换为所述发送端口在按照目标数据传输速率发送数据时匹配的参数,且所述接收端口当前的参数被切换为所述接收端口在按照目标数据传输速率接收数据时匹配的参数之后,接收数据传输控制码流且控制所述传输链路由所述低功耗状态切换到与所述目标数据的传输速率匹配的高速数据传输状态或低速数据传输状态,所述高速数据传输速率大于所述低速数据传输速率。The current parameter of the sending port is switched to the parameter matched when the sending port sends data according to the target data transmission rate, and the current parameter of the receiving port is switched to the receiving port that receives data according to the target data transmission rate After matching the parameters of the data, the data transmission control code stream is received and the transmission link is controlled to switch from the low power consumption state to the high-speed data transmission state or the low-speed data transmission state matching the transmission rate of the target data. The high-speed data transfer rate is greater than the low-speed data transfer rate.
  11. 如权利要求9或10所述的通信方法,其特征在于,还包括:The communication method according to claim 9 or 10, further comprising:
    在数据传输过程中,当数据传输速率发生改变时,控制所述发送端口和所述接收端口均进入到所述低功耗状态,并均从所述低功耗状态进入到所述速率切换状态;In the data transmission process, when the data transmission rate changes, both the transmitting port and the receiving port are controlled to enter the low power consumption state, and both enter the rate switching state from the low power consumption state ;
    在所述速率切换状态,将所述发送端口当前的参数切换到所述发送端口在按照所述改变后的数据传输速率传输数据时匹配的参数,以及,将所述接收端口当前的参数切换到所述接收端口在按照所述改变后的数据传输速率接收数据时匹配的参数;In the rate switching state, the current parameter of the sending port is switched to the parameter matched by the sending port when transmitting data according to the changed data transmission rate, and the current parameter of the receiving port is switched to The parameter matched when the receiving port receives data according to the changed data transmission rate;
    在完成切换后,控制所述发送端口以及所述接收端口均进入到所述低功耗状态。After the switching is completed, both the transmitting port and the receiving port are controlled to enter the low power consumption state.
  12. 如权利要求11所述的通信方法,其特征在于,还包括:The communication method of claim 11, further comprising:
    在所述发送端口当前的参数被切换为所述发送端口在按照所述改变后的数据传输速率发送数据时匹配的参数,且所述接收端口当前的参数被切换为所述接收端口在按照所述改变后的数据传输速率接收数据时匹配的参数时,接收数据传输控制码流且控制所述传输链路由所述低功耗状态切换到与所述目标数据的传输速率匹配的高速数据传输状态或低速数据传输状态。When the current parameter of the sending port is switched to the parameter that the sending port matches when sending data according to the changed data transmission rate, and the current parameter of the receiving port is switched to When the changed data transmission rate matches the parameters when receiving data, the data transmission control code stream is received and the transmission link is controlled to switch from the low power consumption state to the high-speed data transmission that matches the transmission rate of the target data. status or low-speed data transfer status.
  13. 如权利要求10或12所述的通信方法,其特征在于:还包括:The communication method according to claim 10 or 12, further comprising:
    在所述数据传输状态内检测到数据传输错误时,控制所述发送端口和所述接收端口均进入到修复状态;其中,所述数据传输状态包括高速数据传输状态和低速数据传输状态;When a data transmission error is detected in the data transmission state, both the sending port and the receiving port are controlled to enter a repair state; wherein the data transmission state includes a high-speed data transmission state and a low-speed data transmission state;
    在所述修复状态,对所述发送端口和所述接收端口进行数据修复,将所述发送端口的参数修复到所述发送端口处于所述数据传输状态时的参数,以及,将所述接收端口的参数修复到所述接收端口处于所述数据传输状态时的参数;In the repair state, data repair is performed on the sending port and the receiving port, the parameters of the sending port are repaired to the parameters when the sending port is in the data transmission state, and the receiving port is The parameters are repaired to the parameters when the receiving port is in the data transmission state;
    在完成对所述发送端口和所述接收端口的数据修复后,控制所述发送端口和所述接收端口均进入到低功耗状态或均再次进入到所述高速数据传输状态。After completing the data restoration on the sending port and the receiving port, both the sending port and the receiving port are controlled to enter a low power consumption state or both enter the high-speed data transmission state again.
  14. 如权利要求13所述的通信方法,其特征在于,在检测到所述数据传输错误之后,以及在控制所述发送端口和所述接收端口均进入到所述修复状态之前,所述方法还包括:The communication method according to claim 13, wherein after detecting the data transmission error and before controlling both the sending port and the receiving port to enter the repair state, the method further comprises: :
    控制所述发送端口和所述接收端口均进入到低功耗状态。Both the transmitting port and the receiving port are controlled to enter a low power consumption state.
  15. 一种芯片,其特征在于,包括第一发送端口和第一控制器;所述第一控制器用于在数据传输状态内检测到数据传输错误时,控制所述第一发送端口进入到修复状态;并向对端芯片发送控制对端芯片的第一接收端口进入到修复状态的修复控制码流;其中,所述数据传输状态包括高速数据传输状态和低速数据传输状态;A chip, characterized in that it includes a first sending port and a first controller; the first controller is configured to control the first sending port to enter a repair state when a data transmission error is detected in a data transmission state; Sending to the opposite end chip a repair control code stream that controls the first receiving port of the opposite end chip to enter a repair state; wherein, the data transmission state includes a high-speed data transmission state and a low-speed data transmission state;
    所述第一控制器还用于在所述修复状态,对所述第一发送端口进行数据修复,将所述第一发送端口的参数修复到所述第一发送端口处于所述数据传输状态时的参数;The first controller is further configured to perform data repair on the first sending port in the repair state, and repair the parameters of the first sending port until the first sending port is in the data transmission state parameter;
    所述第一控制器还用于在完成对所述第一发送端口的数据修复后,控制所述第一发送端口进入到低功耗状态或再次进入到所述高速数据传输状态。The first controller is further configured to control the first sending port to enter a low power consumption state or enter the high-speed data transmission state again after completing data restoration on the first sending port.
  16. 如权利要求15所述的芯片,其特征在于,所述第一控制器还用于在检测到所述数据传输错误之后以及在控制所述第一发送端口进入到所述修复状态之前,控制所述第一发送端口进入到低功耗状态。The chip of claim 15, wherein the first controller is further configured to, after detecting the data transmission error and before controlling the first sending port to enter the repair state, control the The first sending port enters a low power consumption state.
  17. 如权利要求15或16所述的芯片,其特征在于,所述第一控制器还用于在完成所述数据修复后,以及控制所述第一发送端口进入到所述低功耗状态之前,确认修复后所述第一发送端口的参数为所述第一发送端口处于所述数据传输状态时的参数。The chip according to claim 15 or 16, wherein the first controller is further configured to, after completing the data restoration and before controlling the first sending port to enter the low power consumption state, It is confirmed that the parameters of the first sending port after repairing are the parameters when the first sending port is in the data transmission state.
  18. 如权利要求15~17任一项所述的芯片,其特征在于,所述第一控制器还用于在所述第一发送端口进入所述高速数据传输状态之前,控制所述第一发送端口进入到低功耗状态。The chip according to any one of claims 15 to 17, wherein the first controller is further configured to control the first sending port before the first sending port enters the high-speed data transmission state into a low power state.
  19. 如权利要求15~18任一项所述的芯片,其特征在于,所述芯片还包括第二接收端口;所述第二接收端口用于接收所述对端芯片的第二发送端口发送的所述第一接收端口的端口信息;The chip according to any one of claims 15 to 18, characterized in that, the chip further comprises a second receiving port; the second receiving port is used to receive the data sent by the second sending port of the opposite chip. Describe the port information of the first receiving port;
    所述第一控制器还用于控制所述第一发送端口与所述对端芯片的第一接收端口建立传输链路,并控制所述第一发送端口将第一发送端口的端口信息发送给所述对端芯片的第一接收端口。The first controller is further configured to control the first sending port to establish a transmission link with the first receiving port of the opposite chip, and control the first sending port to send the port information of the first sending port to The first receiving port of the peer chip.
  20. 一种芯片,其特征在于,包括第一接收端口和第二控制器;所述第一接收端口用于接收对端芯片的第一发送端口发送的修复控制码流;A chip, characterized in that it includes a first receiving port and a second controller; the first receiving port is used to receive a repair control code stream sent by a first sending port of a peer chip;
    所述第二控制器用于根据所述修复控制码流控制所述第一接收端口进入到修复状态;其中,所述修复控制码流为所述对端芯片的第一控制器在数据传输状态内检测到数据传输错误时,产生的用于控制所述第一接收端口切换到修复状态的修复控制码流;其中,所述数据传输状态包括高速数据传输状态和低速数据传输状态;The second controller is configured to control the first receiving port to enter a repair state according to the repair control code stream; wherein the repair control code stream is that the first controller of the opposite end chip is in a data transmission state When a data transmission error is detected, a repair control code stream is generated for controlling the first receiving port to switch to a repair state; wherein, the data transmission state includes a high-speed data transmission state and a low-speed data transmission state;
    所述第二控制器还用于在所述修复状态,对所述第一接收端口进行数据修复,将所述第一接收端口的参数修复到所述第一接收端口处于所述数据传输状态时的参数;The second controller is further configured to perform data repair on the first receiving port in the repair state, and repair the parameters of the first receiving port until the first receiving port is in the data transmission state parameter;
    所述第二控制器还用于在完成对所述第一接收端口的数据修复后,控制所述第一接收端口进入到低功耗状态或再次进入到所述高速数据传输状态。The second controller is further configured to control the first receiving port to enter a low power consumption state or enter the high-speed data transmission state again after completing data restoration on the first receiving port.
  21. 如权利要求20所述的芯片,其特征在于,所述第二控制器还用于在检测到所述数据传输错误之后以及在控制所述第一接收端口进入到所述修复状态之前,控制所述第一接收端口进入到低功耗状态。The chip of claim 20, wherein the second controller is further configured to, after detecting the data transmission error and before controlling the first receiving port to enter the repair state, control the The first receiving port enters a low power consumption state.
  22. 如权利要求20或21所述的芯片,其特征在于,所述第二控制器还用于在完成所述数据修复后,以及控制所述第一接收端口进入到所述低功耗状态之前,确认修复后所述第一接收端口的参数为所述第一接收端口处于所述数据传输状态时的参数。The chip according to claim 20 or 21, wherein the second controller is further configured to, after completing the data restoration and before controlling the first receiving port to enter the low power consumption state, It is confirmed that the parameters of the first receiving port after repairing are the parameters when the first receiving port is in the data transmission state.
  23. 如权利要求20~22任一项所述的芯片,其特征在于,所述第二控制器还用于在所述第一接收端口进入所述高速数据传输状态之前,控制所述第一接收端口进入到低功耗状态。The chip according to any one of claims 20 to 22, wherein the second controller is further configured to control the first receiving port before the first receiving port enters the high-speed data transmission state into a low power state.
  24. 如权利要求20~23任一项所述的芯片,其特征在于,还包括第二发送端口;所述第二控制器还用于控制所述第一接收端口与所述对端芯片的第一发送端口建立传输链路,并控制所述第二发送端口将所述第一接收端口的端口信息发送给所述对端芯片的第二接收端口;The chip according to any one of claims 20 to 23, further comprising a second sending port; the second controller is further configured to control the first receiving port and the first receiving port of the opposite chip The sending port establishes a transmission link, and controls the second sending port to send the port information of the first receiving port to the second receiving port of the opposite chip;
    所述第一接收端口还用于接收所述对端芯片的第一发送端口发送的第一发送端口的端口信息。The first receiving port is further configured to receive port information of the first sending port sent by the first sending port of the opposite chip.
  25. 一种芯片,其特征在于,包括第一发送端口和第一控制器,所述第一控制器用于在第一发送端口进入数据传输状态之前,检测所述第一发送端口当前的参数并判断所述第一发送端口当前的参数与所述第一发送端口在按照目标数据传输速率发送数据时匹配的参数是否一致;A chip, characterized in that it includes a first sending port and a first controller, and the first controller is used to detect the current parameters of the first sending port and determine the current parameters of the first sending port before the first sending port enters a data transmission state. Whether the current parameters of the first sending port are consistent with the parameters matched by the first sending port when sending data according to the target data transmission rate;
    所述第一控制器还用于在所述第一发送端口当前的参数与所述第一发送端口在目标数据传输速率时匹配的参数不一致时,控制所述第一发送端口进入速率切换状态;The first controller is further configured to control the first sending port to enter a rate switching state when the current parameter of the first sending port is inconsistent with the parameter matching the first sending port at the target data transmission rate;
    所述第一控制器还用于在所述速率切换状态,将所述第一发送端口当前的参数切换为所述第一发送端口在按照目标数据传输速率发送数据时匹配的参数;The first controller is further configured to switch the current parameter of the first sending port to the parameter matched when the first sending port sends data according to the target data transmission rate in the rate switching state;
    所述第一控制器还用于控制所述第一发送端口向对端芯片的第一接收端口发送控制所述第一接收端口进入到速率切换状态的控制码流;The first controller is further configured to control the first sending port to send a control code stream for controlling the first receiving port to enter a rate switching state to the first receiving port of the opposite chip;
    所述第一控制器还用于在完成切换后,控制所述第一发送端口进入到低功耗状态。The first controller is further configured to control the first sending port to enter a low power consumption state after switching is completed.
  26. 如权利要求25所述的芯片,其特征在于,所述第一控制器还用于在所述第一发送端口当前的参数被切换为所述第一发送端口在按照目标数据传输速率发送数据时匹配的参数之后,接收数据传输控制码流且控制所述第一发送端口由所述低功耗状态切换到与所述目标数据的传输速率匹配的高速数据传输状态或低速数据传输状态;The chip according to claim 25, wherein the first controller is further configured to switch the current parameter of the first sending port to when the first sending port sends data according to a target data transmission rate After matching the parameters, receiving a data transmission control code stream and controlling the first sending port to switch from the low power consumption state to a high-speed data transmission state or a low-speed data transmission state that matches the transmission rate of the target data;
    所述第一控制器还用于控制所述第一发送端口向对端芯片的第一接收端口发送控制所述第一接收端口切换到与所述目标数据的传输速率匹配的高速数据传输状态或低速数据传输状态的控制码流;The first controller is further configured to control the first sending port to send to the first receiving port of the opposite chip, and control the first receiving port to switch to a high-speed data transmission state matching the transmission rate of the target data or Control stream of low-speed data transmission state;
    其中,所述高速数据传输速率大于所述低速数据传输速率。Wherein, the high-speed data transmission rate is greater than the low-speed data transmission rate.
  27. 如权利要求25或26所述的芯片,其特征在于,所述第一控制器还用于在数据传输过程中,在数据传输速率发生改变时,控制所述第一发送端口进入到所述低功耗状态,并从所述低功耗状态进入到所述速率切换状态;The chip according to claim 25 or 26, wherein the first controller is further configured to control the first sending port to enter the low a power consumption state, and enter the rate switching state from the low power consumption state;
    所述第一控制器还用于在所述速率切换状态,控制所述第一发送端口当前的参数切换到所述第一发送端口在按照所述改变后的数据传输速率传输数据时匹配的参数;The first controller is further configured to, in the rate switching state, control the current parameters of the first sending port to switch to parameters matched by the first sending port when transmitting data according to the changed data transmission rate ;
    所述第一控制器还用于控制所述第一发送端口向对端芯片的第一接收端口发送控制所述第一接收端口进入到低功耗状态以及速率切换状态的控制码流;The first controller is further configured to control the first sending port to send a control code stream for controlling the first receiving port to enter a low power consumption state and a rate switching state to the first receiving port of the opposite chip;
    所述第一控制器还用于在完成切换后,控制所述第一发送端口进入到所述低功耗状态。The first controller is further configured to control the first sending port to enter the low power consumption state after switching is completed.
  28. 如权利要求27所述的芯片,其特征在于,所述第一控制器还用于在所述第一发送端口当前的参数被切换为所述第一发送端口在按照所述改变后的数据传输速率发送数据时匹配的参数时,接收数据传输控制码流且控制所述第一发送端口由所述低功耗状态切换到与所述目标数据的传输速率匹配的高速数据传输状态或低速数据传输状态;The chip according to claim 27, wherein the first controller is further configured to switch the current parameter of the first sending port to the data transmission of the first sending port after the change When the data rate matches the parameters when sending data, receive the data transmission control code stream and control the first sending port to switch from the low power consumption state to the high-speed data transmission state or low-speed data transmission that matches the transmission rate of the target data state;
    所述第一控制器还用于控制所述第一发送端口向对端芯片的第一接收端口发送控制所述第一接收端口切换到与所述目标数据的传输速率匹配的高速数据传输状态或低速数据传输状态的控制码流。The first controller is further configured to control the first sending port to send to the first receiving port of the opposite chip, and control the first receiving port to switch to a high-speed data transmission state matching the transmission rate of the target data or Control code flow for low-speed data transmission status.
  29. 如权利要求26或28所述的芯片,其特征在于,所述第一控制器还用于在数据传输状态内检测到数据传输错误时,控制第一发送端口进入到修复状态;并向对端芯片发送控制对端芯片的第一接收端口进入到修复状态的修复控制码流;其中,所述数据传输状态包括高速数据传输状态和低速数据传输状态;The chip according to claim 26 or 28, wherein the first controller is further configured to control the first sending port to enter a repair state when a data transmission error is detected in the data transmission state; The chip sends a repair control code stream that controls the first receiving port of the opposite chip to enter a repair state; wherein, the data transmission state includes a high-speed data transmission state and a low-speed data transmission state;
    所述第一控制器还用于在所述修复状态,对所述第一发送端口进行数据修复,将所述第一发送端口的参数修复到所述第一发送端口处于所述数据传输状态时的参数;The first controller is further configured to perform data repair on the first sending port in the repair state, and repair the parameters of the first sending port until the first sending port is in the data transmission state parameter;
    所述第一控制器还用于在完成对所述第一发送端口的数据修复后,控制所述第一发送端口进入到低功耗状态或再次进入到所述高速数据传输状态。The first controller is further configured to control the first sending port to enter a low power consumption state or enter the high-speed data transmission state again after completing data restoration on the first sending port.
  30. 如权利要求29所述的芯片,其特征在于,所述第一控制器还用于在检测到所述数据传输错误之后,以及在控制所述第一发送端口进入到所述修复状态之前,控制所述第一发送端口进入到低功耗状态。The chip of claim 29, wherein the first controller is further configured to, after detecting the data transmission error and before controlling the first sending port to enter the repair state, control the The first transmission port enters a low power consumption state.
  31. 一种芯片,其特征在于,包括第一接收端口和第二控制器,A chip, characterized in that it includes a first receiving port and a second controller,
    在第一发送端口进入数据传输状态之前,所述第一接收端口用于接收对端芯片发送的控制所述第一接收端口进入到速率切换状态的控制码流;Before the first sending port enters the data transmission state, the first receiving port is used to receive the control code stream sent by the opposite end chip to control the first receiving port to enter the rate switching state;
    所述第二控制器用于根据控制所述第一接收端口进入到速率切换状态的控制码流;并根据所述控制码流控制所述第一接收端口进入速率切换状态;The second controller is configured to control the first receiving port to enter a rate switching state according to a control code stream; and control the first receiving port to enter a rate switching state according to the control code stream;
    所述第二控制器还用于在所述速率切换状态,将所述第一接收端口当前的参数切换为所述第一接收端口在按照目标数据传输速率发送数据时匹配的参数;The second controller is further configured to switch the current parameter of the first receiving port to the parameter matched when the first receiving port sends data according to the target data transmission rate in the rate switching state;
    所述第二控制器还用于在完成切换后,控制所述第一接收端口进入到低功耗状态。The second controller is further configured to control the first receiving port to enter a low power consumption state after switching is completed.
  32. 如权利要求31所述的芯片,其特征在于,所述第二控制器还用于在所述第一接收端口当前的参数被切换为所述第一接收端口在按照目标数据传输速率发送数据时匹配的参数之后,控制所述第一接收端口接收控制所述第一接收端口切换到与所述目标数据的传输速率匹配的高速数据传输状态或低速数据传输状态的控制码流,且根据所述控制码流控制所述第一接收端口由所述低功耗状态切换到与所述目标数据的传输速率匹配的高速数据传输状态或低速数据传输状态;The chip of claim 31, wherein the second controller is further configured to switch the current parameter of the first receiving port to when the first receiving port sends data according to a target data transmission rate After matching the parameters, control the first receiving port to receive a control code stream that controls the first receiving port to switch to a high-speed data transmission state or a low-speed data transmission state matching the transmission rate of the target data, and according to the The control code flow controls the first receiving port to switch from the low power consumption state to a high-speed data transmission state or a low-speed data transmission state that matches the transmission rate of the target data;
    其中,所述高速数据传输速率大于所述低速数据传输速率。Wherein, the high-speed data transmission rate is greater than the low-speed data transmission rate.
  33. 如权利要求31或32所述的芯片,其特征在于,在数据传输过程中,在数据传输速率发生改变时,所述第一接收端口用于接收对端芯片发送的控制所述第一接收端口进入到低功耗状态以及速率切换状态的控制码流;The chip according to claim 31 or 32, characterized in that, in the process of data transmission, when the data transmission rate changes, the first receiving port is used to receive the control of the first receiving port sent by the opposite end chip Enter the control stream of the low power consumption state and the rate switching state;
    所述第二控制器用于根据控制所述第一接收端口进入到低功耗状态以及速率切换状态的控制码流;并根据所述控制码流控制所述第一接收端口进入低功耗状态,并在进入低功耗状态后进入速率切换状态;The second controller is configured to control the first receiving port to enter the low power consumption state and the rate switching state according to the control code stream; and control the first receiving port to enter the low power consumption state according to the control code stream, And enter the rate switching state after entering the low power consumption state;
    所述第二控制器还用于在所述速率切换状态,控制所述第一接收端口当前的参数切换到所述第一接收端口在按照所述改变后的数据传输速率传输数据时匹配的参数;The second controller is further configured to, in the rate switching state, control the current parameters of the first receiving port to switch to the parameters matched by the first receiving port when transmitting data according to the changed data transmission rate ;
    所述第二控制器还用于在完成切换后,控制所述第一接收端口进入到所述低功耗状态。The second controller is further configured to control the first receiving port to enter the low power consumption state after switching is completed.
  34. 如权利要求33所述的芯片,其特征在于,所述第二控制器还用于在所述第一接收端口当前的参数被切换为所述第一接收端口在按照目标数据传输速率发送数据时匹配的参数之后,控制所述第一接收端口接收控制所述第一接收端口切换到与所述目标数据的传输速率匹配的高速数据传输状态或低速数据传输状态的控制码流,且根据所述控制码流控制所述第一接收端口由所述低功耗状态切换到与所述目标数据的传输速率匹配的高速数 据传输状态或低速数据传输状态。The chip of claim 33, wherein the second controller is further configured to switch the current parameter of the first receiving port to when the first receiving port sends data according to a target data transmission rate After matching the parameters, control the first receiving port to receive a control code stream that controls the first receiving port to switch to a high-speed data transmission state or a low-speed data transmission state matching the transmission rate of the target data, and according to the The control code flow controls the first receiving port to switch from the low power consumption state to a high-speed data transmission state or a low-speed data transmission state that matches the transmission rate of the target data.
  35. 如权利要求32或34所述的芯片,其特征在于,所述第二控制器还用于根据所述修复控制码流控制所述第一接收端口进入到修复状态;其中,所述修复控制码流为所述对端芯片的第一控制器在高速数据传输状态内检测到数据传输错误时,产生的用于控制所述第一接收端口切换到修复状态的修复控制码流;The chip according to claim 32 or 34, wherein the second controller is further configured to control the first receiving port to enter a repair state according to the repair control code flow; wherein the repair control code The stream is a repair control code stream generated when the first controller of the opposite end chip detects a data transmission error in the high-speed data transmission state and is used to control the first receiving port to switch to the repair state;
    所述第二控制器还用于在所述修复状态,对所述第一接收端口进行数据修复,将所述第一接收端口的参数修复到所述第一接收端口处于数据传输状态时的参数;其中,所述数据传输状态包括高速数据传输状态和低速数据传输状态;The second controller is further configured to perform data repair on the first receiving port in the repair state, and repair the parameters of the first receiving port to the parameters when the first receiving port is in a data transmission state ; Wherein, the data transmission state includes a high-speed data transmission state and a low-speed data transmission state;
    所述第二控制器还用于在完成对所述第一接收端口的数据修复后,控制所述第一接收端口进入到低功耗状态或再次进入到所述高速数据传输状态。The second controller is further configured to control the first receiving port to enter a low power consumption state or enter the high-speed data transmission state again after completing data restoration on the first receiving port.
  36. 如权利要求35所述的芯片,其特征在于,所述第二控制器还用于在检测到所述数据传输错误之后,以及在控制所述第一接收端口进入到所述修复状态之前,控制所述第一接收端口进入到低功耗状态。The chip of claim 35, wherein the second controller is further configured to control the first receiving port to enter the repair state after detecting the data transmission error and before controlling the first receiving port to enter the repair state. The first receiving port enters a low power consumption state.
  37. 一种通信系统,其特征在于,包括第一芯片和第二芯片;其中,所述第一芯片为如权利要求15~19任一项所述的芯片;所述第二芯片为如权利要求20~24任一项所述的芯片;或,A communication system, comprising a first chip and a second chip; wherein the first chip is the chip according to any one of claims 15 to 19; the second chip is the chip according to claim 20 The chip of any one of ~24; or,
    所述第一芯片为如权利要求25~30任一项所述的芯片,所述第二芯片为如权利要求31~36任一项所述的芯片。The first chip is the chip according to any one of claims 25-30, and the second chip is the chip according to any one of claims 31-36.
  38. 一种移动终端,其特征在于,包括第一芯片和第二芯片;其中,所述第一芯片为如权利要求15~19任一项所述的芯片;所述第二芯片为如权利要求20~24任一项所述的芯片;或,A mobile terminal, comprising a first chip and a second chip; wherein the first chip is the chip according to any one of claims 15 to 19; the second chip is the chip according to claim 20 The chip of any one of ~24; or,
    所述第一芯片为如权利要求25~30任一项所述的芯片,所述第二芯片为如权利要求31~36任一项所述的芯片。The first chip is the chip according to any one of claims 25-30, and the second chip is the chip according to any one of claims 31-36.
PCT/CN2021/103888 2020-09-30 2021-06-30 Chip, communication system and communication method WO2022068302A1 (en)

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
CN202011066534 2020-09-30
CN202011066534.6 2020-09-30
CN202011196760.6A CN114339896A (en) 2020-09-30 2020-10-31 Chip, communication system and communication method
CN202011196760.6 2020-10-31

Publications (1)

Publication Number Publication Date
WO2022068302A1 true WO2022068302A1 (en) 2022-04-07

Family

ID=80950940

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/103888 WO2022068302A1 (en) 2020-09-30 2021-06-30 Chip, communication system and communication method

Country Status (1)

Country Link
WO (1) WO2022068302A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116846517A (en) * 2023-08-31 2023-10-03 之江实验室 Network data transmission method and device, storage medium and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103001802A (en) * 2012-12-07 2013-03-27 迈普通信技术股份有限公司 Method and system for automatically correcting faults of Ethernet ports
US20160259400A1 (en) * 2013-03-15 2016-09-08 Intel Corporation Systems, apparatuses, and methods for synchronizing port entry into a low power status
CN108075937A (en) * 2016-11-16 2018-05-25 深圳市中兴微电子技术有限公司 A kind of method and apparatus of adaptive network speed matching process
CN110098863A (en) * 2019-05-07 2019-08-06 中国人民解放军32039部队 Link rate adaptive transmission method, apparatus and system
CN111385065A (en) * 2020-05-29 2020-07-07 湖南戎腾网络科技有限公司 Interface rate self-adaption device and method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103001802A (en) * 2012-12-07 2013-03-27 迈普通信技术股份有限公司 Method and system for automatically correcting faults of Ethernet ports
US20160259400A1 (en) * 2013-03-15 2016-09-08 Intel Corporation Systems, apparatuses, and methods for synchronizing port entry into a low power status
CN108075937A (en) * 2016-11-16 2018-05-25 深圳市中兴微电子技术有限公司 A kind of method and apparatus of adaptive network speed matching process
CN110098863A (en) * 2019-05-07 2019-08-06 中国人民解放军32039部队 Link rate adaptive transmission method, apparatus and system
CN111385065A (en) * 2020-05-29 2020-07-07 湖南戎腾网络科技有限公司 Interface rate self-adaption device and method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116846517A (en) * 2023-08-31 2023-10-03 之江实验室 Network data transmission method and device, storage medium and electronic equipment
CN116846517B (en) * 2023-08-31 2024-01-02 之江实验室 Network data transmission method and device, storage medium and electronic equipment

Similar Documents

Publication Publication Date Title
US8719475B2 (en) Method and system for utilizing low power superspeed inter-chip (LP-SSIC) communications
KR101499923B1 (en) Operation of media interface to provide bidirectional communications
KR102569761B1 (en) Semiconductor device, semiconductor system and method for operating semiconductor device
RU2611972C2 (en) Wireless lan connection handover by means of docking system and network device universal driver
TWI637272B (en) Superspeed inter-chip communications
EP2104282B1 (en) Information processing unit, information processing method, client device and information processing system to maintain a network connection
US9438535B2 (en) Method and system for a plurality of physical layers for network connection
US8462813B2 (en) Method and system for asymmetric operation in a network node in an energy efficient network
US20060153238A1 (en) Transfer of control data between network components
US7561592B1 (en) Method and apparatus for fiber auto-negotiation
CN102273147A (en) Self-configurable asymmetric communication link
EP2928108B1 (en) System, method and apparatus for multi-lane auto-negotiation over reduced lane media
JP2002271445A (en) Auto-negotiation method for high speed link and auto- negotiation apparatus
JP2005107683A (en) Communication controller, communications system, communication apparatus, and communication method
WO2022068302A1 (en) Chip, communication system and communication method
US9264106B2 (en) Method for controlling flows of logical link layer in near field communication software stack
TWI408559B (en) Transitioning of a port in a communications system from an active state to a standby state
US20220382706A1 (en) Peripheral component interconnect express interface device and operating method thereof
CN107066418A (en) A kind of SATA protocol power-up initializing control method and controller based on FPGA
US6992989B2 (en) Method for solving a mismatched negotiation problem between an auto-negotiation mode and an enforce mode
KR101434339B1 (en) A method and system for optimizing power consumption and reducing mips requirements for wireless communication
EP2339811B1 (en) Method and system for communication capacity negotiation of physical layer chips
CN101267351B (en) Realization method, system and device for online software upgrade based on application architecture
WO2024066449A1 (en) Communication fault processing method and system, and device
TW202038668A (en) Wireless communication method and apparatus thereof

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21873964

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21873964

Country of ref document: EP

Kind code of ref document: A1