Method and device for identifying the insertion mode of connector

By adopting a rotatably symmetric transmission channel arrangement on the connector interface and determining the insertion method using feature information, the problem of low signal transmission efficiency in the prior art is solved, and efficient utilization of transmission channels and improved signal transmission efficiency are achieved.

CN115885439BActive Publication Date: 2025-04-08HUAWEI TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202080103235.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-11-30
Publication Date
2025-04-08
Estimated Expiration
2040-11-30

AI Technical Summary

Technical Problem

In the interface design of existing connectors, signal transmission efficiency is low, especially when the utilization rate of multiple transmission channels is insufficient.

Method used

By adopting a rotatably symmetric transmission channel arrangement on the connector interface and transmitting characteristic information with specific value meanings on the transmission channel, the insertion method of the connector is determined to ensure that all transmission channels are in the working state and improve signal transmission efficiency.

Benefits of technology

The signal transmission efficiency improvement on the connector interface is achieved, and the utilization rate of the transmission channel reaches 100%, solving the problem of low signal transmission efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115885439B_ABST
    Figure CN115885439B_ABST
Patent Text Reader

Abstract

A method and device for identifying the insertion mode of a connector. The method comprises: a sending end connector acquires characteristic information, the characteristic information being used to identify the category of a second transmission channel (501); the sending end connector sends the characteristic information through the second transmission channel (502); the receiving end connector receives the characteristic information through the first transmission channel (503); when the characteristic information corresponds to a first type of transmission channel, the receiving end connector determines that the male head of the first connector is inserted into the female head of the second connector in a first direction (504a); when the characteristic information corresponds to a non-first type of transmission channel, the receiving end connector determines that the male head of the first connector is inserted into the female head of the second connector in a second direction (504b), and the first direction and the second direction are opposite. The identification method and device can improve the signal transmission efficiency on the interface.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present application relate to communication technology, and more particularly, to a method and device for identifying the insertion mode of a connector. Background Art

[0002] Usually, pluggable connectors include male and female connectors. The male connector refers to the protruding side of the interface, and the female connector refers to the recessed side of the interface. Inserting the male connector of one connector into the female connector of another connector can achieve the connection between the two connectors, thereby establishing a signal transmission link between the two. Currently, the connector interfaces mostly use high definition multimedia interface (HDMI), display port (DP), universal serial bus (USB) and Apple lightning.

[0003] As competition in electronic products becomes increasingly fierce, how to improve interface performance has become a key technology to improve signal transmission efficiency. Summary of the invention

[0004] The embodiments of the present application provide a method and device for identifying the insertion mode of a connector, which does not require additional dedicated transmission channels to transmit characteristic information, and can improve the signal transmission efficiency on the interface.

[0005] In a first aspect, an embodiment of the present application provides a method for identifying an insertion method of a connector, the method comprising: receiving first characteristic information through a first transmission channel, the first transmission channel being any one of a plurality of transmission channels included in an interface of the connector, and the first transmission channel being a first type of transmission channel, the arrangement of the plurality of transmission channels being rotationally symmetrical, and the interface of the connector being a male head of a first connector or a female head of a second connector; when the first characteristic information corresponds to the first type of transmission channel, determining that the male head of the first connector is inserted into the female head of the second connector in a first direction; when the first characteristic information does not correspond to the first type of transmission channel, determining that the male head of the first connector is inserted into the female head of the second connector in a second direction; wherein the first direction is opposite to the second direction.

[0006] The method of the embodiment of the present application is applicable to the scenario where the male head of the first connector is inserted into the female head of the second connector, but it does not limit the transmission direction of the first connector and the second connector, that is, when implementing the method for identifying the insertion method of the connector provided in the embodiment of the present application, the male head of the first connector (sending end connector) may send a signal, and the female head of the second connector (receiving end connector) may receive a signal; or the female head of the second connector (sending end connector) may send a signal, and the male head of the first connector (receiving end connector) may receive a signal. In addition, the arrangement of the multiple transmission channels included in the male head of the first connector and the multiple transmission channels included in the female head of the second connector are the same and rotationally symmetrical, so as to ensure that when the male head of the first connector is inserted into the female head of the second connector in the first direction or the second direction, all transmission channels of the first connector and the second connector can work normally.

[0007] The first transmission channel is any one of the multiple transmission channels included in the interface of the receiving end connector. Figure 2 As shown, the interface of the connector includes 8 transmission channels. In order to determine the insertion mode of the two connectors, the receiving-end connector can implement the following steps based on any one of the transmission channels, that is, the receiving-end connector can only detect the characteristic information received on one transmission channel to determine the insertion mode of the connector. Optionally, the following steps can also be implemented based on 8 (or less than 8) transmission channels, that is, the connector can detect multiple or even all transmission channels at the same time, and may receive characteristic information from one or more of the transmission channels, and then determine the insertion mode of the connector based on the characteristic information. Regardless of how many transmission channels are selected, the implementation methods of each transmission channel are the same. Therefore, the following description takes one transmission channel (the first transmission channel) as an example, and other transmission channels can refer to this method and will not be repeated one by one.

[0008] Similarly, in the embodiment of the present application, the interface of the connector at the receiving end and the interface of the connector at the transmitting end adopt a rotationally symmetrical structure, so the multiple transmission channels contained in the interface can also be classified as first-class transmission channels or second-class transmission channels based on the rotationally symmetrical relationship between the transmission channels. Optionally, the multiple transmission channels contained in the interface of the receiving end connector can also be classified into multiple categories. In the embodiment of the present application, two rotationally symmetrical transmission channels cannot be classified into the same category. For example, if Q1_L0 and Q3_L0 are in rotationally symmetrical positions, Q1_L0 and Q3_L0 need to be marked as different categories. If Q2_L1 and Q4_L1 are in rotationally symmetrical positions, Q2_L1 and Q4_L1 need to be marked as different categories. No specific limitation is made on other classification strategies for transmission channels.

[0009] The multiple transmission channels included in the interface of the receiving end connector and the multiple transmission channels included in the interface of the sending end connector can be classified based on the same policy, that is, the category of any transmission channel in the interface of the sending end connector is consistent with the category of the transmission channel at the corresponding position in the interface of the receiving end connector.

[0010] When the transmitting connector sends the characteristic information, it has assigned a value to the characteristic information according to the category of the second transmission channel. Then the receiving connector can distinguish which category of transmission channel the characteristic information corresponds to based on the value of the received characteristic information. For example, the characteristic information corresponds to the first category of transmission channels, which indicates that the value of the characteristic information is consistent with the pre-set identification value for identifying the category of the first category of transmission channels. The present application can pre-set identification values ​​for transmission channels of each category after classifying the multiple transmission channels included in the interface of the connector, and then store the classification information and identification values ​​of the multiple transmission channels in the connector's memory (such as the connector's cache, memory or other internal memory), so that the connector can read directly from the storage when the above information is needed. The multiple transmission channels included in the interface of the receiving connector and the multiple transmission channels included in the interface of the transmitting connector can be classified based on the same strategy. When the category of the transmission channel (the second transmission channel) from which the characteristic information comes is consistent with the category of the transmission channel (the first transmission channel) that receives the characteristic information, it means that the male head of the first connector is inserted into the female head of the second connector in a first direction (for example, forward); when the category of the transmission channel (the second transmission channel) from which the characteristic information comes is inconsistent with the category of the transmission channel (the first transmission channel) that receives the characteristic information, it means that the male head of the first connector is inserted into the female head of the second connector in a second direction (for example, reverse).

[0011] To put it another way, the receiving connector can classify the multiple transmission channels included in the interface based on the same category classification strategy as the sending connector, and the value of the characteristic information is associated with the category of the transmission channel. Therefore, the value of the characteristic information transmitted by the receiving connector for the first transmission channel is expected. Therefore, if the value of the characteristic information actually received (from the second transmission channel) is consistent with the value of the expected characteristic information, it means that the male head of the first connector is inserted into the female head of the second connector in a first direction (for example, forward); if the value of the characteristic information actually received (from the second transmission channel) is inconsistent with the expected value of the characteristic information, it means that the male head of the first connector is inserted into the female head of the second connector in a second direction (for example, reverse).

[0012] In a possible implementation, the first characteristic information is a synchronization header of a signal received on the first transmission channel; or, the first characteristic information is a handshake sequence received on the first transmission channel; or, the first characteristic information is a heartbeat message received on the first transmission channel.

[0013] In a possible implementation, the characteristic information may be carried in an existing signal.

[0014] Optionally, the characteristic information may be a synchronization header of a signal sent on the second transmission channel. For example, the signal includes a synchronization header and data. Figure 2 For example, the preset value of the synchronization header used to identify the first type of transmission channel is 0011, and the value of the synchronization header used to identify the second type of transmission channel is 1010. Therefore, the transmitting connector can fill in 0011 in the synchronization header of the signal sent on Q1_Ly or Q2_Ly, and fill in 1010 in the synchronization header of the signal sent on Q3_Ly and Q4_Ly.

[0015] Optionally, the characteristic information may also be a handshake sequence sent on the second transmission channel. For example, a handshake sequence is a sequence sent before the sender connector and the receiver connector establish a connection. Figure 2 For example, the preset value of the handshake sequence used to identify the first type of transmission channel is 5A5A5A5A, and the value of the handshake sequence used to identify the second type of transmission channel is 3C3C3C3C. Therefore, the transmitting connector can send the handshake sequence 5A5A5A5A on Q1_Ly or Q2_Ly, and send the handshake sequence 3C3C3C3C on Q3_Ly and Q4_Ly.

[0016] Optionally, the characteristic information may also be a heartbeat message sent on the second transmission channel. For example, a heartbeat message is a heartbeat detection message sent regularly or irregularly between the sending end connector and the receiving end connector after the two are connected. Figure 2 For example, the preset value of the heartbeat message used to identify the first type of transmission channel is 5A5A5A5A, and the value of the heartbeat message used to identify the second type of transmission channel is 3C3C3C3C. Therefore, the sending connector can send the heartbeat message 5A5A5A5A on Q1_Ly or Q2_Ly, and send the heartbeat message 3C3C3C3C on Q3_Ly and Q4_Ly.

[0017] It should be noted that in addition to transmitting characteristic information through the above three types of signals in the embodiments of the present application, characteristic information can also be transmitted through other existing signals, and there is no specific limitation on this.

[0018] In a possible implementation, the characteristic information may be carried in a signal newly added in the embodiment of the present application. That is, a new signal is added between the transmitting end connector and the receiving end connector, and the characteristic information is transmitted through the new signal. The embodiment of the present application does not specifically limit the format and transmission mechanism of the newly added signal.

[0019] In a possible implementation, the method further includes: acquiring second characteristic information, where the second characteristic information is used to identify a category of a second transmission channel, where the second transmission channel is any one of the multiple transmission channels; and sending the second characteristic information through the second transmission channel.

[0020] The second transmission channel is any one of the multiple transmission channels included in the interface of the transmitting end connector. Figure 2 As shown, the interface of the connector includes 8 transmission channels. In order to determine the insertion mode of the two connectors, the sending end connector can implement the following steps based on any one of the transmission channels. Optionally, the following steps can also be implemented based on 8 (or less than 8) transmission channels. Regardless of how many transmission channels are selected, the implementation methods of each transmission channel are the same. Therefore, the following description takes one transmission channel (the second transmission channel) as an example. Other transmission channels can refer to this method and will not be repeated one by one.

[0021] The characteristic information corresponding to the category of the second transmission channel means that the value of the characteristic information is consistent with the identification value preset for identifying the category of the second transmission channel. The present application can pre-set identification values ​​of transmission channels of each category after classifying the multiple transmission channels included in the interface of the connector, and then store the classification information and identification values ​​of the multiple transmission channels in the memory of the connector (such as the cache, memory or other internal memory of the connector), so that the connector can directly read the above information from the storage when it needs to use it. For example, assuming that the category of the second transmission channel is the first category transmission channel, and the pre-set value for identifying the first category transmission channel is 0011, when the value of the characteristic information is 0011, the characteristic information is determined to correspond to the category of the second transmission channel, and when the value of the characteristic information is not 0011, the characteristic information is determined not to correspond to the category of the second transmission channel. For another example, assuming that the category of the second transmission channel is a second-category transmission channel, and the preset value for identifying the second-category transmission channel is 5A5A5A5A, when the value of the characteristic information is 5A5A5A5A, the characteristic information is determined to correspond to the category of the second transmission channel; when the value of the characteristic information is not 5A5A5A5A, the characteristic information is determined to not correspond to the category of the second transmission channel.

[0022] In a possible implementation, the second characteristic information is a synchronization header of a signal sent on the second transmission channel; or, the second characteristic information is a handshake sequence sent on the second transmission channel; or, the second characteristic information is a heartbeat message sent on the second transmission channel.

[0023] The multiple transmission channels included in the interface of the connector of the embodiment of the present application are rotationally symmetrical, so no matter whether the male head is inserted into the female head in the forward direction or the reverse direction, the multiple transmission channels included in the female head have corresponding transmission channels on the male head connected to it, so that when the male head and the female head are connected (i.e., when working), all transmission channels are working, and the utilization rate of the transmission channel can reach 100%, thereby improving the utilization rate of the transmission channel. Based on the interface, the embodiment of the present application transmits characteristic information with a specific value meaning on the transmission channel, and the value of the characteristic information represents the category of the transmission channel. If the value of the received characteristic information is consistent with the category of the transmission channel receiving the characteristic information, it can be determined that the male head of the first connector is inserted into the female head of the second connector in the first direction; if the value of the received characteristic information is inconsistent with the category of the transmission channel receiving the characteristic information, it can be determined that the male head of the first connector is inserted into the female head of the second connector in the second direction. The above-mentioned transmission channel can be any one of the multiple transmission channels included in the interface, and there is no need to set up a dedicated transmission channel to transmit the characteristic information, which can improve the signal transmission efficiency on the interface.

[0024] In a second aspect, an embodiment of the present application provides a method for identifying an insertion method of a connector, the method comprising: obtaining second characteristic information, the second characteristic information being used to identify a category of a second transmission channel, the second transmission channel being any one of a plurality of transmission channels included in an interface of the connector, the arrangement of the plurality of transmission channels being rotationally symmetrical, and the interface of the connector being a male head of a first connector or a female head of a second connector; and sending the second characteristic information through the second transmission channel.

[0025] In a possible implementation, the second characteristic information is a synchronization header of a signal sent on the second transmission channel; or, the second characteristic information is a handshake sequence sent on the second transmission channel; or, the second characteristic information is a heartbeat message sent on the second transmission channel.

[0026] In a possible implementation, sending second characteristic information corresponding to the category of the second transmission channel through the second transmission channel includes: when the second transmission channel is a first-category transmission channel, sending the second characteristic information corresponding to the first-category transmission channel through the second transmission channel; or, when the second transmission channel is a second-category transmission channel, sending the second characteristic information corresponding to the second-category transmission channel through the second transmission channel.

[0027] In a possible implementation, the method also includes: receiving first characteristic information through a first transmission channel, the first transmission channel being any one of the multiple transmission channels mentioned above, and the first transmission channel being a first type of transmission channel; when the first characteristic information corresponds to the first type of transmission channel, determining that the male head of the first connector is inserted into the female head of the second connector in a first direction; when the first characteristic information does not correspond to the first type of transmission channel, determining that the male head of the first connector is inserted into the female head of the second connector in a second direction; wherein the first direction is opposite to the second direction.

[0028] In a possible implementation, the first characteristic information is a synchronization header of a signal received on the first transmission channel; or, the first characteristic information is a handshake sequence received on the first transmission channel; or, the first characteristic information is a heartbeat message received on the first transmission channel.

[0029] In a possible implementation manner, the first characteristic information corresponding to the first type of transmission channel indicates that a value of the first characteristic information is consistent with a preset value for identifying the first type of transmission channel.

[0030] In a possible implementation, the method further includes: acquiring multiple transmission channels; and classifying the multiple transmission channels respectively, wherein the multiple transmission channels included in the male head of the first connector and the multiple transmission channels included in the female head of the second connector are classified based on the same strategy.

[0031] In a third aspect, an embodiment of the present application provides a method for identifying the insertion method of a connector, the method comprising: the sending-end connector obtains characteristic information, the characteristic information being used to identify the category of a second transmission channel; the sending-end connector sends the above-mentioned characteristic information through the second transmission channel; the receiving-end connector receives the characteristic information through the first transmission channel; when the characteristic information corresponds to a first-category transmission channel, the receiving-end connector determines that the male head of the first connector is inserted into the female head of the second connector in a first direction; when the characteristic information corresponds to a non-first-category transmission channel, the receiving-end connector determines that the male head of the first connector is inserted into the female head of the second connector in a second direction.

[0032] The method of the embodiment of the present application is applicable to the scenario where the male head of the first connector is inserted into the female head of the second connector, but it does not limit the transmission direction of the first connector and the second connector, that is, when implementing the method for identifying the insertion method of the connector provided in the embodiment of the present application, the male head of the first connector (sending end connector) may send a signal, and the female head of the second connector (receiving end connector) may receive a signal; or the female head of the second connector (sending end connector) may send a signal, and the male head of the first connector (receiving end connector) may receive a signal. In addition, the arrangement of the multiple transmission channels included in the male head of the first connector and the multiple transmission channels included in the female head of the second connector are the same and rotationally symmetrical, so as to ensure that when the male head of the first connector is inserted into the female head of the second connector in the first direction or the second direction, all transmission channels of the first connector and the second connector can work normally.

[0033] The second transmission channel is any one of the multiple transmission channels included in the interface of the transmitting end connector. Figure 2 As shown, the interface of the connector includes 8 transmission channels. In order to determine the insertion mode of the two connectors, the transmitting end connector can transmit characteristic information based on any one of the transmission channels. Optionally, characteristic information can also be transmitted based on 8 (or less than 8) transmission channels. Regardless of how many transmission channels are selected, the implementation methods of each transmission channel are the same. Therefore, the following description takes one transmission channel (the second transmission channel) as an example. Other transmission channels can refer to this method and will not be repeated one by one.

[0034] The interface of the transmitting end connector adopts a rotationally symmetrical structure, so based on the rotationally symmetrical relationship between the transmission channels, the multiple transmission channels included in the interface can be classified as first-class transmission channels or second-class transmission channels. Figure 2 As shown, Q1_Ly and Q2_Ly are classified as the first type of transmission channels, and Q3_Ly and Q4_Ly are classified as the second type of transmission channels. Optionally, multiple transmission channels included in the interface can also be classified into multiple categories. For example, Figure 2 As shown, Q1_Ly is classified as the first type of transmission channel, Q2_Ly is classified as the second type of transmission channel, Q3_Ly is classified as the third type of transmission channel, and Q4_Ly is classified as the fourth type of transmission channel. In the embodiment of the present application, two rotationally symmetric transmission channels cannot be classified into the same category. For example, if Q1_L0 and Q3_L0 are in rotationally symmetric positions, Q1_L0 and Q3_L0 need to be marked as different categories. If Q2_L1 and Q4_L1 are in rotationally symmetric positions, Q2_L1 and Q4_L1 need to be marked as different categories. No specific limitation is made on other classification strategies of transmission channels.

[0035] The characteristic information corresponding to the category of the second transmission channel means that the value of the characteristic information is consistent with a preset identification value for identifying the category of the second transmission channel.

[0036] In a possible implementation, the characteristic information may be carried in an existing signal.

[0037] Optionally, the characteristic information may be a synchronization header of a signal sent on the second transmission channel. For example, the signal includes a synchronization header and data. For example, the preset value of the synchronization header used to identify the first type of transmission channel is 0011, and the value of the synchronization header used to identify the second type of transmission channel is 1010.

[0038] Optionally, the characteristic information may also be a handshake sequence sent on the second transmission channel. For example, the handshake sequence is a sequence sent before the sender connector and the receiver connector establish a connection. For example, the preset value of the handshake sequence used to identify the first type of transmission channel is 5A5A5A5A, and the value of the handshake sequence used to identify the second type of transmission channel is 3C3C3C3C.

[0039] Optionally, the characteristic information may also be a heartbeat message sent on the second transmission channel. For example, the heartbeat message is a heartbeat detection message sent regularly or irregularly between the sender connector and the receiver connector after the two are connected. For example, the preset value of the heartbeat message used to identify the first type of transmission channel is 5A5A5A5A, and the value of the heartbeat message used to identify the second type of transmission channel is 3C3C3C3C.

[0040] It should be noted that in addition to transmitting characteristic information through the above three types of signals in the embodiments of the present application, characteristic information can also be transmitted through other existing signals, and there is no specific limitation on this.

[0041] In a possible implementation, the characteristic information may be carried in a signal newly added in the embodiment of the present application. That is, a new signal is added between the transmitting end connector and the receiving end connector, and the characteristic information is transmitted through the new signal. The embodiment of the present application does not specifically limit the format and transmission mechanism of the newly added signal.

[0042] The first transmission channel is any one of the multiple transmission channels included in the interface of the receiving end connector. For example, the interface of the connector includes 8 transmission channels. In order to determine the insertion mode of the two connectors, the receiving end connector can receive characteristic information based on any one of the transmission channels, that is, the receiving end connector can only detect the characteristic information received on one transmission channel to determine the insertion mode of the connector. Optionally, characteristic information can also be received based on 8 (or less than 8) transmission channels, that is, the connector can detect multiple or even all transmission channels at the same time, and may receive characteristic information from one or more of the transmission channels, and then determine the insertion mode of the connector based on these characteristic information. Regardless of how many transmission channels are selected, the implementation methods of each transmission channel are the same, so the following description takes one transmission channel (the first transmission channel) as an example, and other transmission channels can refer to this method and will not be repeated one by one. It should be noted that the first transmission channel and the above-mentioned second transmission channel can refer to the same transmission channel or different transmission channels, and the embodiments of the present application do not make specific limitations on this.

[0043] Similarly, as described above, the interface of the receiving end connector adopts a rotationally symmetrical structure, so the multiple transmission channels included in the interface can also be classified as first-class transmission channels or second-class transmission channels based on the rotationally symmetrical relationship between the transmission channels. The classification of transmission channels can refer to the above description and will not be repeated here.

[0044] When the transmitting connector sends the characteristic information, it has assigned a value to the characteristic information according to the category of the second transmission channel. Then the receiving connector can distinguish which category of transmission channel the characteristic information comes from based on the value of the received characteristic information. The receiving connector can classify the multiple transmission channels included in the interface based on the same category classification strategy as the transmitting connector. When the category of the transmission channel (second transmission channel) from which the characteristic information comes is consistent with the category of the transmission channel (first transmission channel) that receives the characteristic information, it means that the male head of the first connector is inserted into the female head of the second connector in a first direction (for example, forward); when the category of the transmission channel (second transmission channel) from which the characteristic information comes is inconsistent with the category of the transmission channel (first transmission channel) that receives the characteristic information, it means that the male head of the first connector is inserted into the female head of the second connector in a second direction (for example, reverse).

[0045] To put it another way, the receiving connector can classify the multiple transmission channels included in the interface based on the same category classification strategy as the transmitting connector, and the value of the characteristic information is associated with the category of the transmission channel. Therefore, the receiving connector has an expected value of the characteristic information for the first transmission channel. Therefore, if the value of the characteristic information actually received (from the second transmission channel) is consistent with the value of the expected characteristic information, it means that the male head of the first connector is inserted into the female head of the second connector in a first direction (for example, forward); if the value of the characteristic information actually received (from the second transmission channel) is inconsistent with the expected value of the characteristic information, it means that the male head of the first connector is inserted into the female head of the second connector in a second direction (for example, reverse).

[0046] The embodiment of the present application transmits characteristic information with a specific value meaning on a transmission channel, and the value of the characteristic information represents the category of the transmission channel. If the value of the received characteristic information is consistent with the category of the transmission channel for receiving the characteristic information, it can be determined that the male head of the first connector is inserted into the female head of the second connector in the first direction; if the value of the received characteristic information is inconsistent with the category of the transmission channel for receiving the characteristic information, it can be determined that the male head of the first connector is inserted into the female head of the second connector in the second direction. On the one hand, the above-mentioned transmission channel can be any one of the multiple transmission channels included in the interface, and there is no need to set up an additional dedicated transmission channel to transmit the characteristic information, which can improve the utilization rate of the transmission channel on the interface.

[0047] In a fourth aspect, an embodiment of the present application provides a connection device, which includes: a receiving module, used to receive first characteristic information through a first transmission channel, the first transmission channel is any one of a plurality of transmission channels included in the interface of the connector, and the first transmission channel is a first type of transmission channel, the arrangement of the plurality of transmission channels is rotationally symmetrical, and the interface of the connector is a male head of the first connector or a female head of the second connector; a determination module, used to determine that the male head of the first connector is inserted into the female head of the second connector in a first direction when the first characteristic information corresponds to the first type of transmission channel; and when the first characteristic information does not correspond to the first type of transmission channel, determine that the male head of the first connector is inserted into the female head of the second connector in a second direction; wherein the first direction is opposite to the second direction.

[0048] In a possible implementation, the first characteristic information is a synchronization header of a signal received on the first transmission channel; or, the first characteristic information is a handshake sequence received on the first transmission channel; or, the first characteristic information is a heartbeat message received on the first transmission channel.

[0049] In a possible implementation manner, the first characteristic information corresponding to the first type of transmission channel indicates that a value of the first characteristic information is consistent with a preset value for identifying the first type of transmission channel.

[0050] In a possible implementation, the device further includes: an acquisition module, used to acquire second characteristic information, where the second characteristic information is used to identify a category of a second transmission channel, and the second transmission channel is any one of the multiple transmission channels; and a sending module, used to send the second characteristic information through the second transmission channel.

[0051] In a possible implementation, the second characteristic information is a synchronization header of a signal sent on the second transmission channel; or, the second characteristic information is a handshake sequence sent on the second transmission channel; or, the second characteristic information is a heartbeat message sent on the second transmission channel.

[0052] In a possible implementation, the sending module is specifically used to send the second characteristic information corresponding to the first-category transmission channel through the second transmission channel when the second transmission channel is a first-category transmission channel; or, when the second transmission channel is a second-category transmission channel, send the second characteristic information corresponding to the second-category transmission channel through the second transmission channel.

[0053] In a possible implementation manner, the multiple transmission channels included in the male connector of the first connector and the multiple transmission channels included in the female connector of the second connector are classified based on the same strategy.

[0054] In a fifth aspect, an embodiment of the present application provides a connection device, comprising: an acquisition module, used to acquire second characteristic information, wherein the second characteristic information is used to identify the category of a second transmission channel, wherein the second transmission channel is any one of a plurality of transmission channels included in the interface of the connector, wherein the plurality of transmission channels are arranged in rotational symmetry, and the interface of the connector is the male head of the first connector or the female head of the second connector; and a sending module, used to send the second characteristic information through the second transmission channel.

[0055] In a possible implementation, the second characteristic information is a synchronization header of a signal sent on the second transmission channel; or, the second characteristic information is a handshake sequence sent on the second transmission channel; or, the second characteristic information is a heartbeat message sent on the second transmission channel.

[0056] In a possible implementation, the sending module is specifically used to send the second characteristic information corresponding to the first-category transmission channel through the second transmission channel when the second transmission channel is a first-category transmission channel; or, when the second transmission channel is a second-category transmission channel, send the second characteristic information corresponding to the second-category transmission channel through the second transmission channel.

[0057] In a possible implementation, the device further includes: a receiving module, used to receive first characteristic information through a first transmission channel, the first transmission channel is any one of a plurality of transmission channels included in an interface of the connector, and the first transmission channel is a first type of transmission channel, the plurality of transmission channels are arranged in rotational symmetry, and the interface of the connector is a male head of the first connector or a female head of the second connector; a determining module, used to determine that the male head of the first connector is inserted into the female head of the second connector in a first direction when the first characteristic information corresponds to the first type of transmission channel; and to determine that the male head of the first connector is inserted into the female head of the second connector in a second direction when the first characteristic information does not correspond to the first type of transmission channel; wherein the first direction is opposite to the second direction.

[0058] In a possible implementation, the first characteristic information is a synchronization header of a signal received on the first transmission channel; or, the first characteristic information is a handshake sequence received on the first transmission channel; or, the first characteristic information is a heartbeat message received on the first transmission channel.

[0059] In a possible implementation manner, the first characteristic information corresponding to the first type of transmission channel indicates that a value of the first characteristic information is consistent with a preset value for identifying the first type of transmission channel.

[0060] In a possible implementation manner, the multiple transmission channels included in the male connector of the first connector and the multiple transmission channels included in the female connector of the second connector are classified based on the same strategy.

[0061] In the sixth aspect, an embodiment of the present application provides a connector, comprising: a processor and an interface; the interface is used to send or receive signals; the processor is configured to call one or more programs stored in a memory to implement a method as described in any one of the first to third aspects above.

[0062] In a seventh aspect, an embodiment of the present application provides a computer-readable storage medium, comprising program instructions, which, when executed on a computer or a processor, causes the computer or the processor to execute any one of the methods of the first to third aspects above.

[0063] In an eighth aspect, an embodiment of the present application provides a computer program product, comprising program instructions, which, when executed by a computer or a processor, are used to execute the method of any one of the first to third aspects above. BRIEF DESCRIPTION OF THE DRAWINGS

[0064] Figure 1a A schematic diagram of an exemplary rotationally symmetrical structure provided in an embodiment of the present application;

[0065] Figure 1b A schematic diagram of an exemplary rotationally symmetrical structure provided in an embodiment of the present application;

[0066] Figure 2 An exemplary structural diagram of an interface of a connector according to an embodiment of the present application;

[0067] Figure 3a An exemplary schematic diagram for applying for a positive insertion method;

[0068] Figure 3b An exemplary schematic diagram of applying for a reverse insertion method;

[0069] Figure 3c This is an exemplary schematic diagram of a Type-C male connector according to an embodiment of the present application;

[0070] Figure 3d This is an exemplary schematic diagram of a Type-C female connector according to an embodiment of the present application;

[0071] Figure 4 This is an exemplary structural diagram of a connector according to an embodiment of the present application;

[0072] Figure 5 This is an exemplary flow chart of a method for identifying the insertion mode of a connector according to an embodiment of the present application;

[0073] Figure 6 An exemplary schematic diagram of a signal according to an embodiment of the present application;

[0074] Figure 7 This is an exemplary structural diagram of the interface of the embodiment of the present application;

[0075] Figure 8 This is an exemplary structural diagram of a connecting device according to an embodiment of the present application. DETAILED DESCRIPTION

[0076] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the embodiments of the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the embodiments of the present application.

[0077] The terms "first", "second", etc. in the specification embodiments, claims, and drawings of the embodiments of the present application are only used for the purpose of distinguishing descriptions, and cannot be understood as indicating or implying relative importance, nor can they be understood as indicating or implying order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. Methods, systems, products, or devices are not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products, or devices.

[0078] It should be understood that in the embodiments of the present application, "at least one (item)" refers to one or more, and "plurality" refers to two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can represent: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the associated objects before and after are in an "or" relationship. "At least one of the following items" or similar expressions refers to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b or c can represent: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.

[0079] Figure 1a and Figure 1b is an exemplary structural diagram of the rotationally symmetrical structure of the embodiment of the present application, such as Figure 1aAs shown, the interface of the connector (such as the male head of the connector or the female head of the connector) includes N×M transmission channels (lanes), and one transmission channel (Qx_Ly) can be composed of one line (line) (K=1), or, one transmission channel (Qx_Ly) can also be composed of a pair of differential lines (K=2), or, one transmission channel (Qx_Ly) can also be composed of three lines (K=3), or, one transmission channel (Qx_Ly) can also be composed of more lines (K=n). The embodiment of the present application does not specifically limit the value of K. The K lines corresponding to one transmission channel transmit a valid signal together. One line corresponds to one pin on the interface. In the embodiment of the present application, the arrangement of the N×M transmission channels is rotationally symmetrical, that is, the interface of the connector is flipped 180° to obtain the following. Figure 1b The structure shown, and Figure 1a It can be seen from the comparison that Q4_Ly and Q2_Ly are interchanged, and Q3_Ly and Q1_Ly are interchanged. Therefore, Q4_Ly and Q2_Ly are in a rotationally symmetric relationship, and Q3_Ly and Q1_Ly are in a rotationally symmetric relationship, where y=0, 1, 2 or 3.

[0080] For example, Figure 2 This is an exemplary structural diagram of the interface of the connector of the embodiment of the present application, such as Figure 2 As shown, the interface of the connector includes 8 transmission channels (Q1_L0, Q1_L1, Q2_L0, Q2_L1, Q3_L0, Q3_L1, Q4_L0 and Q4_L1), where N = 4, M = 2, and K = 1. According to the arrangement positions of the 8 transmission channels, it can be known that Q4_Ly and Q2_Ly are in a rotationally symmetrical relationship, Q3_Ly and Q1_Ly are in a rotationally symmetrical relationship, and y = 0 or 1.

[0081] Figure 3a An exemplary schematic diagram of applying for a positive insertion mode is shown below. Figure 3a As shown, the male head of the first connector is inserted into the female head of the second connector in a positive direction, and both the male head of the first connector and the female head of the second connector adopt Figure 2 The structure shown includes 8 transmission channels (Q1_L0, Q1_L1, Q2_L0, Q2_L1, Q3_L0, Q3_L1, Q4_L0 and Q4_L1), among which Q4_Ly and Q2_Ly are rotationally symmetric, Q3_Ly and Q1_Ly are rotationally symmetric, and y=0 or 1.

[0082] After the male head of the first connector is forwardly inserted into the female head of the second connector, Q1_L0 of the male head of the first connector is connected to Q1_L0 of the female head of the second connector, and Q1_L1 of the male head of the first connector is connected to Q1_L1 of the female head of the second connector; Q2_L0 of the male head of the first connector is connected to Q2_L0 of the female head of the second connector, and Q2_L1 of the male head of the first connector is connected to Q2_L1 of the female head of the second connector; Q3_L0 of the male head of the first connector is connected to Q3_L0 of the female head of the second connector, and Q3_L1 of the male head of the first connector is connected to Q3_L1 of the female head of the second connector; Q4_L0 of the male head of the first connector is connected to Q4_L0 of the female head of the second connector, and Q4_L1 of the male head of the first connector is connected to Q4_L1 of the female head of the second connector.

[0083] Figure 3b This is an exemplary schematic diagram of the reverse insertion method of the embodiment of the present application, such as Figure 3b As shown, the male head of the first connector is reversely inserted into the female head of the second connector, and both the male head of the first connector and the female head of the second connector adopt Figure 2 The structure shown includes 8 transmission channels (Q1_L0, Q1_L1, Q2_L0, Q2_L1, Q3_L0, Q3_L1, Q4_L0 and Q4_L1), among which Q4_Ly and Q2_Ly are rotationally symmetric, Q3_Ly and Q1_Ly are rotationally symmetric, and y=0 or 1.

[0084] After the male head of the first connector is reversely inserted into the female head of the second connector, Q1_L0 of the male head of the first connector is connected to Q3_L0 of the female head of the second connector, and Q1_L1 of the male head of the first connector is connected to Q3_L1 of the female head of the second connector; Q2_L0 of the male head of the first connector is connected to Q4_L0 of the female head of the second connector, and Q2_L1 of the male head of the first connector is connected to Q4_L1 of the female head of the second connector; Q3_L0 of the male head of the first connector is connected to Q1_L0 of the female head of the second connector, and Q3_L1 of the male head of the first connector is connected to Q1_L1 of the female head of the second connector; Q4_L0 of the male head of the first connector is connected to Q2_L0 of the female head of the second connector, and Q4_L1 of the male head of the first connector is connected to Q2_L1 of the female head of the second connector.

[0085] Figure 3c This is an exemplary schematic diagram of the Type-C male connector of the embodiment of the present application, as shown in FIG. Figure 3c As shown, the same signal lines are arranged on both sides of the male head of the connector. Figure 3d This is an exemplary schematic diagram of the Type-C female connector of the embodiment of the present application, as shown in FIG. Figure 3d As shown, only one side of the two sides of the female connector is provided with a signal line, and no signal line is provided on the other side. It can be seen that in the Type-C interface, no matter whether the male connector is inserted into the female connector in the forward or reverse direction, one side of the male connector's signal line is always connected to the side of the female connector where the signal line is provided, so that it can be used normally. However, since only one side of the female connector is provided with a signal line, even if the same signal line is provided on both sides of the male connector, in fact, only one set of signal lines is working when the male connector and the female connector are connected (i.e., when working), so that the utilization rate of the signal line of the Type-C interface is only 50%, affecting the signal transmission efficiency.

[0086] It can be seen that compared with the Type-C interface, the multiple transmission channels included in the interface of the connector in the embodiment of the present application are rotationally symmetrical. Therefore, no matter whether the male head is inserted into the female head in the forward direction or in the reverse direction, the multiple transmission channels included in the female head are connected to the corresponding transmission channels on the male head, so that when the male head and the female head are connected (i.e., when working), all the transmission channels are working, and the utilization rate of the transmission channels can reach 100%, thereby improving the signal transmission efficiency.

[0087] Figure 4 This is an exemplary structural diagram of the connector according to the embodiment of the present application, such as Figure 4 As shown, the connector includes at least one processor 411, at least one memory 412, and at least one interface 413. The processor 411, the memory 412, and the interface 413 are connected, for example, via a bus. In the embodiment of the present application, the connection may include various interfaces, transmission lines, or buses, etc., which are not specifically limited in the embodiment of the present application.

[0088] The processor 411 is mainly used to process the communication protocol and communication data, as well as to control the entire connector, execute the software program, and process the data of the software program. The processor 411 may include one or more processing units, for example: the processor 411 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), a controller, a video codec, a digital signal processor (digital signal processor, DSP), a baseband processor, and / or a neural-network processing unit (neural-network processing unit, NPU), etc. Among them, different processing units can be independent devices or integrated in one or more processors.

[0089] The memory 412 is mainly used to store software programs and data. The memory 412 can be independent (independent storage element) and connected to the processor 411. Optionally, the memory 412 can be integrated with the processor 411, for example, integrated within a chip (on-chip storage element). Among them, the memory 412 can be used to store computer executable program code, and the executable program code includes instructions. The memory 412 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function, etc. In addition, the memory 412 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (universal flash storage, UFS), etc. The processor 411 executes the technical solution and data processing of the embodiment of the present application by running instructions stored in the memory 412, and / or instructions stored in a memory provided in the processor.

[0090] The interface 413 is mainly used to receive and / or send signals. The interface 413 in the embodiment of the present application can be used Figure 1a~2 The interface 413 may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, a universal serial bus (USB) interface, a high definition multimedia interface (HDMI), a mobile industry processor interface (MIPI) interface, and / or Figure 1a to Figure 3b The interfaces shown in any embodiment, etc.

[0091] Figure 4Only one memory, one processor and one interface are shown. In an actual connector, there may be multiple processors, multiple memories and multiple interfaces, which are not specifically limited in the embodiments of the present application.

[0092] Figure 5 This is an exemplary flow chart of a method for identifying the insertion mode of a connector according to an embodiment of the present application. Figure 5 As shown, the process 500 may be performed by connectors (including a sending end connector and a receiving end connector), such as Figure 4 The process 500 is described as a series of steps or operations, and it should be understood that the process 500 can be performed in various orders and / or occur simultaneously, not limited to Figure 5 The execution order shown.

[0093] The method of the embodiment of the present application is applicable to the scenario where the male head of the first connector is inserted into the female head of the second connector, but it does not limit the transmission direction of the first connector and the second connector, that is, when implementing the method for identifying the insertion method of the connector provided in the embodiment of the present application, the male head of the first connector (sending end connector) may send a signal, and the female head of the second connector (receiving end connector) may receive a signal; or the female head of the second connector (sending end connector) may send a signal, and the male head of the first connector (receiving end connector) may receive a signal. In addition, the arrangement of the multiple transmission channels included in the male head of the first connector and the multiple transmission channels included in the female head of the second connector are the same and rotationally symmetrical, so as to ensure that when the male head of the first connector is inserted into the female head of the second connector in the first direction or the second direction, all transmission channels of the first connector and the second connector can work normally.

[0094] Step 501: The sending end connector obtains second characteristic information, where the second characteristic information is used to identify the category of the second transmission channel.

[0095] The second transmission channel is any one of the multiple transmission channels included in the interface of the transmitting end connector. Figure 2 As shown, the interface of the connector includes 8 transmission channels. In order to determine the insertion mode of the two connectors, the sending end connector can implement the following steps based on any one of the transmission channels. Optionally, the following steps can also be implemented based on 8 (or less than 8) transmission channels. Regardless of how many transmission channels are selected, the implementation methods of each transmission channel are the same. Therefore, the following description takes one transmission channel (the second transmission channel) as an example. Other transmission channels can refer to this method and will not be repeated one by one.

[0096] As described above, the interface of the transmitting end connector adopts a rotationally symmetrical structure, so the multiple transmission channels included in the interface can be classified as first-class transmission channels or second-class transmission channels based on the rotationally symmetrical relationship between the transmission channels. Figure 2 As shown, Q1_Ly and Q2_Ly are classified as the first type of transmission channels, and Q3_Ly and Q4_Ly are classified as the second type of transmission channels. Optionally, multiple transmission channels included in the interface can also be classified into multiple categories. For example, Figure 2 As shown, Q1_Ly is classified as the first type of transmission channel, Q2_Ly is classified as the second type of transmission channel, Q3_Ly is classified as the third type of transmission channel, and Q4_Ly is classified as the fourth type of transmission channel. In the embodiment of the present application, two rotationally symmetric transmission channels cannot be classified into the same category. For example, if Q1_L0 and Q3_L0 are in rotationally symmetric positions, Q1_L0 and Q3_L0 need to be marked as different categories. If Q2_L1 and Q4_L1 are in rotationally symmetric positions, Q2_L1 and Q4_L1 need to be marked as different categories. No specific limitation is made on other classification strategies of transmission channels.

[0097] The characteristic information corresponding to the category of the second transmission channel means that the value of the characteristic information is consistent with the preset identification value for identifying the category of the second transmission channel. For example, assuming that the category of the second transmission channel is the first category transmission channel, and the preset value for identifying the first category transmission channel is 0011, when the value of the characteristic information is 0011, the characteristic information is determined to correspond to the category of the second transmission channel, and when the value of the characteristic information is not 0011, the characteristic information is determined not to correspond to the category of the second transmission channel. For another example, assuming that the category of the second transmission channel is the second category transmission channel, and the preset value for identifying the second category transmission channel is 5A5A5A5A, when the value of the characteristic information is 5A5A5A5A, the characteristic information is determined to correspond to the category of the second transmission channel, and when the value of the characteristic information is not 5A5A5A5A, the characteristic information is determined not to correspond to the category of the second transmission channel.

[0098] In a possible implementation, the characteristic information may be carried in an existing signal.

[0099] Optionally, the characteristic information may be a synchronization header of a signal sent on the second transmission channel. For example, the signal includes a synchronization header and data. Figure 2For example, the preset value of the synchronization header used to identify the first type of transmission channel is 0011, and the value of the synchronization header used to identify the second type of transmission channel is 1010. Therefore, the transmitting connector can fill in 0011 in the synchronization header of the signal sent on Q1_Ly or Q2_Ly, and fill in 1010 in the synchronization header of the signal sent on Q3_Ly and Q4_Ly.

[0100] Optionally, the characteristic information may also be a handshake sequence sent on the second transmission channel. For example, a handshake sequence is a sequence sent before the sender connector and the receiver connector establish a connection. Figure 2 For example, the preset value of the handshake sequence used to identify the first type of transmission channel is 5A5A5A5A, and the value of the handshake sequence used to identify the second type of transmission channel is 3C3C3C3C. Therefore, the transmitting connector can send the handshake sequence 5A5A5A5A on Q1_Ly or Q2_Ly, and send the handshake sequence 3C3C3C3C on Q3_Ly and Q4_Ly.

[0101] Optionally, the characteristic information may also be a heartbeat message sent on the second transmission channel. For example, a heartbeat message is a heartbeat detection message sent regularly or irregularly between the sending end connector and the receiving end connector after the two are connected. Figure 2 For example, the preset value of the heartbeat message used to identify the first type of transmission channel is 5A5A5A5A, and the value of the heartbeat message used to identify the second type of transmission channel is 3C3C3C3C. Therefore, the sending connector can send heartbeat message 5A5A5A5A on Q1_Ly or Q2_Ly, and send heartbeat message 3C3C3C3C on Q3_Ly and Q4_Ly.

[0102] It should be noted that in addition to transmitting characteristic information through the above three types of signals in the embodiments of the present application, characteristic information can also be transmitted through other existing signals, and there is no specific limitation on this.

[0103] In a possible implementation, the characteristic information may be carried in a signal newly added in the embodiment of the present application. That is, a new signal is added between the transmitting end connector and the receiving end connector, and the characteristic information is transmitted through the new signal. The embodiment of the present application does not specifically limit the format and transmission mechanism of the newly added signal.

[0104] Step 502: The sending end connector sends characteristic information through the second transmission channel.

[0105] The transmitting end connector may send the characteristic information on the second transmission channel. The implementation method of the characteristic information may refer to the above-mentioned cases. The value of the characteristic information may correspond to the category of the second transmission channel, which will not be described in detail here.

[0106] Step 503: The receiving-end connector receives characteristic information through the first transmission channel.

[0107] The first transmission channel is any one of the multiple transmission channels included in the interface of the receiving end connector. Figure 2 As shown, the interface of the connector includes 8 transmission channels. In order to determine the insertion mode of the two connectors, the receiving end connector can implement the following steps based on any one of the transmission channels, that is, the receiving end connector can only detect the characteristic information received on one transmission channel to determine the insertion mode of the connector. Optionally, the following steps can also be implemented based on 8 (or less than 8) transmission channels, that is, the connector can detect multiple or even all transmission channels at the same time, and may receive characteristic information from one or more of the transmission channels, and then determine the insertion mode of the connector based on these characteristic information. Regardless of how many transmission channels are selected, the implementation methods of each transmission channel are the same. Therefore, the following description takes one transmission channel (the first transmission channel) as an example, and other transmission channels can refer to this method and will not be repeated one by one. It should be noted that the first transmission channel and the second transmission channel in step 501 can refer to the same transmission channel or different transmission channels, and the embodiment of the present application does not make specific limitations on this.

[0108] Similarly, in the embodiment of the present application, the interface of the connector at the receiving end and the interface of the connector at the transmitting end adopt a rotationally symmetrical structure, so the multiple transmission channels contained in the interface can also be classified as first-class transmission channels or second-class transmission channels based on the rotationally symmetrical relationship between the transmission channels. Optionally, the multiple transmission channels contained in the interface of the receiving end connector can also be classified into multiple categories. In the embodiment of the present application, two rotationally symmetrical transmission channels cannot be classified into the same category. For example, if Q1_L0 and Q3_L0 are in rotationally symmetrical positions, Q1_L0 and Q3_L0 need to be marked as different categories. If Q2_L1 and Q4_L1 are in rotationally symmetrical positions, Q2_L1 and Q4_L1 need to be marked as different categories. No specific limitation is made on other classification strategies for transmission channels.

[0109] The multiple transmission channels included in the interface of the receiving end connector and the multiple transmission channels included in the interface of the sending end connector can be classified based on the same policy, that is, the category of any transmission channel in the interface of the sending end connector is consistent with the category of the transmission channel in the interface of the receiving end connector.

[0110] Step 504a: When the characteristic information corresponds to the first type of transmission channel, the receiving-end connector determines that the male connector of the first connector is inserted into the female connector of the second connector in the first direction.

[0111] Step 504b: When the characteristic information corresponds to a transmission channel other than the first type, the receiving-end connector determines that the male connector of the first connector is inserted into the female connector of the second connector in the second direction.

[0112] Steps 504a and 504b are optional steps, that is, whether to execute step 504a or step 504b is determined according to the type of the transmission channel corresponding to the characteristic information.

[0113] When the transmitting connector sends the characteristic information, it has assigned a value to the characteristic information according to the category of the second transmission channel. Then the receiving connector can distinguish which category of transmission channel the characteristic information comes from based on the value of the received characteristic information. The multiple transmission channels included in the interface of the receiving connector and the multiple transmission channels included in the interface of the transmitting connector can be classified based on the same strategy. When the category of the transmission channel (the second transmission channel) from which the characteristic information comes is consistent with the category of the transmission channel (the first transmission channel) that receives the characteristic information, it means that the male head of the first connector is inserted into the female head of the second connector in the first direction (for example, forward); when the category of the transmission channel (the second transmission channel) from which the characteristic information comes is inconsistent with the category of the transmission channel (the first transmission channel) that receives the characteristic information, it means that the male head of the first connector is inserted into the female head of the second connector in the second direction (for example, reverse).

[0114] For example, Figure 2 For example, when the receiving end connector receives a synchronization header with a characteristic information value of 0011 from Q1_Ly, it can be determined that the characteristic information comes from the first type of transmission channel. Q1_Ly belongs to the first type of transmission channel, so it can be determined that the male head of the first connector is inserted into the female head of the second connector in a first direction (for example, forward). Or, when the receiving end connector receives a synchronization header with a characteristic information value of 0011 from Q3_Ly, it can be determined that the characteristic information comes from the first type of transmission channel. Q3_Ly belongs to the second type of transmission channel, so it can be determined that the male head of the first connector is inserted into the female head of the second connector in a second direction (for example, reverse).

[0115] To put it another way, the receiving connector can classify the multiple transmission channels included in the interface based on the same category classification strategy as the sending connector, and the value of the characteristic information is associated with the category of the transmission channel. Therefore, the value of the characteristic information transmitted by the receiving connector for the first transmission channel is expected. Therefore, if the value of the characteristic information actually received (from the second transmission channel) is consistent with the value of the expected characteristic information, it means that the male head of the first connector is inserted into the female head of the second connector in a first direction (for example, forward); if the value of the characteristic information actually received (from the second transmission channel) is inconsistent with the expected value of the characteristic information, it means that the male head of the first connector is inserted into the female head of the second connector in a second direction (for example, reverse).

[0116] For example, Figure 2 For example, when the receiving end connector receives a synchronization header with characteristic information of 0011 from Q1_Ly (the expected characteristic information value is 0011), it can be determined that the male connector of the first connector is inserted into the female connector of the second connector in a first direction (for example, forward). Alternatively, when the receiving end connector receives a synchronization header with characteristic information of 0011 from Q3_Ly (the expected characteristic information value is 1010), it can be determined that the male connector of the first connector is inserted into the female connector of the second connector in a second direction (for example, reverse).

[0117] The multiple transmission channels included in the interface of the connector of the embodiment of the present application are rotationally symmetrical, so no matter whether the male head is inserted into the female head in the forward direction or the reverse direction, the multiple transmission channels included in the female head have corresponding transmission channels on the male head connected to it, so that when the male head and the female head are connected (i.e., when working), all transmission channels are working, and the utilization rate of the transmission channel can reach 100%, thereby improving the utilization rate of the transmission channel. Based on the interface, the embodiment of the present application transmits characteristic information with a specific value meaning on the transmission channel, and the value of the characteristic information represents the category of the transmission channel. If the value of the received characteristic information is consistent with the category of the transmission channel receiving the characteristic information, it can be determined that the male head of the first connector is inserted into the female head of the second connector in the first direction; if the value of the received characteristic information is inconsistent with the category of the transmission channel receiving the characteristic information, it can be determined that the male head of the first connector is inserted into the female head of the second connector in the second direction. The above-mentioned transmission channel can be any one of the multiple transmission channels included in the interface, and there is no need to set up a dedicated transmission channel to transmit the characteristic information, which can improve the signal transmission efficiency on the interface.

[0118] Several specific embodiments are used below. Figure 5 The technical solution of the method embodiment shown is described in detail.

[0119] Embodiment 1: Characteristic information is the synchronization header of the signal

[0120] by Figure 2 For example, Q1_Ly and Q2_Ly are classified as the first type of transmission channels, and Q3_Ly and Q4_Ly are classified as the second type of transmission channels. Figure 6 is an exemplary schematic diagram of the signal of the embodiment of the present application, such as Figure 6As shown, the transmitting connector sends sync head1 as a synchronization header on Q1_Ly, each synchronization header is followed by a piece of data, and sends sync head2 as a synchronization header on Q3_Lx, each synchronization header is followed by a piece of data. The receiving connector receives the characteristic information on Q1_Ly and Q3_Ly. If the synchronization header of the signal received on Q1_Ly is sync head1 and the synchronization header of the signal received on Q3_Ly is sync head2, it is determined that the male head of the first connector is forwardly inserted into the female head of the second connector; if the synchronization header of the signal received on Q1_Ly is sync head2 and the synchronization header of the signal received on Q3_Ly is synchead1, it is determined that the male head of the first connector is reversely inserted into the female head of the second connector.

[0121] Embodiment 2: Characteristic information is a handshake sequence

[0122] Figure 7 This is an exemplary structural diagram of the interface of the embodiment of the present application, such as Figure 7 As shown, the transmission channel in the interface has two directions, where Tx*y (y=0~N) represents the transmission channel and Rx*y (y=0~N) represents the receiving channel. TxAy and RxAy are classified as the first type of transmission channel, and TxBy and RxBy are classified as the second type of transmission channel. Before establishing a connection, the transmitting connector sends a handshake sequence handshake_signal_A (0x0000FFFF_5A5A5A5A_FFFF0000) on TxAy and sends a handshake sequence handshake_signal_B (0x0000FFFF_3C3C3C3C_FFFF0000) on TxBy. The receiving end connector receives characteristic information from RxAy and RxBy. If the handshake sequence received on RxAy is handshake_signal_A and the handshake sequence received on RxBy is handshake_signal_B, it is determined that the male head of the first connector is forwardly inserted into the female head of the second connector; if the handshake sequence received on RxAy is handshake_signal_B and the handshake sequence received on RxBy is handshake_signal_A, it is determined that the male head of the first connector is reversely inserted into the female head of the second connector.

[0123] Embodiment 3: Characteristic information is a heartbeat message

[0124] by Figure 7For example, after the connection is established, the sending end connector sends a heartbeat message heartbeat_signal_A (0x0000FFFF_5A5A5A5A_FFFF0000) on TxAy, and sends a heartbeat message heartbeat_signal_B (0x0000FFFF_3C3C3C3C_FFFF0000) on TxBy. The receiving end connector receives characteristic information from RxAy and RxBy. If the heartbeat message received on RxAy is heartbeat_signal_A and the heartbeat message received on RxBy is heartbeat_signal_B, it is determined that the male connector of the first connector is forwardly inserted into the female connector of the second connector; if the heartbeat message received on RxAy is heartbeat_signal_B and the heartbeat message received on RxBy is heartbeat_signal_A, it is determined that the male connector of the first connector is reversely inserted into the female connector of the second connector.

[0125] Figure 8 This is an exemplary structural diagram of a connecting device according to an embodiment of the present application. Figure 8 As shown, the connection device of this embodiment can be applied to the first connector or the second connector in the above embodiments, for example Figure 4 The connector shown. The connection device includes: a receiving module 801, a determining module 802, an acquiring module 803 and a sending module 804. Among them,

[0126] A receiving module 801 is used to receive first characteristic information through a first transmission channel, where the first transmission channel is any one of a plurality of transmission channels included in an interface of a connector, and the first transmission channel is a first type of transmission channel, the plurality of transmission channels are arranged in rotational symmetry, and the interface of the connector is a male head of the first connector or a female head of the second connector; a determining module 802 is used to determine that the male head of the first connector is inserted into the female head of the second connector in a first direction when the first characteristic information corresponds to the first type of transmission channel; and to determine that the male head of the first connector is inserted into the female head of the second connector in a second direction when the first characteristic information does not correspond to the first type of transmission channel; wherein the first direction is opposite to the second direction.

[0127] In a possible implementation, the first characteristic information is a synchronization header of a signal received on the first transmission channel; or, the first characteristic information is a handshake sequence received on the first transmission channel; or, the first characteristic information is a heartbeat message received on the first transmission channel.

[0128] In a possible implementation manner, the first characteristic information corresponds to the first type of transmission channel, indicating that a value of the first characteristic information is consistent with a preset value for identifying the first type of transmission channel.

[0129] In a possible implementation, the device also includes: an acquisition module 803, used to acquire second characteristic information, where the second characteristic information is used to identify the category of a second transmission channel, and the second transmission channel is any one of the multiple transmission channels; and a sending module 804, used to send the second characteristic information through the second transmission channel.

[0130] In a possible implementation, the second characteristic information is a synchronization header of a signal sent on the second transmission channel; or, the second characteristic information is a handshake sequence sent on the second transmission channel; or, the second characteristic information is a heartbeat message sent on the second transmission channel.

[0131] In a possible implementation, the sending module 804 is specifically used to send the second characteristic information corresponding to the first category transmission channel through the second transmission channel when the second transmission channel is a first category transmission channel; or, when the second transmission channel is a second category transmission channel, send the second characteristic information corresponding to the second category transmission channel through the second transmission channel.

[0132] In a possible implementation manner, the multiple transmission channels included in the male connector of the first connector and the multiple transmission channels included in the female connector of the second connector are classified based on the same strategy.

[0133] The device of this embodiment can be used to perform Figure 5 The technical solution of the method embodiment shown has similar implementation principles and technical effects, which will not be repeated here.

[0134] In the implementation process, each step of the above method embodiment can be completed by an integrated logic circuit of hardware in a processor or an instruction in the form of software. The processor can be a general-purpose processor, a digital signal processor (digital signal processor, DSP), an application-specific integrated circuit (application-specific integrated circuit, ASIC), a field programmable gate array (field programmable gate array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in the embodiment of the present application can be directly embodied as a hardware coding processor to be executed, or the hardware and software modules in the coding processor are combined to be executed. The software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in a memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware.

[0135] The memory mentioned in the above embodiments may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), and direct RAM (DR RAM). It should be noted that the memory of the systems and methods described herein is intended to include, but is not limited to, these and any other suitable types of memory.

[0136] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the embodiments of the present application.

[0137] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0138] In the several embodiments provided in the embodiments of the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0139] The units described as separate components may or may not be physically separated, and the components described as units may be located in one place or distributed over multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0140] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0141] If the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (personal computer, server, or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program code.

[0142] The above is only a specific implementation of the embodiment of the present application, but the protection scope of the embodiment of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or replacements within the technical scope disclosed in the embodiment of the present application, which should be included in the protection scope of the embodiment of the present application. Therefore, the protection scope of the embodiment of the present application should be based on the protection scope of the claims.

Claims

1. A method for identifying the insertion mode of a connector, characterized in that: The method comprises: receiving first characteristic information through a first transmission channel, where the first transmission channel is any one of a plurality of transmission channels included in an interface of a connector, and the first transmission channel is a first type of transmission channel, the plurality of transmission channels are arranged rotationally symmetrically, and the interface of the connector is a male connector of a first connector or a female connector of a second connector; When the first characteristic information corresponds to the first type of transmission channel, determining that the male head of the first connector is inserted into the female head of the second connector in a first direction; When the first characteristic information does not correspond to the first type of transmission channel, determining that the male head of the first connector is inserted into the female head of the second connector in a second direction; The first direction and the second direction are opposite.

2. The method according to claim 1, characterized in that The first characteristic information is a synchronization header of a signal received on the first transmission channel; or, the first characteristic information is a handshake sequence received on the first transmission channel; or, the first characteristic information is a heartbeat message received on the first transmission channel.

3. The method according to claim 1, characterized in that The first characteristic information corresponds to the first type of transmission channel, which means that a value of the first characteristic information is consistent with a preset identification value used to identify the category of the first type of transmission channel.

4. The method according to claim 2, characterized in that: The first characteristic information corresponds to the first type of transmission channel, which means that a value of the first characteristic information is consistent with a preset identification value used to identify the category of the first type of transmission channel.

5. The method according to any one of claims 1 to 4, characterized in that The method further comprises: Acquire second characteristic information, where the second characteristic information is used to identify a category of a second transmission channel, and the second transmission channel is any one of the multiple transmission channels; The second characteristic information is sent through the second transmission channel.

6. The method according to claim 5, characterized in that The second characteristic information is a synchronization header of a signal sent on the second transmission channel; or, the second characteristic information is a handshake sequence sent on the second transmission channel; or, the second characteristic information is a heartbeat message sent on the second transmission channel.

7. The method according to claim 5, characterized in that The sending the second characteristic information through the second transmission channel includes: When the second transmission channel is a first type transmission channel, sending the second characteristic information corresponding to the first type transmission channel through the second transmission channel; or, When the second transmission channel is a second-type transmission channel, the second characteristic information corresponding to the second-type transmission channel is sent through the second transmission channel.

8. The method according to claim 6, characterized in that The sending the second characteristic information through the second transmission channel includes: When the second transmission channel is a first type transmission channel, sending the second characteristic information corresponding to the first type transmission channel through the second transmission channel; or, When the second transmission channel is a second-type transmission channel, the second characteristic information corresponding to the second-type transmission channel is sent through the second transmission channel.

9. The method according to any one of claims 1-4, 6-8, characterized in that: The multiple transmission channels included in the male connector of the first connector and the multiple transmission channels included in the female connector of the second connector are classified based on the same strategy.

10. A method for identifying a connector insertion mode, characterized in that: The method comprises: Acquire second characteristic information, where the second characteristic information is used to identify a category of a second transmission channel, where the second transmission channel is any one of a plurality of transmission channels included in an interface of a connector, where the plurality of transmission channels are arranged rotationally symmetrically, and where the interface of the connector is a male connector of a first connector or a female connector of a second connector; The second characteristic information is sent through the second transmission channel.

11. The method according to claim 10, characterized in that The multiple transmission channels included in the male connector of the first connector and the multiple transmission channels included in the female connector of the second connector are classified based on the same strategy.

12. The method according to claim 10 or 11, characterized in that: The method further comprises: receiving first feature information through a first transmission channel, where the first transmission channel is any one of the multiple transmission channels, and the first transmission channel is a first type of transmission channel; When the first characteristic information corresponds to the first type of transmission channel, determining that the male head of the first connector is inserted into the female head of the second connector in a first direction; When the first characteristic information does not correspond to the first type of transmission channel, determining that the male head of the first connector is inserted into the female head of the second connector in a second direction; The first direction and the second direction are opposite.

13. A connection device, characterized in that: include: A receiving module, configured to receive first characteristic information through a first transmission channel, wherein the first transmission channel is any one of a plurality of transmission channels included in an interface of a connector, and the first transmission channel is a first type of transmission channel, the plurality of transmission channels are arranged rotationally symmetrically, and the interface of the connector is a male connector of a first connector or a female connector of a second connector; A determination module, used for determining that the male head of the first connector is inserted into the female head of the second connector in a first direction when the first characteristic information corresponds to the first type of transmission channel; and for determining that the male head of the first connector is inserted into the female head of the second connector in a second direction when the first characteristic information does not correspond to the first type of transmission channel; wherein the first direction is opposite to the second direction.

14. The device according to claim 13, characterized in that The first characteristic information is a synchronization header of a signal received on the first transmission channel; or, the first characteristic information is a handshake sequence received on the first transmission channel; or, the first characteristic information is a heartbeat message received on the first transmission channel.

15. The device according to claim 13, characterized in that The first characteristic information corresponds to the first type of transmission channel, which means that a value of the first characteristic information is consistent with a preset identification value used to identify the category of the first type of transmission channel.

16. The device according to claim 14, characterized in that The first characteristic information corresponds to the first type of transmission channel, which means that a value of the first characteristic information is consistent with a preset identification value used to identify the category of the first type of transmission channel.

17. The device according to any one of claims 13 to 16, characterized in that The device also includes: An acquisition module is used to acquire second characteristic information, where the second characteristic information is used to identify the category of a second transmission channel, and the second transmission channel is any one of the multiple transmission channels; and a sending module is used to send the second characteristic information through the second transmission channel.

18. The device according to claim 17, characterized in that The second characteristic information is a synchronization header of a signal sent on the second transmission channel; or, the second characteristic information is a handshake sequence sent on the second transmission channel; or, the second characteristic information is a heartbeat message sent on the second transmission channel.

19. The device according to claim 17, characterized in that The sending module is specifically used to send the second characteristic information corresponding to the first type of transmission channel through the second transmission channel when the second transmission channel is a first type of transmission channel; or, when the second transmission channel is a second type of transmission channel, send the second characteristic information corresponding to the second type of transmission channel through the second transmission channel.

20. The device according to claim 18, characterized in that The sending module is specifically used to send the second characteristic information corresponding to the first type of transmission channel through the second transmission channel when the second transmission channel is a first type of transmission channel; or, when the second transmission channel is a second type of transmission channel, send the second characteristic information corresponding to the second type of transmission channel through the second transmission channel.

21. The device according to any one of claims 13-16, 18-20, characterized in that The multiple transmission channels included in the male connector of the first connector and the multiple transmission channels included in the female connector of the second connector are classified based on the same strategy.

22. A connection device, characterized in that: include: an acquisition module, configured to acquire second characteristic information, where the second characteristic information is used to identify a type of a second transmission channel, where the second transmission channel is any one of a plurality of transmission channels included in an interface of a connector, where the plurality of transmission channels are arranged rotationally symmetrically, and where the interface of the connector is a male connector of a first connector or a female connector of a second connector; A sending module is used to send the second characteristic information through the second transmission channel.

23. The device according to claim 22, characterized in that The multiple transmission channels included in the male connector of the first connector and the multiple transmission channels included in the female connector of the second connector are classified based on the same strategy.

24. The device according to claim 22 or 23, characterized in that The device also includes: A receiving module, configured to receive first feature information through a first transmission channel, where the first transmission channel is any one of the multiple transmission channels, and the first transmission channel is a first type of transmission channel; A determination module, used to determine that the male head of the first connector is inserted into the female head of the second connector in a first direction when the first characteristic information corresponds to the first type of transmission channel; when the first characteristic information does not correspond to the first type of transmission channel, determine that the male head of the first connector is inserted into the female head of the second connector in a second direction; wherein the first direction is opposite to the second direction.

25. A connector, characterized in that: include: Processors and interfaces; The interface is used to send or receive signals; The processor is configured to call one or more programs stored in the memory to implement the method according to any one of claims 1 to 12.

26. A computer-readable storage medium, characterized in that: The method comprises program instructions, which, when executed on a computer or a processor, cause the computer or the processor to execute the method according to any one of claims 1 to 12.

27. A computer program product, characterized in that The method comprises program instructions, which are used to execute the method according to any one of claims 1 to 12 when the program instructions are executed by a computer or a processor.

Citation Information

Patent Citations

  • Type-C interface equipment, communication system and communication method

    CN106021150A

  • USB (universal serial bus) interface female and male, terminal, and external device

    CN106329254A