Intelligent socket and control method
By combining power line communication and Bluetooth Low Energy modules, the smart socket enables flexible communication mode selection and infrared reception, solving the problems of latency and inaccurate control in existing technologies, and improving user experience and energy efficiency.
Patent Information
- Application Number
- CN202511397018.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-09-26
- Publication Date
- 2025-11-14
AI Technical Summary
Existing smart sockets suffer from excessive latency or ineffective control due to broadband power line carrier communication, resulting in control commands not being implemented in a timely and accurate manner, thus affecting user experience.
By combining a power line communication module and a Bluetooth Low Energy module, the appropriate communication method is selected based on signal strength and delay threshold. Combined with an infrared receiving module to capture remote control commands, a reinforcement learning algorithm is used for power consumption prediction and temperature regulation, thus achieving a dual encryption mechanism.
It improves the timeliness and accuracy of control commands, enhances the user experience, expands the control range, improves energy efficiency and compatibility, and reduces the risk of data tampering.
Smart Images

Figure CN120955423A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of smart socket technology, and more particularly to a smart socket and its control method. Background Technology
[0002] Currently, smart sockets, with their timed or remote power-on / off control functions, enable smart home appliances and energy-saving practices.
[0003] In existing technologies, broadband power line carrier communication is generally used. However, in practical applications, due to excessively long transmission paths and interference, smart sockets often suffer from high latency or ineffective control, resulting in control commands not being implemented in a timely and accurate manner, which seriously affects the user experience. Summary of the Invention
[0004] In view of this, embodiments of this application provide a smart socket and a control method to solve the problem in the prior art where smart sockets have excessive time delays or cannot be effectively controlled, resulting in control commands not being implemented in a timely and accurate manner.
[0005] A first aspect of this application provides a smart socket, comprising: The power line communication module is used to enable broadband power line carrier communication between the smart socket and the terminal device; Bluetooth Low Energy module is used to enable Bluetooth wireless connection between the smart socket and terminal devices; The main control processor is electrically connected to both the power line communication module and the Bluetooth Low Energy module, and is used to select either the power line communication module or the Bluetooth Low Energy module to communicate with the terminal device based on signal strength and / or a preset delay threshold.
[0006] In one possible implementation, the Bluetooth Low Energy module is used to extend the controllable range of the smart socket using a Bluetooth Mesh network.
[0007] In one possible implementation, the smart socket also includes at least one of the following: The infrared receiving module is electrically connected to the main control processor. It is used to receive the first control command from the infrared controller and send the first control command to the main control processor, so that the main control processor determines the device status of the electrical equipment corresponding to the first control command based on the first control command and updates the device status to the terminal device. The infrared transmitting module is electrically connected to the main control processor and is used to send a second control command to the electrical equipment under the control of the main control processor to adjust the working mode of the electrical equipment.
[0008] In one possible implementation, the smart socket also includes: a metering and detection module; The metering and detection module is used to collect power consumption information of electrical devices connected to the smart socket; the power consumption information includes at least one of current, voltage and power.
[0009] In one possible implementation, the main control processor is further configured to encrypt and store the power consumption information using a preset symmetric encryption method if the current communication is via a power line communication module; and to encrypt and store the power consumption information using a preset elliptic curve key exchange method if the current communication is via a Bluetooth Low Energy module.
[0010] In one possible implementation, the smart socket also includes: The power on / off control module is electrically connected to the main control processor and is used to control the power supply to the electrical devices connected to the smart socket under the control of the main control processor.
[0011] In one possible implementation, the main control processor is also used to predict the power consumption of the electrical equipment based on the power consumption information of the electrical equipment using a preset reinforcement learning algorithm, and determine the power consumption prediction information; based on the power consumption prediction information, it controls the on / off of the relays of the power supply on / off control module to control the power supply to the electrical equipment.
[0012] In one possible implementation, the smart socket also includes: a temperature detection module electrically connected to the main control processor; The temperature detection module is used to detect the ambient temperature of the electrical equipment connected to the smart socket, obtain the ambient temperature information, and send the ambient temperature information to the main control processor; The main control processor is also used to determine the second control command based on the ambient temperature information, and control the infrared emitting module to send the second control command to the electrical equipment to adjust the working mode of the electrical equipment.
[0013] A second aspect of this application provides a control method applied to the smart socket of the first aspect, the control method comprising: Based on signal strength and / or a preset delay threshold, the system selects to communicate with the terminal device via a power line communication module or a Bluetooth Low Energy module.
[0014] In one possible implementation, the control method also includes at least one of the following: If the current communication is via a power line communication module, the power consumption information of the electrical equipment will be encrypted and stored using a preset symmetric encryption method; if the current communication is via a Bluetooth Low Energy module, the power consumption information will be encrypted and stored using a preset elliptic curve key exchange method. Based on the power consumption information of electrical equipment, a preset reinforcement learning algorithm is used to predict the power consumption of electrical equipment and determine the power consumption prediction information; based on the power consumption prediction information, the relay of the power supply on / off control module is controlled to control the power supply to the electrical equipment. Based on the first control command of the infrared controller, determine the equipment status of the electrical equipment corresponding to the first control command, and update the equipment status to the terminal equipment; Based on the ambient temperature information detected by the temperature detection module, a second control command is determined, and the infrared emitting module is controlled to send the second control command to the electrical equipment to adjust the working mode of the electrical equipment.
[0015] The beneficial effects of the embodiments in this application compared with the prior art are: The smart socket of the first aspect of this application includes a power line communication module, a Bluetooth Low Energy module, and a main controller processor. The main controller can choose to communicate with the terminal device through the power line communication module or the Bluetooth Low Energy module based on the signal strength and / or a preset delay threshold.
[0016] Because power line communication modules have the advantages of wide coverage and long transmission distance, while Bluetooth Low Energy modules are mainly used for short-range data transmission, this application embodiment can combine power line communication modules and Bluetooth Low Energy modules to provide a more reliable communication method for smart sockets. The smart socket can automatically select the appropriate communication method based on signal strength and / or a preset delay threshold to ensure that control commands can be implemented in a timely and accurate manner, thereby improving the user experience.
[0017] It is understandable that the beneficial effects of the second aspect mentioned above can be found in the relevant descriptions in the first aspect mentioned above, and will not be repeated here. Attached Figure Description
[0018] To more clearly illustrate the technical solutions in the embodiments of this application, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0019] Figure 1 This is a schematic diagram of the structure of a smart socket provided in an embodiment of this application; Figure 2 This is a schematic diagram of another smart socket provided in an embodiment of this application; Figure 3 This is a schematic diagram of the structure of another smart socket provided in the embodiments of this application; Figure 4This is a schematic diagram of a communication system provided in an embodiment of this application; Figure 5 This is a flowchart of a control method provided in an embodiment of this application; Figure 6 This is a schematic diagram of a main control processor provided in an embodiment of this application.
[0020] Figure label: 1- Smart socket; 11-Power line communication module; 12-Bluetooth Low Energy Module; 13-Main controller processor; 14-Infrared control module, 141-Infrared receiver module, 142-Infrared transmitter module; 15-Metrology and Testing Module; 16-Power on / off control module; 17-Temperature detection module. Detailed Implementation
[0021] In the following description, specific details such as particular system architectures and techniques are set forth for illustrative purposes and not for limitation, in order to provide a thorough understanding of the embodiments of this application. However, those skilled in the art will understand that this application may also be implemented in other embodiments without these specific details. In other instances, detailed descriptions of well-known systems, apparatuses, circuits, and methods have been omitted so as not to obscure the description of this application with unnecessary detail.
[0022] It should be understood that, when used in this application specification and the appended claims, the term "comprising" indicates the presence of the described features, integrals, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integrals, steps, operations, elements, components and / or a collection thereof.
[0023] It should also be understood that the term “and / or” as used in this application specification and the appended claims means any combination of one or more of the associated listed items and all possible combinations, and includes such combinations.
[0024] As used in this application specification and the appended claims, the term "if" may be interpreted, depending on the context, as "when," "once," "in response to determination," or "in response to detection." Similarly, the phrase "if determined" or "if detected [the described condition or event]" may be interpreted, depending on the context, as meaning "once determined," "in response to determination," "once detected [the described condition or event]," or "in response to detection [the described condition or event]."
[0025] Furthermore, in the description of this application and the appended claims, the terms "first," "second," "third," etc., are used only to distinguish descriptions and should not be construed as indicating or implying relative importance.
[0026] References to "one embodiment" or "some embodiments" as described in this specification mean that one or more embodiments of this application include a specific feature, structure, or characteristic described in connection with that embodiment. Therefore, the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in still other embodiments," etc., appearing in different parts of this specification do not necessarily refer to the same embodiment, but rather mean "one or more, but not all, embodiments," unless otherwise specifically emphasized. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless otherwise specifically emphasized.
[0027] The technical solution of this application and how it solves the above-mentioned technical problems are described in detail below with specific embodiments. It should be noted that the following embodiments can be referenced, borrowed, or combined with each other, and the same terms, similar features, and similar implementation steps in different embodiments will not be described again.
[0028] See Figure 1 As shown in the diagram, this application provides a schematic diagram of the structure of a smart socket 1. Figure 1 As shown, the smart socket 1 includes: a power line communication module 11, a Bluetooth low power module 12, and a main control processor 13.
[0029] Power line communication module 11 is used to enable broadband power line carrier communication between smart socket 1 and terminal device; Bluetooth Low Energy module 12 is used to connect smart socket 1 to terminal device via Bluetooth wireless connection; The main control processor 13 is electrically connected to both the power line communication module 11 and the Bluetooth Low Energy module 12. The main control processor 13 is used to select either the power line communication module 11 or the Bluetooth Low Energy module 12 to communicate with the terminal device based on the signal strength and / or a preset delay threshold.
[0030] Optionally, signal strength refers to the strength of the communication connection signal, and a suitable communication module is selected based on the signal strength; delay threshold refers to the threshold for data transmission delay, and the communication module can be switched if the delay threshold is exceeded. For example, when high latency occurs in remote communication via the power line communication module 11, near-field control can be performed via the Bluetooth Low Energy module 12.
[0031] Optionally, the power line communication module 11 can communicate between the main control processor 13 and the broadband power line carrier to enable remote control of the smart socket 1 by the APP (Application) of the terminal device (e.g., mobile phone).
[0032] The Bluetooth Low Energy module 12 is used for Bluetooth wireless communication, enabling the terminal device APP to control the smart socket 1 in the near field.
[0033] The power line communication module 11 uses a PLC (Power Line Communication), a technology that utilizes existing power lines for data transmission. It achieves both power transmission and data communication by superimposing data signals onto the power line. It features wide coverage and long transmission distance.
[0034] The Bluetooth Low Energy module 12 uses BLE (Bluetooth Low Energy), a low-power wireless communication protocol mainly used for short-range data transmission.
[0035] The smart socket 1 is a socket that intelligently controls and monitors electrical energy. It achieves safe and energy-saving effects by intelligently regulating the electrical devices connected to the socket.
[0036] The smart socket 1 in this embodiment includes a power line communication module 11, a Bluetooth Low Energy module 12, and a main controller processor 13. The main controller can choose to communicate with the terminal device through the power line communication module 11 or the Bluetooth Low Energy module 12 based on the signal strength and / or a preset delay threshold.
[0037] Since the power line communication module 11 has the characteristics of wide coverage and long transmission distance, and the Bluetooth low power module 12 is mainly used for short-distance data transmission, the embodiments of this application can combine the power line communication module 11 and the Bluetooth low power module 12 to provide a more reliable communication method for the smart socket 1. The smart socket 1 can automatically select the appropriate communication method to communicate according to the signal strength and / or the preset delay threshold, ensuring that the control commands can be implemented in a timely and accurate manner, and improving the user experience.
[0038] Furthermore, this embodiment combines PLC and BLE to provide a more reliable communication method for the smart socket 1. PLC is suitable for large-area coverage and stable transmission, while BLE is suitable for short-range, fast response. Users can choose different methods according to their actual needs, improving the flexibility and convenience of use.
[0039] In some embodiments, the Bluetooth Low Energy module 12 is used to extend the controllable range of the smart socket 1 using a Bluetooth Mesh network.
[0040] Optionally, the Bluetooth Low Energy module 12 supports BLE 5.0 communication, supports Mesh networking, and has a maximum of 32 nodes.
[0041] Optionally, the main control processor 13 integrates a broadband PLC, which adopts OFDM technology, operates in the frequency band of 2~12MHz, and has a transmission rate of 1Mbps, for exchanging data with the smart gateway; externally, it has multiple serial ports and GPIO ports for communication and control of various modules.
[0042] OFDM (Orthogonal Frequency Division Multiplexing) is a multi-carrier transmission technology primarily used for high-speed data transmission. GPIO (General-purpose input / output) is an interface widely used in embedded systems.
[0043] See Figure 2 As shown in the diagram, this application provides another structural schematic diagram of a smart socket 1. See also... Figure 2 As shown, the smart socket 1 also includes at least one of the following: The infrared receiving module 141 is electrically connected to the main control processor 13. The infrared receiving module 141 is used to receive the first control command of the infrared controller and send the first control command to the main control processor 13, so that the main control processor 13 determines the device status of the electrical equipment corresponding to the first control command based on the first control command and updates the device status to the terminal device. The infrared emitting module 142 is electrically connected to the main control processor 13. Under the control of the main control processor 13, the infrared emitting module 142 is used to send a second control command to the electrical equipment to adjust the working mode of the electrical equipment.
[0044] Alternatively, the infrared controller can be a remote control that issues infrared control commands.
[0045] As an example, such as Figure 2 As shown, the smart socket 1 includes an infrared control module 14, which includes an infrared receiving module 141 and an infrared transmitting module 142.
[0046] The infrared control module 14 is used to connect to electrical equipment with infrared control function to realize the function of intelligent control of the electrical equipment. The infrared control module 14 mainly includes an infrared universal code IC (integrated circuit, chip), an infrared transmitting drive circuit, and an infrared receiving drive circuit.
[0047] The infrared transmitting module 142 includes an infrared emitting diode, and the infrared receiving module 141 includes an infrared receiving tube. The infrared universal encoding IC is an IC that integrates common infrared device encoding libraries, and has infrared emitting pins and infrared receiving pins, which connect to the infrared emitting diode and the infrared receiving tube to transmit and receive control commands respectively.
[0048] See Figure 3 As shown in the diagram, this application provides a structural schematic of another smart socket 1. Figure 3 As shown, the smart socket 1 also includes a metering and detection module 15.
[0049] The metering and detection module 15 is used to collect power consumption information of electrical devices connected to the smart socket 1; the power consumption information includes at least one of current, voltage and power.
[0050] Optionally, the metering and detection module 15 mainly includes a metering and detection IC, a voltage acquisition circuit, and a current acquisition circuit. The accuracy of the metering and detection IC can reach 0.5S level. The voltage acquisition circuit is implemented by resistor voltage division. The current acquisition circuit is acquired by converting and collecting the voltage difference generated by the current flowing across the sampling resistor. The sampling resistor uses 1 milliohm.
[0051] In some embodiments, the main control processor 13 is further configured to encrypt and store the power consumption information using a preset symmetric encryption method if the current communication is through the power line communication module 11; and to encrypt and store the power consumption information using a preset elliptic curve key exchange method if the current communication is through the Bluetooth Low Energy module 12.
[0052] Optionally, this application embodiment employs a dual encryption mechanism: the power line communication module 11 uses AES-256 encryption, and the Bluetooth Low Energy module 12 integrates ECC elliptic curve key exchange to prevent data tampering.
[0053] See Figure 3 As shown, the smart socket 1 also includes a power on / off control module 16. The power on / off control module 16 is electrically connected to the main control processor 13, and is used to control the power supply to the electrical devices connected to the smart socket 1 under the control of the main control processor 13.
[0054] Optionally, the power on / off control module 16 also has the function of supplying power to the smart socket 1. The power on / off control module 16 mainly includes a power conversion section, a relay and a drive circuit. The power conversion section is an AC-DC conversion, implemented using a non-isolated scheme, to provide power to the smart socket 1. The relay controls the live wire, and the drive circuit controls the on / off state.
[0055] In some embodiments, the main control processor 13 is further configured to predict the power consumption of the electrical equipment based on the power consumption information of the electrical equipment using a preset reinforcement learning algorithm, and determine the power consumption prediction information; based on the power consumption prediction information, control the on / off of the relay of the power supply on / off control module 16 to control the power supply of the electrical equipment.
[0056] Optionally, the main control processor 13 can monitor the real-time power and start / stop status of the electrical equipment through the metering and detection module 15, establish a model system for the electrical equipment through reinforcement learning algorithms, predict the power consumption in advance, and dynamically adjust the on / off state of the relays to realize the energy-saving strategy function.
[0057] In some embodiments, the smart socket 1 further includes a temperature detection module 17 electrically connected to the main control processor 13; The temperature detection module 17 is used to detect the ambient temperature of the electrical equipment connected to the smart socket 1, obtain the ambient temperature information, and send the ambient temperature information to the main control processor 13; The main control processor 13 is also used to determine the second control command based on the ambient temperature information, and control the infrared emitting module 142 to send the second control command to the electrical equipment to adjust the working mode of the electrical equipment.
[0058] As an example, the temperature detection module 17 is used to sense the external ambient temperature and realize the function of intelligent control of the air conditioning equipment based on the external ambient temperature.
[0059] The temperature detection module 17 is implemented using an NTC (Negative Temperature Coefficient) and a voltage divider circuit. The NTC is led out using a long lead wire and fixed to a suitable part of the outer shell of the smart socket 1. The NTC is a thermistor, and its resistance value changes with temperature.
[0060] In practical applications, the smart socket 1 can detect the external ambient temperature through NTC and dynamically adjust the functions of high-power devices such as air conditioners through the infrared emitting module 142, thereby adjusting the working mode of the air conditioner in different environments and saving the power consumption of the air conditioner.
[0061] See Figure 4 As shown, this application provides a schematic diagram of a communication system. Figure 4As shown, the socket is a smart socket 1 compatible with PLC and BLE communication. The PLC remote control primarily utilizes a link from the metering master station to the concentrator, then to the meter, then to the gateway, and finally to smart socket 1. This involves two sets of PLC communication between the CCO (Network Master Node) and STA (Network Sub-Node). The concentrator's CCO module and the meter's STA module form one PLC communication set, while the gateway's CCO module and the socket's STA module form the second. Data communication between the gateway and the meter is via UART (Universal Asynchronous Receiver / Transmitter). BLE near-field communication is achieved directly via Bluetooth connection between a mobile phone and smart socket 1, enabling near-field control via a mobile app. Smart socket 1 connects to the electrical equipment.
[0062] In summary, the technical solutions of the embodiments of this application mainly include: (1) Dynamic switching capability: Based on signal strength and / or delay threshold, automatically select PLC (remote) or BLE (near field) communication to ensure that control commands can be accurately implemented.
[0063] (2) Collaborative relay technology: The controllable range of smart socket 1 is extended by BLE Mesh networking to solve the communication blind spots in the signal attenuation area.
[0064] (3) Two-way infrared sensing capability: Integrates infrared receiving function to capture control commands from remote control in real time and update device status to APP in sync, solving the problem of status asynchronization; at the same time, it supports infrared learning to identify and store unknown infrared codes, improving compatibility.
[0065] (4) Dynamic load optimization capability: Based on the real-time power of the electrical equipment, the peak power consumption is predicted by the reinforcement learning algorithm, and the relay switching strategy is dynamically adjusted to save energy; at the same time, the working mode of the electrical equipment is adjusted by the ambient temperature.
[0066] (5) Dual encryption mechanism: The PLC uses AES-256 encryption and BLE integrates ECC elliptic curve key exchange to prevent data tampering.
[0067] Based on the embodiments of this application, the corresponding technical solutions are proposed to address the following technical problems: (1) Communication delay and stability issues: In practical applications, the broadband power line carrier used in the existing technology may cause excessive delay or be unable to be effectively controlled due to the long transmission path and interference, which seriously affects the user experience.
[0068] The embodiments of this application can be designed to be BLE compatible, allowing users to quickly and effectively control the corresponding electrical devices by directly connecting their mobile phones to the smart socket 1 via Bluetooth in daily life, thereby solving this technical problem.
[0069] This application embodiment achieves near-field control through BLE. When high latency occurs in remote communication with the PLC, local control can be achieved through Bluetooth BLE Mesh networking, reducing the latency to within 50ms and increasing the signal coverage range by 30%.
[0070] (2) Limitations of infrared function: The infrared part of the existing technology only has the transmitting part, which cannot sense the state of the electrical appliance changed by other devices (such as remote control) during the user's use, resulting in the control command being out of sync with the actual state, affecting the user's user experience.
[0071] Therefore, the present invention is designed to be compatible with infrared receivers, and an infrared receiver module 141 is set up. By adding infrared receiving function, the infrared receiving response time is <100ms, and the device status synchronization error rate is reduced to below 1%.
[0072] (3) Insufficient energy management capabilities: Existing technologies lack dynamic optimization functions for electrical loads, resulting in low energy efficiency.
[0073] Therefore, the embodiments of this application are designed with reinforcement learning algorithms to achieve energy saving. In daily use, the load power consumption can be adjusted according to the environment to improve energy efficiency. The dynamic load optimization function of the embodiments of this application can reduce power consumption by 20% (compared to ordinary sockets).
[0074] See Figure 5 As shown, this application provides a flowchart of a control method. The control method of this application embodiment is applied to the smart socket 1 of this application embodiment. Figure 5 As shown, the control method of this application embodiment includes: step S501.
[0075] S501. Based on signal strength and / or a preset delay threshold, select to communicate with the terminal device via the power line communication module 11 or the Bluetooth Low Energy module 12.
[0076] The control method of this application embodiment is applied to the main control processor 13 and can realize the functions of the main control processor 13.
[0077] In some embodiments, the control method further includes at least one of the following: If the current communication is through the power line communication module 11, the power consumption information of the electrical equipment is encrypted and stored using a preset symmetric encryption method; if the current communication is through the Bluetooth Low Energy module 12, the power consumption information is encrypted and stored using a preset elliptic curve key exchange method. Based on the power consumption information of the electrical equipment, a preset reinforcement learning algorithm is used to predict the power consumption of the electrical equipment and determine the power consumption prediction information; based on the power consumption prediction information, the relay of the power supply on / off control module 16 is controlled to control the power supply to the electrical equipment. Based on the first control command of the infrared controller, determine the equipment status of the electrical equipment corresponding to the first control command, and update the equipment status to the terminal equipment; Based on the ambient temperature information detected by the temperature detection module 17, a second control command is determined, and the infrared emitting module 142 is controlled to send the second control command to the electrical equipment to adjust the working mode of the electrical equipment.
[0078] See Figure 6 As shown, this application embodiment provides a schematic diagram of the structure of a main control processor 13. Figure 6 As shown, the main control processor 13 in this application embodiment includes: a memory 132, a processor 131, and a computer program 133 stored in the memory 132 and executable on the processor 131. When the processor 131 executes the computer program, it implements the steps of the methods in the various embodiments of this application.
[0079] The main control processor 13 may include, but is not limited to, a processor 131 and a memory 132. Those skilled in the art will understand that... Figure 6 This is merely an example of the main control processor 13 and does not constitute a limitation on the main control processor 13. It may include more or fewer components than shown, or combine certain components, or different components, such as input / output devices, network access devices, etc.
[0080] The processor 131 can be a Central Processing Unit (CPU), but it can also be other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor can be a microprocessor or any conventional processor.
[0081] In some embodiments, memory 132 may be an internal storage unit, such as a hard disk or RAM. Memory 132 may be a removable / non-removable, volatile / non-volatile computer system storage medium; for example, memory 132 may be a non-volatile memory used for reading and writing non-volatile magnetic media. In other embodiments, memory 132 may be an external storage device, such as a pluggable hard disk on the main controller processor 13, a Smart Media Card (SMC), a Secure Digital (SD) card, a Flash Card, etc. Memory 132 is used to store the operating system, applications, bootloader, data, and other programs, such as program code for computer programs. Memory 132 may also be used to temporarily store data that has been output or will be output.
[0082] It should be noted that the information interaction and execution process between the above-mentioned devices / units are based on the same concept as the method embodiments of this application. For details on their specific functions and technical effects, please refer to the method embodiments section, and they will not be repeated here.
[0083] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the above-described division of functional units and modules is merely an example. In practical applications, the above functions can be assigned to different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiments can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit. Furthermore, the specific names of the functional units and modules are only for easy differentiation and are not intended to limit the scope of protection of this application. The specific working process of the units and modules in the above system can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.
[0084] This application also provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps in the above-described method embodiments.
[0085] If the integrated units described above are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a computer-readable storage medium, and when executed by a processor, it can implement the steps of the various method embodiments described above. The computer program includes computer program code, which can be in the form of source code, object code, executable files, or certain intermediate forms. The computer-readable medium can include at least: any entity or device capable of carrying computer program code to a device / terminal equipment, a recording medium, a computer memory, a read-only memory (ROM), a random access memory (RAM), an electrical carrier signal, a telecommunication signal, and a software distribution medium. Examples include USB flash drives, portable hard drives, magnetic disks, or optical disks.
[0086] Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above methods. The storage medium can be a magnetic disk, optical disk, read-only memory (ROM), random access memory (RAM), flash memory, hard disk drive (HDD), or solid-state drive (SSD), etc. The storage medium can also include combinations of the above types of memory.
[0087] This application provides a computer program product that, when run on a processor, enables the processor to execute the steps described in the various method embodiments above.
[0088] In the above embodiments, the descriptions of each embodiment have different focuses. For parts that are not described in detail or recorded in a certain embodiment, please refer to the relevant descriptions of other embodiments.
[0089] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0090] In the embodiments provided in this application, it should be understood that the disclosed apparatus / network devices and methods can be implemented in other ways. For example, the apparatus / network device embodiments described above are merely illustrative. For instance, the division of modules or units described above is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between devices or units may be electrical, mechanical, or other forms.
[0091] The units described above as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0092] The above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application, and should all be included within the protection scope of this application.
Claims
1. A smart socket, characterized in that, include: A power line communication module is used to perform broadband power line carrier communication between the smart socket and the terminal device; A Bluetooth Low Energy module is used to connect the smart socket to the terminal device via Bluetooth wireless connection; The main control processor is electrically connected to both the power line communication module and the Bluetooth Low Energy module, and is used to select either the power line communication module or the Bluetooth Low Energy module to communicate with the terminal device based on signal strength and / or a preset delay threshold.
2. The smart socket according to claim 1, characterized in that, The Bluetooth Low Energy module is used to extend the controllable range of the smart socket using a Bluetooth Mesh network.
3. The smart socket according to claim 1, characterized in that, It also includes at least one of the following: An infrared receiving module, electrically connected to the main control processor, is used to receive a first control command from the infrared controller and send the first control command to the main control processor, so that the main control processor determines the device status of the electrical equipment corresponding to the first control command based on the first control command and updates the device status to the terminal device. An infrared emitting module, electrically connected to the main control processor, is used to send a second control command to the electrical device under the control of the main control processor to adjust the working mode of the electrical device.
4. The smart socket according to any one of claims 1-3, characterized in that, Also includes: Measurement and testing module; The metering and detection module is used to collect power consumption information of electrical devices connected to the smart socket; The electricity consumption information includes at least one of current, voltage, and power.
5. The smart socket according to claim 4, characterized in that, The main control processor is also used to encrypt and store the electricity consumption information using a preset symmetric encryption method if the current communication is through the power line communication module; If the current communication is through the Bluetooth Low Energy module, the power consumption information is encrypted and stored using a preset elliptic curve key exchange method.
6. The smart socket according to claim 4, characterized in that, Also includes: The power supply control module is electrically connected to the main control processor and is used to control the power supply to the electrical equipment connected to the smart socket under the control of the main control processor.
7. The smart socket according to claim 6, characterized in that, The main control processor is also used to predict the power consumption of the electrical equipment based on the power consumption information of the electrical equipment, using a preset reinforcement learning algorithm, and determine the power consumption prediction information; based on the power consumption prediction information, it controls the on / off of the relay of the power supply on / off control module to control the power supply to the electrical equipment.
8. The smart socket according to claim 3, characterized in that, Also includes: Temperature detection module electrically connected to the main control processor; The temperature detection module is used to detect the ambient temperature of the electrical equipment connected to the smart socket, obtain the ambient temperature information, and send the ambient temperature information to the main control processor; The main control processor is also used to determine the second control command based on the ambient temperature information, and control the infrared emitting module to send the second control command to the electrical equipment to adjust the working mode of the electrical equipment.
9. A control method, characterized in that, The control method, applied to the smart socket as described in any one of claims 1-8, comprises: Based on signal strength and / or a preset delay threshold, the system selects to communicate with the terminal device via a power line communication module or a Bluetooth Low Energy module.
10. The control method according to claim 9, characterized in that, The control method further includes at least one of the following: If the current communication is through the power line communication module, the power consumption information of the electrical equipment will be encrypted and stored using a preset symmetric encryption method; If the current communication is through the Bluetooth Low Energy module, the power consumption information is encrypted and stored using a preset elliptic curve key exchange method; Based on the power consumption information of the electrical equipment, a preset reinforcement learning algorithm is used to predict the power consumption of the electrical equipment and determine the power consumption prediction information. Based on the electricity consumption forecast information, the relays of the power supply on / off control module are switched on and off to control the power supply to the electrical equipment. Based on the first control command of the infrared controller, the device status of the electrical equipment corresponding to the first control command is determined, and the device status is updated to the terminal device; Based on the ambient temperature information detected by the temperature detection module, a second control command is determined, and the infrared emitting module is controlled to send the second control command to the electrical equipment to adjust the working mode of the electrical equipment.
Citation Information
Patent Citations
Intelligent socket device based on double-network mixed communication
CN104241981A
Power line carrier and wireless Bluetooth bi-channel automatic switching system and method
CN104753567A
Intelligent socket based on broadband power carrier
CN108110894A
Peripheral power consumption data acquisition system and method based on HPLC and Bluetooth
CN114023053A
Multi-mode broadband carrier power line communication system
CN115297379A