Power supply method, device, electronic device and storage medium

Through the HDMI interface, the receiving device switches to the power supply state during the transmission of screen projection data, which solves the problem of high power supply complexity of screen projection equipment, realizes convenient power supply, and improves the user experience.

CN114020675BActive Publication Date: 2024-12-03BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111272615.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-10-29
Publication Date
2024-12-03
Estimated Expiration
2041-10-29

AI Technical Summary

Technical Problem

The existing screen projection equipment has high connection complexity and inconvenient use in terms of power supply of the receiving equipment, and requires special lines to supply power, which affects the user experience.

Method used

After detecting the receiving device through the HDMI interface to access the display device, the receiving device is controlled to power on, and during the data transmission, the voltage transmitted by the display device is received, and the power supply state is switched to the power supply state, so that the display device transmits the second voltage to the receiving device through the interface, so as to realize that the display device can realize Power supply function of the interface.

Benefits of technology

Reduces connection complexity, improves the convenience of use, avoids power supply for dedicated lines, and simplifies the power supply process of receiving equipment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114020675B_ABST
    Figure CN114020675B_ABST
Patent Text Reader

Abstract

The present disclosure relates to a power supply method, device, electronic device and storage medium. The method is applied to a receiving device, and the method includes: in response to detecting that the receiving device is connected to a display device through a first interface, controlling the receiving device to power on; receiving a first voltage transmitted by the display device through the first interface during the process of the receiving device transmitting projection data to the display device through the first interface; and controlling the receiving device to switch to a power supply state according to the first voltage, so that the display device transmits a second voltage to the receiving device through the first interface.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the technical field of screen projection equipment, and in particular to a power supply method, device, electronic device and storage medium. Background Art

[0002] Screen sharing is involved in many scenarios in life and work. Screen sharing can facilitate information sharing and improve work efficiency. When sharing the screen, mobile phones, computers and other terminal devices can project the screen onto display devices such as TVs. For example, the mobile phone and TV can be connected to the same network to realize screen projection from the mobile phone to the TV. At present, there are also special screen projection devices that do not rely on the network. They include a transmitting device and a receiving device. The transmitting device is connected to the terminal device, and the receiving device is connected to the display device, so that screen projection is realized through communication between the transmitting device and the receiving device. Summary of the invention

[0003] In order to overcome the problems existing in the related art, the embodiments of the present disclosure provide a power supply method, a device, an electronic device and a storage medium to solve the defects in the related art.

[0004] According to a first aspect of an embodiment of the present disclosure, a power supply method is provided, which is applied to a receiving device, and the method includes:

[0005] In response to detecting that the receiving device is connected to the display device through the first interface, controlling the receiving device to power on;

[0006] In the process of the receiving device transmitting the screen projection data to the display device through the first interface, receiving a first voltage transmitted by the display device through the first interface;

[0007] The receiving device is controlled to switch to a power supply state according to the first voltage, so that the display device transmits a second voltage to the receiving device through the first interface.

[0008] In some embodiments, the first interface has a first pin;

[0009] The receiving, through the first interface, a first voltage transmitted by the display device comprises:

[0010] A first voltage transmitted by the display device is received through the first pin.

[0011] In some embodiments, the first interface has a second pin, a third pin, and a fourth pin;

[0012] The step of controlling the receiving device to switch to a power supply state according to the first voltage so that the display device transmits a second voltage to the receiving device through the first interface includes:

[0013] Control the second pin to switch to a power supply state through the first voltage, so that the display device transmits a second voltage to the receiving device through the third pin and the fourth pin;

[0014] The third pin and the fourth pin are controlled to receive the second voltage, so that the display device continuously transmits the second voltage to the receiving device.

[0015] In some embodiments, controlling the second pin to switch to a power supply state by using the first voltage includes:

[0016] The voltage value of the second pin is adjusted to a voltage range corresponding to the power supply state through the first voltage.

[0017] In some embodiments, controlling the third pin and the fourth pin to receive the second voltage includes:

[0018] The voltage value of the third pin is adjusted to a pressure range corresponding to the power receiving state, so that the third pin and the fourth pin are switched to the power receiving state.

[0019] In some embodiments, controlling the third pin and the fourth pin to receive the second voltage includes:

[0020] When the receiving device is not powered, the third pin and the fourth pin are controlled to receive the second voltage.

[0021] In some embodiments, it also includes:

[0022] According to the power supply stop instruction, the second interface is controlled to switch to a non-power supply state, so that the display device stops transmitting the second voltage to the receiving device.

[0023] In some embodiments, it also includes:

[0024] According to the power supply stop instruction, the third pin is controlled to switch to a non-power receiving state, so that the receiving device stops receiving the second voltage.

[0025] In some embodiments, it also includes:

[0026] The screen projection data is transmitted to the display device through the first interface according to a preset video protocol, wherein the preset video protocol is pre-stored in the receiving device and the display device.

[0027] In some embodiments, it also includes:

[0028] In response to detecting through the first interface that the display device enters a shutdown state or a standby state, the receiving device is controlled to shut down.

[0029] According to a second aspect of an embodiment of the present disclosure, there is provided a power supply method, which is applied to a display device, and the method includes:

[0030] In response to detecting that the receiving device is connected to the display device through the first interface, controlling the receiving device to power on;

[0031] In the process of the receiving device transmitting the screen projection data to the display device through the first interface, transmitting a first voltage to the display device through the first interface;

[0032] In response to the receiving device controlling the receiving device to switch to a power supply state according to the first voltage, a second voltage is transmitted to the receiving device through the first interface.

[0033] In some embodiments, the first interface includes a first pin;

[0034] The transmitting the first voltage to the display device through the first interface includes:

[0035] A first voltage is transmitted to the receiving device through the first pin.

[0036] In some embodiments, the first interface includes a second pin, a third pin, and a fourth pin;

[0037] In response to the receiving device controlling the receiving device to switch to a power supply state according to the first voltage, transmitting a second voltage to the receiving device through the first interface includes:

[0038] When the receiving device controls the second pin to switch to a power supply state through the first voltage, transmitting a second voltage to the receiving device through the third pin and the fourth pin;

[0039] In a case where the receiving device controls the third pin and the fourth pin to receive the second voltage, the second voltage is continuously transmitted to the receiving device.

[0040] In some embodiments, before transmitting the second voltage to the receiving device through the third pin and the fourth pin, the method further includes:

[0041] The serial port functions of the third pin and the fourth pin are turned off, and the power supply functions of the third pin and the fourth pin are turned on.

[0042] According to a third aspect of an embodiment of the present disclosure, there is provided a power supply device, applied to a receiving device, the device comprising:

[0043] A power-on module, configured to control the receiving device to power on in response to detecting that the receiving device is connected to the display device through the first interface;

[0044] A first transmission module, configured to receive a first voltage transmitted by the display device through the first interface during a process in which the receiving device transmits the projection data to the display device through the first interface;

[0045] The second transmission module is used to control the receiving device to switch to a power supply state according to the first voltage, so that the display device transmits a second voltage to the receiving device through the first interface.

[0046] In some embodiments, the first interface includes a first pin;

[0047] When the first transmission module is used to receive the first voltage transmitted by the display device through the first interface, it is specifically used to:

[0048] A first voltage transmitted by the display device is received through the first pin.

[0049] In some embodiments, the first interface includes a second pin, a third pin, and a fourth pin;

[0050] The second transmission module includes:

[0051] a switching unit, configured to control the second pin to switch to a power supply state through the first voltage, so that the display device transmits a second voltage to the receiving device through the third pin and the fourth pin;

[0052] The first transmission unit is used to control the third pin and the fourth pin to receive the second voltage, so that the display device continuously transmits the second voltage to the receiving device.

[0053] In some embodiments, the switching unit is specifically used to:

[0054] The voltage value of the second pin is adjusted to a voltage range corresponding to the power supply state through the first voltage.

[0055] In some embodiments, the first transmission unit is used to control the third pin and the fourth pin to receive the second voltage, specifically to:

[0056] The voltage value of the third pin is adjusted to a pressure range corresponding to the power receiving state, so that the third pin and the fourth pin are switched to the power receiving state.

[0057] In some embodiments, the first transmission unit is used to control the third pin and the fourth pin to receive the second voltage, specifically to:

[0058] When the receiving device is not powered, the third pin and the fourth pin are controlled to receive the second voltage.

[0059] In some embodiments, the system further includes a first power supply stopping module, which is used to:

[0060] According to the power supply stop instruction, the second pin is controlled to switch to a non-power supply state, so that the display device stops transmitting the second voltage to the receiving device.

[0061] In some embodiments, the device further includes a second power supply stopping module, which is used to:

[0062] According to the power supply stop instruction, the third pin is controlled to switch to a non-power receiving state, so that the receiving device stops receiving the second voltage.

[0063] In some embodiments, a screen projection module is also included for:

[0064] The screen projection data is transmitted to the display device through the first interface according to a preset video protocol, wherein the preset video protocol is pre-stored in the receiving device and the display device.

[0065] In some embodiments, a shutdown module is further included, which is used to:

[0066] In response to detecting through the first interface that the display device enters a shutdown state or a standby state, the receiving device is controlled to shut down.

[0067] According to a fourth aspect of an embodiment of the present disclosure, there is provided a power supply device, which is applied to a display device, and the device includes:

[0068] A second power-on module, configured to control the receiving device to power on in response to detecting that the receiving device is connected to the display device through the first interface;

[0069] A third transmission module, configured to transmit a first voltage to the display device through the first interface during a process in which the receiving device transmits the projection data to the display device through the first interface;

[0070] A fourth transmission module is used to transmit a second voltage to the receiving device through the first interface in response to the receiving device controlling the receiving device to switch to a power supply state according to the first voltage.

[0071] In some embodiments, the first interface includes a first pin;

[0072] When the third transmission module is used to transmit the first voltage to the display device through the first interface, it is specifically used to:

[0073] A first voltage is transmitted to the receiving device through the first pin.

[0074] In some embodiments, the first interface includes a second pin, a third pin, and a fourth pin;

[0075] The fourth transmission module is used for controlling the receiving device to switch to a power supply state in response to the receiving device controlling the receiving device according to the first voltage, and transmitting the second voltage to the receiving device through the first interface, specifically for:

[0076] When the receiving device controls the second pin to switch to a power supply state through the first voltage, transmitting a second voltage to the receiving device through the third pin and the fourth pin;

[0077] In a case where the receiving device controls the third pin and the fourth pin to receive the second voltage, the second voltage is continuously transmitted to the receiving device.

[0078] In some embodiments, the fourth transmission module is further configured to:

[0079] Before transmitting the second voltage to the receiving device through the third pin and the fourth pin, the serial port function of the third pin and the fourth pin is turned off, and the power supply function of the third pin and the fourth pin is started.

[0080] According to a fifth aspect of an embodiment of the present disclosure, an electronic device is provided, comprising a memory and a processor, wherein the memory is used to store computer instructions executable on the processor, and the processor is used to execute the computer instructions based on the power supply method described in the first aspect or the second aspect.

[0081] According to a sixth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored, and when the program is executed by a processor, the method described in the first aspect or the second aspect is implemented.

[0082] The technical solution provided by the embodiments of the present disclosure may have the following beneficial effects:

[0083] The present disclosure controls the receiving device to power on after the receiving device detects that the receiving device is connected to the display device through the first interface, and receives the first voltage transmitted by the display device through the first interface during the process of the receiving device transmitting the projection data to the display device through the first interface, and finally controls the receiving device to switch to the power supply state according to the first voltage, so that the display device transmits the second voltage to the receiving device through the first interface. Therefore, the display device can power the receiving device through the first interface, that is, the first interface can power the receiving device in addition to data transmission, avoiding the use of a dedicated line to power the receiving device, reducing the complexity of the connection, and improving the convenience of use. BRIEF DESCRIPTION OF THE DRAWINGS

[0084] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.

[0085] Figure 1 is a flow chart of a power supply method applied to a receiving device shown in an exemplary embodiment of the present disclosure;

[0086] Figure 2 is a schematic diagram showing a connection between a display device and a receiving device according to an exemplary embodiment of the present disclosure;

[0087] Figure 3 is a flow chart of a power supply method applied to a receiving device shown in another exemplary embodiment of the present disclosure;

[0088] Figure 4 is a flow chart of a power supply method applied to a display device shown in an exemplary embodiment of the present disclosure;

[0089] Figure 5 is a structural schematic diagram of a power supply device applied to a receiving device shown in an exemplary embodiment of the present disclosure;

[0090] Figure 6 is a structural schematic diagram of a power supply device applied to a display device shown in an exemplary embodiment of the present disclosure;

[0091] Figure 7 It is a structural block diagram of an electronic device shown in an exemplary embodiment of the present disclosure. DETAILED DESCRIPTION

[0092] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.

[0093] The terms used in this disclosure are for the purpose of describing specific embodiments only and are not intended to limit the disclosure. The singular forms of "a", "said" and "the" used in this disclosure and the appended claims are also intended to include plural forms unless the context clearly indicates otherwise. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of some or more associated listed items.

[0094] It should be understood that although the terms first, second, third, etc. may be used in the present disclosure to describe various information, such information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of the present disclosure, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".

[0095] In the related art, the receiving device needs the display device to be powered by a dedicated line, which makes the connection complicated and inconvenient to use. For example, the receiving device may be provided with a USB (Universal Serial Bus) socket, which is used to power the receiving device. One end of the power supply line is inserted into the USB socket, and the other end is connected to the display device, so that the display device powers the receiving device through the power supply line.

[0096] Based on this, in the first aspect, at least one embodiment of the present disclosure provides a power supply method, please refer to the attached Figure 1 , which shows the process of the method, including step S101 and step S103.

[0097] Among them, the method is applied to a receiving device of a screen projection device, which has a transmitting device in addition to the receiving device. The transmitting device can be used to connect to a terminal device such as a computer that has content to be projected, and the receiving device can be used to connect to a display device such as a television. The transmitting device can communicate with the receiving device through protocols such as wireless protocols, so the transmitting device can send the display content of the terminal device to the receiving device, and the receiving device controls the display device to display the above-mentioned display content, thereby completing the screen projection.

[0098] In step S101, in response to detecting that the receiving device is connected to the display device through the first interface, the receiving device is controlled to power on.

[0099] Please refer to the attached Figure 2 This step is applied to a scenario in which the receiving device is connected to the display device via a first interface (e.g., an HDMI (High Definition Multimedia Interface) interface), for example, the receiving device has an HDMI plug, the display device has an HDMI socket, and the HDMI plug of the receiving device is inserted into the HDMI socket.

[0100] Among them, the HDMI interface includes a first pin, a second pin, a third pin and a fourth pin. It can be understood that the HDMI interface is a fully digital video and sound transmission interface that can send uncompressed audio and video signals. Moreover, the HDMI interface has four types: A, B, C and D. The HDMI interface has multiple pins, each pin has a different interactive function. Taking the A type HDMI interface as an example, it has 19 pins. The first pin, the second pin, the third pin and the fourth pin mentioned above are four of the multiple pins of the HDMI interface, and the four pins are used to realize the power supply function.

[0101] In step S102, while the receiving device is transmitting the projection data to the display device through the first interface, a first voltage transmitted by the display device is received through the first interface.

[0102] In some embodiments, the first voltage transmitted by the display device may be received through the first pin.

[0103] Among them, the first pin can be pin 18 of the HDMI interface (HDMI+5V / 50ma). According to the HDMI protocol, when the display device and the receiving device are connected through the HDMI interface (for example, the HDMI plug of the receiving device is inserted into the HDMI socket of the display device), the display device will supply power to the first pin with a voltage of 5V, and the receiving device can receive power from the display device through the first pin.

[0104] Among them, the first voltage refers to the electric energy transmitted by the display device to the receiving device through the first pin, such as the above-mentioned 5V power supply, which is used for the display device and the receiving device to communicate the HDMI protocol, and the present application can use the electric energy to communicate the power supply protocol.

[0105] In step S103, the receiving device is controlled to switch to a power supply state according to the first voltage, so that the display device transmits a second voltage to the receiving device through the first interface.

[0106] You can follow Figure 3 This step is performed in the manner shown, including sub-steps S1031 and S1032.

[0107] In sub-step S1031, the second pin is controlled to switch to a power supply state by the first voltage, so that the display device transmits the second voltage to the receiving device through the third pin and the fourth pin.

[0108] Among them, the second pin may be pin 14 (ARC NotConnect) of the HDMI interface, the third pin may be pin 15 (HDMI_B_SCL_IN) of the HDMI interface, and the fourth pin may be pin 16 (HDMI_B_SDA_IO) of the HDMI interface.

[0109] The receiving device can use the first voltage (for example, a power supply with a voltage of 5V) to control the state of the second pin. The voltage range corresponding to the different states of the second pin can be preset, so that the state can be switched by adjusting the voltage of the second pin, that is, the voltage value of the second pin is adjusted to the voltage range corresponding to the power supply state by the first voltage to switch the second pin to the power supply state, or the voltage value of the second pin is adjusted to the voltage range corresponding to the serial port state (UART function) by the first voltage to switch the second pin to the serial port state. For example, the voltage range corresponding to the power supply state is 0-3V (excluding 0V and including 3V), and the voltage range corresponding to the serial port state is 3-5V (excluding 3V and including 5V). When the voltage of the second pin is pulled up to the range of 0-3V, the receiving device switches to the power supply state, and when the voltage of the second pin is pulled up to the range of 3-5V, the receiving device switches to the serial port state.

[0110] The display device monitors the state of the second pin, and when the second pin is switched to the power supply state, the display device transmits the second voltage to the receiving device through the third pin and the fourth pin. The second voltage is used to power the receiving device. For example, the display device can turn off the serial port function of the third interface and the fourth interface, start the power supply function of the third pin and the fourth pin, and transmit electric energy with a voltage of 5V and a current of 1A to the third pin and the fourth pin.

[0111] It should be noted that if the receiving device has only one power supply path, which is the HDMI interface, step S1031 will be automatically triggered after step S102; if the receiving device has other power supply paths besides the HDMI interface, step S1031 will be triggered after step S102 based on the user's triggering operation. For example, the receiving device has two power supply paths, namely the HDMI interface and the USB interface, and has a button for selecting the power supply path. Step S1031 will be triggered when the user selects the HDMI interface through the button.

[0112] In step S1032, the third pin and the fourth pin are controlled to receive the second voltage, so that the display device continues to transmit the second voltage to the receiving device.

[0113] Among them, this step is a step of receiving power from the HDMI interface for the receiving device. That is, when the receiving device is not powered, the third pin and the fourth pin are controlled to receive the second voltage; and when the receiving device is powered by an interface other than the HDMI interface (such as a USB interface), the third pin can be controlled to switch to a non-powered state so that the display device stops transmitting the second voltage.

[0114] In one example, the voltage value of the third pin is adjusted to within the pressure range corresponding to the power receiving state, so that the third pin and the fourth pin are switched to the power receiving state. For example, the voltage of the third pin is pulled up so that the display device is continuously powered. Correspondingly, if the receiving device does not adjust the voltage of the third pin to within the pressure range corresponding to the power receiving state, for example, the receiving device does not pull up the voltage of the third pin, the third pin and the fourth pin are not switched to the power receiving state, and if the third pin and the fourth pin are not switched to the power receiving state within a preset time, the display device stops transmitting the second voltage to the third pin and the fourth pin, that is, stops powering.

[0115] In addition, the receiving device may control the receiving device to shut down in response to detecting through the first interface that the display device enters a shutdown state or a standby state.

[0116] The present disclosure controls the receiving device to power on after the receiving device detects that the receiving device is connected to the display device through the first interface, and receives the first voltage transmitted by the display device through the first interface during the process of the receiving device transmitting the projection data to the display device through the first interface, and finally controls the receiving device to switch to the power supply state according to the first voltage, so that the display device transmits the second voltage to the receiving device through the first interface. Therefore, the display device can power the receiving device through the first interface, that is, the first interface can power the receiving device in addition to data transmission, avoiding the use of a dedicated line to power the receiving device, reducing the complexity of the connection, and improving the convenience of use.

[0117] In some embodiments of the present disclosure, after the display device continuously supplies power to the receiving device through the first interface (HDMI interface), the receiving device can transmit the projection data to the display device through the first interface according to a preset video protocol, wherein the preset video protocol is pre-stored in the receiving device and the display device.

[0118] Among them, the projection data refers to the projection data transmitted by the transmitting device and received by the receiving device, and the projection data transmitted by the transmitting device is the content displayed on the screen of the terminal device where it is located.

[0119] The preset protocol may be an HDMI protocol or an EDID (Extended display identification data) protocol. It should be noted that the EDID protocol of the receiving device may be pre-stored in the display device, and the EDID protocol of the display device may be pre-stored in the receiving device, thereby avoiding the four pins used for power supply occupying the protocol interaction channel, causing the display device and the receiving device to be unable to perform protocol interaction and affecting the display of the display device.

[0120] In some embodiments of the present disclosure, after the display device continuously supplies power to the receiving device through a first interface (e.g., an HDMI interface), the receiving device can control the second interface to switch to a non-powered state according to a stop power supply instruction, so that the display device stops transmitting the second voltage to the receiving device.

[0121] In other embodiments, the third pin may be controlled to switch to a non-powered state according to a power supply stop instruction, so that the receiving device stops receiving the second voltage.

[0122] For example, the second pin can be switched to a non-powered state by pulling down the voltage of the second pin, and the third pin can be switched to a non-powered state by pulling down the voltage of the third pin. After at least one of the second pin and the third pin is adjusted, the display device cannot supply power to the receiving device, that is, stops supplying power to the receiving device.

[0123] The power-off instruction may be triggered by a user's operation, for example, the user generates a power-off instruction by operating a remote control of the display device, or the user generates a power-off instruction by operating a terminal device to which the transmitting device is connected.

[0124] In a second aspect, at least one embodiment of the present disclosure provides a power supply method. Figure 4 , which shows the process of the method, including step S401 and step S403.

[0125] In step S401, in response to detecting that the receiving device is connected to the display device through the first interface, the receiving device is controlled to power on.

[0126] In step S402, while the receiving device is transmitting the projection data to the display device through the first interface, a first voltage is transmitted to the display device through the first interface.

[0127] The first interface includes a first pin, a second pin, a third pin and a fourth pin; the first voltage is transmitted to the display device through the first interface, so in this step, the first voltage can be transmitted to the receiving device through the first pin.

[0128] In step S403, in response to the receiving device controlling the receiving device to switch to a power supply state according to the first voltage, a second voltage is transmitted to the receiving device through the first interface.

[0129] Wherein, when the receiving device controls the second pin to switch to a power supply state through the first voltage, the second voltage is transmitted to the receiving device through the third pin and the fourth pin;

[0130] In a case where the receiving device controls the third pin and the fourth pin to receive the second voltage, the second voltage is continuously transmitted to the receiving device.

[0131] In addition, before transmitting the second voltage to the receiving device through the third pin and the fourth pin, the serial port function of the third pin and the fourth pin may be turned off, and the power supply function of the third pin and the fourth pin may be started.

[0132] The details of each step of the method have been introduced in detail in the first aspect and will not be repeated here.

[0133] According to a third aspect of the embodiment of the present disclosure, a power supply device is provided, which is applied to a receiving device. Figure 5 , which shows the structure of the device, the device comprises:

[0134] A first power-on module 501, configured to control the receiving device to power on in response to detecting that the receiving device is connected to the display device through the first interface;

[0135] A first transmission module 502, configured to receive a first voltage transmitted by the display device through the first interface during a process in which the receiving device transmits the projection data to the display device through the first interface;

[0136] The second transmission module 503 is used to control the receiving device to switch to a power supply state according to the first voltage, so that the display device transmits a second voltage to the receiving device through the first interface.

[0137] In some embodiments of the present disclosure, the first interface includes a first pin;

[0138] When the first transmission module is used to receive the first voltage transmitted by the display device through the first interface, it is specifically used to:

[0139] A first voltage transmitted by the display device is received through the first pin.

[0140] In some embodiments of the present disclosure, the first interface includes a second pin, a third pin, and a fourth pin;

[0141] The second transmission module includes:

[0142] a switching unit, configured to control the second pin to switch to a power supply state through the first voltage, so that the display device transmits a second voltage to the receiving device through the third pin and the fourth pin;

[0143] The first transmission unit is used to control the third pin and the fourth pin to receive the second voltage, so that the display device continuously transmits the second voltage to the receiving device.

[0144] In some embodiments of the present disclosure, the switching unit is specifically used to:

[0145] The voltage value of the second pin is adjusted to a voltage range corresponding to the power supply state through the first voltage.

[0146] In some embodiments of the present disclosure, when the first transmission unit is used to control the third pin and the fourth pin to receive the second voltage, it is specifically used to:

[0147] The voltage value of the third pin is adjusted to a pressure range corresponding to the power receiving state, so that the third pin and the fourth pin are switched to the power receiving state.

[0148] In some embodiments of the present disclosure, when the first transmission unit is used to control the third pin and the fourth pin to receive the second voltage, it is specifically used to:

[0149] When the receiving device is not powered, the third pin and the fourth pin are controlled to receive the second voltage.

[0150] In some embodiments of the present disclosure, a first power supply stopping module is further included, which is used to:

[0151] According to the power supply stop instruction, the second interface is controlled to switch to a non-power supply state, so that the display device stops transmitting the second voltage to the receiving device.

[0152] In some embodiments of the present disclosure, a second power supply stopping module is further included, which is used to:

[0153] According to the power supply stop instruction, the third pin is controlled to switch to a non-power receiving state, so that the receiving device stops receiving the second voltage.

[0154] In some embodiments of the present disclosure, a screen projection module is also included for:

[0155] The screen projection data is transmitted to the display device through the first interface according to a preset video protocol, wherein the preset video protocol is pre-stored in the receiving device and the display device.

[0156] In some embodiments of the present disclosure, a shutdown module is further included, which is used to:

[0157] In response to detecting through the first interface that the display device enters a shutdown state or a standby state, the receiving device is controlled to shut down.

[0158] According to a fourth aspect of the embodiments of the present disclosure, a power supply device is provided, which is applied to a display device. Figure 6 , which shows the structure of the device, the device comprises:

[0159] A second power-on module 601, configured to control the receiving device to power on in response to detecting that the receiving device is connected to the display device through the first interface;

[0160] A third transmission module 602 is used to transmit a first voltage to the display device through the first interface during the process in which the receiving device transmits the projection data to the display device through the first interface;

[0161] The fourth transmission module 603 is configured to transmit a second voltage to the receiving device through the first interface in response to the receiving device controlling the receiving device to switch to a power supply state according to the first voltage.

[0162] In some embodiments of the present disclosure, the first interface includes a first pin;

[0163] When the third transmission module is used to transmit the first voltage to the display device through the first interface, it is specifically used to:

[0164] A first voltage is transmitted to the receiving device through the first pin.

[0165] In some embodiments of the present disclosure, the first interface includes a second pin, a third pin, and a fourth pin;

[0166] The fourth transmission module is used for controlling the receiving device to switch to a power supply state in response to the receiving device controlling the receiving device according to the first voltage, and transmitting the second voltage to the receiving device through the first interface, specifically for:

[0167] When the receiving device controls the second pin to switch to a power supply state through the first voltage, transmitting a second voltage to the receiving device through the third pin and the fourth pin;

[0168] In a case where the receiving device controls the third pin and the fourth pin to receive the second voltage, the second voltage is continuously transmitted to the receiving device.

[0169] In some embodiments of the present disclosure, the fourth transmission module is further configured to:

[0170] Before transmitting the second voltage to the receiving device through the third pin and the fourth pin, the serial port function of the third pin and the fourth pin is turned off, and the power supply function of the third pin and the fourth pin is started.

[0171] According to a fifth aspect of the embodiments of the present disclosure, an electronic device is provided. Figure 7 , which shows the structure of the electronic device, the electronic device includes a memory and a processor, the memory is used to store computer instructions that can be executed on the processor, and the processor is used to execute the computer instructions based on the power supply method described in the first aspect or the second aspect.

[0172] The electronic device may be a receiving device of a screen projection device, or a display device such as a television. If the electronic device is a receiving device, the processor is used to execute the computer instructions based on the power supply method described in the first aspect; if the electronic device is a display device, the processor is used to execute the computer instructions based on the power supply method described in the second aspect.

[0173] According to a sixth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored, and when the program is executed by a processor, the method described in the first aspect or the second aspect is implemented.

[0174] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are intended to be exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.

[0175] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims

1. A power supply method, characterized in that: Applied to a receiving device, the method comprises: In response to detecting that the receiving device is connected to the display device through the first interface, controlling the receiving device to power on; In the process of the receiving device transmitting the screen projection data to the display device through the first interface, receiving a first voltage transmitted by the display device through the first interface; controlling the receiving device to switch to a power supply state according to the first voltage, so that the display device transmits a second voltage to the receiving device through the first interface; The step of controlling the receiving device to switch to a power supply state according to the first voltage so that the display device transmits a second voltage to the receiving device through the first interface includes: According to the first voltage, the second pin of the first interface is controlled to switch to a power supply state, so that the display device turns off the serial port functions of the third and fourth pins of the first interface, and continuously transmits the second voltage to the receiving device through the third and fourth pins.

2. The power supply method according to claim 1, characterized in that: The first interface has a first pin; The receiving, through the first interface, a first voltage transmitted by the display device comprises: A first voltage transmitted by the display device is received through the first pin.

3. The power supply method according to claim 1 or 2, characterized in that: The first interface has a second pin, a third pin and a fourth pin; The step of controlling the receiving device to switch to a power supply state according to the first voltage so that the display device transmits a second voltage to the receiving device through the first interface includes: Control the second pin to switch to a power supply state through the first voltage, so that the display device transmits a second voltage to the receiving device through the third pin and the fourth pin; The third pin and the fourth pin are controlled to receive the second voltage, so that the display device continuously transmits the second voltage to the receiving device.

4. The power supply method according to claim 3, characterized in that: The controlling the second pin to switch to a power supply state by using the first voltage includes: The voltage value of the second pin is adjusted to a voltage range corresponding to the power supply state through the first voltage.

5. The power supply method according to claim 3, characterized in that: The controlling the third pin and the fourth pin to receive the second voltage comprises: The voltage value of the third pin is adjusted to a pressure range corresponding to the power receiving state, so that the third pin and the fourth pin are switched to the power receiving state.

6. The power supply method according to claim 3, characterized in that: The controlling the third pin and the fourth pin to receive the second voltage comprises: When the receiving device is not powered, the third pin and the fourth pin are controlled to receive the second voltage.

7. The power supply method according to claim 3, characterized in that: The method further comprises: According to the power supply stop instruction, the second pin is controlled to switch to a non-power supply state, so that the display device stops transmitting the second voltage to the receiving device.

8. The power supply method according to claim 3, characterized in that: The method further comprises: According to the power supply stop instruction, the third pin is controlled to switch to a non-power receiving state, so that the receiving device stops receiving the second voltage.

9. The power supply method according to claim 1, characterized in that: Also includes: The screen projection data is transmitted to the display device through the first interface according to a preset video protocol, wherein the preset video protocol is pre-stored in the receiving device and the display device.

10. The power supply method according to claim 1, characterized in that: Also includes: In response to detecting through the first interface that the display device enters a shutdown state or a standby state, the receiving device is controlled to shut down.

11. A power supply method, characterized in that: Applied to a display device, the method comprises: In response to detecting that the receiving device is connected to the display device through the first interface, controlling the receiving device to power on; In the process of the receiving device transmitting the screen projection data to the display device through the first interface, transmitting a first voltage to the display device through the first interface; In response to the receiving device controlling the receiving device to switch to a power supply state according to the first voltage, transmitting a second voltage to the receiving device through the first interface; The step of controlling the receiving device to switch to a power supply state in response to the receiving device controlling the receiving device according to the first voltage, and transmitting the second voltage to the receiving device through the first interface includes: When the receiving device controls the second pin of the first interface to switch to a power supply state according to the first voltage, the serial port functions of the third pin and the fourth pin of the first interface are turned off, and the second voltage is continuously transmitted to the receiving device through the third pin and the fourth pin.

12. The power supply method according to claim 11, characterized in that: The first interface includes a first pin; The transmitting the first voltage to the display device through the first interface includes: A first voltage is transmitted to the receiving device through the first pin.

13. The power supply method according to claim 11 or 12, characterized in that: The first interface includes a second pin, a third pin and a fourth pin; In response to the receiving device controlling the receiving device to switch to a power supply state according to the first voltage, transmitting a second voltage to the receiving device through the first interface includes: When the receiving device controls the second pin to switch to a power supply state through the first voltage, transmitting a second voltage to the receiving device through the third pin and the fourth pin; In a case where the receiving device controls the third pin and the fourth pin to receive the second voltage, the second voltage is continuously transmitted to the receiving device.

14. The power supply method according to claim 13, characterized in that: Before transmitting the second voltage to the receiving device through the third pin and the fourth pin, the method further includes: The serial port functions of the third pin and the fourth pin are turned off, and the power supply functions of the third pin and the fourth pin are turned on.

15. A power supply device, characterized in that: Applied to a receiving device, the device comprises: A power-on module, configured to control the receiving device to power on in response to detecting that the receiving device is connected to the display device through the first interface; A first transmission module, configured to receive a first voltage transmitted by the display device through the first interface during a process in which the receiving device transmits the projection data to the display device through the first interface; a second transmission module, configured to control the receiving device to switch to a power supply state according to the first voltage, so that the display device transmits a second voltage to the receiving device through the first interface; Wherein, the second transmission module is specifically used for: According to the first voltage, the second pin of the first interface is controlled to switch to a power supply state, so that the display device turns off the serial port functions of the third and fourth pins of the first interface, and continuously transmits the second voltage to the receiving device through the third and fourth pins.

16. A power supply device, characterized in that: Applied to a display device, the device comprises: A second power-on module, configured to control the receiving device to power on in response to detecting that the receiving device is connected to the display device through the first interface; A third transmission module, configured to transmit a first voltage to the display device through the first interface during a process in which the receiving device transmits the projection data to the display device through the first interface; a fourth transmission module, configured to transmit a second voltage to the receiving device through the first interface in response to the receiving device controlling the receiving device to switch to a power supply state according to the first voltage; Wherein, the fourth transmission module is specifically used for: When the receiving device controls the second pin of the first interface to switch to a power supply state according to the first voltage, the serial port functions of the third pin and the fourth pin of the first interface are turned off, and the second voltage is continuously transmitted to the receiving device through the third pin and the fourth pin.

17. An electronic device, characterized in that: The electronic device comprises a memory and a processor, wherein the memory is used to store computer instructions executable on the processor, and the processor is used to execute the computer instructions based on the power supply method according to any one of claims 1 to 14.

18. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 14 is implemented.