Smart home equipment, equipment power supply method, electronic equipment and storage medium

Through smart home equipment, the equipment information of smart devices and automatically adjust the power supply mode, solve the problem that existing technology cannot meet the power supply demand for multiple smart devices, and achieve safer and accurate power supply.

CN119335887APending Publication Date: 2025-01-21BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310899444.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-07-20
Publication Date
2025-01-21

AI Technical Summary

Technical Problem

The prior art is difficult to meet the power supply needs of multiple smart devices, and the preset power supply mode cannot adapt to the current needs of different devices.

Method used

Design a smart home device, including power modules, interfaces, first control modules, and second control modules. Through the connection with the power equipment through the interface, obtain the equipment information and determine the appropriate power supply mode, and control the power module to supply power according to the power supply mode.

Benefits of technology

It realizes automatic adjustment of power supply mode according to the device information of different smart devices, ensuring that the power output is within the tolerable range of the device, and improving the safety and accuracy of power supply.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119335887A_ABST
    Figure CN119335887A_ABST
Patent Text Reader

Abstract

The invention relates to smart home equipment, an equipment power supply method, electronic equipment and a storage medium. The intelligent household equipment comprises a power supply module; the interface is used for being connected with power receiving equipment; the first control module is connected with the interface and is used for acquiring equipment information of the power receiving equipment inserted into the interface and determining a power supply mode of the power receiving equipment according to the equipment information; and the second control module is respectively connected with the first control module and the power supply module and is used for controlling the power supply module to supply power to the power receiving equipment according to the power supply mode. According to the embodiment of the invention, the equipment information of the power receiving equipment is acquired, and the power supply mode of the power receiving equipment is determined according to the equipment information, so that different power outputs can be provided for different types of power receiving equipment, and the power supply requirements of the power receiving equipment are met.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of electronic technology, and in particular to a smart home device, a device power supply method, an electronic device and a storage medium. Background Art

[0002] With the development of science and technology, smart devices have been rapidly popularized, the types of smart devices have gradually increased, and the power supply requirements of smart devices are also different. In existing solutions, the power supply is often connected to the smart device through the interface, and the current of the power supply is output to the smart device through the interface according to the preset power supply mode to power the smart device. However, the power supply requirements of each smart device are different, so the preset power supply mode is difficult to meet the power supply requirements of a variety of smart devices. Summary of the invention

[0003] The present disclosure provides a smart home device, a device power supply method, an electronic device and a storage medium.

[0004] According to a first aspect of an embodiment of the present disclosure, a smart home device is provided, the device comprising:

[0005] Power module;

[0006] An interface for connecting to a powered device;

[0007] a first control module connected to the interface, configured to obtain device information of a powered device plugged into the interface, and determine a power supply mode of the powered device according to the device information;

[0008] The second control module is connected to the first control module and the power module respectively, and is used to control the power module to supply power to the powered device according to the power supply mode.

[0009] In some embodiments, the first control module is connected to the second control module via a bus.

[0010] In some embodiments, the bus is an IIC integrated circuit bus.

[0011] In some embodiments, the first control module is specifically configured to trigger an interrupt process when detecting that the powered device is plugged into the interface, and read device information of the powered device based on the interrupt process.

[0012] In some embodiments, the interface is a USB universal serial bus interface.

[0013] A second aspect of the embodiments of the present disclosure provides a device power supply method, which is performed by the smart home device described in the first aspect of the embodiments, and the method includes:

[0014] Detect whether there is a powered device plugged into the interface;

[0015] When it is detected that a powered device is plugged into the interface, reading device information of the powered device;

[0016] Determining a power supply mode for supplying power to the powered device according to the device information;

[0017] According to the power supply mode, the power supply module of the smart home device is controlled to supply power to the powered device.

[0018] In some embodiments, when it is detected that a powered device is plugged into the interface, reading device information of the powered device includes:

[0019] When it is detected that a powered device is plugged into the interface, an interrupt process is triggered;

[0020] Based on the interrupt processing, device information of the power receiving device is read.

[0021] In some embodiments, the reading device information of the powered device based on the interrupt processing includes:

[0022] Sending a query request to the powered device via the interface;

[0023] The device information returned by the powered device based on the query request is received.

[0024] In some embodiments, determining, according to the device information, a power supply mode for supplying power to the powered device includes:

[0025] When the device information indicates that the operating current of the powered device is greater than the first current and less than the second current, determining that the power supply mode for supplying power to the powered device is the first power supply mode;

[0026] When the device information indicates that the working current of the powered device is greater than or equal to the second current and less than or equal to the third current, determining that the power supply mode for supplying power to the powered device is the second power supply mode; wherein the output current of the power module in the second power supply mode is greater than the output current of the power module in the first power supply mode;

[0027] When the device information indicates that the operating current of the powered device is greater than the third current, the power supply mode for supplying power to the powered device is determined to be the third power supply mode; wherein the output current of the power module in the third power supply mode is greater than the output current of the power module in the second power supply mode.

[0028] In some embodiments, controlling the power module of the smart home device to supply power to the powered device according to the power supply mode includes:

[0029] According to the power supply mode, the switching frequency and / or duty cycle of the power supply in the power supply module is adjusted.

[0030] In some embodiments, the method further comprises:

[0031] When it is detected that the powered device plugged into the interface is unplugged, the power module is controlled to stop supplying power.

[0032] According to a third aspect of the present disclosure, an electronic device is provided, including:

[0033] a memory storing computer-readable instructions;

[0034] A processor, connected to the memory, is used to implement the steps of the method described in the second aspect of the above embodiment by running the computer-readable instructions.

[0035] According to a fourth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided, wherein the computer storage medium stores computer-executable instructions; after the computer-executable instructions are executed by a processor, the steps of the method described in the second aspect of the above embodiment can be implemented.

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

[0037] The smart home device provided by the embodiment of the present disclosure, on the one hand, obtains the device information of the powered device and determines the power supply mode according to the obtained device information, so that the current output by the power module can meet the power supply requirements of different powered devices, and the output current is within the tolerable range of the powered device, which can improve the safety of power supply to the powered device. On the other hand, by connecting the first control module with the second control module, the functions of the first control module and the second control module are used in conjunction with each other, which can realize the determination of the power supply mode based on the device information and the power supply to the powered device according to the determined power supply mode, and reduce the complex software improvement process, which can improve the accuracy and convenience of power supply control.

[0038] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0040] Figure 1is a structural diagram of a smart home device provided by an embodiment of the present disclosure;

[0041] Figure 2 This is a schematic diagram of a device power supply method provided by an embodiment of the present disclosure. Figure 1 ;

[0042] Figure 3 This is a schematic diagram of a device power supply method provided by an embodiment of the present disclosure. Figure 2 ;

[0043] Figure 4 It is a schematic diagram of a framework of a TV-USB-based intelligent identification power supply method provided by an embodiment of the present disclosure;

[0044] Figure 5 This is a schematic diagram of a process of an intelligent identification power supply method based on TV-USB provided by an embodiment of the present disclosure. Figure 1 ;

[0045] Figure 6 This is a schematic diagram of the connection relationship between a TV-SOC and a USB-PM provided by an embodiment of the present disclosure;

[0046] Figure 7 This is a schematic diagram of a process of an intelligent identification power supply method based on TV-USB provided by an embodiment of the present disclosure. Figure 2 ;

[0047] Figure 8 It is a structural schematic diagram of an electronic device provided by an embodiment of the present disclosure. DETAILED DESCRIPTION

[0048] 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 consistent with some aspects of the present disclosure as detailed in the appended claims.

[0049] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. The present disclosure 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 to be considered exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.

[0050] 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.

[0051] The present invention provides a smart home device, such as Figure 1 As shown, the smart home device 100 includes:

[0052] Power module 101;

[0053] Interface 102, used to connect to the powered device 200;

[0054] A first control module 103, connected to the interface 102, for acquiring device information of a powered device 200 plugged into the interface 102, and determining a power supply mode of the powered device 200 according to the device information;

[0055] The second control module 104 is connected to the first control module 103 and the power module 101 respectively, and is used to control the power module 101 to supply power to the powered device 200 according to the power supply mode.

[0056] In some embodiments, the smart home device may be a smart TV with a display screen.

[0057] In some other embodiments, the smart home device may further include: a smart speaker with a display screen and / or a smart cleaning device. The smart cleaning device includes but is not limited to: a sweeping robot, etc.

[0058] The power module is used to supply power to the powered device. Exemplarily, the power module may be a module including a power source and other components for supplying power.

[0059] The powered device may be an electronic device and / or an electrical device that operates based on electricity. Exemplarily, the powered device includes but is not limited to a mobile phone, a computer, a tablet, and a smart home.

[0060] The interface is used to connect the smart home device to the powered device, and after the connection, the smart home device can supply power to the powered device through the interface. Exemplarily, the interface includes but is not limited to a Universal Serial Bus (USB) interface, a high-speed serial computer expansion bus standard (Peripheral Component Interconnect Express, PCIE) interface, and a Serial Advanced Technology Attachment (SATA) interface.

[0061] The first control module is used to obtain device information of the powered device and determine the power supply mode of the powered device according to the device information. For example, the first control module can be a chip with functions of receiving, analyzing and processing information, such as a main chip (System on Chip, SOC), etc. If the smart home device is a smart TV, the first control module can include: a TV main chip (Television System on Chip, TV-SOC).

[0062] The second control module is used to control the power module to supply power to the powered device through the interface. Exemplarily, the second control module can be any chip with a power control function, such as a USB power management chip (USB Power Management Integrated Circuits, USB-PM).

[0063] The device information may be configuration information of the powered device, such as the function, type, data transmission mode, and power supply mode of the powered device. Exemplarily, the device information may be a device descriptor.

[0064] In the embodiment of the present disclosure, the power supply mode can be determined by the power supply parameters included in the device information. Exemplarily, the device information may include the maximum power consumption (bMaxPower) of the powered device during operation, so as to determine the size of the power supply current required by the powered device. For example, when bMaxPower = 500mA, the power supply mode can be set to: the current output by the power module is 1A. For different types of powered devices, the device information obtained is different, and the determined power supply mode is different. In this way, the power supply mode can be determined according to the device information of the powered device to meet the power supply requirements of different powered devices.

[0065] In another embodiment, the data transmission mode may also be determined according to the data transmission parameters included in the device information. Exemplarily, the device information may include the device transmission protocol (bDeviceProtocol) of the powered device. In this way, the transmission protocol used for transmitting data through the interface between the smart home device and the powered device may be determined according to the transmission protocols supported by the smart home device and the powered device respectively. For example, when both the smart home device and the powered device support the USB3.0 protocol, the protocol of USB3.0 or below (such as USB2.0, etc.) may be determined as the data transmission protocol, thereby adjusting the data transmission speed of the powered device.

[0066] Different charging protocols correspond to different charging efficiencies and support different charging parameters, so the applicable charging mode and / or charging parameters can be determined according to the charging protocol.

[0067] The power supply mode may be an operating parameter of the power module when supplying power, for example, the magnitude of the current and / or voltage output by the power module, etc. For example, the power supply mode of the voltage module in the embodiment of the present disclosure includes but is not limited to an output current of 1A, an output current of 2A, and an output current of 3A, etc.

[0068] In the embodiments of the present disclosure, the smart home device may be provided with multiple interfaces, each of which may be connected to a powered device. Thus, through the multiple interfaces provided on the smart home device, one smart home device may be connected to multiple powered devices and supply power to multiple powered devices. Thus, the power supply efficiency of the smart home device may be further improved, and the user experience may be improved.

[0069] In the disclosed embodiment, on the one hand, by connecting the first control module and the second control module, the integration of functions between different modules is realized, the complex software improvement process is reduced, and a series of operations such as obtaining device information, determining the power supply mode, and controlling the power supply of the power module are realized through the connection improvement between the modules, which is convenient to operate. On the other hand, by determining the power supply mode through the device information of the powered device obtained, the subsequent control of the power supply of the power module can meet the power supply requirements of different powered devices, reduce the situation where the powered device is insufficiently powered due to the low output of the power module, or the powered device is damaged or even lost due to the high output of the power module, improve the versatility of smart home devices, and improve user experience.

[0070] In some embodiments, the first control module is connected to the second control module via a bus.

[0071] In the embodiment of the present disclosure, the first control module and the second control module may be connected via a bus, and the bus may include a data bus, a control bus, and an address bus, etc., which are divided into two types: a serial bus and a parallel bus.

[0072] For example, after determining the power supply mode according to the acquired device information, the first control module can transmit the relevant information including the power supply mode to the second control module through the bus, and the second control module then performs power supply control according to the relevant information of the power supply mode received from the bus. In this way, the integration of the functions of the first control module and the second control module is achieved, the complex software improvement process is reduced, and the connection method through the bus is simple, convenient and easy to operate.

[0073] In some embodiments, the bus is an IIC integrated circuit bus.

[0074] In the disclosed embodiment, an integrated circuit bus (Inter-Integrated Circuit, IIC) can be used to connect the first control module and the second control module. IIC includes two signal lines, one is a data signal line (SerialData, SDA), which is responsible for data transmission between devices connected through IIC, and the other is a clock signal line (System ClockLine, SCL), which is responsible for generating synchronous clock pulses and synchronous data transmission.

[0075] For example, the SDA pins of the first control module and the second control module can be connected to the SDA pin of the IIC, the SCL pins of the first control module and the second control module can be connected to the SCL pin of the IIC, and the power supply and ground pins of the IIC bus can be set, so that the first control module and the second control module can be connected through the IIC. In this way, the connection method of connecting the first control module and the second control module through the IIC can realize the data transmission between the first control module and the second control module through the data transmission function of the SDA and the synchronous data transmission function of the SCL, and the method of connecting through the IIC is simple, convenient and easy to operate.

[0076] In some embodiments, the first control module is specifically configured to trigger an interrupt process when detecting that the powered device is plugged into the interface, and read device information of the powered device based on the interrupt process.

[0077] In the embodiment of the present disclosure, the insertion of the powered device can be detected by the first control module. For example, the first control module can detect the change of the signal at the interface to determine whether the powered device is plugged in. For example, when the powered device is not plugged in, the level signal at the interface is low, and when the powered device is plugged in, the level signal at the interface becomes high.

[0078] In the disclosed embodiment, when it is detected that a powered device is plugged into the interface, the first control module performs interrupt processing, suspends the remaining tasks currently being executed, and preferentially reads the device information of the powered device, so as to facilitate the subsequent determination of the power supply mode and the power supply to the powered device based on the power supply mode. In this way, by introducing the interrupt processing of the first control module and timely reading the device information of the plugged powered device, the power supply efficiency of the smart home device can be improved, the preparation time for power supply can be reduced, and the user experience can be improved.

[0079] In some embodiments, the first control module is specifically used to trigger interrupt processing when it detects that the powered device is unplugged from the interface, and send control information to the second control module based on the interrupt processing; wherein the control information is used for the second control module to control the power supply module to stop supplying power.

[0080] In the embodiment of the present disclosure, when it is detected that the powered device is unplugged from the interface, the power supply module can be controlled to stop supplying power through interrupt processing. In this way, on the one hand, the power supply can be stopped when no powered device is plugged in, thereby reducing the waste of power supply resources. On the other hand, the interrupt processing method can promptly stop powering the interface where the powered device is unplugged, thereby improving the safety of power supply.

[0081] In some embodiments, the interface is a USB universal serial bus interface.

[0082] In an embodiment of the present disclosure, a USB interface can be used to power a powered device. Exemplarily, the USB interface may include a micro USB (Micro USB), a mini USB (Mini USB), a type A USB (USB Type-A), a type B USB (USB Type-B) and / or a type C USB (USB Type-C), etc.

[0083] The USB interface supports hot plugging, and the USB interface standard is unified and widely used in a variety of smart devices. Therefore, most smart devices support plugging into the USB interface, so that a variety of smart devices can be powered through the USB interface of the smart home device. In this way, a variety of smart devices that support the USB interface can be powered through the USB interface of the smart home device, which can further improve the versatility of the smart home device and enhance the user experience.

[0084] The present disclosure also provides a device power supply method, which is performed by the smart home device described in any of the above embodiments, such as Figure 2 As shown, the method may include:

[0085] Step 110: Detect whether a powered device is plugged into the interface;

[0086] Step 120: when it is detected that a powered device is plugged into the interface, read device information of the powered device;

[0087] Step 130: Determine a power supply mode for supplying power to the powered device according to the device information;

[0088] Step 140: According to the power supply mode, control the power supply module of the smart home device to supply power to the powered device.

[0089] The powered device may be an electronic device and / or an electrical device that operates based on electricity. Exemplarily, the powered device includes but is not limited to a mobile phone, a computer, a tablet, and a smart home.

[0090] The interface is used to connect the smart home device to the powered device, and after the connection, the smart home device can supply power to the powered device through the interface. Exemplarily, the interface includes but is not limited to a Universal Serial Bus (USB) interface, a high-speed serial computer expansion bus standard (Peripheral Component Interconnect Express, PCIE) interface, and a Serial Advanced Technology Attachment (SATA) interface.

[0091] In the embodiment of the present disclosure, the device information of the powered device can be obtained by a chip having the functions of receiving, analyzing and processing information, such as a main chip (System on Chip, SOC), and the power supply mode of the powered device can be determined according to the device information. If the smart home device is a smart TV, the chip may include: a TV main chip (Television System on Chip, TV-SOC).

[0092] In the embodiments of the present disclosure, any chip with a power control function, such as a USB power management chip (USB Power Management Integrated Circuits, USB-PM), etc., can be used to control the power module to supply power to the powered device through an interface.

[0093] The device information may be configuration information of the powered device, such as the function, type, data transmission mode, and power supply mode of the powered device. Exemplarily, the device information may be a device descriptor.

[0094] In the embodiment of the present disclosure, the power supply mode can be determined by the power supply parameters included in the device information. Exemplarily, the device information may include the maximum power consumption (bMaxPower) of the powered device during operation, so as to determine the size of the power supply current required by the powered device. For example, when bMaxPower = 500mA, the power supply mode can be set to: the current output by the power module is 1A. For different types of powered devices, the device information obtained is different, and the determined power supply mode is different. In this way, the power supply mode can be determined according to the device information of the powered device to meet the power supply requirements of different powered devices.

[0095] In another embodiment, the data transmission mode may also be determined according to the data transmission parameters included in the device information. Exemplarily, the device information may include the device transmission protocol (bDeviceProtocol) of the powered device. In this way, the transmission protocol used for transmitting data through the interface between the smart home device and the powered device may be determined according to the transmission protocols supported by the smart home device and the powered device respectively. For example, when both the smart home device and the powered device support the USB3.0 protocol, the protocol of USB3.0 or below (such as USB2.0, etc.) may be determined as the data transmission protocol, thereby adjusting the data transmission speed of the powered device.

[0096] Different charging protocols correspond to different charging efficiencies and support different charging parameters, so the applicable charging mode and / or charging parameters can be determined according to the charging protocol.

[0097] The power supply mode may be an operating parameter of the power module when supplying power, for example, the magnitude of the current and / or voltage output by the power module, etc. For example, the power supply mode of the voltage module in the embodiment of the present disclosure includes but is not limited to an output current of 1A, an output current of 2A, and an output current of 3A, etc.

[0098] In the embodiments of the present disclosure, multiple interfaces can be set on the smart home device, and each interface can be connected to a powered device. In this way, through the multiple interfaces set on the smart home device, one smart home device can be connected to multiple powered devices and supply power to multiple powered devices. In this way, the power supply efficiency of the smart home device can be further improved, and the user experience can be improved.

[0099] In the disclosed embodiment, the power supply mode is determined by obtaining the device information of the powered device, so that the subsequent control of the power supply of the power module can meet the power supply requirements of different powered devices, reduce the situation where the powered device is insufficiently powered due to too low output of the power module, or is damaged or even lost due to too high output of the power module, thereby improving the versatility of smart home devices and improving user experience.

[0100] In some embodiments, Figure 3 As shown, step 120 may include:

[0101] Step 121: When it is detected that a powered device is plugged into the interface, an interrupt process is triggered;

[0102] Step 122: Based on the interrupt processing, read the device information of the powered device.

[0103] In the embodiment of the present disclosure, the insertion of the powered device can be detected. Exemplarily, the change of the signal at the interface can be detected to determine whether the powered device is inserted. For example, when the powered device is not inserted, the level signal at the interface is low, and when the powered device is inserted, the level signal at the interface becomes high.

[0104] In the embodiment of the present disclosure, when it is detected that a powered device is plugged into the interface, the interrupt processing is executed to suspend the other currently executed tasks, and the device information of the powered device is read first, so as to facilitate the subsequent determination of the power supply mode and the power supply to the powered device based on the power supply mode. In this way, by introducing the interrupt processing and timely reading the device information of the plugged powered device, the power supply efficiency of the smart home device can be improved, the preparation time for power supply can be reduced, and the user experience can be improved.

[0105] In some embodiments, step 120 may include:

[0106] Sending a query request to the powered device via the interface;

[0107] The device information returned by the powered device based on the query request is received.

[0108] In the embodiment of the present disclosure, when it is detected that a powered device is plugged into the interface, a query request can be sent to the powered device through the interface to obtain device information. In this way, the device information can be obtained in a timely manner to facilitate the subsequent determination of the power supply mode.

[0109] In some embodiments, step 130 may include:

[0110] When the device information indicates that the operating current of the powered device is greater than the first current and less than the second current, determining that the power supply mode for supplying power to the powered device is the first power supply mode;

[0111] When the device information indicates that the operating current of the powered device is greater than or equal to the second current and less than or equal to the third current, determining that the power supply mode for supplying power to the powered device is the second power supply mode; wherein the output current of the power module in the second power supply mode is greater than the output current of the power module in the first power supply mode;

[0112] When the device information indicates that the operating current of the powered device is greater than the third current, the power supply mode for supplying power to the powered device is determined to be the third power supply mode; wherein the output current of the power module in the third power supply mode is greater than the output current of the power module in the second power supply mode.

[0113] The first current, the second current and the third current can meet the power supply current output of different types of powered devices and can be set according to actual needs. For example, the first current can be 1A, the second current can be 2A, and the third current can be 3A.

[0114] In the embodiment of the present disclosure, the corresponding power supply mode is determined according to the device information of the powered device, so that the power module outputs the corresponding power supply current, thereby meeting the power supply demand of the powered device.

[0115] In some embodiments, step 140 may include:

[0116] According to the power supply mode, the switching frequency and / or duty cycle of the power supply in the power supply module is adjusted.

[0117] In the embodiment of the present disclosure, the switching frequency and / or duty cycle of the power supply in the power module can be used to provide a power supply output that meets the power supply mode. For example, when the power supply current in the power supply mode is high, the switching frequency and / or duty cycle of the power supply in the power module can be increased to meet the power supply current output required by the power supply mode.

[0118] In some embodiments, the method further comprises:

[0119] When it is detected that the powered device plugged into the interface is unplugged, the power module is controlled to stop supplying power.

[0120] In the embodiment of the present disclosure, when it is detected that the powered device is unplugged from the interface, the power supply module is controlled to stop supplying power. The power supply can be stopped when no powered device is plugged in, so as to reduce the waste of power supply resources.

[0121] In some embodiments, when it is detected that a powered device plugged into the interface is unplugged, the power supply module can be controlled to stop supplying power through interrupt processing.

[0122] In the embodiment of the present disclosure, when it is detected that the powered device is unplugged from the interface, the power module can be controlled to stop supplying power through interrupt processing. In this way, the power supply to the interface of the powered device unplugged can be stopped in time through interrupt processing, thereby improving the safety of power supply.

[0123] At present, there is a phenomenon that the TV or the USB peripheral (USB-device) of the household appliance TV may be reset due to occasional overcurrent and / or overvoltage in the USB, which will seriously affect the safety of the peripheral device and the TV itself, and will also affect the user experience.

[0124] When the TV is in normal power-on state and the connected current specification is small, the USB chip (USB-Integrated Circuit Chip, USB-IC) will not overcurrent. This is mainly for some large mobile hard drives or mobile devices with high power requirements. The USB-IC will overcurrent when the TV is powered on, which will cause the USB peripherals to reset repeatedly, and even cause the TV to reset repeatedly.

[0125] Based on this, the present disclosure also provides a smart identification power supply method based on TV-USB. When the TV is connected to any USB peripheral device, it can intelligently identify the current demand required for connecting to the USB peripheral device, and supply power according to the pre-designed power supply mode, thereby solving the problem of peripherals and TV-reset caused by USB-IC overcurrent / overvoltage, and at the same time greatly improving the user experience. This method allows the TV USB port to intelligently identify the type of device connected and automatically adjust the power output and data transmission speed. When the USB exceeds the current limit of 1.5A, other channels can be selected for the TV-USB port to support existing mobile devices to maximize device protection and improve user experience.

[0126] Exemplarily, the TV here is one of the aforementioned smart home devices, and the USB peripheral here is one of the aforementioned powered devices.

[0127] like Figure 4 , which is a schematic diagram of a framework of an intelligent identification and power supply method based on TV-USB provided in an embodiment of the present disclosure.

[0128] The specific process of a TV-USB-based intelligent identification power supply method provided by the present disclosure is as follows:

[0129] Process 1:

[0130] 1. Initialize the USB host controller: Initialize the USB host controller on the main chip (such as the MTK-5867 chip) so that it can detect the insertion and removal events of USB devices (such as USB flash drives, mobile hard drives, and other storage peripherals).

[0131] 2. Detect USB insertion events: When a USB device is inserted into the USB interface of the main chip, the main chip will detect the insertion event and trigger the corresponding interrupt.

[0132] 3. Interrupt handler: The main chip will call the interrupt handler to handle the USB insertion event. In the interrupt handler, the main chip will send a device descriptor request to the USB device to obtain basic information about the device.

[0133] 4. Device descriptor: The USB device returns a device descriptor, which contains the device's power requirements (the bMaxPower field indicates the required power information). The main chip parses the bMaxPower field included in the device descriptor to obtain the device's power requirements.

[0134] 5. Power supply requirement information: The main chip will tell USB-PM to perform the software operation of the second process through IIC communication according to the power supply requirement information of the device.

[0135] 6. USB unplug event: When the USB device is unplugged from the USB interface of the main chip, the main chip will detect the unplug event and trigger the corresponding interrupt. In the interrupt handler, the main chip will notify the USB-PM to turn off the power output of the USB interface to protect the device and the main chip.

[0136] Exemplarily, the main chip here is a type of the aforementioned first control module, the USB device here is a type of the aforementioned powered device, the USB interface here is a type of the aforementioned interface, the interrupt handler here is a type of the aforementioned interrupt handler, the device descriptor request here is a type of the aforementioned query request, the power supply requirement information here is a type of the aforementioned power supply parameter, the device descriptor here is a type of the aforementioned device information, the IIC here is a type of the aforementioned bus, and the USB-PM here is a type of the aforementioned second control module.

[0137] The specific process of process 1 is as follows Figure 5 As shown, including:

[0138] Step 210: TV-SOC initializes USB;

[0139] Step 220: TV-SOC detection plugging and unplugging;

[0140] Step 230: triggering an interrupt to obtain power supply information;

[0141] Step 240: Inform the USB-PM to select a power supply output.

[0142] In the disclosed embodiment, in order to make the TV-SOC and the USB-PM communicate via IIC, they need to be connected on the same IIC bus.

[0143] like Figure 6 , which is a schematic diagram of the connection relationship between a TV-SOC and a USB-PM provided by an embodiment of the present disclosure.

[0144] Process 2:

[0145] 1. Connect the SDA and SCL pins of the TV-SOC and USB power management chip to the SDA and SCL pins of the same IIC bus respectively.

[0146] 2. Determine the power and ground pins of the IIC bus and connect them to the corresponding pins of the SOC and USB power management chip.

[0147] In step 5 of process 1: After USB-PM receives the communication content of SOC-IIC, it will select the corresponding power supply mode according to the required power demand and output the corresponding current 1A / 2A / 3A to the USB peripheral.

[0148] like Figure 7 FIG. 1 is a flow chart of a method for intelligently identifying and powering a TV-USB device according to an embodiment of the present disclosure. Figure 2 .

[0149] Process 3:

[0150] After receiving the current demand signal transmitted by the SOC main chip IIC, it makes a judgment based on the transmitted current demand signal:

[0151] When bMaxPower>500mA, USB-PM configures the register to output the switching frequency and duty cycle corresponding to 1A, thereby achieving the required output current of 1A;

[0152] When bMaxPower>1000mA, USB-PM configures the register to output the switching frequency and duty cycle corresponding to 2A, thereby achieving the required output current of 2A;

[0153] When bMaxPower>1500mA, USB-PM configures the register to output the switching frequency and duty cycle corresponding to 3A, thereby achieving the required output current of 3A.

[0154] The intelligent identification power supply method based on TV-USB provided in the embodiment of the present disclosure enables the USB interface to automatically adjust the output current and voltage according to the needs of the device to meet the power supply needs of the device. In this way, different power outputs can be provided for different types of devices through USB intelligent power supply, thereby protecting the devices from damage caused by overcurrent and overvoltage. At the same time, it also greatly improves the user experience of TV users;

[0155] In the present disclosure, Figure 8 As shown, an electronic device 700 is provided, including:

[0156] Memory 704 for storing processor executable instructions;

[0157] A processor 720 connected to the memory 704;

[0158] The processor 720 is configured to execute the device power supply method provided by any of the aforementioned technical solutions.

[0159] is a block diagram of an electronic device 700 according to an exemplary embodiment. For example, the device 700 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.

[0160] Reference Figure 8 , the device 700 may include one or more of the following components: a processing component 702 , a memory 704 , a power component 706 , a multimedia component 708 , an audio component 710 , an input / output (I / O) interface 712 , a sensor component 714 , and a communication component 716 .

[0161] The processing component 702 generally controls the overall operation of the device 700, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 702 may include one or more processors 720 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 702 may include one or more modules to facilitate the interaction between the processing component 702 and other components. For example, the processing component 702 may include a multimedia module to facilitate the interaction between the multimedia component 708 and the processing component 702.

[0162] The memory 704 is configured to store various types of data to support operations on the device 700. Examples of such data include instructions for any application or method operating on the device 700, contact data, phone book data, messages, pictures, videos, etc. The memory 704 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0163] The power component 706 provides power to the various components of the device 700. The power component 706 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 700.

[0164] The multimedia component 708 includes a screen that provides an output interface between the device 700 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 708 includes a front camera and / or a rear camera. When the device 700 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.

[0165] The audio component 710 is configured to output and / or input audio signals. For example, the audio component 710 includes a microphone (MIC), and when the device 700 is in an operating mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 704 or sent via the communication component 716. In some embodiments, the audio component 710 also includes a speaker for outputting audio signals.

[0166] I / O interface 712 provides an interface between processing component 702 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.

[0167] The sensor assembly 714 includes one or more sensors for providing various aspects of status assessment for the device 700. For example, the sensor assembly 714 can detect the open / closed state of the device 700, the relative positioning of components, such as the display and keypad of the device 700, and the sensor assembly 714 can also detect the position change of the device 700 or a component of the device 700, the presence or absence of user contact with the device 700, the orientation or acceleration / deceleration of the device 700, and the temperature change of the device 700. The sensor assembly 714 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 714 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 714 may also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0168] The communication component 716 is configured to facilitate wired or wireless communication between the device 700 and other devices. The device 700 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 716 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 716 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0169] In an exemplary embodiment, the apparatus 700 may be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components to perform the above methods.

[0170] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 704 including instructions, and the instructions can be executed by the processor 720 of the device 700 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0171] An embodiment of the present disclosure provides a non-temporary computer-readable storage medium. When instructions in the storage medium are executed by a processor of a computer, the computer is enabled to execute the device power supply method described in one or more of the aforementioned technical solutions.

[0172] When the processor executes the instruction, it can at least perform the following steps:

[0173] Detect whether there is a powered device plugged into the interface;

[0174] When it is detected that a powered device is plugged into the interface, reading device information of the powered device;

[0175] Determining a power supply mode for supplying power to the powered device according to the device information;

[0176] According to the power supply mode, the power supply module of the smart home device is controlled to supply power to the powered device.

[0177] In some embodiments, when it is detected that a powered device is plugged into the interface, reading device information of the powered device includes:

[0178] When it is detected that a powered device is plugged into the interface, an interrupt process is triggered;

[0179] Based on the interrupt processing, device information of the power receiving device is read.

[0180] In some embodiments, the reading device information of the powered device based on the interrupt processing includes:

[0181] Sending a query request to the powered device via the interface;

[0182] The device information returned by the powered device based on the query request is received.

[0183] In some embodiments, determining, according to the device information, a power supply mode for supplying power to the powered device includes:

[0184] When the device information indicates that the operating current of the powered device is greater than the first current and less than the second current, determining that the power supply mode for supplying power to the powered device is the first power supply mode;

[0185] When the device information indicates that the working current of the powered device is greater than or equal to the second current and less than or equal to the third current, determining that the power supply mode for supplying power to the powered device is the second power supply mode; wherein the output current of the power module in the second power supply mode is greater than the output current of the power module in the first power supply mode;

[0186] When the device information indicates that the operating current of the powered device is greater than the third current, the power supply mode for supplying power to the powered device is determined to be the third power supply mode; wherein the output current of the power module in the third power supply mode is greater than the output current of the power module in the second power supply mode.

[0187] In some embodiments, controlling the power module of the smart home device to supply power to the powered device according to the power supply mode includes:

[0188] According to the power supply mode, the switching frequency and / or duty cycle of the power supply in the power supply module is adjusted.

[0189] In some embodiments, the method further comprises:

[0190] When it is detected that the powered device plugged into the interface is unplugged, the power module is controlled to stop supplying power.

[0191] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. The present disclosure is intended to cover any variations, uses or adaptations of the present disclosure, which 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 specification and examples are intended to be exemplary only, and the true scope and spirit of the present disclosure are indicated by the attached application documents.

[0192] It should be understood that the present disclosure is not limited to the precise 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 attached application documents.

Claims

1. A smart home device, characterized in that: include: Power module; An interface for connecting to a powered device; a first control module connected to the interface, configured to obtain device information of a powered device plugged into the interface, and determine a power supply mode of the powered device according to the device information; The second control module is connected to the first control module and the power module respectively, and is used to control the power module to supply power to the powered device according to the power supply mode.

2. The device according to claim 1, characterized in that The first control module is connected to the second control module via a bus.

3. The device according to claim 2, characterized in that The bus is an IIC integrated circuit bus.

4. The device according to claim 1, characterized in that The first control module is specifically configured to trigger an interrupt process when detecting that the powered device is plugged into the interface, and read device information of the powered device based on the interrupt process.

5. The device according to any one of claims 1 to 4, characterized in that The interface is a USB universal serial bus interface.

6. A device power supply method, characterized in that: The method is performed by the smart home device according to any one of claims 1 to 5, and comprises: Detect whether there is a powered device plugged into the interface; When it is detected that a powered device is plugged into the interface, reading device information of the powered device; Determining a power supply mode for supplying power to the powered device according to the device information; According to the power supply mode, the power supply module of the smart home device is controlled to supply power to the powered device.

7. The method according to claim 6, characterized in that When it is detected that a powered device is plugged into the interface, reading device information of the powered device includes: When it is detected that a powered device is plugged into the interface, an interrupt process is triggered; Based on the interrupt processing, device information of the power receiving device is read.

8. The method according to claim 7, characterized in that The reading the device information of the powered device based on the interrupt processing includes: Sending a query request to the powered device via the interface; The device information returned by the powered device based on the query request is received.

9. The method according to claim 6, characterized in that The determining, according to the device information, a power supply mode for supplying power to the powered device includes: When the device information indicates that the operating current of the powered device is greater than the first current and less than the second current, determining that the power supply mode for supplying power to the powered device is the first power supply mode; When the device information indicates that the operating current of the powered device is greater than or equal to the second current and less than or equal to the third current, determining that the power supply mode for supplying power to the powered device is the second power supply mode; wherein the output current of the power module in the second power supply mode is greater than the output current of the power module in the first power supply mode; When the device information indicates that the operating current of the powered device is greater than the third current, the power supply mode for supplying power to the powered device is determined to be the third power supply mode; wherein the output current of the power module in the third power supply mode is greater than the output current of the power module in the second power supply mode.

10. The method according to claim 6, characterized in that According to the power supply mode, controlling the power supply module of the smart home device to supply power to the powered device includes: According to the power supply mode, the switching frequency and / or duty cycle of the power supply in the power supply module is adjusted.

11. The method according to claim 6, characterized in that The method further comprises: When it is detected that the powered device plugged into the interface is unplugged, the power module is controlled to stop supplying power.

12. An electronic device, characterized in that: include: a memory storing computer-readable instructions; A processor, connected to the memory, is configured to implement the method according to any one of claims 6 to 11 by executing the computer-readable instructions.

13. A computer storage medium, characterized in that: The computer storage medium stores computer executable instructions; after the computer executable instructions are executed by the processor, the method described in any one of claims 6 to 11 can be implemented.