Interdevice interface communication method, device and equipment

By enabling rapid data transmission mode switching through the communication channel between master and slave devices, the problem of low switching efficiency in existing technologies is solved, achieving efficient data transmission and anti-interference capabilities, and ensuring the continuity of data transmission.

CN121923779APending Publication Date: 2026-04-24HUAWEI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
HUAWEI TECH CO LTD
Filing Date
2024-10-22
Publication Date
2026-04-24

AI Technical Summary

Technical Problem

Existing inter-device interface communication protocols are inefficient when switching data transmission modes, and require negotiation via an auxiliary channel after data transmission stops, affecting data transmission efficiency and responsiveness.

Method used

The communication channel between the master and slave devices enables rapid data transmission mode switching, and message exchange is used to achieve synchronous switching, including handshake of configuration and capability information, to ensure mode adjustment without blocking data transmission.

Benefits of technology

It improves the data transmission efficiency between the master and slave devices, enhances anti-interference capabilities, and enables rapid switching of data transmission modes without relying on auxiliary channels.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121923779A_ABST
    Figure CN121923779A_ABST
Patent Text Reader

Abstract

Provided are an inter-device interface communication method, device and equipment, the method comprising: sending a first message to a second device through a communication channel in an interface between a first device and the second device, the first message being used for indicating switching from a first data transmission mode to a second data transmission mode; receiving a second message sent by the second device through the communication channel, wherein the second message is used for indicating that the second device successfully receives the first message; in response to the second message, switching from the first data transmission mode to the second data transmission mode; and transmitting data with the second device in the communication channel according to the second data transmission mode. According to the interface communication method provided by the invention, the data transmission efficiency between the master device and the slave device can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of interface communication technology, specifically to an interface communication method, apparatus, and device between devices. Background Technology

[0002] In electronic devices, there are often scenarios where master and slave devices communicate. The master device can be a system-on-a-chip (SoC), and the slave device can be a memory, display, or sensor, etc. Communication between master and slave devices requires switching data transmission modes according to changes in the scenario. For example, when an interference source is active, certain measures need to be implemented to enhance anti-interference capabilities without affecting the current data transmission. When the interference source is deactivated, anti-interference measures need to be disabled to reduce power consumption.

[0003] Current data transmission protocols, such as DisplayPort (DP) and High-Definition Multimedia Interface (HDMI), define static switching for data transmission modes. This means that after data transmission stops, a negotiation must be initiated using an auxiliary channel. Only after successful negotiation can data transmission continue according to the new data transmission mode, resulting in low data transmission efficiency. Summary of the Invention

[0004] This application provides an interface communication method, apparatus, and device between devices, which improves the data transmission efficiency between master and slave devices.

[0005] In a first aspect, a method for inter-device interface communication is provided, the method comprising: sending a first message to the second device through a communication channel in an interface between a first device and a second device, the first message indicating a switch from a first data transmission mode to a second data transmission mode; receiving a second message sent by the second device through the communication channel, the second message indicating that the second device has successfully received the first message; switching from the first data transmission mode to the second data transmission mode in response to the second message; and transmitting data with the second device through the communication channel according to the second data transmission mode.

[0006] This application provides an interface communication method between devices, which can quickly switch data transmission modes without relying on auxiliary channels and without blocking data transmission between the master device and the slave device, thereby improving the data transmission efficiency between the master device and the slave device.

[0007] In one possible implementation, the first device is the master device, and the second device is the slave device. The master device can also be called a host computer or master state machine, and the slave device can also be called a slave computer or slave state machine. The first and second devices can be devices, chips applied to devices, interface devices or modules in chips, etc. The first and second devices communicate with each other through a communication channel in the interface to send and receive messages. The first device can be a processor or a SoC including a processor, etc., and the second device can be a camera, display, memory, sensor or audio device, etc.

[0008] In one possible implementation, after acquiring environmental change information, the first device can send a first message to the second device through the communication channel in the interface between the first device and the second device. This environmental change information includes any one or more of the following: an interference source is activated, or the service data transmission parameters between the second device and the first device have changed.

[0009] In one possible implementation, the first device and the second device are pre-configured with multiple different data transmission modes, and each data transmission mode corresponds to an identifier. The first message sent by the first device to the second device includes the identifier of the second data transmission mode, which is used to instruct the second device to switch the data transmission mode to the second data transmission mode.

[0010] In one possible implementation, the first message sent from the first device to the second device includes specific configuration information for the second data transmission mode, such as any one or more of the following: enabling or disabling forward error correction (FEC), enhancing or restoring signal amplitude, signal timing deviation, data transmission rate, number of data transmission channels, whether adaptive equalizer adjustment is performed when switching data transmission rates, encoding mode, and the method for switching data transmission modes. This specific configuration information for the second data transmission mode is used to instruct the second device to switch the data transmission mode to the second data transmission mode.

[0011] In one possible implementation, the first message sent by the first device to the second device indicates the storage location of the configuration information for the second data transmission mode in a register, for example, indicating the starting address and length of the configuration information for the second data transmission mode in the register. The storage location of the configuration information for the second data transmission mode in the register is used to instruct the second device to switch the data transmission mode to the second data transmission mode.

[0012] Upon receiving the second message from the second device, the first device immediately switches its data transmission mode from the first data transmission mode to the second data transmission mode. The first device then transmits data with the second device via the communication channel according to the second data transmission mode, including sending and receiving data between the two devices.

[0013] In conjunction with the first aspect, in some implementations of the first aspect, the first message is used to further indicate the configuration information of the second data transmission mode, the configuration information including any one or more of the following: enabling or disabling the FEC function, enhancing or restoring the signal amplitude, signal timing deviation, data transmission rate, number of data transmission channels, whether to perform adaptive equalizer adjustment when switching the data transmission rate, encoding mode, or data transmission mode switching method.

[0014] Configuration information such as enabling or disabling FEC (Fluid Interference Control), enhancing or restoring signal amplitude, and adjusting signal timing deviations are used to enhance the anti-interference capability of data transmission. Configuration information such as data transmission rate, the number of data transmission channels, and whether adaptive equalizer adjustment is performed when switching data transmission rates are used to adjust the data transmission bandwidth. Data transmission mode switching methods include static switching and dynamic switching. Dynamic switching does not block the data flow and can be specified as dynamic switching when there is service data transmission between the second and first devices. Static switching may block the data flow and can be specified as static switching when there is no service data transmission between the second and first devices.

[0015] This application provides an interface communication method between devices that supports enhanced anti-interference capability of data transmission, adjusts the bandwidth and encoding mode of data transmission, and enables rapid data transmission mode switching through the communication channel without blocking data transmission between the master and slave devices, without relying on auxiliary channels, thereby improving the data transmission efficiency between the master and slave devices.

[0016] In conjunction with the first aspect, in some implementations of the first aspect, the method further includes: receiving first communication capability information of the second device through the communication channel, the first communication capability information including at least one first candidate data transmission mode supported by the second device and the duration required for switching each of the at least one first candidate data transmission mode; determining general communication configuration parameters between the first device and the second device based on the second communication capability information and the first communication capability information, the second communication capability information including at least one second candidate data transmission mode supported by the first device and the duration required for switching each of the at least one second candidate data transmission mode, the general communication configuration parameters including configuration parameters of multiple data transmission modes that can be used for communication between the second device and the first device, the multiple data transmission modes including the first data transmission mode and the second data transmission mode; and sending the general communication configuration parameters to the second device through the communication channel.

[0017] In one possible implementation, the first device can send a capability acquisition message to the second device to acquire the second device's first communication capability. Upon receiving the capability acquisition message, the second device sends the first communication capability information to the first device through a communication channel. In another possible implementation, the second device can also proactively send the first communication capability information to the first device through a communication channel. In yet another possible implementation, the first device can acquire the second device's first communication capability information through other channels; that is, it can acquire the first communication capability information without using the aforementioned communication channel, or it can acquire only a portion of the first communication capability information through the aforementioned communication channel.

[0018] It should be understood that the general communication configuration parameters are configuration parameters that can be achieved by both the second device and the first device, and that the general communication configuration parameters can ensure that the data transmission modes of the second device and the first device remain synchronized.

[0019] This application provides an interface communication method between devices, which allows for handshaking and configuration of communication capabilities before the master device and slave device switch data transmission modes, ensuring that the data transmission modes between the master device and slave device remain synchronized.

[0020] In conjunction with the first aspect, in some implementations of the first aspect, the configuration parameters of each of the plurality of data transmission modes include a mode switching reservation time; the transmission of data with the second device in the communication channel according to the second data transmission mode includes: in response to the second message, after the mode switching reservation time, transmitting data with the second device in the communication channel according to the second data transmission mode.

[0021] It should be understood that the amount of mode switching reservation time included in the configuration parameters of each data transmission mode is related to the data transmission modes supported by the device, and the mode switching reservation time required for switching between different data transmission modes may be different. The configuration parameters of each data transmission mode include at least one mode switching reservation time.

[0022] The configuration parameters of the first data transmission mode or the configuration parameters of the second data transmission mode may include a mode switching reservation time for switching from the first data transmission mode to the second data transmission mode. This mode switching reservation time is greater than or equal to the time when the data transmission mode of the second device switches from the first data transmission mode to the second data transmission mode, and is also greater than or equal to the time when the data transmission mode of the first device switches from the first data transmission mode to the second data transmission mode.

[0023] Upon receiving the second message, the first device begins switching data transmission modes. For example, the first device receives the second message at a first moment, and after a pre-defined time interval for mode switching, the second moment begins. At the second moment, the first device begins transmitting data with the second device using the second data transmission mode on the communication channel. This pre-defined time interval includes the time required for the first device to switch from the first data transmission mode to the second data transmission mode.

[0024] In some possible implementations, the mode switching reservation time can be 0. For example, when switching from the first data transmission mode to the second data transmission mode, only the FEC function is enabled, and the mode switching reservation time can be equal to 0.

[0025] This application provides an interface communication method between devices, in which the master device can reserve a mode switching time according to the data transmission mode to be switched, thereby ensuring that the data transmission modes between the master device and the slave device remain synchronized.

[0026] In conjunction with the first aspect, in some implementations of the first aspect, the first message includes first information and second information, wherein the first information is used to indicate the message type of the first message, and the second information is used to indicate the second data transmission mode.

[0027] For example, the first information is used to instruct the recipient of the first message to switch the data transmission mode from the first data transmission mode to the second data transmission mode.

[0028] The second information may include any one or more of the following: the identifier of the second data transmission mode, the specific configuration information of the second data transmission mode, or the storage location of the configuration information of the second data transmission mode in the register.

[0029] This application provides an interface communication method between devices. The master device instructs the slave device to switch data transmission modes through different indication information included in the first message. The method provided by this application does not block data transmission between the master device and the slave device and does not rely on auxiliary channels, thereby improving the data transmission efficiency between the master device and the slave device.

[0030] In conjunction with the first aspect, in some implementations of the first aspect, the first message further includes third information, which is used to verify the correctness of any one or more of the following information: the first information and the second information.

[0031] For example, the third piece of information can be a cyclic redundancy check (CRC) code, such as a CRC16 check code or a CRC32 check code.

[0032] This application provides a method for inter-device interface communication, which ensures the accuracy of data transmission by setting third information in the first message.

[0033] In conjunction with the first aspect, in some implementations of the first aspect, the second message includes a fourth information and a fifth information, wherein the fourth information is used to indicate the message type of the second message, and the fifth information is used to indicate whether the information contained in the first message is correct.

[0034] For example, the fourth information is used to indicate that the sender of the second message has received the first message. The fifth information may be the result obtained by the second device through a check code verifying the correctness of the information in the first message.

[0035] This application provides an interface communication method between devices. The slave device notifies the master device that it has received a message indicating a data transmission mode switch through different indication information included in a second message. The method provided in this application does not block data transmission between the master device and the slave device and does not rely on auxiliary channels, thereby improving the data transmission efficiency between the master device and the slave device.

[0036] In conjunction with the first aspect, in some implementations of the first aspect, the second message further includes a sixth message, which is used to verify the correctness of any one or more of the following messages: the fourth message and the fifth message.

[0037] For example, the sixth piece of information can be a cyclic redundancy check (CRC) code, such as a CRC16 check code or a CRC32 check code.

[0038] This application provides a method for inter-device interface communication, which ensures the accuracy of data transmission by setting a sixth message in the second message.

[0039] In conjunction with the first aspect, in some implementations of the first aspect, at least one of the first message and the second message further includes a business data packet.

[0040] In some possible implementations, the third and sixth pieces of information can also be used to verify the correctness of business data packets.

[0041] This application provides an interface communication method between devices that can transmit service data while switching data transmission modes. It can quickly switch data transmission modes through the communication channel without blocking data transmission between the master and slave devices, without relying on auxiliary channels, thereby improving the data transmission efficiency between the master and slave devices.

[0042] In conjunction with the first aspect, in some implementations of the first aspect, the method further includes: determining that the data transmission between the first device and the second device in the second data transmission mode is abnormal; and switching from the second data transmission mode to the first data transmission mode.

[0043] When the data transmission between the second device and the first device in the second data transmission mode is abnormal, the second device and the first device can switch back to the first data transmission mode, ensuring normal communication between the master device and the slave device.

[0044] In a second aspect, a device-to-device interface communication method is provided, the method comprising: receiving a first message sent by the first device through a communication channel in an interface between a second device and a first device, the first message indicating a switch from a first data transmission mode to a second data transmission mode; sending a second message to the first device through the communication channel, the second message indicating that the second device has successfully received the first message; switching from the first data transmission mode to the second data transmission mode in response to the second message; and transmitting data with the first device through the communication channel according to the second data transmission mode.

[0045] In conjunction with the second aspect, in some implementations of the second aspect, the first message is used to further indicate the configuration information of the second data transmission mode, the configuration information including any one or more of the following: enabling or disabling forward error correction function, enhancing or restoring signal amplitude, signal timing deviation, data transmission rate, number of data transmission channels, whether to perform adaptive equalizer adjustment when switching data transmission rates, encoding mode, or data transmission mode switching method.

[0046] In conjunction with the second aspect, in some implementations of the second aspect, the method further includes: sending first communication capability information of the second device to the first device through the communication channel, the first communication capability information including at least one first candidate data transmission mode supported by the second device and the duration required for switching each of the at least one first candidate data transmission mode; receiving general communication configuration parameters between the first device and the second device sent by the first device through the communication channel, the general communication configuration parameters including configuration parameters for multiple data transmission modes that can be used for communication between the second device and the first device, the multiple data transmission modes including the first data transmission mode and the second data transmission mode.

[0047] In conjunction with the second aspect, in some implementations of the second aspect, the configuration parameters of each of the plurality of data transmission modes include a mode switching reservation time; the transmission of data with the first device in the communication channel according to the second data transmission mode includes: in response to the second message, after the mode switching reservation time, transmitting data with the first device in the communication channel according to the second data transmission mode.

[0048] In conjunction with the second aspect, in some implementations of the second aspect, the first message includes first information and second information, wherein the first information is used to indicate the message type of the first message, and the second information is used to indicate the second data transmission mode.

[0049] In conjunction with the second aspect, in some implementations of the second aspect, the first message further includes third information, which is used to verify the correctness of any one or more of the following information: the first information and the second information.

[0050] In conjunction with the second aspect, in some implementations of the second aspect, the second message includes a fourth information and a fifth information, wherein the fourth information is used to indicate the message type of the second message, and the fifth information is used to indicate whether the information contained in the first message is correct.

[0051] In conjunction with the second aspect, in some implementations of the second aspect, the second message further includes a sixth message, which is used to verify the correctness of any one or more of the following messages: the fourth message and the fifth message.

[0052] In conjunction with the second aspect, in some implementations of the second aspect, at least one of the first message and the second message further includes a business data packet.

[0053] Thirdly, an interface communication device is provided. This device, as a first device, can perform the functions executed by the first device in the above method. These functions can be implemented by hardware or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above functions.

[0054] In one possible implementation of the third aspect, the device includes a processing module and a transceiver module; the processing module is configured to support the device in performing the corresponding functions of the method provided by the first aspect or any possible implementation of the first aspect; the transceiver module is used to support communication between the first device and the second device.

[0055] In another possible implementation of the third aspect, the device includes a processing circuit and a transceiver circuit; the processing circuit is configured to support the device in performing the corresponding functions of the method provided by the first aspect or any possible implementation of the first aspect; the transceiver circuit is used to support communication between the first device and the second device.

[0056] Fourthly, an interface communication device is provided, which serves as a second device and can perform the functions executed by the second device in the above-described method. These functions can be implemented in hardware or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the aforementioned functions.

[0057] In one possible implementation of the fourth aspect, the device includes a processing module and a transceiver module; the processing module is configured to support the device in performing the corresponding functions in the method provided by the second aspect or any possible implementation of the second aspect; the transceiver module is used to support the second device in communicating with the first device.

[0058] In another possible implementation of the fourth aspect, the device includes a processing circuit and a transceiver circuit; the processing circuit is configured to support the device in performing the corresponding functions of the method provided by the second aspect or any possible implementation of the second aspect; the transceiver circuit is used to support the second device in communicating with the first device.

[0059] Fifthly, an electronic device is provided, comprising a first device and a second device connected via an interface; wherein the first device is an interface communication device provided by the third aspect or any possible implementation of the third aspect, and can be used to perform a method provided by the first aspect or any possible implementation of the first aspect; and the second device is an interface communication device provided by the fourth aspect or any possible implementation of the fourth aspect, and can be used to perform a method provided by the second aspect or any possible implementation of the second aspect.

[0060] In a sixth aspect, a readable storage medium is provided that stores a computer program or instructions that, when executed by a device, cause the device to perform the methods provided by the first aspect or any possible implementation thereof.

[0061] In a seventh aspect, a readable storage medium is provided that stores a computer program or instructions that, when a device executes the computer program or instructions, cause the device to perform the methods provided by the second aspect or any possible implementation thereof.

[0062] Eighthly, a computer program product is provided, comprising: a computer program (also referred to as code or instructions) that, when executed by a device, causes the device to perform the methods provided by the first aspect or any possible implementation thereof.

[0063] Ninth aspect, a computer program product is provided, the computer program product comprising: a computer program (also referred to as code or instructions) that, when executed by a device, causes the device to perform the methods provided by the second aspect or any possible implementation thereof.

[0064] It is understood that the beneficial effects of other aspects besides the first aspect and any possible implementation of the first aspect can be referred to in the same way as the beneficial effects of the first aspect and any possible implementation of the first aspect, and will not be repeated here. Attached Figure Description

[0065] Figure 1 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application.

[0066] Figure 2 This is an exemplary flowchart of an inter-device interface communication method provided in an embodiment of this application.

[0067] Figure 3 This is an exemplary flowchart of another inter-device interface communication method provided in the embodiments of this application.

[0068] Figure 4 This is an exemplary flowchart of a data transmission mode switching process provided in an embodiment of this application.

[0069] Figure 5 This is a timeline diagram of data packet transmission for inter-device interface communication provided in an embodiment of this application.

[0070] Figure 6 This is a schematic diagram illustrating an application scenario of an inter-device interface communication method provided in an embodiment of this application.

[0071] Figure 7 This is a structural example diagram of a first device provided in an embodiment of this application.

[0072] Figure 8 This is a schematic diagram of another first device provided in the embodiments of this application.

[0073] Figure 9 This is a structural example diagram of a second device provided in an embodiment of this application.

[0074] Figure 10 This is a schematic diagram of another second device provided in the embodiments of this application.

[0075] Figure 11 This is an example diagram of a computer program product provided in an embodiment of this application. Detailed Implementation

[0076] In this embodiment, each circuit, software, or other component may be described or referred to as "used for" performing one or more tasks. In this context, "used for" is used to imply a structure or function by indicating that the circuit / software / component includes a structure (e.g., a circuit system) that performs one or more tasks during operation. Therefore, even when the specified circuit / software / component is currently inoperable (e.g., not turned on), it can still be referred to as "used for performing the task."

[0077] The technical solutions in the embodiments of this application will be described below with reference to the accompanying drawings. In this application, "at least one" means one or more, and "more than one" means two or more. "And / or" describes the relationship between related objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist simultaneously, or B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the related objects before and after are in an "or" relationship. "At least one of the following" or similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, or c can mean: a, b, c, a and b, a and c, b and c, a, b, and c; where a, b, and c can be single or multiple.

[0078] The embodiments of this application use terms such as "first" and "second" to distinguish objects with similar names, functions, or effects. Those skilled in the art will understand that the terms "first" and "second" do not limit the quantity or order of execution. The term "coupling" is used to indicate an electrical connection, including direct connection via wires or terminals or indirect connection via other devices. Therefore, "coupling" should be considered as a broad type of electronic communication connection.

[0079] It should be noted that, in this application, the terms "exemplary" or "for example" are used to indicate that something is being described as an example, illustration, or illustration. Any embodiment or design described as "exemplary" or "for example" in this application should not be construed as being more preferred or advantageous than other embodiments or design solutions. Specifically, the use of terms such as "exemplary" or "for example" is intended to present the relevant concepts in a concrete manner.

[0080] To facilitate understanding of the embodiments of this application, some definitions involved in this application will be briefly explained first.

[0081] 1. Half-duplex: Allows bidirectional data transmission between two devices, but not simultaneously. In contrast, full-duplex allows simultaneous bidirectional data transmission between two devices.

[0082] 2. Camera Serial Interface (CSI): Defines a high-speed serial interface standard between the processor and the camera module. It provides a high-speed, low-power data transmission channel for transferring image data from the image sensor to the image processor or other processing devices. The CSI interface supports multiple data formats and resolutions and features high bandwidth and low latency, making it suitable for mobile devices, automotive electronics, and industrial vision applications.

[0083] 3. Display Serial Interface (DSI): Defines a high-speed serial interface standard between the processor and the display module. It supports high-speed, low-power, high-bandwidth data transmission, as well as the simultaneous transmission of multiple data streams. DSI can transmit high-quality video signals without using any codecs and supports various display types, including liquid crystal displays (LCDs), organic light-emitting diode (OLED) displays, and active matrix OLED (AMOLED) displays.

[0084] 4. Horizontal Blanking (HBlank): During video signal processing, the electron gun draws pixels from left to right, drawing only one scan line at a time. Before drawing the next scan line, the electron gun needs to return to the left and prepare to draw the next scan line; this period is called horizontal blanking. This process is necessary because it allows the system to switch to the beginning of the next line while ensuring the continuity and stability of the image.

[0085] 5. Vertical Blanking (VBlank): After the electron gun completes all scan lines (usually 256) of an image, it returns to the top left corner of the screen to prepare for drawing the next frame. This period is called vertical blanking. Vertical blanking ensures that the screen has enough time to update and prepare before drawing the next frame, thus avoiding image ghosting and flickering.

[0086] 6. Heartbeat message: A mechanism used to monitor the operating status of devices such as network storage devices. By periodically sending messages in a specific format, it helps administrators understand the current working status of the device, including performance indicators and whether there are any faults.

[0087] 7. Forward error correction (FEC): This is a forward error correction technique where the sender adds a certain amount of redundant error correction code to the data to be sent, and the receiver performs error detection on the received data based on the error correction code. If an error is found, the receiver performs the error correction.

[0088] 8. Lane: refers to the physical channel through which differential signals are transmitted or received. It can be understood as the physical channel through which information is transported between two different devices.

[0089] The technical solution provided in this application can be applied to electronic devices that include multiple communication devices, which are also referred to simply as devices. Optionally, the device can be a device, a chip applied to a device, or an interface device or module in a chip, etc., and two different devices can be interconnected. In this application, the multiple devices can transmit signals through an interface device.

[0090] Optionally, when the device is a chip, the chip may further include an interface module, meaning this application can be applied to an interface module for chip-to-chip interconnection. This interface module can be understood as an intellectual property (IP) module integrated within the chip. Alternatively, the interface module can also be sold independently as an IP module. For example, the chip can be a system-on-chip (SoC), a central processing unit (CPU), or a graphics processing unit (GPU), etc., and the aforementioned interface module can be an interface module within the SoC, CPU, or GPU. Optionally, the chip can also be a die-like small chip, and the interface module can be the transmitting and / or receiving circuitry within the die.

[0091] The structure of the electronic device will be illustrated below using the example of the device comprising two components.

[0092] Figure 1 This is a schematic diagram of an electronic device provided in an embodiment of this application. The electronic device 100 includes a first device 110 and a second device 120 connected via an interface. The first device 110 and the second device 120 transmit data to each other through a communication channel in the interface. The communication channel can be, for example, a differential signal channel or a single-ended signal channel; this embodiment is not limited to either. For example, the first device 110 includes interface A, and the second device 120 includes interface B. Interface A and interface B are connected by a cable. The first device 110 can output signals to the second device 120 through interface A, and the first device 110 can also receive signals from the second device 120 through interface A. The second device 120 can output signals to the first device 110 through interface B, and the second device 120 can also receive signals from the first device 110 through interface B. The first device 110 and the second device 120 can perform full-duplex or half-duplex communication.

[0093] In one possible embodiment, the electronic device 100 may include a master device and a slave device. The master device may also be referred to as a host computer or master state machine, and the slave device may also be referred to as a slave computer or slave state machine. In practical applications, the first device 110 can be the master device, and the second device 120 can be the slave device; alternatively, the first device 110 can be the slave device, and the second device 120 can be the master device. The following embodiments use the example of the first device 110 being the master device and the second device 120 being the slave device to describe the technical solution provided in this application.

[0094] Optionally, the main device can be a processor or a System-on-a-Chip (SoC) including a processor. For example, the processor may include a central processing unit (CPU), a neural network processing unit (NPU), a graphics processing unit (GPU), an application processor, an application-specific integrated circuit (ASIC), a complex programmable logic device (CPLD), and a field-programmable gate array (FPGA). Optionally, the slave device may include a camera, a display, memory, a sensor, or an audio device. For example, the memory may include random access memory (RAM), read-only memory (ROM), flash memory, and a hard disk. For example, the audio device may include speakers, microphones, and loudspeakers.

[0095] Optionally, the aforementioned interfaces A and B may include, but are not limited to: peripheral component interconnect express (PCIe) interface, small computer system interface (SCSI), serial attached SCSI (SAS) interface, universal serial bus (USB) interface, mobile industry processor interface (MIPI), high definition multimedia interface (HDMI), mini HDMI, micro HDMI, display port (DP), unified multimedia interconnection (UMMI) interface, unified media interconnection (UMI) interface, type-A interface, type-B interface, type-C interface, or proprietary interfaces, etc.

[0096] It is understood that the interfaces listed above that adopt different interface specifications are merely exemplary. In practical applications, the interface specification may also include other or any interface specifications that may appear in the future. This application embodiment does not impose any specific limitations on this.

[0097] In this application, the aforementioned electronic device 100 may include, but is not limited to: mobile phone, tablet computer, laptop computer, PDA, mobile internet device (MID), camera, wearable device (e.g., smartwatch, smart bracelet, pedometer, etc.), audio equipment, audio and video player, set-top box, game console, printer, mouse, keyboard, in-vehicle equipment (e.g., equipment on vehicles such as cars, bicycles, electric vehicles, airplanes, ships, trains, and high-speed trains), virtual reality (VR) device, augmented reality (AR) device, wireless terminal in industrial control, smart home device (e.g., refrigerator, television, air conditioner, electricity meter, etc.), smart robot, workshop equipment, wireless terminal in self-driving, wireless terminal in remote medical surgery, wireless terminal in smart grid, wireless terminal in transportation safety, wireless terminal in smart city, or smart home. Wireless terminals and flying equipment (e.g., intelligent robots, hot air balloons, drones, airplanes) in the home.

[0098] In a half-duplex or full-duplex communication architecture, when an interference source is activated or when the service data transmission parameters between the first device 110 and the second device 120 change, the communication between the first device 110 and the second device 120 needs to switch the data transmission mode according to the change in the scenario.

[0099] In scenarios requiring data transmission mode switching, when an interference source is activated, measures are needed to enhance anti-interference capabilities; conversely, when the interference source is deactivated, anti-interference measures need to be disabled to reduce power consumption. While the activation and deactivation of interference sources can be announced in advance, it's not possible to provide significant advance notice. For example, when a modem or other interference source is about to undergo a state change, anti-interference measures need to be switched on quickly.

[0100] In another scenario requiring data transmission mode switching, when the service data transmission parameters between the first device 110 and the second device 120 change—for example, if the image resolution of the camera module changes—the transmission of image data will not stop, but the bandwidth requirement will change. To save power, a data transmission rate switch is necessary, which will also trigger a change in the encoding / decoding mode.

[0101] In the existing technology, the data transmission mode switching method defined by the inter-device interface communication protocol is static switching. That is, after data transmission stops, it is necessary to re-negotiate through an auxiliary channel. Only after the negotiation is successful can transmission continue according to the switched data transmission mode. This results in low data transmission efficiency and poor responsiveness.

[0102] This application embodiment enables rapid data transmission mode switching without blocking data transmission between the master and slave devices, and without relying on additional auxiliary channels, solely through the communication channel used for data transmission, thereby improving data transmission efficiency between the master and slave devices. The data transmission mode switching in this application embodiment includes a standardized process and data packet interaction definition under half-duplex or full-duplex communication architectures.

[0103] The data transmission mode configuration information in this application embodiment includes any one or more of the following: configuration information for enhancing data transmission anti-interference capability, configuration information for bandwidth adjustment, configuration information related to encoding mode, and configuration information indicating the switching method of data transmission mode. The configuration information for enhancing data transmission anti-interference capability includes enabling or disabling the FEC function, enhancing or restoring the signal amplitude, and adjusting signal timing deviation (skew). The configuration information for bandwidth adjustment includes the data transmission rate, the number of data transmission channels in the transmit (TX) / receive (RX) direction, and whether adaptive equalizer (EQ) adjustment is performed when switching the data transmission rate. The encoding mode is related to the data transmission rate; for example, encoding modes include, but are not limited to, 8B / 10B encoding and 128 / 132B encoding. The configuration information indicating the switching method of data transmission mode includes indicating whether the switching method is static or dynamic. Dynamic switching does not block the data flow (taking the application scenario of a camera module as an example, mode switching does not block the current image transmission), while static switching may block the data flow (for example, switching the data transmission mode in a scenario where there is business data transmission between the second device and the first device).

[0104] Figure 2 This is an exemplary flowchart of an inter-device interface communication method provided in an embodiment of this application.

[0105] 210, the first device 110 sends a first message to the second device 120.

[0106] The first device 110 sends a first message to the second device 120 through the communication channel in the interface between the second device 120 and the first device 110. The first message is used to instruct the second device 120 to switch the data transmission mode from the first data transmission mode to the second data transmission mode.

[0107] In one possible implementation, the first device 110 may send a first message to the second device 120 after acquiring environmental change information. This environmental change information includes any one or more of the following: an interference source is activated, or the service data transmission parameters between the second device 120 and the first device 110 change. The interference source may be, for example, the antenna of a modem or electronic device. The activation of the interference source can be notified in advance; for example, the first device 110 will be notified before the modem is activated. The service data transmission parameters between the second device 120 and the first device 110 include image resolution, the number of virtual image channels, etc.

[0108] In one possible implementation, the first device 110 and the second device 120 are pre-configured with multiple different data transmission modes, and each data transmission mode corresponds to an identifier. The first message sent by the first device 110 to the second device 120 includes the identifier of the second data transmission mode, which is used to instruct the second device 120 to switch the data transmission mode to the second data transmission mode.

[0109] In one possible implementation, the first message sent by the first device 110 to the second device 120 includes specific configuration information for the second data transmission mode. This may include, for example, any one or more of the following configuration information: enabling or disabling the FEC function, enhancing or restoring the signal amplitude, signal timing skew, data transmission rate, number of data transmission channels, whether adaptive equalizer adjustment is performed during data transmission rate switching, encoding mode, or data transmission mode switching method. This specific configuration information for the second data transmission mode is used to instruct the second device 120 to switch its data transmission mode to the second data transmission mode.

[0110] In one possible implementation, the first message sent by the first device 110 to the second device 120 indicates the storage location of the configuration information for the second data transmission mode in a register, for example, indicating the starting address and length of the configuration information for the second data transmission mode in the register. The storage location of the configuration information for the second data transmission mode in the register is used to indicate that the second device 120 switches its data transmission mode to the second data transmission mode.

[0111] 220, the second device 120 sends a second message to the first device 110.

[0112] The second device 120 receives the first message sent by the first device 110 through the communication channel in the interface between the second device 120 and the first device 110. After receiving the first message sent by the first device 110, the second device 120 sends a second message to the first device 110 through the same communication channel. The second message is used to indicate that the second device 120 has successfully received the first message.

[0113] 230, the second device 120 switches from the first data transmission mode to the second data transmission mode.

[0114] After sending the second message, the second device 120 switches the data transmission mode from the first data transmission mode to the second data transmission mode according to the configuration information of the second data transmission mode indicated by the first message; that is, the second device 120 initiates the switching immediately after sending the second message. The second data transmission mode is different from the first data transmission mode, that is, the specific configuration information of the second data transmission mode is not exactly the same as that of the first data transmission mode.

[0115] 240. After receiving the second message sent by the second device 120, the first device 110 switches from the first data transmission mode to the second data transmission mode, that is, the first device 110 immediately initiates the switching after receiving the second message.

[0116] In one possible implementation, the first device 110 has pre-configured the configuration information of the second data transmission mode before sending the first message to the second device 120. After receiving the second message sent by the second device 120, the first device 110 enables the second data transmission mode, that is, switches the data transmission mode of the first device 110 from the first data transmission mode to the second data transmission mode.

[0117] 250, the first device 110 and the second device 120 transmit service data to each other in the communication channel according to the second data transmission mode, that is, the first device 110 sends service data to the second device 120 or receives service data from the second device 120 in the communication channel according to the second data transmission mode, and the second device 120 sends service data to the first device 110 or receives service data from the first device 110 in the communication channel according to the second data transmission mode.

[0118] Figure 3 This is an exemplary flowchart of another inter-device interface communication method provided in the embodiments of this application.

[0119] In phase S1, the capabilities of the first device 110 and the second device 120 are handshaked and configured.

[0120] 311, the first device 110 sends a capability acquisition message to the second device 120. The capability acquisition message is used to acquire the first communication capability information of the second device 120. The first communication capability information includes at least one first candidate data transmission mode supported by the second device 120 and the time required for switching each first candidate data transmission mode in the at least one first candidate data transmission mode.

[0121] For example, in the first communication capability information, the second device 120 supports a first data transmission mode and a second data transmission mode. Switching from the first data transmission mode to the second data transmission mode requires 5 microseconds (μs), and switching from the second data transmission mode to the first data transmission mode requires 5 μs.

[0122] 312, the second device 120 sends the first communication capability information to the first device 110.

[0123] 313. The first device 110, based on its own second communication capability information and the first communication capability information of the second device 120, takes the universal communication configuration parameters that can be reached by both parties and configures the second device 120, that is, sends the universal communication configuration parameters to the second device 120.

[0124] The second communication capability information includes at least one second candidate data transmission mode supported by the first device 110 and the duration required to switch between each of the at least one second candidate data transmission mode. For example, the second communication capability information indicates that the first device 110 supports a first data transmission mode, a second data transmission mode, and a third data transmission mode; switching from the first data transmission mode to the second data transmission mode requires 4 μs; switching from the first data transmission mode to the third data transmission mode requires 8 μs; switching from the second data transmission mode to the first data transmission mode requires 4 μs; switching from the second data transmission mode to the third data transmission mode requires 0 μs; switching from the third data transmission mode to the first data transmission mode requires 8 μs; and switching from the third data transmission mode to the second data transmission mode requires 0 μs.

[0125] The general communication configuration parameters include configuration parameters for multiple data transmission modes that enable communication between the second device 120 and the first device 110. These multiple data transmission modes include a first data transmission mode and a second data transmission mode. For example, the configuration parameters for each of the multiple data transmission modes in the general communication configuration parameters include a mode switching reservation time. For instance, in the configuration parameters for the first data transmission mode, the mode switching reservation time from the first data transmission mode to the second data transmission mode is 5 μs, and the mode switching reservation time from the first data transmission mode to the third data transmission mode is 8 μs.

[0126] 314. The second device 120 receives the general communication configuration parameters sent by the first device 110, configures the general communication configuration parameters for itself, and sends an acknowledgment message to the first device 110 to indicate that the general communication configuration parameters have been successfully received.

[0127] In phase S2, the first device 110 and the second device 120 transmit data in the first data transmission mode.

[0128] The first device 110 and the second device 120 transmit service data to each other through the communication channel in the interface in the first data transmission mode. It should be understood that if the first device 110 and the second device 120 do not transmit data in the first data transmission mode, the S2 stage can be omitted.

[0129] Optionally, the order of stages S1 and S2 can be interchanged, and this example should not be construed as a limitation of this application.

[0130] In the S3 phase, the data transmission mode is switched.

[0131] 331. When business needs require it, the first device 110 selects the data transmission mode to be switched next.

[0132] After acquiring environmental change information, the first device 110 determines the data transmission mode that needs to be switched. For example, if the service data transmission parameters between the second device 120 and the first device 110 change, the first device 110 determines that it needs to switch to the second data transmission mode. After configuring the configuration information for the second data transmission mode, the first device 110 initiates an operation mode change (OMC) in the first data transmission mode and sends a first message to the second device 120 through the communication channel.

[0133] In one possible implementation scenario, the first message includes a remote access command (RAC) data packet. The RAC data packet may indicate configuration information for the second data transmission mode. For example, the RAC data packet may include an identifier of the second data transmission mode, specific configuration information of the second data transmission mode, or the storage location of the configuration information of the second data transmission mode in a register.

[0134] In another possible implementation scenario, in order to ensure that the switching of data transmission mode does not affect the transmission of business data, the first message may also include business data packets. For example, the first message may include RAC data packets and business data packets, that is, the RAC data packets and business data packets are combined to form one transmission.

[0135] The first message includes first information and second information, and optionally, third information. The first information indicates the message type of the first message, the second information indicates the second data transmission mode, and the third information verifies the correctness of the first information and / or the second information.

[0136] Table 1 shows an example of a first message format. Command is the first information, the second information consists of two parts: addr and Length, and Crc1 is the third information. Command indicates the message type of the first message; for example, Command = 0 indicates that the message is the first message, and Command = 1 indicates that the message is the second message. addr indicates the starting address of the configuration information of the second data transmission mode in the register, and Length indicates the length of the configuration information of the second data transmission mode in the register. For example, 0 to 7 can be used to represent the length of the configuration information of the second data transmission mode in the register; for example, Length = 0 represents 4 bytes, Length = 1 represents 8 bytes, ..., Length = 7 represents 32 bytes. Crc1 is the CRC checksum, which can be a CRC16 checksum or a CRC32 checksum. The calculation method for the CRC16 checksum can be the polynomial G(X) = X. 16 +X 12 +X 5 +1, the initial value is all 0xffff.

[0137] Table 1

[0138]

[0139] Table 2 shows another example of the first message format, where Command is the first message, ID is the second message, and Crc1 is the third message. Command indicates the message type of the first message; for example, Command = 0 indicates the message is the first message, and Command = 1 indicates the message is the second message. ID is used to identify the configuration information for the second data transmission mode. Crc1 is a CRC checksum, which can be a CRC16 checksum or a CRC32 checksum. The CRC16 checksum can be calculated using the polynomial G(X) = X. 16 + 12 +X 5 +1, the initial value is all 0xffff.

[0140] Table 2

[0141] First Information Second Information Third Information Command ID Crc1

[0142] It should be understood that the first message may also include other information, and the above examples should not be construed as limiting this application.

[0143] 332. After receiving the first message through the communication channel, the second device 120 sends a second message to the first device 110 through the same communication channel. The second message is used to indicate that the second device 120 has successfully received the first message, i.e., a confirmation response of successful reception.

[0144] In one possible implementation scenario, the second message includes a remote access response (RAR) data packet, which can indicate that the second device 120 has successfully received the first message, and can also indicate whether the content included in the first message is correct, which can be part of the content or the entire content.

[0145] In one possible implementation scenario, the second message may include an OMC sequence, or the OMC sequence may be separately sent by the second device 120 to the first device 110. The OMC sequence may be an identifier of the second data transmission mode, used to indicate that the second device 120 has successfully received the message that needs to switch to the second data transmission mode, i.e., the first message. The OMC sequence may be 32 consecutive K29.7 codes, and the encoding rule conforms to the half-duplex or full-duplex communication protocol.

[0146] In another possible implementation scenario, in order to ensure that the switching of data transmission mode does not affect the transmission of business data, the second message may also include business data packets. For example, the second message may include RAR data packets and business data packets, that is, the RAR data packets and business data packets are combined to form a single transmission.

[0147] The second message includes a fourth piece of information, and optionally, a fifth and / or a sixth piece of information. The fourth piece of information indicates the message type of the second message, the fifth piece of information indicates whether the information contained in the first message is correct, and the sixth piece of information verifies the correctness of the fourth and / or fifth pieces of information.

[0148] Table 3 shows an example of a second message format, where Command is the fourth message, status is the fifth message, and CRC2 is the sixth message. Command indicates the message type of the second message; for example, Command=0 indicates the first message, and Command=1 indicates the second message. status indicates whether the information contained in the first message is correct, such as whether it conforms to predefined standards; status=0 indicates that the information contained in the first message is correct, and status=1 indicates that the information contained in the first message is incorrect. CRC2 is the CRC checksum, which can be a CRC16 checksum or a CRC32 checksum. The CRC16 checksum can be calculated using the polynomial G(X) = ... 16 +X 12 +X 5 +1, the initial value is all 0xffff.

[0149] Table 3

[0150] Fourth Information Fifth Information Sixth Information Command status Crc2

[0151] It should be understood that the second message may also include other information, and the above examples should not be construed as limiting this application.

[0152] In phase S4, the first device 110 and the second device 120 transmit data in the second data transmission mode.

[0153] After sending the second message, the second device 120 switches its data transmission mode from the first data transmission mode to the second data transmission mode according to the configuration information of the second data transmission mode indicated by the first message; that is, the switching is initiated immediately after sending the second message. After receiving the second message sent by the second device 120, the first device 110 switches its data transmission mode from the first data transmission mode to the second data transmission mode; that is, the switching is initiated immediately after receiving the second message. In the second data transmission mode, the first device 110 and the second device 120 transmit service data to each other on the communication channel; that is, the first device 110 sends service data to or receives service data from the second device 120 on the communication channel according to the second data transmission mode, and the second device 120 sends service data to or receives service data from the first device 110 on the communication channel according to the second data transmission mode.

[0154] In one possible implementation, if an anomaly occurs in the data transmission after the first device 110 and the second device 120 switch to the second data transmission mode, causing the business data transmission of the first device 110 and the second device 120 to fail to complete normally in the second data transmission mode, then the first device 110 and the second device 120 can each switch back to the first data transmission mode. For example, the first device 110 and the second device 120 can detect the anomaly through a heartbeat message. When the first device 110 and the second device 120 detect the heartbeat message anomaly, they switch back to the first data transmission mode.

[0155] Figure 4 This is an exemplary flowchart of a data transmission mode switching process provided in an embodiment of this application. Figure 4 for Figure 3 A detailed illustration of the S3 stage.

[0156] The time required for switching between different data transmission modes may vary, and whether this switching affects services needs to be assessed. For example, if the data transmission mode switching takes 5μs and the interval between two adjacent service data packets is 5μs, then no impact can be assessed. When the sensor switches data transmission modes during image transmission, if the switching occurs during HBlank or Vblank, and both HBlank and Vblank times are relatively long, no impact can be assessed. However, if Hblank cannot meet the time requirements for data transmission mode switching, then the switching can only occur during Vblank.

[0157] To ensure that switching data transmission modes does not affect services, a mode switching reserve period can be set. This mode switching reserve period belongs to... Figure 3 The general communication configuration parameters for phase S1 are as follows: If the switched data transmission mode only changes the operating mode of the FEC function, no mode switching reservation time is required, i.e., the mode switching reservation time is 0. If the switched data transmission mode changes the data transmission rate, a certain mode switching reservation time is required so that the device can complete the actual switch within this time. After the mode switching reservation time expires, the first device 110 and the second device 120 can complete the switch and transmit data in the newly switched second data transmission mode.

[0158] Upon receiving the second message, the first device 110 immediately switches its data transmission mode to the second data transmission mode. For example, the first device 110 receives the second message at a first time t1. After a mode switching reservation period, the first time t1 becomes the second time t2. At the second time, the first device 110 begins transmitting data with the second device 120 using the second data transmission mode on the communication channel. This mode switching reservation period includes the time required for the first device 110 to switch from the first data transmission mode to the second data transmission mode, and is typically longer than the actual time required for the first device 110 to perform the switch.

[0159] After sending the second message, the second device 120 immediately switches to the second data transmission mode. For example, the second device 120 sends the second message at a third time t3. After a mode switching reservation period, the third time t3 becomes a fourth time t4. At the fourth time t4, the second device 120 begins transmitting data with the first device 110 using the second data transmission mode on the communication channel. This mode switching reservation period includes the time required for the second device 120 to switch from the first data transmission mode to the second data transmission mode, and is typically longer than the actual time required for the second device 120 to perform the switch.

[0160] Figure 5 This is a timeline diagram of data packet transmission for inter-device interface communication provided in an embodiment of this application.

[0161] The rounded rectangular data packets are sent by the first device 110, and the right-angled rectangular data packets are sent by the second device 120. The formats of the first and second messages can be found in [reference needed]. Figure 3 The description of the above will not be repeated here.

[0162] Figure 6 This is a schematic diagram illustrating an application scenario of an inter-device interface communication method provided in an embodiment of this application.

[0163] At time t11, the first device 110 and the second device 120 transmit image data in the communication channel according to the first data transmission mode. The first device 110 may be, for example, a processor, and the second device 120 may be, for example, a camera or a display.

[0164] At time t12, the first device 110 receives a signal that interference is about to be activated, and adopts... Figure 2 or Figure 3 The method shown switches the data transmission mode of the first device 110 and the second device 120 from a first data transmission mode to a second data transmission mode. In the second data transmission mode, the FEC function is enabled compared to the first data transmission mode.

[0165] At time t13, the first device 110 receives a signal indicating that interference has been turned off, and adopts... Figure 2 or Figure 3 The method shown switches the data transmission mode of the first device 110 and the second device 120 from the second data transmission mode to the first data transmission mode. In the first data transmission mode, the FEC function is disabled compared to the second data transmission mode.

[0166] At time t14, the small-bandwidth image transmitted between the first device 110 and the second device 120 becomes a large-bandwidth image, and the first device 110 adopts... Figure 2 or Figure 3 The method shown switches the data transmission mode of the first device 110 and the second device 120 from a first data transmission mode to a third data transmission mode. The third data transmission mode, relative to the first data transmission mode, adjusts the data transmission rate and encoding mode.

[0167] It should be understood that the data transmission mode switching at times t12, t13, and t14 can be performed in scenarios where there is business data transmission, and the switching process does not affect the business, i.e., dynamic switching. The data transmission mode switching at times t12, t13, and t14 can also be performed in scenarios where there is no business data transmission, and the relevant business is initiated after the switching is completed, i.e., static switching.

[0168] The inter-device interface communication method provided in this application does not rely on auxiliary channels, which can save signal pins and can perform fast data transmission mode switching without blocking data transmission between the master device and the slave device, thereby improving the data transmission efficiency between the master device and the slave device.

[0169] The above describes an inter-device interface communication method according to embodiments of this application. The following will be combined with... Figures 7 to 10 This application describes apparatus and devices according to embodiments thereof.

[0170] This application also provides a computer storage medium storing program instructions, which, when executed, may include, for example... Figures 2 to 4 Some or all of the steps of the interface communication method in the corresponding embodiment.

[0171] Figure 7 This is a structural example diagram of a first device 700 provided in an embodiment of this application. The first device 700 includes a transceiver module 710 and a processing module 720. The transceiver module 710 and the processing module 720 can be implemented in software, hardware, or a combination of both.

[0172] The transceiver module 710 is used to send a first message to the second device through the communication channel in the interface between the first device and the second device, receive a second message, and perform other functions. Figure 2 Steps 210 and 220 of the method Figure 3 and Figure 4 Steps 331 and 332 in the method are also used to execute business data.

[0173] Processing module 720 is used to switch from the first data transmission mode to the second data transmission mode in response to the second message, and execute... Figures 2 to 4 Some or all of the steps in the method.

[0174] Figure 8 This is a schematic diagram of another first device 800 provided in an embodiment of this application. This device can be used as a device or as a chip applied to a device. The device includes a processing circuit 810 and a transceiver circuit 820. In one possible embodiment, the processing circuit 810 is used to support the device in performing the above-described... Figures 2 to 4 Some or all of the steps in the method; the transceiver circuit 820 is used to support the device in communication, such as supporting the device to communicate with a second device, including communication of various messages and service data, and the transceiver circuit 820 can be an interface element.

[0175] In this embodiment, the processing circuit 810 can be a processor, which may include a central processing unit, a general-purpose processor, a digital signal processor, an application-specific integrated circuit, a field-programmable gate array, or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. It can implement or execute various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of this application. The processor can also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a digital signal processor and a microprocessor, etc.

[0176] Figure 9 This is a structural example diagram of a second device 900 provided in an embodiment of this application. The second device 900 includes a transceiver module 910 and a processing module 920. The transceiver module 910 and the processing module 920 can be implemented in software, hardware, or a combination of both.

[0177] The transceiver module 910 is used to receive a first message sent by the first device through the communication channel in the interface between the second device and the first device, send a second message, and perform other functions. Figure 2 Steps 210 and 220 of the method Figure 3 and Figure 4 Steps 331 and 332 in the method are also used to perform business data sending and receiving.

[0178] Processing module 920 is used to switch from the first data transmission mode to the second data transmission mode in response to the second message and execute... Figures 2 to 4 Some or all of the steps in the method.

[0179] Figure 10 This is a schematic diagram of another second device 1000 provided in an embodiment of this application. This device can be used as a device or a chip applied to a device. The device includes a processing circuit 1010 and a transceiver circuit 1020. In one possible embodiment, the processing circuit 1010 is used to support the device in performing the above-described... Figures 2 to 4 Some or all of the steps in the method; the transceiver circuit 1020 is used to support the device in communication, such as supporting the device to communicate with the first device, including communication of various messages and service data, and the transceiver circuit 1020 can be an interface element.

[0180] In this embodiment, the processing circuit 1010 can be a processor, which may include a central processing unit, a general-purpose processor, a digital signal processor, an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. It can implement or execute various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of this application. The processor can also be a combination that implements computational functions, such as a combination of one or more microprocessors, a combination of a digital signal processor and a microprocessor, etc.

[0181] In another embodiment of this application, an electronic device is provided, comprising a first device and a second device connected via an interface; wherein the first device may be or include the aforementioned... Figure 7 or Figure 8 The provided apparatus is used to perform the steps of the first apparatus in the method embodiments provided above; the second apparatus may be or include the steps described above. Figure 9 or Figure 10 The provided apparatus is used to perform the steps of the second apparatus in the method embodiments provided above.

[0182] It is understood that all relevant content of each step involved in the above method embodiments can be referenced in the embodiments of the first device and the second device, as well as in the embodiments of the electronic device, and will not be repeated here.

[0183] In some embodiments of this application, the disclosed methods can be implemented as computer program instructions encoded in a machine-readable format on a computer-readable storage medium or on other non-transitory media or articles of art. Figure 11 A conceptual partial view schematically illustrates an example computer program product arranged according to at least some embodiments shown herein, the example computer program product including a computer program for executing computer processes on a computing device. In one embodiment, the example computer program product 1100 is provided using a signal carrying medium 1101. The signal carrying medium 1101 may include one or more program instructions 1102, which, when executed by one or more processors, can provide the above-described... Figures 2 to 4 The functions or parts thereof described in the methods shown. Therefore, for example, refer to... Figures 2 to 4 In the embodiments shown, one or more features may be provided by one or more instructions associated with the signal carrying medium 1101.

[0184] In some examples, signal-bearing medium 1101 may comprise computer-readable medium 1103, such as, but not limited to, hard disk drives, CDs, digital video optical discs (DVDs), digital magnetic tapes, memory, read-only memory (ROM), or random access memory (RAM), etc. In some embodiments, signal-bearing medium 1101 may comprise computer-recordable medium 1104, such as, but not limited to, memory, read / write (R / W) CDs, R / W DVDs, etc. In some embodiments, signal-bearing medium 1101 may comprise communication medium 1105, such as, but not limited to, digital and / or analog communication media (e.g., fiber optic cables, waveguides, wired communication links, wireless communication links, etc.). Therefore, for example, signal-bearing medium 1101 may be conveyed by wireless communication medium 1105 (e.g., wireless communication media conforming to the IEEE 802.11 standard or other transmission protocols). One or more program instructions 1102 may be, for example, computer-executable instructions or logical implementation instructions. In some examples, the aforementioned computing device can be configured to provide various operations, functions, or actions in response to program instructions 1102 transmitted to the computing device via one or more of computer-readable media 1103, computer-recordable media 1104, and / or communication media 1105. It should be understood that the arrangements described herein are merely illustrative. Therefore, those skilled in the art will understand that other arrangements and other elements (e.g., machines, interfaces, functions, sequences, and functional groups, etc.) can be used instead, and some elements can be omitted depending on the desired result. Furthermore, many of the described elements are functional entities that can be implemented as discrete or distributed components, or in any suitable combination and location in conjunction with other components.

[0185] The above description primarily focuses on the interaction between the first and second devices. It is understood that, to achieve the aforementioned functions, the first and second devices include corresponding hardware structures and / or software modules for executing each function. Those skilled in the art should readily recognize that, based on the modules and algorithm steps described in conjunction with the embodiments disclosed herein, this application can be implemented in hardware or a combination of hardware and computer software. Whether a function is executed via hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0186] This application embodiment can divide the first device and the second device into functional modules according to the above method example. For example, each function can be divided into a separate functional module, or two or more functions can be integrated into one module. The integrated module can be implemented in hardware or as a software functional module. It should be noted that the module division in this application embodiment is illustrative and only represents one logical functional division. In actual implementation, there may be other division methods.

[0187] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working process of the above-described device and module can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.

[0188] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, some features may be omitted or not performed. Furthermore, the mutual couplings or direct couplings or communication connections shown or discussed may be indirect couplings or communication connections through some interfaces, devices, or units, and may be electrical, mechanical, or other forms.

[0189] In addition, the functional modules in the various embodiments of this application can be integrated into one processing unit, or each module can exist physically separately, or two or more modules can be integrated into one unit.

[0190] If the aforementioned functions are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0191] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

Claims

1. A method for inter-device interface communication, characterized in that, include: A first message is sent to the second device through the communication channel in the interface between the first device and the second device. The first message is used to indicate switching from the first data transmission mode to the second data transmission mode. The second message sent by the second device is received through the communication channel, and the second message is used to indicate that the second device has successfully received the first message. In response to the second message, switch from the first data transmission mode to the second data transmission mode; Data is transmitted between the second device and the communication channel according to the second data transmission mode.

2. The method according to claim 1, characterized in that, The first message is used to further indicate the configuration information of the second data transmission mode. The configuration information includes any one or more of the following: enabling or disabling forward error correction function, enhancing or restoring signal amplitude, signal timing deviation, data transmission rate, number of data transmission channels, whether to perform adaptive equalizer adjustment when switching data transmission rates, encoding mode, or data transmission mode switching method.

3. The method according to claim 1 or 2, characterized in that, The method further includes: The second device receives first communication capability information through the communication channel. The first communication capability information includes at least one first candidate data transmission mode supported by the second device and the time required to switch each first candidate data transmission mode in the at least one first candidate data transmission mode. Based on the second communication capability information and the first communication capability information, general communication configuration parameters between the first device and the second device are determined. The second communication capability information includes at least one second candidate data transmission mode supported by the first device and the duration required for switching each second candidate data transmission mode in the at least one second candidate data transmission mode. The general communication configuration parameters include configuration parameters for multiple data transmission modes that can be used for communication between the second device and the first device. The multiple data transmission modes include the first data transmission mode and the second data transmission mode. The general communication configuration parameters are sent to the second device through the communication channel.

4. The method according to claim 3, characterized in that, The configuration parameters for each of the multiple data transmission modes include the mode switching reservation time. The step of transmitting data between the communication channel and the second device according to the second data transmission mode includes: In response to the second message, after the reserved time for the mode switch, data is transmitted with the second device in the communication channel according to the second data transmission mode.

5. The method according to any one of claims 1 to 4, characterized in that, The first message includes first information and second information, wherein the first information is used to indicate the message type of the first message, and the second information is used to indicate the second data transmission mode.

6. The method according to claim 5, characterized in that, The first message also includes third information, which is used to verify the correctness of any one or more of the following information: the first information and the second information.

7. The method according to any one of claims 1 to 6, characterized in that, The second message includes a fourth message and a fifth message. The fourth message indicates the message type of the second message, and the fifth message indicates whether the information contained in the first message is correct.

8. The method according to claim 7, characterized in that, The second message also includes a sixth message, which is used to verify the correctness of any one or more of the following messages: the fourth message and the fifth message.

9. The method according to any one of claims 1 to 8, characterized in that, At least one of the first message and the second message also includes a business data packet.

10. A method for inter-device interface communication, characterized in that, include: The first message sent by the first device is received through the communication channel in the interface between the second device and the first device. The first message is used to indicate switching from the first data transmission mode to the second data transmission mode. A second message is sent to the first device through the communication channel, the second message being used to indicate that the second device has successfully received the first message; In response to the second message, switch from the first data transmission mode to the second data transmission mode; Data is transmitted between the first device and the communication channel according to the second data transmission mode.

11. The method according to claim 10, characterized in that, The first message is used to further indicate the configuration information of the second data transmission mode. The configuration information includes any one or more of the following: enabling or disabling forward error correction function, enhancing or restoring signal amplitude, signal timing deviation, data transmission rate, number of data transmission channels, whether to perform adaptive equalizer adjustment when switching data transmission rates, encoding mode, or data transmission mode switching method.

12. The method according to claim 10 or 11, characterized in that, The method further includes: The first communication capability information of the second device is sent to the first device through the communication channel. The first communication capability information includes at least one first candidate data transmission mode supported by the second device and the time required for switching each first candidate data transmission mode in the at least one first candidate data transmission mode. The communication channel receives general communication configuration parameters between the first device and the second device sent by the first device. The general communication configuration parameters include configuration parameters for multiple data transmission modes that can be used for communication between the second device and the first device. The multiple data transmission modes include the first data transmission mode and the second data transmission mode.

13. The method according to claim 12, characterized in that, The configuration parameters for each of the multiple data transmission modes include the mode switching reservation time. The step of transmitting data with the first device in the communication channel according to the second data transmission mode includes: In response to the second message, after the reserved time for the mode switch, data is transmitted with the first device in the communication channel according to the second data transmission mode.

14. The method according to any one of claims 10 to 13, characterized in that, The first message includes first information and second information, wherein the first information is used to indicate the message type of the first message, and the second information is used to indicate the second data transmission mode.

15. The method according to claim 14, characterized in that, The first message also includes third information, which is used to verify the correctness of any one or more of the following information: the first information and the second information.

16. The method according to any one of claims 10 to 15, characterized in that, The second message includes a fourth message and a fifth message. The fourth message indicates the message type of the second message, and the fifth message indicates whether the information contained in the first message is correct.

17. The method according to claim 16, characterized in that, The second message also includes a sixth message, which is used to verify the correctness of any one or more of the following messages: the fourth message and the fifth message.

18. The method according to any one of claims 10 to 17, characterized in that, At least one of the first message and the second message also includes a business data packet.

19. An interface communication device, characterized in that, The interface communication device, as a first device, includes a module or unit for performing the method according to any one of claims 1 to 9.

20. An interface communication device, characterized in that, The interface communication device, as a second device, includes a module or unit for performing the method according to any one of claims 10 to 18.

21. An interface communication device, characterized in that, It includes processing circuitry and transceiver circuitry, the processing circuitry and the transceiver circuitry being used to support the device in performing the method as described in any one of claims 1 to 9.

22. An interface communication device, characterized in that, It includes processing circuitry and transceiver circuitry, the processing circuitry and the transceiver circuitry being configured to support the apparatus in performing the method as described in any one of claims 10 to 18.

23. An electronic device, characterized in that, The electronic device includes a first device and a second device connected via an interface, the first device including the device as described in claim 19 or claim 21, and the second device including the device as described in claim 20 or claim 22.