CN111881077B - Parameter self-adaptive adjustment method for improving stability of SATA protocol interface - Google Patents
Parameter self-adaptive adjustment method for improving stability of SATA protocol interface Download PDFInfo
- Publication number
- CN111881077B CN111881077B CN202010755525.1A CN202010755525A CN111881077B CN 111881077 B CN111881077 B CN 111881077B CN 202010755525 A CN202010755525 A CN 202010755525A CN 111881077 B CN111881077 B CN 111881077B
- Authority
- CN
- China
- Prior art keywords
- link
- sata
- speed serial
- error information
- feedback
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 43
- 230000005540 biological transmission Effects 0.000 claims abstract description 13
- 238000001514 detection method Methods 0.000 claims description 24
- 230000003044 adaptive effect Effects 0.000 description 10
- 238000010586 diagram Methods 0.000 description 6
- 238000013075 data extraction Methods 0.000 description 3
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012546 transfer Methods 0.000 description 2
- 238000013461 design Methods 0.000 description 1
- 238000010561 standard procedure Methods 0.000 description 1
- 238000011282 treatment Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/38—Information transfer, e.g. on bus
- G06F13/42—Bus transfer protocol, e.g. handshake; Synchronisation
- G06F13/4282—Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Communication Control (AREA)
Abstract
The invention relates to a parameter self-adaptive adjustment method for improving the stability of an SATA protocol interface, which comprises the following steps: detecting feedback error information after power-on, if feedback error information exists, adjusting and configuring parameters of the high-speed serial transceiver according to a preset sequence, if feedback error information does not exist, entering a SATA link initialization standard process, wherein the SATA link initialization standard process completes a physical layer OOB handshake process specified in a SATA protocol standard, establishes a link path, starts data transmission, continuously detects link state and primitives after the link is established, and feeds back error information if errors occur. The invention realizes the self-adaptive adjustment of the configuration parameters of the high-speed serial transceiver according to the link state by the configuration control logic of the high-speed serial transceiver, and improves the SATA signal quality and the link stability.
Description
Technical Field
The present invention relates to SATA physical layer control logic technology, and more particularly, to a parameter adaptive adjustment method for improving SATA protocol interface stability.
Background
SATA is one of the mainstream high-speed storage interface standards today, and adopts a point-to-point half duplex transmission mode, which has the advantages of fewer interface pins, high transmission speed, and support for hot plug. The SATA physical layer uses a high speed serial transfer interface to accomplish serial data transfer requirements up to 6 Gb/s.
However, the OOB handshake initialization process of the SATA physical layer may be affected by the high-speed serial transceiver. Under the actual use scene, the SATA cable of different storage equipment or different length specifications can all lead to SATA equipment connection condition poor, take place link interruption, unidentified unusual phenomenon easily. The high-speed serial transceiver can compensate signal loss caused by a transmission line and the environment by respectively carrying out pre-emphasis, equalization and other treatments on the link signals at a transmitting end and a receiving end.
Because different usage environments and objects place different demands on the parameters configuration of SATA host controllers and high speed serial transceivers. By automatically configuring and adjusting parameters such as pre-emphasis, de-emphasis and the like of the high-speed serial transceiver according to the use scene, the transmission quality of SATA signals can be improved, the link connection stability and the reliability of a controller are improved, and the reliable connection of the SATA link and the stable transmission of data are realized.
Disclosure of Invention
The present invention is directed to a parameter adaptive adjustment method for improving the stability of SATA protocol interfaces, which is used for solving the above problems in the prior art.
The invention discloses a parameter self-adaptive adjustment method for improving the stability of an SATA protocol interface, which comprises the following steps: detecting feedback error information after power-on, if feedback error information exists, adjusting and configuring parameters of the high-speed serial transceiver according to a preset sequence, if feedback error information does not exist, entering a SATA link initialization standard process, wherein the SATA link initialization standard process completes a physical layer OOB handshake process specified in a SATA protocol standard, establishes a link path, starts data transmission, continuously detects link state and primitives after the link is established, and feeds back error information if errors occur.
According to an embodiment of the parameter adaptive adjustment method for improving the stability of the SATA protocol interface of the present invention, the primitive detection and the feedback information of the OOB signal detection module are detected after the power is applied through the parameter configuration module, if there is feedback error information, the parameters of the high-speed serial transceiver are adjusted and configured according to a predetermined sequence, and if there is no feedback information, the SATA link initialization standard process is entered.
According to an embodiment of the parameter adaptive adjustment method for improving the stability of the SATA protocol interface, a comp set signal is sent to a device through a host controller, and after receiving a comp init signal returned by the device, the device sends a comp wake signal to the device and waits for feedback from the device.
According to an embodiment of the parameter adaptive adjustment method for improving the stability of the SATA protocol interface of the present invention, after receiving a device side command signal through a host controller, the host controller continues to send a D10.2 sequence signal to the device side, waits for the device side to return an Align primitive, and starts sending the Align primitive to the device side after detecting the Align primitive by the host side until three other primitives other than Align are continuously received by the device side, and then the link OOB initialization is ended.
According to an embodiment of the parameter adaptive adjustment method for improving the stability of the SATA protocol interface of the present invention, in a state of continuous detection and feedback adjustment, a host and a device perform data transmission, and detect a working state of a high-speed serial transceiver, continuously detect a bit of a link state fed back by a frame header SOF, a frame tail EOF, an Align, and a Sync primitive and the device, if the bit of the link state is wrong, the bit of the link state is faulty, and a host controller returns to an error state, adjusts parameters of the high-speed serial transceiver according to an initial setting sequence, and restarts a link initialization process.
The invention relates to a parameter self-adaptive adjustment method for improving the stability of an SATA protocol interface, which adds a state detection and feedback adjustment mechanism in a SATA host controller to carry out self-adaptive configuration on parameters of a high-speed serial transceiver in a SATA link. After the host and the equipment are powered on, the host end controller completes the SATA link initialization standard process and establishes a link passage. In the data transmission process, the host controller continuously detects the flag bit of the high-speed serial transceiver and the SATA link state, and after an error occurs, the error information is fed back to the host physical layer control state machine and the link initialization process is restarted. And the high-speed serial transceiver parameter configuration control logic is used for adjusting the configuration parameters of the high-speed serial transceiver and reestablishing the link so as to realize self-adaptive adjustment of the configuration parameters of the high-speed serial transceiver according to the link state and improve the SATA signal quality and the link stability.
Drawings
FIG. 1 is a flow chart illustrating a method for adaptively adjusting parameters to improve stability of a SATA protocol interface;
FIG. 2 is a diagram of a SATA physical layer with status detection and feedback adjustment mechanism;
FIG. 3 is a schematic diagram of a parameter configuration logic;
fig. 4 is a schematic diagram of the continuous detection and feedback adjustment logic.
1. Control logic; 2. a parameter configuration module; 3. generating primitives; 4. primitive detection; 5. extracting data; 6. a high-speed serial transceiver; oob signal detection.
Detailed Description
For the purposes of clarity, content, and advantages of the present invention, a detailed description of the embodiments of the present invention will be described in detail below with reference to the drawings and examples.
Fig. 1 is a flow chart of a parameter adaptive adjustment method for improving the stability of a SATA protocol interface, fig. 2 is a SATA physical layer structure diagram with a status detection and feedback adjustment mechanism, fig. 3 is a logic diagram of parameter configuration, fig. 4 is a logic diagram of continuous detection and feedback adjustment, and fig. 1 to 4 show a parameter adaptive adjustment method for improving the stability of a SATA protocol interface according to the present invention, wherein the SATA physical layer structure with a status detection and feedback adjustment mechanism comprises: control logic (1), primitive generation (3), primitive detection (4), data extraction (5), and high-speed serial transceiver (6). Wherein the control logic (1) comprises a parameter configuration module (2) and the high-speed serial transceiver (6) comprises OOB signal detection (7). The interconnection relation comprises: the control logic (1) is connected with the primitive generation (3) in a unidirectional way, the control logic (1) is connected with the primitive detection (4) in a unidirectional way, the control logic (1) is connected with the OOB signal detection (7) in a unidirectional way, the parameter configuration module (2) is connected with the high-speed serial transceiver (6) in a unidirectional way, the primitive generation (3) is connected with the high-speed serial transceiver (6) in a unidirectional way, the primitive detection (4) is connected with the data extraction (5) in a unidirectional way, and the data extraction (5) is connected with the high-speed serial transceiver (6) in a unidirectional way.
As shown in fig. 1 to 4, the parameter adaptive adjustment method for improving the stability of the SATA protocol interface according to the present invention includes three logic including parameter configuration, SATA link initialization standard procedure and continuous detection and feedback adjustment. The parameter configuration module (2) detects feedback error information after power-on, adjusts and configures parameters of the high-speed serial transceiver (6) according to a preset sequence if feedback information exists, and enters a SATA link initialization standard process if feedback information does not exist. The SATA link initialization standard process completes the physical layer OOB handshake process specified in the SATA protocol standard, establishes a link path and starts data transmission. The continuous detection and feedback adjustment part logic continuously detects primitives such as link state and Align after the link is established, and if errors occur, the error information is fed back to the parameter configuration part logic.
As shown in fig. 1 to fig. 4, in the parameter adaptive adjustment method for improving the stability of the SATA protocol interface according to the present invention, after the host and the device are powered on normally, the parameter configuration module (2) detects feedback information of modules such as primitive detection (4) and OOB signal detection (7) after powering on, if there is feedback error information, adjusts and configures parameters of the high-speed serial transceiver (6) according to a predetermined sequence, and if there is no feedback information, enters into the SATA link initialization standard process. At this time, the host controller sends a comp signal to the device, and after receiving the comp signal returned by the device, sends a comp signal to the device and waits for the feedback from the device. After receiving the COMWAKE signal at the device end, the host end controller continues to send a D10.2 sequence signal to the device end, and waits for the device end to return an Align primitive. And after the host detects the Align primitive, starting to send the Align primitive to the equipment end until three other primitives which are not Align of the equipment end are continuously received, ending the initialization of the link OOB, starting the link and entering a continuous detection and feedback adjustment state. In the continuous detection and feedback adjustment state, the host end and the equipment end perform data transmission, and simultaneously detect the working state of the high-speed serial transceiver (6), and continuously detect primitives such as a frame header SOF, a frame tail EOF, align, sync and the like and flag bits such as a link state fed back by the equipment end. If the flag bit is wrong, the link is represented to be faulty, the host controller returns an error state, and the high-speed serial transceiver parameters are adjusted according to the initial setting sequence, and the link initialization process is restarted.
The invention provides a design method for adjusting configuration parameters of a high-speed serial transceiver in real time according to the state of a SATA link, which aims at the problem that the parameters of a SATA host controller and the high-speed serial transceiver are configured and required differently by different use environments and objects. The invention provides a method for adjusting the configuration parameters of a high-speed serial transceiver in real time according to the link state, thereby improving the SATA signal quality, realizing the self-adaptive configuration of the configuration parameters of the high-speed serial transceiver, reducing the problems of SATA link interruption, unrecognization and the like, and improving the link connection stability and the controller reliability.
The foregoing is merely a preferred embodiment of the present invention, and it should be noted that modifications and variations could be made by those skilled in the art without departing from the technical principles of the present invention, and such modifications and variations should also be regarded as being within the scope of the invention.
Claims (4)
1. A parameter self-adaptive adjustment method for improving stability of SATA protocol interface is characterized by comprising the following steps:
detecting feedback error information after power-on, if the feedback error information exists, adjusting and configuring parameters of the high-speed serial transceiver according to a preset sequence, if the feedback error information does not exist, entering a SATA link initialization standard process, wherein the SATA link initialization standard process completes a physical layer OOB handshake process specified in a SATA protocol standard, establishes a link path, starts data transmission, continuously detects link state and primitives after the link is established, and feeds back the error information if errors occur;
wherein,
And detecting the primitive detection and the feedback information of the OOB signal detection module through the parameter configuration module after power-on, if feedback error information exists, adjusting and configuring the parameters of the high-speed serial transceiver according to a preset sequence, and if feedback information does not exist, entering a SATA link initialization standard process.
2. The method for adaptively adjusting parameters for improving the stability of a SATA protocol interface as recited in claim 1 wherein a COMRESET signal is sent to the device side by the host side controller, and after receiving a COMINIT signal returned from the device side, the device side sends a COMWAKE signal to the device side and waits for feedback from the device side.
3. The method for adaptively adjusting parameters for improving the stability of a SATA protocol interface as recited in claim 1 wherein after receiving a command signal from a host controller, the host controller continues to send a D10.2 sequence signal to the device, waits for an Align primitive to be returned from the device, and starts sending the Align primitive to the device when the host detects the Align primitive until three other primitives other than Align are continuously received from the device, and the link OOB initialization is completed.
4. The method for adaptively adjusting parameters for improving the stability of SATA protocol interfaces according to claim 1, wherein the working state of the high-speed serial transceiver is detected while the host and the device perform data transmission in the continuously detecting and feedback adjustment state, the frame header SOF, the frame end EOF, the Align, and the Sync primitive are continuously detected, and the link status flag bit fed back by the device is continuously detected, if the flag bit is wrong, the error state is represented, the host controller returns to the error state, and the parameters of the high-speed serial transceiver are adjusted according to the initial setting sequence, and the link initialization process is restarted.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010755525.1A CN111881077B (en) | 2020-07-29 | 2020-07-29 | Parameter self-adaptive adjustment method for improving stability of SATA protocol interface |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010755525.1A CN111881077B (en) | 2020-07-29 | 2020-07-29 | Parameter self-adaptive adjustment method for improving stability of SATA protocol interface |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111881077A CN111881077A (en) | 2020-11-03 |
CN111881077B true CN111881077B (en) | 2024-04-19 |
Family
ID=73204675
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010755525.1A Active CN111881077B (en) | 2020-07-29 | 2020-07-29 | Parameter self-adaptive adjustment method for improving stability of SATA protocol interface |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111881077B (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103716118A (en) * | 2012-09-28 | 2014-04-09 | 京信通信系统(中国)有限公司 | Self-adaption multi-rate data transmitting and receiving method and device |
CN106598889A (en) * | 2016-08-18 | 2017-04-26 | 湖南省瞬渺通信技术有限公司 | SATA (Serial Advanced Technology Attachment) master controller based on FPGA (Field Programmable Gate Array) sandwich plate |
CN107066418A (en) * | 2017-03-07 | 2017-08-18 | 广州慧睿思通信息科技有限公司 | A kind of SATA protocol power-up initializing control method and controller based on FPGA |
CN108400903A (en) * | 2018-01-22 | 2018-08-14 | 济南浪潮高新科技投资发展有限公司 | A kind of physical layer link status detection method and device |
CN109995383A (en) * | 2017-12-30 | 2019-07-09 | 华为技术有限公司 | Interpretation method, device, storage medium and computer program product |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7366760B2 (en) * | 2003-01-03 | 2008-04-29 | Microsoft Corporation | System and method for improved client server communications of email messages |
-
2020
- 2020-07-29 CN CN202010755525.1A patent/CN111881077B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103716118A (en) * | 2012-09-28 | 2014-04-09 | 京信通信系统(中国)有限公司 | Self-adaption multi-rate data transmitting and receiving method and device |
CN106598889A (en) * | 2016-08-18 | 2017-04-26 | 湖南省瞬渺通信技术有限公司 | SATA (Serial Advanced Technology Attachment) master controller based on FPGA (Field Programmable Gate Array) sandwich plate |
CN107066418A (en) * | 2017-03-07 | 2017-08-18 | 广州慧睿思通信息科技有限公司 | A kind of SATA protocol power-up initializing control method and controller based on FPGA |
CN109995383A (en) * | 2017-12-30 | 2019-07-09 | 华为技术有限公司 | Interpretation method, device, storage medium and computer program product |
CN108400903A (en) * | 2018-01-22 | 2018-08-14 | 济南浪潮高新科技投资发展有限公司 | A kind of physical layer link status detection method and device |
Also Published As
Publication number | Publication date |
---|---|
CN111881077A (en) | 2020-11-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8719475B2 (en) | Method and system for utilizing low power superspeed inter-chip (LP-SSIC) communications | |
US7036031B2 (en) | Electronic device and its power control method | |
US20120011286A1 (en) | Optical communication module, universal serial bus cable with the same and processing method of data transfer thereof | |
CN113193914B (en) | Sending unit, receiving unit, active transmission device and active transmission system suitable for USB signals | |
CN103797732B (en) | Communication means, peripheral component interconnection PCIE chip and PCIE device | |
CN101076788A (en) | Bi-directional serial interface for communication control | |
CN101483646B (en) | Method and interface for high-speed communication on bus | |
JP2013192223A (en) | Active optical cable connector plug and active optical cable employing the same | |
US11347669B2 (en) | Equalization time configuration method, chip, and communications system | |
US20190095377A1 (en) | Serial connection between management controller and microcontroller | |
CN110990312B (en) | Chip-level data communication method for detection while drilling | |
WO2015158156A1 (en) | Device for extending universal serial bus transmission distance | |
US20130254440A1 (en) | Devices and methods for transmitting usb termination signals over extension media | |
CN113283464B (en) | USB plug and transmission system supporting USB signal link training | |
US20150242353A1 (en) | Data transfer apparatus, host apparatus, data transfer system, and communication mode setting method | |
CN111881077B (en) | Parameter self-adaptive adjustment method for improving stability of SATA protocol interface | |
JP6122509B2 (en) | Method for detecting receiving end, detection circuit, optical module and system | |
CN107066418A (en) | A kind of SATA protocol power-up initializing control method and controller based on FPGA | |
US9215113B1 (en) | Link training in a communication port | |
US12066972B2 (en) | Communication device and active cable | |
CN113965713B (en) | HDMI active cable supporting high-speed signal link training | |
CN107070547B (en) | A kind of CPCI type gigabit Ethernet device with failure monitoring ability | |
CN112817895B (en) | Communication method based on GPIO | |
WO2012071925A1 (en) | Single board communication system and communication method thereof | |
EP2936760B1 (en) | Devices and methods for transmitting usb termination signals over extension media |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |