MIPI APHY cable polarity adaptive decoding method

By sending a fixed sequence in the MIPI APHY system and using a counter to determine the cable status, the connection problem under reverse plugging is solved, automatic detection and adaptation is achieved, and the convenience and accuracy of the system are improved.

CN119292984AActive Publication Date: 2025-01-10SHANGHAI XINQIZHI TECHNOLOGY CO LTD

Patent Information

Application Number
CN202411426935.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-14
Publication Date
2025-01-10
Estimated Expiration
2044-10-14

AI Technical Summary

Technical Problem

The MIPI APHY system cannot correctly establish connections under the back plugging of the cables, and lacks automatic identification and adaptation methods, which affects the wiring convenience and compatibility of the system.

Method used

The sending end periodically sends a fixed-length sequence of 01, and judges the cable status based on the number of sequences received at the receiving end. If it is a forward plug state, the data will not be processed. If it is an inverse plug state, the data will be processed in bitwise. Automatically identify cable polarity using counters and time thresholds.

Benefits of technology

It realizes automatic detection of cable status without external equipment intervention, improves connection timeliness and accuracy, and ensures that the system works normally under any plug-in situation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119292984A_ABST
    Figure CN119292984A_ABST
Patent Text Reader

Abstract

The invention discloses an MIPI APHY cable polarity adaptive decoding method, and belongs to the field of signal detection. In the connection establishment process of the APHY, a sending end periodically sends a 01 sequence with a fixed length and a fixed format at a certain stage, and the 01 sequence is recorded as a first sequence; meanwhile, a sequence obtained by bit negation of the first sequence is called an anti-code sequence and is recorded as a second sequence; in the stage, a receiving end circuit continuously observes the received code stream: when the number of times of receiving the first sequence within a certain time is greater than a preset threshold value, it is considered that the cable is in a positive insertion state at the moment, and data analyzed by an analog circuit is not processed; and when the number of times of receiving the second sequence within a certain time is greater than a preset threshold value, it is considered that the cable is in a reverse insertion state at the moment, and subsequent actions are carried out after bit negation is carried out on the data analyzed by the analog circuit. Compared with the mode that the current cable state is judged through an upper layer protocol, the timeliness and accuracy of the method are better.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of signal detection, and in particular to a method for adaptively decoding polarity of a MIPI APHY cable. Background Art

[0002] At the receiving end of the MIPI (Mobile Industry Processor Interface) APHY (Automobile PHY) signal, the current protocol can only work properly when the cable is plugged in correctly, such as Figure 1 If the cable is plugged in reverse, as shown Figure 2 If the following error message appears, the connection cannot be established correctly.

[0003] In order to enhance the convenience and compatibility of MIPI APHY system board-level layout and wiring, there is an urgent need for a method that allows the system to automatically identify whether the current cable status is forward or reverse, and to establish a normal connection without the intervention of any external device. Summary of the invention

[0004] The object of the present invention is to provide a method for adaptively decoding polarity of a MIPI APHY cable to solve the problems in the background technology.

[0005] In order to solve the above technical problems, the present invention provides a method for adaptively decoding MIPI APHY cable polarity, comprising: During the APHY connection establishment process, at a certain stage, the sender will periodically send a fixed-length and fixed-format 01 sequence, which is recorded as the first sequence. At the same time, the sequence that is the bit-inverted first sequence is called the inverse sequence, which is recorded as the second sequence. During this phase, the receiving circuit will continue to observe the received bit stream: When the number of times the first sequence is received within a certain period of time is greater than a preset threshold, it is considered that the cable is in a normal plug-in state, and the data parsed by the analog circuit is not processed; When the number of times the second sequence is received within a certain period of time is greater than a preset threshold, it is considered that the cable is in a reverse insertion state, and the data analyzed by the analog circuit is bit-inverted before subsequent actions are performed; When calculating the number of times the first sequence is received, if the second sequence is received, the counter of the first sequence is reset; when calculating the number of times the second sequence is received, if the first sequence is received, the counter of the second sequence is reset; If the first sequence is detected, the counter of the first sequence is incremented by 1 and the counter of the second sequence is reset to zero; if the second sequence is detected, the counter of the second sequence is incremented by 1 and the counter of the first sequence is reset to zero.

[0006] In one implementation, if the first sequence or the second sequence is not detected in the received code stream, the current data format of the analog circuit is maintained for processing.

[0007] The present invention provides a method for adaptively decoding MIPI APHY cable polarity, which has the following beneficial effects: (1) It can automatically detect whether the cable is in the forward or reverse insertion state; (2) After the cable status is detected, the system can directly establish a connection normally without the intervention of external equipment; (3) Compared with using upper layer protocols to judge the current cable status, the timeliness and accuracy of the present invention are better. BRIEF DESCRIPTION OF THE DRAWINGS

[0008] Figure 1 This is an indication that the APHY cable is properly plugged in.

[0009] Figure 2 This is an indication that the APHY cable is plugged in reverse.

[0010] Figure 3 It is a typical application diagram of the method for adaptive decoding of MIPI APHY cable polarity proposed in the present invention. DETAILED DESCRIPTION

[0011] The following is a further detailed description of a method for adaptive decoding of MIPI APHY cable polarity proposed by the present invention in conjunction with the accompanying drawings and specific embodiments. The advantages and features of the present invention will become clearer according to the following description. It should be noted that the accompanying drawings are in a very simplified form and are not in precise proportions, and are only used to conveniently and clearly assist in explaining the purpose of the embodiments of the present invention.

[0012] When the cable is reversed, the data 0 sent by the sender will be parsed as data 1 by the receiver, and the data 1 sent by the sender will be parsed as data 0 by the receiver. During the APHY connection establishment process, there is a window in which the sender will send a fixed format 01 sequence. Based on the above two facts, the present invention designs the following method: like Figure 3 As shown, when the other party's transmitting end sends a sequence of a specific format, the relevant detection program will be started, otherwise the data format of the current analog circuit will be maintained for processing.

[0013] When the detection program is started, it is determined whether there is a sequence of a specific format or a sequence of a specific format inverse in the current code stream. If neither of the above is detected, the current data format of the analog circuit is maintained for processing.

[0014] If a sequence of a specific format is detected, the counter of the specific format sequence should be increased by 1, and the counter of the specific format inverse sequence should be reset to zero, and further determine whether the counter of the specific format sequence has counted to the preset threshold. If the threshold has been reached, it is determined that the APHY cable is in the positive insertion state, indicating that the subsequent processing should use the original data sent by the analog circuit. If the threshold has not been reached, continue monitoring.

[0015] If a sequence of a specific format reverse code is detected, the counter of the specific format reverse code sequence should be increased by 1, and the counter of the specific format sequence should be reset to zero, and further determine whether the counter of the specific format reverse code sequence has counted to the preset threshold. If the threshold has been reached, it is determined that the APHY cable is in the reverse insertion state, and the subsequent processing should use the original data sent by the analog circuit and reverse it bit by bit. If the threshold has not been reached, continue monitoring.

[0016] The above description is only a description of the preferred embodiments of the present invention, and is not intended to limit the scope of the present invention. Any changes or modifications made by a person skilled in the art in the field of the present invention based on the above disclosure shall fall within the scope of protection of the claims.

Claims

1. A method for adaptive decoding of MIPI APHY cable polarity, characterized in that: include: During the APHY connection establishment process, at a certain stage, the sender will periodically send a fixed-length and fixed-format 01 sequence, which is recorded as the first sequence. At the same time, the sequence that is the bit-inverted first sequence is called the inverse sequence, which is recorded as the second sequence. During this phase, the receiving circuit will continue to observe the received bit stream: When the number of times the first sequence is received within a certain period of time is greater than a preset threshold, it is considered that the cable is in a normal plug-in state, and the data parsed by the analog circuit is not processed; When the number of times the second sequence is received within a certain period of time is greater than a preset threshold, it is considered that the cable is in a reverse insertion state, and the data analyzed by the analog circuit is bit-inverted before subsequent actions are performed; When calculating the number of times the first sequence is received, if the second sequence is received, the counter of the first sequence is reset; when calculating the number of times the second sequence is received, if the first sequence is received, the counter of the second sequence is reset; If the first sequence is detected, the counter of the first sequence is incremented by 1 and the counter of the second sequence is reset to zero; If the second sequence is detected, the counter of the second sequence is incremented by 1 and the counter of the first sequence is reset to zero.

2. The method for adaptive decoding of MIPI APHY cable polarity according to claim 1, characterized in that: If the first sequence or the second sequence is not detected in the received code stream, the data format of the current analog circuit is maintained for processing.

Citation Information

Patent Citations

  • A high-voltage frequency converter optical signal loop test method and system

    CN109842441A

  • DP interface chip, high-definition video receiving chip and electronic equipment

    CN112714270A

  • Method for detecting MIPI APHY high-speed differential signal

    CN116667858A

  • Marine cable state detection method and system

    CN117741514A

  • Digital sequence polarity detection with adaptive synchronization

    US4754457A

Cited By

  • Method for improving decoding robustness of MIPI A-PHY cable

    CN122052993A