Information transmission method, apparatus, and electronic device
By adopting a half-duplex transmission mode between the master and slave devices and utilizing the state switching of a shared signal line, the problem of large wiring resource consumption in the simplex transmission mode is solved, thereby improving the battery life of electronic devices.
Patent Information
- Application Number
- PCT/CN2025/073449
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2024-08-09
- Filing Date
- 2025-01-20
- Publication Date
- 2026-02-12
AI Technical Summary
The simplex transmission mode between the master and slave devices results in a large footprint of wiring resources, which affects the battery life of electronic devices.
It adopts a half-duplex transmission mode and uses a shared signal line to achieve state switching between the transmitting and receiving ends of the device, reducing the occupation of wiring resources and reducing power consumption.
While reducing the area occupied by wiring resources, it increases the battery capacity of electronic devices to meet the requirements of battery life.
Smart Images

Figure CN2025073449_12022026_PF_FP_ABST
Abstract
Description
Information transmission method and device and electronic device
[0001] The present application claims priority to the Chinese patent application No. 202411100907.5, filed on August 9, 2024, and entitled "Information transmission method and device and electronic device", the content of which is incorporated herein by reference in its entirety. TECHNICAL FIELD
[0002] The present application relates to the field of communication technology, and in particular to an information transmission method, device and electronic device. BACKGROUND
[0003] When the master device and the slave device in the electronic device communicate, the master device can send data information and control information to the slave device, and the slave device can send data information to the master device, wherein the master device can include a system on chip (SOC), and the slave device can include a display device and an imaging device, etc., and the slave device can also be referred to as an off-chip device or an external device. At present, the master device and the slave device transmit data information based on a simplex transmission mode, which results in more wire resources between the master device and the slave device, and causes the wire resources to occupy a larger area in the electronic device. SUMMARY
[0004] Embodiments of the present application provide an information transmission method, device and electronic device, which are used to reduce the wire resources between the master device and the slave device and reduce the occupied area of the wire resources in the electronic device.
[0005] To achieve the above-mentioned purpose, embodiments of the present application adopt the following technical solutions:
[0006] In a first aspect, an information transmission method is provided, applied to a slave device, the slave device including a first receiving end and a first sending end of a common signal line, and the slave device is further connected with a master device through the signal line. The method includes: when the first sending end is in a burst state and the first receiving end is in a standby state, the first sending end sends first information to the master device through the signal line; and when the first sending end is in a standby state and the first receiving end is in a burst state, the first receiving end receives second information from the master device through the signal line. The first sending end and the first receiving end work in a half-duplex mode, and the switching of the state of the first sending end and the switching of the state of the first receiving end are used to realize the switching of the transmission direction of the half-duplex mode.
[0007] In the technical solution, when the first sending end is in the burst state and the first receiving end is in the standby state, the first sending end sends the first information to the host device through the signal line; when the first sending end is in the standby state and the first receiving end is in the burst state, the first receiving end receives the second information from the host device through the signal line. In this way, the slave device can send information and receive information through the signal line in time, and the half-duplex mode of the slave device is realized. In addition, the first sending end and the first receiving end work in the half-duplex mode, and the switching of the transmission direction of the half-duplex mode can be realized through the switching of the state of the first sending end and the switching of the state of the first receiving end. Therefore, the power consumption of the slave device is reduced, the wiring resource between the slave device and the host device is reduced, and the area of the electronic device occupied by the wiring resource is reduced when the slave device and the host device are integrated into the electronic device.
[0008] In a possible implementation of the first aspect, the method further includes: in response to the end identifier of the first information, the first sending end switches from the burst state to a stop state based on first indication information, the first indication information being used to indicate that the slave device enters the stop state; and the first receiving end switches from the standby state to the stop state based on the first indication information. In the possible implementation, after the first sending end sends the first information, the first sending end and the first receiving end are switched to the stop state, and the power consumption of the slave device is reduced.
[0009] In a possible implementation of the first aspect, before the first receiving end receives the second information through the signal line, the method further includes: when the common-mode level of the signal line changes from a high level to a low level, the first receiving end switches from the stop state to the burst state based on second indication information, the first sending end switches from the stop state to the standby state based on third indication information, the second indication information being used to indicate that the first receiving end enters the burst state, and the third indication information being used to indicate that the first sending end enters the standby state. In the possible implementation, before the second information sent by the host device is received, the states of the first receiving end and the first sending end are switched based on the change of the common-mode level of the signal line, the normal reception of the second information is ensured, the normal transmission of the half-duplex mode is ensured, and the performance of the slave device is improved.
[0010] In a possible implementation of the first aspect, the method further includes: in response to the end identifier of the second information, the first receiving end switches from the burst state to the stop state based on first indication information, the first indication information being used to indicate that the slave device enters the stop state; and the first sending end switches from the standby state to the stop state based on the first indication information. In the possible implementation, after the first receiving end receives the second information, the first sending end and the first receiving end are switched to the stop state, and the power consumption of the slave device is reduced.
[0011] In a possible implementation manner of the first aspect, when the slave device needs to send information to the master device, the method further includes: the first sending end switches from the stop state to the burst state based on fourth indication information, and the fourth indication information is used to indicate the first sending end to enter the burst state; and the first receiving end switches from the stop state to the standby state based on fifth indication information, and the fifth indication information is used to indicate the first receiving end to enter the standby state. In the possible implementation manner, when the slave device actively sends information to the master device, the slave device actively wakes up the first sending end and the first receiving end, so that the first sending end switches from the stop state to the burst state to send information, and the first receiving end switches from the stop state to the standby state, thereby ensuring normal transmission of information and improving performance of the slave device.
[0012] In a possible implementation manner of the first aspect, the method further includes: the first sending end switches from the stop state to the sleep state based on sixth indication information, and the sixth indication information is used to indicate the slave device to enter the sleep state; and the first receiving end switches from the stop state to the sleep state based on the sixth indication information, and power consumption of the sleep state is less than that of the stop state. In the possible implementation manner, power consumption of the slave device is reduced.
[0013] In a possible implementation manner of the first aspect, the method further includes: when the common-mode level of the signal line changes from the low level to the high level, the first sending end switches from the sleep state to the stop state, and the first receiving end switches from the sleep state to the stop state. In the possible implementation manner, when the common-mode level of the signal line changes from the low level to the high level, it indicates that data needs to be received, and the sleep state is exited, thereby ensuring normal transmission of data and improving performance of the slave device.
[0014] In a possible implementation manner of the first aspect, the slave device includes a plurality of groups of the first receiving end and the first sending end, and any two groups of the first receiving end and the first sending end use different signal lines. In the possible implementation manner, the number of signal lines used to transmit information can be selected according to traffic of information, thereby improving transmission efficiency of information.
[0015] In a possible implementation manner of the first aspect, transmission rates of the first information and the second information are different. In the possible implementation manner, different information is transmitted by using different transmission rates, for example, information with smaller traffic is transmitted by using a smaller rate, thereby saving transmission power consumption.
[0016] In a second aspect, a method for transmitting information is provided, and is applied to a master device. The master device comprises a second receiving end and a second sending end of a common signal line. A slave device is also connected to the master device through the signal line. The method comprises: when the second receiving end is in a burst state and the second sending end is in a standby state, the second receiving end receives first information through the signal line; and when the second receiving end is in a standby state and the second sending end is in a burst state, the second sending end sends second information through the signal line. The second sending end and the second receiving end work in a half-duplex mode. The state of the second sending end and the state of the second receiving end are switched to switch the transmission direction of the half-duplex mode.
[0017] In the above technical solution, when the first sending end is in a burst state and the first receiving end is in a standby state, the first sending end sends first information to the master device through the signal line; and when the first sending end is in a standby state and the first receiving end is in a burst state, the first receiving end receives second information from the master device through the signal line. In this way, the slave device can send information and receive information through the signal line in time, and the half-duplex mode of the slave device is realized. In addition, the first sending end and the first receiving end work in a half-duplex mode. The state of the first sending end and the state of the first receiving end are switched to switch the transmission direction of the half-duplex mode. Thus, the power consumption of the slave device is reduced, the wiring resource between the slave device and the master device is reduced, and the area of the electronic device occupied by the wiring resource is reduced when the slave device and the master device are integrated into the electronic device.
[0018] In a possible implementation of the second aspect, the method further comprises: in response to an end identifier of the first information, the second receiving end switches from the burst state to a stop state based on first indication information, and the second sending end switches from the standby state to the stop state based on the first indication information. In the above possible implementation, after the second receiving end receives the first information, the second sending end and the second receiving end are switched to the stop state, and the power consumption of the master device is reduced.
[0019] In a possible implementation of the second aspect, before the second receiving end receives the first information through the signal line, the method further comprises: when the common-mode level of the signal line changes from a high level to a low level, the second receiving end switches from the stop state to the burst state based on second indication information, and the second sending end switches from the stop state to the standby state based on third indication information. The second indication information is used to indicate that the second receiving end enters the burst state, and the third indication information is used to indicate that the second sending end enters the standby state. In the above possible implementation, before receiving the first information sent by the slave device, the states of the second receiving end and the second sending end are switched based on the change of the common-mode level of the signal line, the normal reception of the first information is ensured, the normal transmission of the half-duplex mode is ensured, and the performance of the master device is improved.
[0020] In a possible implementation of the second aspect, the method further includes: in response to the end identifier of the second information, the second sending end switches from the standby state to the stop state based on first indication information, the first indication information being used to indicate that the master device enters the stop state; and the second receiving end switches from the burst state to the stop state based on the first indication information. In the possible implementation, after the second sending end sends the second information, the second sending end and the second receiving end are both switched to the stop state, thereby reducing the power consumption of the master device.
[0021] In a possible implementation of the second aspect, the method further includes: when the master device needs to send information to the slave device, the second sending end switches from the stop state to the burst state based on fourth indication information, the fourth indication information being used to indicate that the second sending end enters the burst state; and the second receiving end switches from the stop state to the standby state based on fifth indication information, the fifth indication information being used to indicate that the second receiving end enters the standby state. In the possible implementation, when the master device actively sends information to the slave device, the master device actively wakes up the second sending end and the second receiving end, so that the second sending end switches from the stop state to the burst state for sending information, and the second receiving end switches from the stop state to the standby state, thereby ensuring normal sending of information and improving the performance of the master device.
[0022] In a possible implementation of the second aspect, the method further includes: the second sending end switches from the stop state to the sleep state based on sixth indication information, the sixth indication information being used to indicate that the master device enters the sleep state; and the second receiving end switches from the stop state to the sleep state based on the sixth indication information, the power consumption of the sleep state being less than that of the stop state. In the possible implementation, the power consumption of the master device is reduced.
[0023] In a possible implementation of the second aspect, the method further includes: when the common-mode level of the signal line changes from the low level to the high level, the second sending end switches from the sleep state to the stop state, and the second receiving end switches from the sleep state to the stop state. In the possible implementation, when the common-mode level of the signal line changes from the low level to the high level, it indicates that data needs to be received, and the sleep state is exited, thereby ensuring normal sending of data and improving the performance of the master device.
[0024] In a possible implementation of the second aspect, the master device includes a plurality of groups of the second receiving end and the second sending end, and any two groups of the second receiving end and the second sending end use different signal lines. In the possible implementation, the number of signal lines used to transmit information can be selected according to the traffic of information, thereby improving the transmission efficiency of information.
[0025] In a possible implementation of the second aspect, the first information and the second information are transmitted at different transmission rates. In the above possible implementation, different information is transmitted at different transmission rates, for example, information with smaller traffic is transmitted at a smaller rate to save transmission power consumption.
[0026] In a third aspect, an information transmission apparatus is provided, the information transmission apparatus comprising a first receiving unit and a first sending unit sharing a signal line, the first sending unit being configured to transmit first information via the signal line when the first sending unit is in a burst state and the first receiving unit is in a standby state, the first receiving unit being configured to receive second information via the signal line when the first sending unit is in a standby state and the first receiving unit is in a burst state, wherein the first sending unit and the first receiving unit operate in a half-duplex mode, and switching of the state of the first sending unit and switching of the state of the first receiving unit are configured to realize switching of a transmission direction of the half-duplex mode.
[0027] In a possible implementation of the third aspect, the first sending unit is further configured to switch from the burst state to a stop state based on first indication information in response to an end identifier of the first information, the first indication information being configured to indicate that the information transmission apparatus enters the stop state, and the first receiving unit is further configured to switch from the standby state to the stop state based on the first indication information.
[0028] In a possible implementation of the third aspect, the first receiving unit is further configured to switch from the stop state to the burst state based on second indication information in response to the common mode level of the signal line changing from a high level to a low level before the first receiving unit receives the second information via the signal line, the second indication information being configured to indicate that the first receiving unit enters the burst state, and the first sending unit is further configured to switch from the stop state to the standby state based on third indication information in response to the common mode level of the signal line changing from the high level to the low level before the first receiving unit receives the second information via the signal line, the third indication information being configured to indicate that the first sending unit enters the standby state.
[0029] In a possible implementation of the third aspect, the first receiving unit is further configured to switch from the burst state to the stop state based on first indication information in response to an end identifier of the second information, the first indication information being configured to indicate that the information transmission apparatus enters the stop state, and the first receiving unit is further configured to switch from the standby state to the stop state based on the first indication information.
[0030] In a possible implementation of the third aspect, the first sending unit is further configured to switch from the stop state to the burst state based on fourth indication information, the fourth indication information being configured to indicate that the first sending unit enters the burst state, and the first receiving unit is further configured to switch from the stop state to the standby state based on fifth indication information, the fifth indication information being configured to indicate that the first receiving unit enters the standby state.
[0031] In a possible implementation manner of the third aspect, the first sending unit is further configured to switch from the stop state to the sleep state based on sixth indication information, the sixth indication information being used to indicate that the information transmission apparatus enters the sleep state; and the first receiving unit is further configured to switch from the stop state to the sleep state based on the sixth indication information.
[0032] In a possible implementation manner of the third aspect, the first sending unit is further configured to switch from the sleep state to the stop state when the common mode level of the signal line changes from the low level to the high level, and the first receiving unit is further configured to switch from the sleep state to the stop state when the common mode level of the signal line changes from the low level to the high level.
[0033] In a possible implementation manner of the third aspect, the information transmission apparatus comprises a plurality of groups of the first receiving unit and the first sending unit, and any two groups of the first receiving unit and the first sending unit use different signal lines.
[0034] In a possible implementation manner of the third aspect, the transmission rates of the first information and the second information are different.
[0035] In a fourth aspect, an information transmission apparatus is provided, which comprises a second receiving unit and a second sending unit sharing a signal line. The second receiving unit is configured to receive first information through the signal line when the second receiving unit is in a burst state and the second sending unit is in a standby state. The second sending unit is configured to send second information through the signal line when the second receiving unit is in a standby state and the second sending unit is in a burst state. The second sending unit and the second receiving unit operate in a half-duplex mode. The switching of the state of the second sending unit and the switching of the state of the second receiving unit are used to switch the transmission direction of the half-duplex mode.
[0036] In a possible implementation manner of the fourth aspect, the second receiving unit is further configured to switch from the burst state to a stop state based on first indication information in response to an end identifier of the first information, the first indication information being used to indicate that the information transmission apparatus enters the stop state; and the second sending unit is further configured to switch from the standby state to the stop state based on the first indication information.
[0037] In a possible implementation manner of the fourth aspect, the second receiving unit is further configured to switch from the stop state to the burst state based on second indication information when the common-mode level of the signal line changes from the high level to the low level before the second receiving unit receives the first information via the signal line, and the second indication information is used to indicate the second receiving unit to enter the burst state; and the second sending unit is further configured to switch from the stop state to the standby state based on third indication information when the common-mode level of the signal line changes from the high level to the low level before the second receiving unit receives the first information via the signal line, and the third indication information is used to indicate the second sending unit to enter the standby state.
[0038] In a possible implementation manner of the fourth aspect, the second sending unit is further configured to switch from the standby state to the stop state based on first indication information in response to the end identifier of the second information, and the first indication information is used to indicate the information transmission apparatus to enter the stop state; and the second receiving unit is further configured to switch from the burst state to the stop state based on the first indication information.
[0039] In a possible implementation manner of the fourth aspect, the second sending unit is further configured to switch from the stop state to the burst state based on fourth indication information, and the fourth indication information is used to indicate the second sending unit to enter the burst state; and the second receiving unit is further configured to switch from the stop state to the standby state based on fifth indication information, and the fifth indication information is used to indicate the second receiving unit to enter the standby state.
[0040] In a possible implementation manner of the fourth aspect, the second sending unit is further configured to switch from the stop state to the sleep state based on sixth indication information, and the sixth indication information is used to indicate the information transmission apparatus to enter the sleep state; and the second receiving unit is further configured to switch from the stop state to the sleep state based on the sixth indication information.
[0041] In a possible implementation manner of the fourth aspect, the second sending unit is further configured to switch from the sleep state to the stop state when the common-mode level of the signal line changes from the low level to the high level, and the second receiving unit is further configured to switch from the sleep state to the stop state when the common-mode level of the signal line changes from the low level to the high level.
[0042] In a possible implementation manner of the fourth aspect, the information transmission apparatus comprises a plurality of groups of the second receiving unit and the second sending unit, and any two groups of the second receiving unit and the second sending unit use different signal lines.
[0043] In a possible implementation manner of the fourth aspect, the transmission rates of the first information and the second information are different.
[0044] In a fifth aspect, an electronic device is provided, which includes a master device, a slave device and a memory, the memory is configured to store data information and control information, the slave device is configured to perform the information transmission method provided by the first aspect or any possible implementation of the first aspect, and the master device is configured to perform the information transmission method provided by the second aspect or any possible implementation of the second aspect.
[0045] In another aspect of the present application, a computer readable storage medium is provided, which stores computer instructions, when the computer instructions are run by a device, the device performs the information transmission method provided by the first aspect or any possible implementation of the first aspect.
[0046] In another aspect of the present application, a computer readable storage medium is provided, which stores computer instructions, when the computer instructions are run by a device, the device performs the information transmission method provided by the second aspect or any possible implementation of the second aspect.
[0047] In another aspect of the present application, a computer program product is provided, which includes a computer program, when the computer program is run by a device, the device performs the information transmission method provided by the first aspect or any possible implementation of the first aspect.
[0048] In another aspect of the present application, a computer program product is provided, which includes a computer program, when the computer program is run by a device, the device performs the information transmission method provided by the second aspect or any possible implementation of the second aspect.
[0049] It can be understood that the information transmission apparatus, the electronic device, the computer readable storage medium and the computer program product provided by the above aspects can achieve the beneficial effects as described in the information transmission method, which will not be repeated here. BRIEF DESCRIPTION OF DRAWINGS
[0050] FIG. 1 is a structural schematic diagram of an electronic device provided by an embodiment of the present application;
[0051] FIG. 2 is a structural schematic diagram of another electronic device provided by an embodiment of the present application;
[0052] FIG. 3 is a flowchart of an information transmission method provided by an embodiment of the present application;
[0053] FIG. 4 is a schematic diagram of an information transmission method provided by an embodiment of the present application;
[0054] FIG. 5 is a schematic diagram of a state switching provided by an embodiment of the present application;
[0055] FIG. 6 is a schematic diagram of an information transmission method according to an embodiment of the present application;
[0056] FIG. 7 is a schematic diagram of an information transmission apparatus according to an embodiment of the present application;
[0057] FIG. 8 is a schematic diagram of another information transmission apparatus according to an embodiment of the present application. DETAILED DESCRIPTION
[0058] The making and using of various embodiments are discussed in detail below. It should be appreciated that the specific application provided herein is applicable as implemented in a variety of particular contexts. The particular embodiments discussed are merely illustrative of specific ways to make and use the application and the technology.
[0059] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs.
[0060] Circuits or other components can be described as or said to be "configured to" perform one or more tasks. In this context, "configured to" is used to mean that the circuit / component includes structure (e.g., circuitry) that performs the task(s) during operation. As such, the circuit / component can be referred to as being configured to perform the task(s) even when the task(s) are not being performed. In general, the circuit / component is not actively performing the task(s) unless it is in operation. Structure that performs the task(s) during operation is referred to as a structure that is configured to perform the task(s). Accordingly, the specified circuit / component can be referred to as being configured to perform the task(s) if the circuit / component includes structure that performs the task(s) during operation.
[0061] The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application. In the present application, "at least one" means one or more, and "multiple" means two or more. The association relationship between the associated objects is described by "and / or", which means that there can be three relationships, for example, A and / or B, which means that A exists alone, A and B exist together, and B exists alone, where A and B can be singular or plural. The character " / " generally represents an "or" relationship between the associated objects. "At least one of the following" or similar expressions means any combination of these items, including any combination of single item or multiple 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.
[0062] Embodiments of the present application use "first", "second", and the like to distinguish between objects of similar or different nature. It will be understood by those skilled in the art that "first", "second", and the like are not intended to limit the number or the execution sequence of the objects. The term "coupled" is used to represent an electrical connection, including direct connection or indirect connection through a wire or a connection terminal, or indirect connection through other devices. Therefore, "coupled" should be regarded as a broad electrical communication connection.
[0063] It should be noted that in the present application, the words "exemplary" or "for example" are used to mean serving as an example, instance, or illustration. Any embodiment or design scheme described as "exemplary" or "for example" in the present application should not be interpreted as being more preferred or advantageous than other embodiments or design schemes. Rather, the use of the words "exemplary" or "for example" is intended to present relevant concepts in a specific way.
[0064] Before introducing embodiments of the present application, related knowledge involved in the present application is first described.
[0065] Simplex transmission: information is transmitted unidirectionally between two devices through a signal line. One of the two devices for communication is fixed as a sending end for sending information, and the other is fixed as a receiving end for receiving information.
[0066] Half-duplex transmission: information is transmitted bidirectionally between two devices through a signal line in time division, that is, the two devices for communication multiplex the signal line to transmit information in time division. Any one of the two devices can act as a receiving end to receive information or as a sending end to send information, but the same device cannot send information and receive information at the same time.
[0067] When the master device and the slave device in the electronic device communicate, the master device can send data information and control information to the slave device, and the slave device can send data information to the master device. The master device can include a system on chip (SOC), and the slave device can include a display device and an imaging device, and the slave device can also be referred to as an off-chip device or an external device.
[0068] Currently, the master device and the slave device transmit data information based on a simplex transmission mode. Specifically, the slave device transmits data information to the master device based on the simplex transmission mode by using a transmission protocol. For example, the transmission protocol can include a lightning port digital protocol (LPDP) and a common physical layer (CPHY) protocol, etc. However, the simplex transmission mode results in a large number of wiring resources between the master device and the slave device. When the master device and the slave device are integrated into an electronic device, the area of the electronic device occupied by the wiring resources is large. In the case of a fixed area of the electronic device, the area occupied by the battery is reduced. Since the area of a large-capacity battery is large, the capacity of the battery in the electronic device is reduced, which causes the electronic device to be unable to meet the demand for endurance.
[0069] Based on this, an embodiment of the present application provides an information transmission method. In the information transmission method, the master device and the slave device transmit information based on a half-duplex transmission mode. The information can include data information and control information, etc. Each of the master device and the slave device can receive information and transmit information. The switching of the state of each device is used to switch the transmission direction of the half-duplex mode. While reducing the power consumption of the slave device, the wiring resources between the slave device and the master device are reduced. When the slave device and the master device are integrated into an electronic device, the area of the electronic device occupied by the wiring resources is reduced. Further, the capacity of the battery in the electronic device is improved, which meets the demand of users for endurance.
[0070] The information transmission method provided by the present application can be applied to an electronic device. The electronic device can include a master device and a slave device. The master device can be a SOC applied to the electronic device, a chip set including a plurality of chips, or a module including the SOC or the chip set. The slave device can be a device in communication with the master device. For example, the slave device can include off-chip devices such as a display screen and a camera in the electronic device. In a possible embodiment, the master device can also be referred to as a host or a master state machine, and the slave device can also be referred to as a slave or a slave state machine.
[0071] Optionally, the master device can be a SoC including a processor. Illustratively, the processor can 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), a field-programmable gate array (FPGA), and the like. Optionally, the slave device can include a camera, a display, a memory, or an audio device, and the like. Illustratively, the memory can include a random access memory (RAM), a read-only memory (ROM), a flash, a disk, and the like. The audio device can include a speaker, a microphone, a loudspeaker, and the like.
[0072] The electronic device can be a terminal device. Optionally, the electronic device includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a desktop computer, a palm computer, an ultra-mobile personal computer (UMPC), a mobile internet device (MID), a netbook, a video camera, a camera, a wearable device (for example, a smart watch and a smart bracelet, etc.), a vehicle-mounted device (for example, a car, a bicycle, an electric vehicle, an airplane, a ship, a train, a high-speed rail, etc.), a virtual reality (VR) device, an augmented reality (AR) device, a wireless terminal in industrial control, a smart home device (for example, a refrigerator, a television, an air conditioner, an electricity meter, etc.), a smart robot, a workshop device, a wireless terminal in self-driving, a wireless terminal in remote medical surgery, a wireless terminal in a smart grid, a wireless terminal in transportation safety, a wireless terminal in a smart city, or a wireless terminal in a smart home, a flight device (for example, a smart robot, a hot air balloon, a drone, an airplane), etc. The structure of the electronic device will be described below in combination with FIG. 1.
[0073] For example, FIG. 1 is a structural schematic diagram of an electronic device provided by an embodiment of the present application, the electronic device including a slave device 101 and a master device 102, wherein the slave device 101 includes a physical coding sublayer (PCS) 10 and a physical media attachment sublayer (PMA), the PMA in the slave device 101 including n groups of first transmitting ends and first receiving ends; the master device 102 including a PCS 20 and a PMA, the PMA in the master device 102 including n groups of second transmitting ends and second receiving ends, n being an integer greater than 1, for example, n can be equal to 3, and the present application does not make a specific limitation in comparison. Optionally, for any one of the slave device 101 or the master device 102, the PCS can be integrated in the receiving end (including the first receiving end and the second receiving end) and the transmitting end (including the first transmitting end and the second transmitting end), or can be separately arranged from the receiving end and the transmitting end, when the PCS is separately arranged from the receiving end and the transmitting end, the n groups of transmitting ends and receiving ends share the PCS, and FIG. 1 illustrates an example in which the PCS in each device is separately arranged from the receiving end and the transmitting end.
[0074] For the convenience of understanding, the first sending end in the first group can be represented as TX11, wherein the first "1" in "TX11" represents the first sending end, and the second "1" represents the first group. The first receiving end in the first group can be represented as RX11, the first sending end in the nth group can be represented as TX1n, and the first receiving end in the nth group can be represented as RX1n. The second sending end in the first group can be represented as TX21, the second receiving end in the first group can be represented as RX21, the second sending end in the nth group can be represented as TX2n, and the second receiving end in the nth group can be represented as RX2n.
[0075] Optionally, the signal lines used by the receiving ends and the sending ends in different groups are different, for example, the first sending end TX11 and the first receiving end RX11 in the first group of the slave device 101 communicate with the second receiving end RX21 and the second sending end TX21 in the first group of the master device 102 through the first signal line L1, and the first sending end TX1n and the first receiving end RX1n in the nth group of the slave device 101 communicate with the second receiving end RX2n and the second sending end TX2n in the nth group of the master device 102 through the first signal line Ln.
[0076] Optionally, the signal line can be a differential signal line, or can be a single-ended signal line, which is not specifically limited in the present application. In FIG. 1, the signal line (including signal lines L1 to Ln) is taken as an example of a single-ended signal line, and in FIG. 2, the signal line L1 is taken as an example of a differential signal line. In FIG. 2, the slave device 101 includes a group of first sending end TX11 and first receiving end RX11, and the master device 102 includes a group of second receiving end RX21 and second sending end TX21.
[0077] For any one of the n groups of first sending ends and first receiving ends included in the slave device 101, the PCS 10 can be configured to send indication information to the first sending end and the first receiving end, and the first sending end and the first receiving end switch states based on the indication information. The PCS 10 is also configured to send information to the first sending end, and the information can include data information and control information. The PCS 10 is also configured to receive information from the first receiving end. The PCS 10 is also configured to receive a clock signal from the first receiving end and the first sending end, so that the master device and the slave device are kept in synchronization. The PCS 10 is also configured to receive a common mode level of the signal line from the first receiving end, and the PCS 10 is also configured to send indication information based on the common mode level. In FIG. 1, the indication information can be represented by the symbol e, the information can be represented by the symbol d, the clock signal can be represented by the symbol c, and the common mode level of the signal line can be represented by the symbol s.
[0078] For the second transmitting end and the second receiving end of any one of the n groups of second transmitting ends and second receiving ends included in the master device 102, the PCS 20 can be configured to send indication information to the second transmitting end and the second receiving end, and the second transmitting end and the second receiving end switch states based on the indication information. The PCS 20 is further configured to send information to the second transmitting end. The PCS 20 is further configured to receive information from the second receiving end. The PCS 20 is further configured to receive clock signals from the second receiving end and the second transmitting end, and keep the master device and the slave device synchronized through the clock signals. The PCS 20 is further configured to receive a common mode level of a signal line from the second receiving end, and send indication information based on the common mode level.
[0079] FIG. 3 is a flow diagram of an information transmission method provided in an embodiment of the present application, which can be applied to the electronic device provided above, the electronic device including a master device and a slave device, the slave device including a first receiving end RX11 and a first transmitting end TX11 sharing a signal line, and the master device including a second receiving end RX21 and a second transmitting end TX21 sharing the signal line.
[0080] In an embodiment of the present application, the receiving end (including the first receiving end RX11 and the second receiving end RX21) and the transmitting end (including the first transmitting end TX11 and the second transmitting end TX21) in any one of the slave device and the master device can have multiple states, such as a burst state, a stall state, a standby state, and a sleep state. The multiple states can be multiple states defined in a relevant interface protocol, and the power consumption of the receiving end or the transmitting end in the multiple states is different. For example, the power consumption of the receiving end or the transmitting end in the burst state is greater than that in the stall state, the power consumption of the receiving end or the transmitting end in the stall state is greater than that in the standby state, and the power consumption of the receiving end or the transmitting end in the standby state is greater than that in the sleep state. Optionally, the receiving end or the transmitting end can switch from the stall state to the burst state, the standby state, or the sleep state, from the burst state to the stall state, from the standby state to the stall state, and from the sleep state to the stall state. However, any two of the burst state, the sleep state, and the standby state cannot be freely switched.
[0081] Exemplarily, the burst state can also be referred to as a normal working state, that is, the receiving end or the sending end can normally transmit data in the burst state, and devices in the receiving end or the sending end can all be in a working state; the stop state can be referred to as a low-power state that can be quickly woken up, the receiving end or the sending end has no data transmission in the stop state, and a small part of devices in the receiving end or the sending end are in a non-working state, and the stop state can be switched to the burst state when data needs to be transmitted; the sleep state can be referred to as a deep low-power state, the receiving end or the sending end has no data transmission in the sleep state, and a large part of devices in the receiving end or the sending end are in a non-working state, and the sleep state can be switched to the stop state and then switched to the burst state when data needs to be transmitted. The standby state can be referred to as a low-power and high-impedance state that can be quickly woken up, the receiving end or the sending end has no data transmission in the standby state and is in a disconnected state.
[0082] Optionally, the burst state can be a low-power state with a power consumption reduction of 0%; the stop state can be a low-power state with a power consumption reduction of 90% and an exit time of less than 300 ns when woken up; and the sleep state can be a low-power state with a power consumption reduction of 99.80% and an exit time of less than 40 us when woken up.
[0083] It can be understood that the burst state, the stop state, the standby state and the sleep state refer to four different states of low-power states in a plurality of power consumption states, and in actual applications, names of the burst state, the stop state, the standby state and the sleep state in different interface protocols can be different, and in the embodiments of the present application, only the names of the four power consumption states are taken as examples for describing the burst state, the stop state, the standby state and the sleep state.
[0084] Specifically, the information transmission method includes the following steps.
[0085] S301: When the first sending end TX11 is in the burst state and the first receiving end RX11 is in the standby state, the first sending end TX11 sends first information to the host device through a signal line.
[0086] The signal line can be a differential signal line, or can be a single-ended signal line. The present application does not make specific limitations in this regard. In the following embodiments, the signal line is taken as an example of a differential signal line.
[0087] In addition, the first sending end TX11 in the burst state indicates that the first sending end TX11 is in a state of being able to send the first information, and the first receiving end RX11 in the standby state indicates that the first receiving end RX11 is in a state of being unable to receive information, at this time, the slave device sends the first information to the master device as a sending side device through the signal line. The burst state can be represented as the burst state, and the standby state can be represented as the standby state. The burst state can also be referred to as an operating state.
[0088] In a possible embodiment, before the first sending end TX11 sends the first information to the master device through the signal line, the first sending end TX11 and the first receiving end RX11 in the slave device are in the stop state. When the slave device needs to send the first information to the master device, the slave device actively wakes up the first sending end TX11 and the first receiving end RX11 in the slave device, so that the first sending end TX11 is switched from the second stop state to the burst state, and the first receiving end RX11 is switched from the stop state to the burst state, so that the first sending end TX11 in the slave device is in a state of being able to send the first information, and the first receiving end RX11 is in a state of being unable to receive information, so that the slave device sends the first information as a sending side device.
[0089] In addition, the first sending end TX11 in the burst state indicates that the first sending end TX11 is in a state of being able to send the first information, and the first receiving end RX11 in the standby state indicates that the first receiving end RX11 is in a state of being unable to receive information, at this time, the slave device sends the first information to the master device as a sending side device through the signal line. The burst state can be represented as the burst state, and the standby state can be represented as the standby state. The burst state can also be referred to as an operating state.
[0090] In addition, the first information can be data information, the first information can be sent in the form of a message, or the first information can be sent in other forms, such as a data packet or compressed data information, and the like, and the present application does not make specific limitations.
[0091] In a possible embodiment, the method provided by the present application further includes: the first sending end TX11 switches from the burst state to the stop state based on the first indication information e11 in response to the end identifier of the first information e11, the first indication information e11 being used to indicate that the slave device enters the stop state; and the first receiving end RX11 switches from the standby state to the stop state based on the first indication information e11.
[0092] In addition, the first sending end TX11 in the burst state indicates that the first sending end TX11 is in a state of being able to send the first information, and the first receiving end RX11 in the standby state indicates that the first receiving end RX11 is in a state of being unable to receive information, at this time, the slave device sends the first information to the master device as a sending side device through the signal line. The burst state can be represented as the burst state, and the standby state can be represented as the standby state. The burst state can also be referred to as an operating state.
[0093] In addition, for the slave device, the PCS in the slave device can be integrated in the first sending end TX11 and the first receiving end RX11, or can be separately arranged from the first receiving end RX11 and the first sending end TX11. In a possible embodiment, when the PCS is integrated in the first sending end TX11 and the first receiving end RX11, the indication information (including the first indication information e11, and the second indication information e12, the third indication information e13, the fourth indication information e14, the fifth indication information e15, the sixth indication information e16 and the third indication information e17 in the following) in the slave device is generated by the PCS in the first receiving end RX11 and the first receiving end RX11. In a possible embodiment, when the PCS is separately arranged from the first receiving end RX11 and the first sending end TX11, the indication information (including the first indication information e11, and the second indication information e12, the third indication information e13, the fourth indication information e14, the fifth indication information e15, the sixth indication information e16 and the third indication information e17 in the following) in the slave device is sent by the PCS to the first receiving end RX11 and the first sending end TX11.
[0094] In this embodiment, after the first sending end TX11 in the slave device completes the sending of the first information, the first sending end TX11 switches from the burst state to the stop state based on the first indication information e11, which reduces the power consumption of the first sending end TX11; the first receiving end RX11 switches from the standby state to the stop state based on the first indication information e11, which facilitates the next wake-up of the first receiving end RX11 and shortens the wake-up time of the first receiving end RX11. The sleep state can also be referred to as a sleep state.
[0095] In a possible implementation, the sixth indication information e16 can be sent by the PCS. In another possible implementation, the sixth indication information e16 can also be obtained from the first information, and the application does not make a specific limitation.
[0096] In a possible embodiment, if the slave device does not have information to be sent within a preset time after completing the sending of the first information, the method provided in the embodiment of the application further includes: the first sending end TX11 switches from the stop state to the sleep state based on the sixth indication information e16, and the sixth indication information e16 is used to indicate that the slave device enters the sleep state; the first receiving end RX11 switches from the stop state to the sleep state based on the sixth indication information e16, and the slave device enters the sleep state, thereby reducing the power consumption of the slave device.
[0097] The preset time can be confirmed according to actual needs or the experience of relevant staff, for example, the preset time period can be 60 seconds or 120 seconds, and the application does not make a specific limitation.
[0098] Further, when the first receiving end RX11 in the slave device detects that the common mode level of the signal line changes from low to high, the first transmitting end TX11 switches from the sleep state to the stop state, and the first receiving end RX11 switches from the sleep state to the stop state, i.e., the slave device exits the sleep state.
[0099] S302: When the second receiving end RX21 is in the burst state and the second transmitting end TX21 is in the standby state, the second receiving end RX21 receives the first information from the slave device through the signal line.
[0100] Wherein, the second receiving end RX21 in the burst state means that the second receiving end RX21 is in a state that can receive the first information, and the second transmitting end TX21 in the standby state means that the second transmitting end TX21 is in a state that cannot send information, at this time the master device as the receiving side device receives the first information from the slave device through the signal line.
[0101] Before step S302, the method provided by the embodiment of the application further includes: when the second receiving end RX21 in the master device detects that the common mode level of the signal line changes from high to low, the second receiving end RX21 switches from the stop state to the burst state based on the second indication information e22, and the second transmitting end TX21 switches from the stop state to the standby state based on the third indication information e23, the second indication information e22 is used to indicate the second receiving end RX21 to enter the burst state, and the third indication information e23 is used to indicate the second transmitting end TX21 to enter the standby state.
[0102] In addition, for the master device, the PCS in the master device can be integrated in the second transmitting end TX21 and the second receiving end RX21, or can be separately arranged from the second receiving end RX21 and the second transmitting end TX21. In a possible embodiment, when the PCS is integrated in the second transmitting end TX21 and the second receiving end RX21, the indication information (including the first indication information e21, and the second indication information e22, the third indication information e23, the fourth indication information e24, the fifth indication information e25, the sixth indication information e26 and the third indication information e27 in the following) in the master device is generated by the PCS in the second receiving end RX21 and the second receiving end RX21. In a possible embodiment, when the PCS is separately arranged from the second receiving end RX21 and the second transmitting end TX21, the indication information (including the first indication information e21, and the second indication information e22, the third indication information e23, the fourth indication information e24, the fifth indication information e25, the sixth indication information e26 and the third indication information e27 in the following) in the master device is sent to the second receiving end RX21 and the second transmitting end TX21 by the PCS.
[0103] In a possible embodiment, the method provided by the embodiment of the application further includes: the second receiving end RX21 switches from the burst state to the stop state based on the first indication information e21 in response to the end identifier of the first information, the first indication information e21 being used to indicate that the master device enters the stop state; and the second sending end TX21 switches from the standby state to the stop state based on the first indication information e21.
[0104] The second receiving end RX21 corresponds to the end identifier of the first information, that is, the second receiving end RX21 completes the reception of the first information.
[0105] In this embodiment, after the second receiving end RX21 in the master device completes the reception of the first information, the second receiving end RX21 enters the stop state based on the first indication information e21, which reduces the power consumption of the second receiving end RX21; and the second sending end TX21 enters the stop state based on the first indication information e21, which facilitates the next wake-up of the second sending end TX21 and shortens the wake-up time of the second sending end TX21.
[0106] In a possible embodiment, when the master device receives the first information and needs to send second information to the slave device, the master device automatically wakes up the second sending end TX21 and the second receiving end RX21 in the master device. Therefore, the method provided by the embodiment of the application further includes: the second sending end TX21 switches from the stop state to the burst state based on the fourth indication information e31, the fourth indication information e41 being used to indicate that the second sending end TX21 enters the burst state; and the second receiving end RX21 switches from the stop state to the standby state based on the fifth indication information e51, the fifth indication information e51 being used to indicate that the second receiving end RX21 enters the standby state.
[0107] The second sending end TX21 switches from the stop state to the burst state based on the fourth indication information e31, which means that the second sending end TX21 is in a state of being able to send the second information; and the second receiving end RX21 switches from the stop state to the standby state based on the fifth indication information e51, which means that the second receiving end RX21 is in a state of being unable to receive information, at this time, the master device is switched from the receiving side device to the sending side device.
[0108] S303: When the second receiving end RX21 is in the standby state and the second sending end TX21 is in the burst state, the second sending end TX21 sends the second information to the slave device through the signal line.
[0109] The second information can be data information or control information. The application does not make specific limitation.
[0110] In addition, the second information can be sent in the form of a message, or can be sent in other forms, such as a data packet or compressed data information, and the like, and the embodiments of the present application do not make specific limitations. When the first information is a message, the end identifier of the second information can be the EOB of the second information.
[0111] In the embodiments of the present application, the master device works in a half-duplex mode, that is, the second sending end TX21 and the second receiving end RX21 in the master device work in a half-duplex mode, and the switching of the state of the second sending end TX21 and the switching of the state of the second receiving end RX21 are used to realize the switching of the transmission direction of the half-duplex mode, for example, the master device is switched from a receiving side device (the master device is a receiving side device when receiving the first information) to a sending side device (the master device is a sending side device when sending the second information), so as to realize the switching of the transmission direction of the half-duplex mode.
[0112] In a possible embodiment, the method provided by the embodiments of the present application further includes: the second sending end TX21 switches from the standby state to the stop state based on the first indication information e21 in response to the end identifier of the second information; and the second receiving end RX21 switches from the standby state to the stop state based on the first indication information e21.
[0113] In the embodiments of the present application, the second sending end TX21 switches from the standby state to the stop state based on the first indication information e21 in response to the end identifier of the second information, that is, the second sending end TX21 detects the end identifier of the second information, that is, the second sending end TX21 completes the sending of the second information.
[0114] In the embodiments of the present application, after the second sending end TX21 completes the sending of the second information, the second sending end TX21 switches from the standby state to the stop state based on the first indication information e21, which reduces the power consumption of the second sending end TX21; and the second receiving end RX21 switches from the standby state to the stop state based on the first indication information e21, which facilitates the next awakening of the second receiving end RX21 and shortens the awakening time of the second receiving end RX21.
[0115] In a possible embodiment, if the master device does not have information to be sent within a preset time after completing the sending of the second information, the method provided by the embodiments of the present application further includes: the second sending end TX21 switches from the stop state to the sleep state based on the sixth indication information e26, and the sixth indication information e26 is used to indicate that the master device enters the sleep state; and the second receiving end RX21 switches from the stop state to the sleep state based on the sixth indication information. That is, the master device enters the sleep state.
[0116] In a possible embodiment, when the common mode level of the signal line changes from low to high, the second sending end TX21 switches from the sleep state to the stop state, and the second receiving end RX21 switches from the sleep state to the stop state. That is, the master device exits the sleep state.
[0117] In a possible implementation, the sixth indication information e26 can be sent by the PCS. In another possible implementation, the sixth indication information e26 can also be acquired from the second information, which is not limited in the present application.
[0118] S304: When the first sending end TX11 is in the standby state and the first receiving end RX11 is in the burst state, the first receiving end RX11 receives the second information from the master device through the signal line.
[0119] In a possible embodiment, before step S304, the method provided by the embodiments of the present application further includes: when the common-mode level of the signal line changes from high level to low level, the first receiving end RX11 switches from the stop state to the burst state based on the second indication information e12, and the first sending end TX11 switches from the stop state to the standby state based on the third indication information e13, the second indication information e12 being used to indicate the first receiving end RX11 to enter the burst state, and the third indication information e13 being used to indicate the first sending end TX11 to enter the standby state.
[0120] Wherein, the first sending end TX11 in the standby state means that the first sending end TX11 is in a state in which information cannot be sent, and the first receiving end RX11 in the burst state means that the first receiving end RX11 is in a state in which the second information can be received, at this time the slave device as the receiving side device receives the second information from the master device through the signal line.
[0121] In the embodiments of the present application, the slave device works in the half-duplex mode, that is, the first sending end TX11 and the first receiving end RX11 in the slave device work in the half-duplex mode, and the switching of the state of the first sending end TX11 and the switching of the state of the first receiving end RX11 are used to realize the switching of the transmission direction of the half-duplex mode, for example, the slave device switches from the sending side device (the sending side device when the slave device sends the first information) to the receiving side device (the receiving side device when the slave device receives the second information), so as to realize the switching of the half-duplex transmission direction.
[0122] In a possible embodiment, the first receiving end RX11 switches from the burst state to the stop state based on the first indication information e11 in response to the end identifier of the second information, the first indication information e11 being used to indicate the slave device to enter the stop state; and the first sending end TX11 switches from the standby state to the stop state based on the first indication information e11.
[0123] Wherein, the first receiving end RX11 in response to the end identifier of the second information means that the first receiving end RX11 detects the end identifier of the second information, that is, the first receiving end RX11 completes the reception of the second information.
[0124] In the embodiment, after the first receiving end RX11 in the slave device completes the reception of the second information, the first receiving end RX11 enters the stop state based on the first indication information e11, which reduces the power consumption of the first receiving end RX11; the first sending end TX11 enters the stop state based on the first indication information e11, which facilitates the next wake-up of the first sending end TX11 and shortens the wake-up time of the first sending end TX11.
[0125] In a possible embodiment, when the slave device needs to send information to the master device after receiving the second information, the slave device automatically wakes up the first sending end TX11 and the second sending end TX21 in the slave device. Therefore, the method provided in the embodiment of the application further includes: the first sending end TX11 switches from the stop state to the burst state based on fourth indication information e14, the fourth indication information e14 being used to indicate the first sending end TX11 to enter the burst state; and the first receiving end RX11 switches from the stop state to the standby state based on fifth indication information e15, the fifth indication information e15 being used to indicate the first receiving end RX11 to enter the standby state.
[0126] In the embodiment of the application, for any one of the master device and the slave device, when the device acts as a sending side device, the sending end and the receiving end in the device are actively woken up based on corresponding indication information; and when the device acts as a receiving side device, the sending end and the receiving end in the device are woken up based on the common-mode voltage level of the signal line detected by the receiving end.
[0127] In a possible embodiment, the slave device includes a plurality of groups of the first receiving end RX11 and the first sending end TX11, and the master device includes a plurality of groups of the second receiving end RX21 and the second sending end TX21, any two groups of the first receiving end RX11 and the first sending end TX11 use different signal lines, and any two groups of the second receiving end RX21 and the second sending end TX21 use different signal lines. In actual application, the number of signal lines needed to be transmitted can be selected according to the size of the traffic of the information needed to be transmitted, so as to improve the transmission efficiency.
[0128] In an embodiment, the transmission rate of the first information is different from the transmission rate of the second information. For example, when the second information is control information, the transmission rate of the second information can be reduced to reduce the power consumption of the master device and the slave device.
[0129] For example, FIG. 4 is a schematic diagram of an information transmission method provided by an embodiment of the present application. In FIG. 4, the slave device includes three groups of first sending ends and first receiving ends, and the master device includes three groups of second sending ends and second receiving ends. The first group of first sending end TX11 and first receiving end RX11 communicate with the first group of second sending end TX21 and second receiving end RX21 through a first signal line, the second group of first sending end TX12 and first receiving end RX12 communicate with the second group of second sending end TX22 and second receiving end RX22 through a second signal line, and the third group of first sending end TX13 and first receiving end RX13 communicate with the third group of second sending end TX23 and second receiving end RX23 through a third signal line. The signal lines are not shown in FIG. 4.
[0130] At the end of the initialization stage, the first sending end and the first receiving end of each group in the slave device and the second sending end and the second receiving end of each group in the master device are in a stop state.
[0131] When the slave device needs to send first information to the master device, the slave device selects the first signal line to transmit the first information according to the traffic of the first information, and the transmission rate of the first information is a first rate. At this time, the first sending end TX11 and the second receiving end RX21 in the first group are switched from the stop state to the abrupt state, and the first receiving end RX11 and the second sending end TX21 in the first group are switched from the stop state to the standby state; the first sending end TX12 and the second receiving end RX22 in the second group are in the stop state, and the first receiving end RX12 and the second sending end TX22 in the second group are switched from the stop state to the standby state; the first receiving end RX13 and the second sending end TX23 in the third group are switched from the stop state to the standby state, and the first sending end TX13 and the second receiving end RX23 in the third group are in the stop state.
[0132] At the end of the transmission of the slave device, the first sending end and the first receiving end of each group in the slave device and the second sending end and the second receiving end of each group in the master device are in the stop state. Specifically, the first sending end TX11 and the second receiving end RX21 in the first group are switched from the abrupt state to the stop state, and the first receiving end RX11 and the second sending end TX21 in the first group are switched from the standby state to the stop state; the first receiving end RX12 and the second sending end TX22 in the second group are switched from the standby state to the stop state; and the first receiving end RX13 and the second sending end TX23 in the third group are switched from the standby state to the stop state.
[0133] When the master device needs to send second information to the slave device, the slave device transmits the second information according to the traffic of the second information, selects the first signal line, the second signal line and the third signal line, and the transmission rate of the second information is a second rate, the first rate and the second rate are different. At this time, the first sending end TX11 and the second receiving end RX21 in the first group are switched from the stop state to the standby state, the first receiving end RX11 and the second sending end TX21 in the first group are switched from the stop state to the mutation state; the first sending end TX12 and the second receiving end RX22 in the second group are switched from the stop state to the standby state, the first receiving end RX12 and the second sending end TX22 in the second group are switched from the stop state to the mutation state; the first sending end TX13 and the second receiving end RX23 in the third group are switched from the stop state to the standby state, the first receiving end RX13 and the second sending end TX23 in the third group are switched from the stop state to the mutation state.
[0134] When the master device transmits the end, the first sending end and the first receiving end of each group in the slave device, and the second sending end and the second receiving end of each group in the master device are all in the stop state, specifically, the first sending end TX11 and the second receiving end RX21 in the first group are switched from the standby state to the stop state, the first receiving end RX11 and the second sending end TX21 in the first group are switched from the mutation state to the stop state; the first sending end TX12 and the second receiving end RX22 in the second group are switched from the standby state to the stop state, the first receiving end RX12 and the second sending end TX22 in the second group are switched from the mutation state to the stop state; the first sending end TX13 and the second receiving end RX23 in the third group are switched from the standby state to the stop state, the first receiving end RX13 and the second sending end TX23 in the third group are switched from the mutation state to the stop state.
[0135] When the master device and the slave device have no information transmission within a preset time, the first sending end and the first receiving end of each group in the slave device are switched from the stop state to the sleep state, and the second sending end and the second receiving end of each group in the master device are switched from the stop state to the sleep state, so that the master device and the slave device are in the sleep state.
[0136] When the master device and the slave device exit the sleep state, the first sending end and the first receiving end of each group in the slave device are switched from the sleep state to the stop state, and the second sending end and the second receiving end of each group in the master device are switched from the sleep state to the stop state.
[0137] When the slave device needs to send third information to the master device, the slave device transmits the third information according to the traffic of the third information, selects the first signal line, and the transmission rate of the third information is a third rate, the third rate and the second rate are different, and the third rate and the first rate are different. The specific switching process is similar to the switching process of the slave device sending the first information to the master device, which will not be described here.
[0138] The switching of several states provided by the embodiment of the application will be described below in combination with Fig. 5.
[0139] For example, as shown in Fig. 5, when the master device and the slave device are powered off, the master device and the slave device are in the stop state through power-on and reset, the stop state can be switched to any one of the abrupt state, the standby state and the hibernate state, the abrupt state, the standby state and the hibernate state cannot be directly switched, when the master device and the slave device are in the hibernate state, if the power-down domain is powered off, the master device and the slave device are switched from the hibernate state to the hibernate power-down, when the power-down domain is powered on, the master device and the slave device are switched from the hibernate power-down to the hibernate state, when the master device and the slave device are in the hibernate power-down, if the power-up domain is powered off, the master device and the slave device are powered off.
[0140] For the convenience of understanding, the information transmission method provided by the embodiment of the application will be described below in combination with Fig. 6. In Fig. 6, it is assumed that the slave device comprises a first sending end TX11 and a first receiving end RX11, the master device comprises a second sending end TX21 and a second receiving end RX21, and the PCS is separately arranged from the master device and the slave device.
[0141] As shown in Fig. 6, for the slave device, when the first sending end TX11 is in the burst state and the first receiving end RX11 is in the standby state, the first sending end TX11 sends the first information d1 to the second receiving end RX21 through the signal line, when the first sending end TX11 detects the EOB of the first information d1, the first sending end TX11 and the first receiving end RX11 respectively receive the first indication information e11, the first indication information e11 is used to indicate that the slave device enters the stop state, the first sending end TX11 is switched from the burst state to the stop state based on the first indication information e11, and the first receiving end RX11 is switched from the standby state to the stop state based on the first indication information e11. In this process, the state of the detection information detected by the first receiving end RX11 is high level, and when the first information d1 is sent, the state of the signal line changes from low level to high level.
[0142] For the master device, when the second receiving end RX21 is in the burst state and the second sending end TX21 is in the standby state, the first information d1 from the first sending end TX11 is received through the signal line, when the second receiving end RX21 detects the EOB of the first information d1, the second sending end TX21 and the second receiving end RX21 receive the first indication information e21 respectively, the first indication information e21 is used to indicate the master device to enter the stop state, the second receiving end RX21 switches from the burst state to the stop state based on the first indication information e21, and the second sending end TX21 switches from the standby state to the stop state based on the first indication information e21. When the master device needs to send the second information d2 to the slave device, the master device actively wakes up the second sending end TX21 and the second receiving end RX21, specifically, the second sending end TX21 receives the fourth indication information e24, and the second receiving end RX21 receives the fifth indication information e25, the fourth indication information e24 is used to indicate the second sending end TX21 to enter the burst state, the fifth indication information e25 is used to indicate the second receiving end RX21 to enter the standby state, the second sending end TX21 switches from the stop state to the burst state based on the fourth indication information e24, and the second receiving end RX21 switches from the stop state to the standby state based on the fifth indication information e25. When the second sending end TX21 is in the burst state and the second receiving end RX21 is in the standby state, the second sending end TX21 sends the synchronization code (synchronize, SYNC) and the second information d2 to the first receiving end RX11 through the signal line, when the second sending end TX21 detects the EOB of the second information d2, the second sending end TX21 and the second receiving end RX21 receive the first indication information e21, the second sending end TX21 switches from the burst state to the stop state based on the first indication information e21, and the second receiving end RX21 switches from the standby state to the stop state based on the first indication information e21. In this process, after the reception of the first information d1 is completed, the state of the detection information detected by the second receiving end RX21 changes from low level to high level, and the state of the common mode level of the signal line changes from high level to low level when the second information d2 is sent.
[0143] For the slave device, when the first receiving end RX11 detects that the detection information changes from high level to low level, the first receiving end RX11 receives the second indication information e12, and the first sending end TX11 receives the third indication information e13, the second indication information e12 is used to indicate that the first receiving end RX11 switches from the stop state to the burst state, and the third indication information e13 is used to indicate that the first sending end TX11 switches from the stop state to the standby state, the first receiving end RX11 switches from the stop state to the burst state based on the second indication information e12, and the first sending end TX11 switches from the stop state to the standby state based on the third indication information e13. When the first receiving end RX11 is in the burst state and the first sending end TX11 is in the standby state, the first receiving end RX11 receives the SYNC and the second information d2 from the second sending end TX21 through the signal line. When the first receiving end RX11 detects the EOB of the second information d2, the first receiving end RX11 and the first sending end TX11 receive the first indication information e11 respectively, the first receiving end RX11 switches from the burst state to the stop state based on the first indication information e11, and the first sending end TX11 switches from the standby state to the stop state based on the first indication information e11.
[0144] When the slave device needs to send information to the master device again, the process is similar to the above process, which will not be described here.
[0145] The embodiment of the application provides an information transmission method, which is applied to a slave device, the slave device comprising a first receiving end and a first sending end sharing a signal line, the method comprising: when the first sending end is in a burst state and the first receiving end is in a standby state, the first sending end sends first information to a master device through the signal line; when the first sending end is in a standby state and the first receiving end is in a burst state, the first receiving end receives second information from the master device through the signal line; wherein the first sending end and the first receiving end work in a half-duplex mode, and the switching of the state of the first sending end and the switching of the state of the first receiving end are used to realize the switching of the transmission direction of the half-duplex mode. In this process, the slave device can send and receive data through the signal line, and the slave device works in the half-duplex mode, that is, the first sending end and the first receiving end work in the half-duplex mode, and the switching of the state of the first sending end and the switching of the state of the first receiving end are used to realize the switching of the transmission direction of the half-duplex mode, thereby reducing the power consumption of the slave device, reducing the wiring resource between the slave device and the master device, and reducing the area of the electronic device occupied by the wiring resource when the slave device and the master device are integrated in the electronic device.
[0146] Based on this, the embodiment of the present application further provides an information transmission device, which is applied to an electronic device, as shown in FIG. 7, the information transmission device comprises a first sending unit 701 and a first receiving unit 702. In the embodiment of the present application, the first sending unit 701 can be used for executing S301 in the method embodiment and / or other steps described herein. The first receiving unit 702 can be used for executing S304 in the method embodiment and / or other steps described herein.
[0147] The embodiment of the present application further provides another information transmission device, as shown in FIG. 8, the information transmission device comprises a second sending unit 801 and a second receiving unit 802. In the embodiment of the present application, the second sending unit 801 can be used for executing S303 in the method embodiment and / or other steps described herein. The second receiving unit 802 can be used for executing S302 in the method embodiment and / or other steps described herein.
[0148] It can be understood that all related contents of the steps involved in the above method embodiments can be cited into the embodiments of the information transmission device, and the embodiments of the present application will not be repeated here.
[0149] In another aspect of the present application, an electronic device is also provided, which comprises a master device, a slave device and a memory, the memory is used for storing data information and control information, the slave device is used for executing S301 and S304 in the method embodiment and / or other steps described herein. The master device is used for executing S302 and S303 in the method embodiment and / or other steps described herein. The electronic device is the electronic device provided in FIG. 1.
[0150] It can be understood that all related contents of the steps involved in the above method embodiments can be cited into the embodiments of the information transmission device, and the embodiments of the present application will not be repeated here.
[0151] In several embodiments provided by the present application, it should be understood that the disclosed apparatus and method can be implemented in other ways. For example, the apparatus embodiments described above are only schematic. The division of the modules or units is only a logical function division. There can be another division manner in actual implementation. For example, a plurality of units or components can be combined or integrated into another device, or some features can be ignored or not executed.
[0152] The units described as separate components may or may not be physically separate, and the components displayed as units may be one physical unit or multiple physical units, that is, may be located in one place, or also can be distributed to multiple different places. Part or all of the units can be selected according to actual needs to achieve the purpose of the embodiment scheme.
[0153] The integrated unit, if implemented in the form of a software functional unit and sold or used as an independent product, can be stored in a readable storage medium, which can include a U disk, a mobile hard disk, a read-only memory, a random access memory, a magnetic disk or an optical disk, and various storage medium that can store program codes. Based on such understanding, the technical scheme of the embodiment of the present application can be embodied in the form of a software product in essence or in the form of a software product that contributes to the prior art or the whole or part of the technical scheme.
[0154] In another aspect of the present application, a computer readable storage medium is provided, which stores computer instructions, and when the computer instructions are run by a device, the device executes the steps in the above method embodiments.
[0155] In another aspect of the present application, a computer readable storage medium is provided, which stores computer instructions, and when the computer instructions are run by a device, the device executes the steps in the above method embodiments.
[0156] In another aspect of the present application, a computer program product is provided, which includes a computer program, and when the computer program is run by a device, the device executes the steps in the above method embodiments.
[0157] In another aspect of the present application, a computer program product is provided, which includes a computer program, and when the computer program is run by a device, the device executes the steps in the above method embodiments.
[0158] Finally, it should be noted that: the above is only a specific embodiment of the present application, but the protection scope of the present application is not limited to this, any change or replacement within the technical scope disclosed in the present application should be covered in the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.
Claims
1. A method of information transmission, characterized in that, The application is applied to a slave device, the slave device comprises a first receiving end and a first sending end sharing a signal line, and the method comprises the following steps: When the first sending end is in a burst state and the first receiving end is in a standby state, the first sending end sends first information through the signal line; When the first sending end is in a standby state and the first receiving end is in a burst state, the first receiving end receives second information through the signal line; The first sending end and the first receiving end work in a half-duplex mode, and the switching of the state of the first sending end and the switching of the state of the first receiving end are used to realize the switching of the transmission direction of the half-duplex mode.
2. The method of claim 1, wherein, The method further comprises the following steps: The first sending end switches from the burst state to a stop state based on first indication information in response to an end identifier of the first information, and the first indication information is used to indicate that the slave device enters the stop state; The first receiving end switches from the standby state to the stop state based on the first indication information.
3. The method according to claim 1 or 2, characterized in that, Before the first receiving end receives the second information through the signal line, the method further comprises the following steps: When the common-mode level of the signal line changes from high to low, the first receiving end switches from the stop state to the burst state based on second indication information, and the first sending end switches from the stop state to the standby state based on third indication information, the second indication information is used to indicate that the first receiving end enters the burst state, and the third indication information is used to indicate that the first sending end enters the standby state.
4. The method according to any one of claims 1 to 3, characterized in that, The method further comprises the following steps: The first receiving end switches from the burst state to a stop state based on first indication information in response to an end identifier of the second information, and the first indication information is used to indicate that the slave device enters the stop state; The first sending end switches from the standby state to the stop state based on the first indication information.
5. The method of claim 4, wherein, The method further comprises the following steps: The first sending end switches from the stop state to the burst state based on fourth indication information, and the fourth indication information is used to indicate that the first sending end enters the burst state; The first receiving end switches from the stop state to the standby state based on fifth indication information, and the fifth indication information is used to indicate that the first receiving end enters the standby state.
6. The method according to any one of claims 2-5, characterized in that, The method further comprises the following steps: The first sending end switches from the stop state to a hibernation state based on sixth indication information, and the sixth indication information is used to indicate that the slave device enters the hibernation state; The first receiving end switches from the stop state to the hibernation state based on the sixth indication information.
7. The method of claim 6, wherein, The method further comprises the following steps: When the common-mode level of the signal line changes from low to high, the first sending end switches from the hibernation state to the stop state, and the first receiving end switches from the hibernation state to the stop state.
8. The method according to any one of claims 1 to 7, characterized in that, The slave device comprises a plurality of groups of first receiving ends and first sending ends, and any two groups of first receiving ends and first sending ends use different signal lines.
9. The method according to any one of claims 1 to 8, characterized in that, The transmission rates of the first information and the second information are different.
10. An information transmission method characterized by comprising: Applied to a master device, the master device comprising a second receiving end and a second sending end sharing a signal line, the method comprising: when the second receiving end is in a burst state and the second sending end is in a standby state, the second receiving end receives first information through the signal line; when the second receiving end is in a standby state and the second sending end is in a burst state, the second sending end sends second information through the signal line; wherein the second sending end and the second receiving end work in a half-duplex mode, the switching of the state of the second sending end and the switching of the state of the second receiving end are used to realize the switching of the transmission direction of the half-duplex mode.
11. The method of claim 10, wherein, The method further comprises: the second receiving end switches from the burst state to a stop state based on first indication information in response to an end identifier of the first information, the first indication information being used to indicate that the master device enters the stop state; the second sending end switches from the standby state to the stop state based on the first indication information.
12. The method according to claim 10 or 11, characterized in that, Before the second receiving end receives the first information through the signal line, the method further comprises: when the common mode level of the signal line changes from high level to low level, the second receiving end switches from a stop state to the burst state based on second indication information, and the second sending end switches from the stop state to the standby state based on third indication information, the second indication information being used to indicate that the second receiving end enters the burst state, and the third indication information being used to indicate that the second sending end enters the standby state.
13. The method according to any one of claims 10-12, characterized in that, The method further comprises: the second sending end switches from the standby state to a stop state based on first indication information in response to an end identifier of the second information, the first indication information being used to indicate that the master device enters the stop state; the second receiving end switches from the burst state to the stop state based on the first indication information.
14. The method of claim 11, wherein, The method further comprises: the second sending end switches from the stop state to the burst state based on fourth indication information, the fourth indication information being used to indicate that the second sending end enters the burst state; the second receiving end switches from the stop state to the standby state based on fifth indication information, the fifth indication information being used to indicate that the second receiving end enters the standby state.
15. The method according to any one of claims 11-14, characterized in that, The method further comprises: the second sending end switches from the stop state to a hibernate state based on sixth indication information, the sixth indication information being used to indicate that the master device enters the hibernate state; the second receiving end switches from the stop state to the hibernate state based on the sixth indication information.
16. The method of claim 15, wherein, The method further comprises: when the common mode level of the signal line changes from low level to high level, the second sending end switches from the hibernate state to the stop state, and the second receiving end switches from the hibernate state to the stop state.
17. The method according to any one of claims 10-16, characterized in that, The master device comprises a plurality of groups of second receiving ends and second sending ends, and any two groups of second receiving ends and second sending ends use different signal lines.
18. The method according to any one of claims 10-17, characterized in that, The transmission rates of the first information and the second information are different.
19. An information transmission apparatus, characterized by comprising: The information transmission device comprises a first receiving unit and a first sending unit sharing a signal line, The first sending unit is configured to send first information through the signal line when the first sending unit is in a burst state and the first receiving unit is in a standby state; The first receiving unit is configured to receive second information through the signal line when the first sending unit is in a standby state and the first receiving unit is in a burst state; The first sending unit and the first receiving unit work in a half-duplex mode, and the switching of the state of the first sending unit and the state of the first receiving unit is used to switch the transmission direction of the half-duplex mode.
20. The device of claim 19, wherein The first sending unit is further configured to switch from the burst state to a stop state based on first indication information in response to an end identifier of the first information, the first indication information being used to indicate that the information transmission device enters the stop state; The first receiving unit is further configured to switch from the standby state to the stop state based on the first indication information.
21. The device of claim 19 or 20, wherein The first receiving unit is further configured to switch from a stop state to the burst state based on second indication information in response to the common mode level of the signal line changing from high to low before the first receiving unit receives second information through the signal line, the second indication information being used to indicate that the first receiving unit enters the burst state; The first sending unit is further configured to switch from the stop state to the standby state based on third indication information in response to the common mode level of the signal line changing from high to low before the first receiving unit receives second information through the signal line, the third indication information being used to indicate that the first sending unit enters the standby state.
22. The device of any one of claims 19-21, wherein The first receiving unit is further configured to switch from the burst state to a stop state based on first indication information in response to an end identifier of the second information, the first indication information being used to indicate that the information transmission device enters the stop state; The first receiving unit is further configured to switch from the standby state to the stop state based on the first indication information.
23. The device of claim 22, wherein The first sending unit is further configured to switch from the stop state to the burst state based on fourth indication information, the fourth indication information being used to indicate that the first sending unit enters the burst state; The first receiving unit is further configured to switch from the stop state to the standby state based on fifth indication information, the fifth indication information being used to indicate that the first receiving unit enters the standby state.
24. The device of any one of claims 20-23, wherein The first sending unit is further configured to switch from the stop state to a sleep state based on sixth indication information, the sixth indication information being used to indicate the information transmission apparatus to enter the sleep state. The first receiving unit is further configured to switch from the stop state to the sleep state based on the sixth indication information.
25. The apparatus of claim 24, wherein The first sending unit is further configured to switch from a sleep state to the stop state when a common mode level of the signal line changes from a low level to a high level, The first receiving unit is further configured to switch from the sleep state to the stop state when the common mode level of the signal line changes from the low level to the high level.
26. The apparatus of any one of claims 19-25, wherein, The information transmission apparatus comprises a plurality of groups of first receiving units and first sending units, any two groups of the first receiving units and the first sending units using different signal lines.
27. The apparatus of any of claims 19-26, wherein, The first information and the second information have different transmission rates.
28. An information transmission apparatus, characterized by comprising: The information transmission apparatus comprises a second receiving unit and a second sending unit sharing a signal line, The second receiving unit is configured to receive first information through the signal line when the second receiving unit is in a burst state and the second sending unit is in a standby state. The second sending unit is configured to send second information through the signal line when the second receiving unit is in the standby state and the second sending unit is in the burst state. The second sending unit and the second receiving unit work in a half-duplex mode, and the switching of the state of the second sending unit and the switching of the state of the second receiving unit are used to switch the transmission direction of the half-duplex mode.
29. The apparatus of claim 28, wherein The second receiving unit is further configured to switch from the burst state to a stop state based on first indication information in response to an end identifier of the first information, the first indication information being used to indicate the information transmission apparatus to enter the stop state. The second sending unit is further configured to switch from the standby state to the stop state based on the first indication information.
30. The apparatus of claim 28 or 29, wherein The second receiving unit is further configured to switch from a stop state to the burst state based on second indication information before the second receiving unit receives the first information through the signal line and when a common mode level of the signal line changes from a high level to a low level, the second indication information being used to indicate the second receiving unit to enter the burst state. The second sending unit is further configured to switch from the stop state to the standby state based on third indication information before the second receiving unit receives the first information through the signal line and when the common mode level of the signal line changes from the high level to the low level, the third indication information being used to indicate the second sending unit to enter the standby state.
31. The apparatus of any one of claims 28-30, wherein The second sending unit is further configured to switch from the standby state to a stop state based on first indication information in response to the end identifier of the second information, the first indication information being used to indicate that the information transmission device enters the stop state. The second receiving unit is further configured to switch from the burst state to the stop state based on first indication information.
32. The apparatus of claim 29, wherein, The second sending unit is further configured to switch from the stop state to the burst state based on fourth indication information, the fourth indication information being used to indicate that the second sending unit enters the burst state. The second receiving unit is further configured to switch from the stop state to the standby state based on fifth indication information, the fifth indication information being used to indicate that the second receiving unit enters the standby state.
33. The apparatus of any one of claims 29-32, wherein, The second sending unit is further configured to switch from the stop state to a sleep state based on sixth indication information, the sixth indication information being used to indicate that the information transmission device enters the sleep state. The second receiving unit is further configured to switch from the stop state to the sleep state based on the sixth indication information.
34. The apparatus of claim 33, wherein, The second sending unit is further configured to switch from the sleep state to the stop state when a common mode level of the signal line changes from low to high, The second receiving unit is further configured to switch from the sleep state to the stop state when the common mode level of the signal line changes from low to high.
35. The device of any one of claims 28-34, wherein, The information transmission device comprises a plurality of groups of second receiving units and second sending units, and any two groups of second receiving units and second sending units use different signal lines.
36. The apparatus of any one of claims 28-35, wherein, The transmission rate of the first information and the second information is different.
37. An electronic device, comprising: The electronic device comprises a master device, a slave device, and a memory, the memory is configured to store data information and control information, the slave device is configured to perform the information transmission method of any one of claims 1-9, and the master device is configured to perform the information transmission method of any one of claims 10-18.
38. A computer-readable storage medium, characterized in that, The computer readable storage medium stores computer instructions, when the computer instructions are executed by the slave device, the slave device is caused to perform the information transmission method of any one of claims 1-9, and when the computer instructions are executed by the master device, the master device is caused to perform the information transmission method of any one of claims 10-18.
39. A computer program product, characterised in that, The computer program product comprises: a computer program, when the computer program is executed by the slave device, the slave device is caused to perform the information transmission method of any one of claims 1-9, and when the computer program is executed by the master device, the master device is caused to perform the information transmission method of any one of claims 10-18.
Citation Information
Patent Citations
Data communication system, communication device, and communication method
CN101785282A
Sleep wake-up method, upper computer, vehicle-mounted communication module and communication system
CN113194524A
Folding screen system and signal transmission method
CN117827727A
Communication method, device and system
CN117997667A
Serial mid-speed interface
US20180011813A1