Infrared communication method and device for smart lamps and smart lamps

IR control signals are obtained and judged through smart lamps, and analog infrared signals are generated or stored to solve the problem that existing infrared gateways cannot communicate with autonomous infrared protocol devices, realize control and learning of a variety of infrared devices, and expand the standard library.

CN116600455BActive Publication Date: 2025-08-22WOCAO TECH (SHENZHEN) CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310466835.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-04-23
Publication Date
2025-08-22
Estimated Expiration
2043-04-23

AI Technical Summary

Technical Problem

The existing infrared gateways only have infrared standard libraries and cannot communicate with infrared devices that use autonomous infrared protocols, and cannot meet the needs of smart home devices.

Method used

Smart lamps obtain external infrared control signals to determine whether matching standard infrared signals are stored in the preset infrared code standard library. If not, analog infrared signals will be generated and stored as standard signals to realize equipment control of the autonomous infrared protocol.

Benefits of technology

Smart lamps can communicate with external infrared devices, learn and expand the infrared code standard library, realize control of various infrared devices, and meet diverse usage needs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116600455B_ABST
    Figure CN116600455B_ABST
Patent Text Reader

Abstract

The present invention belongs to the field of smart home technology, and more particularly relates to an infrared communication method, device, and smart lamp for smart lamps. The infrared communication method comprises: obtaining an infrared control signal sent by an external control device through the smart lamp; determining whether a standard infrared signal matching the infrared control signal is stored in a preset infrared code standard library; if so, transmitting the standard infrared signal matching the infrared control signal to the external controlled device through the smart lamp, where the standard infrared signal is used to control the operation of the external controlled device; if not, generating an analog infrared signal matching the infrared control signal through the smart lamp; setting the analog infrared signal as a standard infrared signal and storing it in the infrared code standard library. The present invention enables the smart lamp to continuously learn and expand the infrared code standard library, thereby controlling infrared devices of various infrared code types.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of smart home technology, and in particular relates to an infrared communication method and device for a smart lamp, and the smart lamp. Background Art

[0002] A gateway, also known as a network connector or protocol converter, implements network interconnection above the network layer. It is a complex network interconnection device used only to connect two networks with different high-level protocols. Gateways are primarily classified into two categories: one that uses a bus-based approach for connection and communication via cables, such as the 485 bus and CAN bus, and the other that uses wireless communication, such as Wi-Fi, ZigBee, and 433. However, both categories have limitations. For example, bus systems require wired connections and are highly dependent on the environment. Wiring and design must be considered in the early stages of renovations, and they are typically one-time and immutable. Subsequent additions to equipment can be complex and cumbersome. While wireless approaches may have lower environmental requirements, they suffer from less stable performance, are susceptible to interference, and often require specific placement, resulting in varying effectiveness.

[0003] Most existing wireless gateways are simply relay devices, such as door locks, which connect to the gateway via Zigbee. The gateway then connects to the internet via Wi-Fi. Therefore, each product type typically has a gateway, or each product has a gateway. Existing infrared controllers typically control a single device, so most infrared devices have a dedicated remote control. As the number of infrared devices increased, infrared control gateways gradually emerged.

[0004] However, most gateways rely on a standard library and then call from a standard infrared library. Therefore, infrared control gateways are limited by this standard library. Common devices like televisions and air conditioners use this standard library, making it widely used. However, with the development of smart homes, more and more smart home devices are adopting proprietary infrared protocols. Conventional gateways, equipped with only a standard infrared library, are unable to communicate with infrared devices that use proprietary infrared protocols, thus failing to meet user needs. Therefore, a new solution is necessary to address this issue. Summary of the Invention

[0005] The purpose of the present invention is to provide an infrared communication method, device and smart lamp for smart lamps, aiming to solve the technical problem that the infrared gateway in the prior art only has an infrared standard library and cannot communicate with infrared devices using independent infrared protocols, thus failing to meet usage requirements.

[0006] To achieve the above objectives, an embodiment of the present invention provides an infrared communication method for a smart lamp, comprising:

[0007] Obtain infrared control signals sent by external control devices through smart lamps;

[0008] Determining whether a preset infrared code standard library stores a standard infrared signal that matches the infrared control signal, wherein the infrared code standard library pre-stores a plurality of standard infrared signals;

[0009] If the judgment is yes, the standard infrared signal matching the infrared control signal is sent to the external controlled device through the smart lamp, and the standard infrared signal is used to control the action of the external controlled device;

[0010] If the judgment is no, generating a simulated infrared signal matching the infrared control signal by the intelligent lamp;

[0011] The simulated infrared signal is set as a standard infrared signal and stored in the infrared code standard library.

[0012] Optionally, the step of generating, by the smart lamp, a simulated infrared signal matching the infrared control signal from the infrared control signal specifically includes:

[0013] extracting infrared feature information according to the infrared control signal;

[0014] generating a simulated infrared code according to the infrared characteristic information;

[0015] Determining whether a mean square error between the simulated infrared code and the infrared control signal meets a preset standard threshold;

[0016] If the judgment is yes, the simulated infrared code is set as a simulated infrared signal;

[0017] If the judgment is no, the process returns to the step of extracting infrared feature information according to the infrared control signal.

[0018] Optionally, extracting infrared feature information according to the infrared control signal specifically includes:

[0019] Denoising the infrared control signal to generate a denoised signal;

[0020] Feature extraction is performed on the denoised signal to generate infrared feature information.

[0021] Optionally, the denoising the infrared control signal to generate a denoised signal specifically includes:

[0022] Sampling the infrared control signal to generate a sampling signal, wherein the sampling signal includes a noise signal;

[0023] Performing frequency domain transformation on the sampled signal to generate a transformed signal;

[0024] performing peak detection on the transformed signal to remove the noise signal and generate a detection signal;

[0025] Performing an inverse frequency domain transform on the detection signal to generate a denoised signal.

[0026] Optionally, performing peak detection on the transformed signal to remove the noise signal and generate a detection signal specifically includes:

[0027] Performing peak detection on the transformed signal and generating an extreme point frequency and a detection frequency;

[0028] generating a carrier frequency according to the extreme point frequency;

[0029] Determining whether the detection frequency is less than a predetermined multiple of the carrier frequency;

[0030] If the judgment is no, the detection frequency is deleted, and the process returns to the step of performing peak detection on the transformed signal and generating an extreme point frequency and a detection frequency, wherein the deleted detection frequency is the noise signal;

[0031] If the judgment is yes, a detection signal is generated based on the converted signal.

[0032] An embodiment of the present invention further provides an infrared communication device for a smart lamp, comprising:

[0033] Infrared acquisition module, used to acquire infrared control signals sent by external control devices;

[0034] an infrared judgment module, configured to judge whether a preset infrared code standard library stores a standard infrared signal that matches the infrared control signal, wherein the infrared code standard library pre-stores a plurality of standard infrared signals;

[0035] an infrared sending module, configured to send the standard infrared signal that matches the infrared control signal to the external controlled device if a preset infrared code standard library stores a standard infrared signal that matches the infrared control signal, wherein the standard infrared signal is used to control the action of the external controlled device;

[0036] an infrared simulation module, configured to generate a simulated infrared signal matching the infrared control signal according to the infrared control signal if a preset infrared code standard library does not store a standard infrared signal matching the infrared control signal;

[0037] The infrared storage module is used to set the simulated infrared signal as a standard infrared signal and store it in the infrared code standard library.

[0038] The embodiment of the present invention further provides a smart lamp integrated with an infrared gateway, comprising an infrared gateway and a lighting component, wherein the lighting component is connected to the infrared gateway, and the infrared gateway comprises an infrared receiving device, an infrared transmitting device, and an infrared communication device of the smart lamp; wherein,

[0039] The infrared receiving device is connected to the infrared acquisition module and is used to send the infrared control signal to the infrared acquisition module after receiving the infrared control signal sent by the external control device;

[0040] The infrared emitting device is connected to the infrared sending module and is used to send the standard infrared signal to the external controlled device after receiving the standard infrared signal sent by the infrared sending module and matching the infrared control signal.

[0041] Optionally, the infrared receiving device includes at least three receiving tubes, which are arranged in a triangle shape and are used to receive infrared control signals sent by the external control device. The receiving tubes are infrared receiving tubes with carriers.

[0042] Optionally, the infrared emitting device includes at least four emitting tubes, three of which are arranged in a triangle shape and are used to emit a standard infrared signal matching the infrared control signal, and the other emitting tube is located at the geometric center of the three emitting tubes.

[0043] Optionally, the infrared emitting device is provided with an emitting circuit, which includes a switch MOS tube, a first emitting tube, a second emitting tube, a third emitting tube and a fourth emitting tube; the gate of the switch MOS tube is connected to the infrared communication device, the source of the switch MOS tube is grounded, the third pin of the first emitting tube is connected to the drain of the switch MOS tube, the anode of the second emitting tube is connected to both the first pin and the second pin of the first emitting tube, the anode of the third emitting tube is connected to the cathode of the second emitting tube, the anode of the fourth emitting tube is connected to the cathode of the third emitting tube, and the cathode of the fourth emitting tube is connected to the drain of the switch MOS tube.

[0044] Optionally, a first current-limiting resistor is connected in series between the drain of the switch MOS tube and the third pin of the first emitting tube, and a second current-limiting resistor is connected in series between the drain of the switch MOS tube and the cathode of the fourth emitting tube.

[0045] An embodiment of the present invention also provides a smart lamp with an integrated composite gateway, including the smart lamp with an integrated infrared gateway, and also including a Bluetooth gateway. The Bluetooth gateway is communicatively connected to the smart lamp with the integrated infrared gateway. The Bluetooth gateway is used to receive Bluetooth control instructions from an external Bluetooth device and send the Bluetooth control instructions to the smart lamp with the integrated infrared gateway, so that the smart lamp with the integrated infrared gateway controls the actions of the external controlled device according to the Bluetooth control instructions.

[0046] The infrared communication method and device for smart lamps provided by the embodiments of the present invention, and one or more of the above technical solutions in the smart lamps have at least one of the following technical effects:

[0047] The present invention first uses a smart lamp to obtain an infrared control signal sent by an external control device; then determines whether a preset infrared code standard library stores a standard infrared signal that matches the infrared control signal, wherein the infrared code standard library pre-stores multiple standard infrared signals; if the determination is yes, the smart lamp transmits the standard infrared signal that matches the infrared control signal to the external controlled device, and the standard infrared signal is used to control the operation of the external controlled device; if the determination is no, the smart lamp generates an analog infrared signal that matches the infrared control signal from the infrared control signal; finally, the analog infrared signal is set as a standard infrared signal and stored in the infrared code standard library. This enables the smart lamp to communicate with the external infrared device and continuously learn and expand the infrared code standard library to control infrared devices of various infrared code types to meet usage requirements. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0049] Figure 1 A flow chart of an infrared control method for a smart lamp provided by an embodiment of the present invention;

[0050] Figure 2 A flowchart of generating a simulated infrared signal provided by an embodiment of the present invention;

[0051] Figure 3 A flowchart of extracting infrared feature information provided by an embodiment of the present invention;

[0052] Figure 4 A flowchart of generating a denoised signal provided by an embodiment of the present invention;

[0053] Figure 5 A flow chart of generating a detection signal provided by an embodiment of the present invention;

[0054] Figure 6 A structural block diagram of an infrared communication device for a smart lamp provided in an embodiment of the present invention;

[0055] Figure 7 A structural block diagram of an infrared gateway provided in an embodiment of the present invention;

[0056] Figure 8 A schematic structural diagram of a receiving tube of an infrared receiving device provided in an embodiment of the present invention;

[0057] Figure 9 A schematic structural diagram of a transmitting tube of an infrared transmitting device provided in an embodiment of the present invention;

[0058] Figure 10 A circuit schematic diagram of a transmitting circuit provided in an embodiment of the present invention;

[0059] Figure 11 A structural block diagram of an intelligent lighting fixture integrated with a composite gateway provided by an embodiment of the present invention;

[0060] Figure 12 A schematic diagram of the working status of a smart lamp integrated with a composite gateway provided by an embodiment of the present invention;

[0061] Figure 13 A schematic diagram of a usage scenario of a smart lamp integrated with a composite gateway provided by an embodiment of the present invention;

[0062] Figure 14 A schematic diagram of another usage scenario of the smart lamp integrated with the composite gateway provided by an embodiment of the present invention.

[0063] Among them, the reference numerals in the figures are:

[0064] 1-smart lamp; 2-Bluetooth gateway; 100-infrared gateway; 110-infrared communication device; 111-infrared acquisition module; 112-infrared judgment module; 113-infrared sending module; 114-infrared simulation module; 115-infrared storage module; 120-infrared receiving device; 121-receiving tube; 130-infrared transmitting device; 131-transmitting tube; 132-transmitting circuit; 200-lighting component. DETAILED DESCRIPTION

[0065] In the following description, specific details such as specific system structures and techniques are provided for purposes of illustration rather than limitation to facilitate a thorough understanding of the embodiments of the present application. However, it will be apparent to those skilled in the art that the present application may be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to avoid obscuring the description of the present application with unnecessary detail.

[0066] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, integers, steps, operations, elements and / or components, but does not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or collections thereof.

[0067] It will also be understood that the term "and / or" used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.

[0068] As used in this specification and the appended claims, the term "if" can be interpreted as "when" or "upon" or "in response to determining" or "in response to detecting," depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "upon determination" or "in response to determining" or "upon detection of [described condition or event]" or "in response to detecting [described condition or event]," depending on the context.

[0069] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.

[0070] References to "one embodiment" or "some embodiments" in this specification mean that a particular feature, structure, or characteristic described in conjunction with that embodiment is included in one or more embodiments of the present application. Thus, phrases such as "in one embodiment," "in some embodiments," "in other embodiments," and "in other embodiments" appearing in various places in 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 "including," "comprising," "having," and variations thereof all mean "including but not limited to," unless otherwise specifically emphasized.

[0071] In one embodiment of the present invention, Figure 1 As shown, an infrared communication method for a smart lamp is provided, comprising:

[0072] Step S100: obtaining an infrared control signal sent by an external control device through the smart lamp.

[0073] In this step, when the user uses an external control device to send an infrared control signal to the free space, the smart lamp obtains the infrared control signal in the free space through the internal infrared receiving device.

[0074] Step S200: determining whether a preset infrared code standard library stores a standard infrared signal that matches the infrared control signal, wherein the infrared code standard library pre-stores a plurality of standard infrared signals.

[0075] In this step, a standard infrared code library is pre-installed in the backend server (cloud server). After the smart lamp obtains the infrared control signal, it uploads it to the backend server and compares it with the data in the standard infrared code library. A determination is made as to whether the infrared control signal corresponds to the standard infrared signal pre-stored in the standard infrared code library. Depending on the determination, direct call or infrared code learning is performed.

[0076] Step S300: If the judgment is yes, a standard infrared signal matching the infrared control signal is sent to an external controlled device through the smart lamp, and the standard infrared signal is used to control the action of the external controlled device.

[0077] In this step, if a standard infrared signal corresponding to the infrared control signal is retrieved from the infrared code standard library, the standard infrared signal is sent to the external controlled device to control the action of the external controlled device.

[0078] Step S400: If the judgment is no, the intelligent lamp generates a simulated infrared signal matching the infrared control signal from the infrared control signal.

[0079] In this step, if a standard infrared signal corresponding to the infrared control signal is not retrieved in the infrared code standard library, simulation learning is performed on the infrared control signal to generate a simulated infrared signal matching the infrared control signal.

[0080] Step S500: setting the simulated infrared signal as a standard infrared signal and storing it in the infrared code standard library.

[0081] In this step, the smart lamp sets the simulated infrared signal generated according to the infrared control signal as a standard infrared signal and stores it in the infrared code standard library. When the smart lamp receives the infrared control signal again, it can generate a corresponding standard infrared signal to control the action of the external controlled device.

[0082] In this embodiment, when a user needs to use a smart lamp to control an external infrared device, the backend server searches for a corresponding standard infrared signal from the infrared standard library. If no such signal is found, infrared code learning is performed. Through the steps in the above method, infrared code learning and communication are completed, and the standard infrared code library can be continuously expanded and extended. Ultimately, the smart lamp becomes a universal remote control, achieving the goal of controlling all infrared devices through the smart lamp. The smart lamp can be, but is not limited to, a smart ceiling lamp or a smart bulb.

[0083] In another embodiment of the present invention, Figure 2 As shown, the step of generating a simulated infrared signal matching the infrared control signal from the infrared control signal by the smart lamp specifically includes:

[0084] Step S410: extracting infrared feature information according to the infrared control signal.

[0085] After receiving the infrared control signal, the smart lamp extracts features of the infrared control signal such as frequency, code spacing, code length, and code value.

[0086] Step S420: Generate a simulated infrared code according to the infrared characteristic information.

[0087] The intelligent lamp reconstructs the infrared code according to the extracted infrared feature information to generate a simulated infrared code.

[0088] Step S430: determining whether the mean square error between the simulated infrared code and the infrared control signal meets a preset standard threshold.

[0089] A mean square error is calculated between the generated simulated infrared code and the received infrared control signal to determine whether the mean square error of the two meets the standard.

[0090] Step S440: If the answer is yes, the simulated infrared code is set as a simulated infrared signal.

[0091] When the mean square error between the simulated infrared code and the infrared control signal meets the standard, the simulated infrared code is set as the simulated infrared signal.

[0092] Step S450: If the judgment is no, return to the step of extracting infrared feature information according to the infrared control signal.

[0093] The mean square error of the simulated infrared code and the infrared control signal meets the standard, that is, the mean square error of the simulated infrared code and the infrared control signal is less than the set threshold. When the mean square error of the simulated infrared code and the infrared control signal does not meet the standard (that is, it is greater than the set threshold), it means that the generated simulated infrared code and the infrared control signal have a large deviation, and the infrared feature information needs to be re-extracted.

[0094] In another embodiment of the present invention, Figure 3 As shown, extracting infrared feature information according to the infrared control signal specifically includes:

[0095] Step S411: De-noising the infrared control signal to generate a de-noised signal;

[0096] Step S412: extracting features from the denoised signal to generate infrared feature information.

[0097] Because infrared control signals are noisy and propagate in free space, their signal-to-noise ratio is significantly affected by the environment, potentially leading to infrared control failure. De-noising the infrared control signals is necessary to ensure a better signal-to-noise ratio and more stable infrared reception. Features such as frequency, code spacing, code length, and code value of the de-noised infrared control signals are then extracted to make the subsequently generated simulated infrared signal more accurate.

[0098] In another embodiment of the present invention, Figure 4 As shown, the denoising of the infrared control signal to generate a denoised signal specifically includes:

[0099] Step S4111: sampling the infrared control signal to generate a sampling signal, wherein the sampling signal includes a noise signal;

[0100] Step S4112: performing frequency domain transformation on the sampled signal to generate a transformed signal;

[0101] In this step, a fast Fourier transform is performed on the sampling signal to generate a transformed signal.

[0102] Step S4113: performing peak detection on the transformed signal to remove the noise signal and generate a detection signal;

[0103] In this step, peak detection is performed on the converted signal to remove detection frequencies that do not meet the standards as noise signals, thereby generating a detection signal.

[0104] Step S4114: performing an inverse frequency domain transform on the detection signal to generate a denoised signal.

[0105] In this step, the detection signal after the noise signal is removed is restored by inverse fast Fourier transform to generate a denoised signal.

[0106] In another embodiment of the present invention, Figure 5 As shown, performing peak detection on the transformed signal to remove the noise signal and generate a detection signal specifically includes:

[0107] Step S41131: performing peak detection on the transformed signal and generating an extreme point frequency and a detection frequency;

[0108] Step S41132: generating a carrier frequency according to the extreme point frequency;

[0109] Step S41133: Determine whether the detection frequency is less than a predetermined multiple of the carrier frequency;

[0110] Step S41134: If the judgment is no, the detection frequency is deleted, and the process returns to the step of performing peak detection on the transformed signal and generating an extreme point frequency and a detection frequency, wherein the deleted detection frequency is the noise signal;

[0111] Step S41135: If the judgment is yes, generate a detection signal according to the transformed signal.

[0112] In this embodiment, peak detection is performed on the transformed signal to obtain the extreme point frequency and the detection frequency. The extreme point frequency is then reduced to distinguish the fundamental frequency, which is the carrier frequency of the infrared control signal. The detection frequency is compared with 10 times the carrier frequency. If the detection frequency is greater than 10 times the carrier frequency, it is determined to be a high-frequency noise signal and is deleted, while the remaining frequency components are retained.

[0113] In the present invention, the smart lamp can continuously transmit the same infrared control signal. For example, adjusting the volume of a television set typically requires multiple presses. However, the smart lamp can define whether to send an infrared code once or repeatedly, allowing the volume to be automatically adjusted to the desired level with a single press. Furthermore, the smart lamp can sequentially transmit multiple infrared control signals. For example, to turn on an air conditioner, a user first presses the power button, then the cooling button, then the fan button, and then the temperature increase / decrease button. By sequentially arranging the power, cooling, fan, and temperature infrared codes and defining them as turning on the air conditioner, the user only needs to control the air conditioner once, completing the operation that would otherwise require multiple presses. This significantly enhances the user experience. Furthermore, the smart lamp can simultaneously transmit multiple infrared control signals. For example, traditional closed-circuit color TVs require a remote control to enter channel scanning mode by pressing a combination code. The smart lamp can now transmit a combination of infrared codes to achieve this operation. In addition, for some infrared devices, infrared communication is required. Assuming that the infrared device defines a type of infrared communication and stipulates communication rules such as code length and code interval, the smart lamp can learn the infrared communication protocol through infrared learning; on the one hand, the infrared device transmits the infrared communication code, and then the smart lamp decodes it through the communication protocol to obtain the information transmitted by the infrared device. On the other hand, the smart lamp can reorganize the infrared code through the infrared communication protocol and then transmit it to the infrared device to achieve two-way communication with the infrared device.

[0114] In one embodiment of the present invention, Figure 6 As shown, an infrared communication device 110 for a smart lamp is provided, comprising an infrared acquisition module 111 , an infrared judgment module 112 , an infrared sending module 113 , an infrared simulation module 114 and an infrared storage module 115 .

[0115] The infrared acquisition module 111 is used to acquire infrared control signals sent by an external control device.

[0116] The infrared judgment module 112 is used to judge whether a preset infrared code standard library stores a standard infrared signal that matches the infrared control signal, wherein the infrared code standard library pre-stores a plurality of standard infrared signals.

[0117] The infrared sending module 113 is used to send the standard infrared signal matching the infrared control signal to the external controlled device if the preset infrared code standard library stores a standard infrared signal matching the infrared control signal, and the standard infrared signal is used to control the action of the external controlled device.

[0118] The infrared simulation module 114 is configured to generate a simulated infrared signal matching the infrared control signal according to the infrared control signal if a preset infrared code standard library does not store a standard infrared signal matching the infrared control signal.

[0119] The infrared storage module 115 is used to set the simulated infrared signal as a standard infrared signal and store it in the infrared code standard library.

[0120] In another embodiment of the present invention, the infrared simulation module 114 is also used to: extract infrared characteristic information based on the infrared control signal; generate a simulated infrared code based on the infrared characteristic information; determine whether the mean square error between the simulated infrared code and the infrared control signal meets a preset standard threshold; if yes, set the simulated infrared code as a simulated infrared signal; if no, return to the step of extracting infrared characteristic information based on the infrared control signal.

[0121] In another embodiment of the present invention, the infrared simulation module 114 is further configured to: perform denoising on the infrared control signal to generate a denoised signal; and perform feature extraction on the denoised signal to generate infrared feature information.

[0122] In another embodiment of the present invention, the infrared simulation module 114 is further used to: perform signal sampling on the infrared control signal to generate a sampling signal, wherein the sampling signal contains a noise signal; perform frequency domain transformation on the sampling signal to generate a transformation signal; perform peak detection on the transformation signal to remove the noise signal and generate a detection signal; and perform frequency domain inverse transformation on the detection signal to generate a denoised signal.

[0123] In another embodiment of the present invention, the infrared simulation module 114 is further used to: perform peak detection on the transformed signal and generate an extreme point frequency and a detection frequency; generate a carrier frequency based on the extreme point frequency; determine whether the detection frequency is less than a predetermined multiple of the carrier frequency; if the determination is no, delete the detection frequency, and return to the step of performing peak detection on the transformed signal and generating an extreme point frequency and a detection frequency, wherein the deleted detection frequency is the noise signal; if the determination is yes, generate a detection signal based on the transformed signal.

[0124] In one embodiment of the present invention, Figure 7 and Figure 11 As shown, a smart lamp 1 integrated with an infrared gateway is provided, including an infrared gateway 100 and a lighting component 200. The lighting component 200 is connected to the infrared gateway 100, and the infrared gateway 100 includes the aforementioned infrared communication device 110, an infrared receiving device 120 and an infrared transmitting device 130.

[0125] The infrared receiving device 120 is connected to the infrared acquisition module 111 and is configured to send the infrared control signal to the infrared acquisition module 111 after receiving the infrared control signal sent by an external control device.

[0126] like Figure 8 As shown, the infrared receiving device 120 includes at least three receiving tubes 121 arranged in a triangle and used to receive infrared control signals transmitted by the external control device. This triangular arrangement allows for better acquisition of infrared signals from all directions. Simultaneously, the software implements fault-tolerant processing for infrared codes. After extracting features from the infrared control signals received by each of the three receiving tubes 121, the three features are combined to constrain errors in code length, interval code, and frequency. Because infrared codes are low-significance, the code values ​​decoded by the three receiving tubes 121 are ANDed to produce the infrared control code. This entire process significantly improves the infrared reception range of the infrared receiving device 120 and the success rate of infrared code learning.

[0127] In this embodiment, the receiving tube 121 is an infrared receiving tube with a carrier. In the prior art, narrowband infrared receiving tubes are often used to achieve a high signal-to-noise ratio. However, this is not ideal for infrared code learning because infrared codes have a wide range of frequencies, which cannot be met by narrowband infrared receiving tubes. Therefore, the receiving tubes 121 in this embodiment are all broadband infrared receiving tubes, capable of receiving infrared carrier signals with a relatively wide frequency, covering essentially all infrared codes. Furthermore, in the prior art, infrared receiving tubes with integrated modulation chips are often used to achieve better filtering effects. However, this modulation results in a loss of frequency information. Therefore, the receiving tubes 121 in this embodiment are all infrared receiving tubes without modulation functions, performing only filtering and pre-amplification.

[0128] The infrared emitting device 130 is connected to the infrared sending module 113 and is used to send the standard infrared signal to the external controlled device after receiving the standard infrared signal that matches the infrared control signal sent by the infrared sending module.

[0129] like Figure 9As shown, the infrared emitting device 130 includes at least four emitting tubes 131, three of which are arranged in a triangular shape and are used to emit a standard infrared signal that matches the infrared control signal. The positions of the three emitting tubes 131 are 120° apart. The three emitting tubes 131 are side-mounted, side-emitting infrared emitting tubes. The emitting angle of the three emitting tubes 131 is approximately 120° solid angle. Therefore, after the three emitting tubes 131 are arranged 120° apart, they can radiate infrared signals to the surrounding 360° planar space and part of the remote vertical space. The other emitting tube 131 is located at the geometric center of the three emitting tubes 131, with a vertical emitting angle, which can compensate for the vertical infrared radiation space in the vicinity of the three emitting tubes 131. Since the smart lamp 1 is usually placed on the ceiling of a room, the consistency of the infrared gateway 100 in the smart lamp 1 is good, and there is no problem of unstable connection caused by the infrared gateway 100 being placed in different locations and the connected smart products being far away. The above configuration enables the infrared emitting device 130 to cover the entire room without any blind spots.

[0130] In another embodiment of the present invention, Figure 10 As shown, the infrared transmitting device 130 is provided with a transmitting circuit 132, which includes a switch MOS transistor Q27, a first transmitting transistor D11, a second transmitting transistor D13, a third transmitting transistor D12, and a fourth transmitting transistor D14. The gate of the switch MOS transistor Q27 is connected to the AP_TX pin of the main control in the infrared communication device 110, and the source of the switch MOS transistor Q27 is grounded. The third pin of the first transmitting transistor D11 is connected to the drain of the switch MOS transistor Q27, the anode of the second transmitting transistor D13 is connected to both the first and second pins of the first transmitting transistor D11, the anode of the third transmitting transistor D12 is connected to the cathode of the second transmitting transistor D13, the anode of the fourth transmitting transistor D14 is connected to the cathode of the third transmitting transistor D12, and the cathode of the fourth transmitting transistor D14 is connected to the drain of the switch MOS transistor Q27.

[0131] The main controller in the infrared communication device 110 controls the infrared emitting device 130 through the switch MOS tube Q27, and can control the first emitting tube D11, the second emitting tube D13, the third emitting tube D12 and the fourth emitting tube D14 to emit synchronously.

[0132] Furthermore, a first current-limiting resistor R217 is connected in series between the drain of the switch MOS transistor Q27 and the third pin of the first emitting transistor D11, and a second current-limiting resistor R219 is connected in series between the drain of the switch MOS transistor Q27 and the cathode of the fourth emitting transistor D14. By providing the first current-limiting resistor R217 and the second current-limiting resistor R219, the combined intensity of the infrared light from the first emitting transistor D11, the second emitting transistor D13, the third emitting transistor D12, and the fourth emitting transistor D14 is substantially consistent at any point within the radiation range.

[0133] In one embodiment of the present invention, Figure 11 As shown, a smart lamp with an integrated composite gateway is provided, comprising the aforementioned smart lamp 1 with an integrated infrared gateway, and further comprising a Bluetooth gateway 2. The Bluetooth gateway 2 is communicatively connected to the smart lamp 1 with an integrated infrared gateway. The Bluetooth gateway 2 is configured to receive Bluetooth control commands from an external Bluetooth device and transmit the Bluetooth control commands to the smart lamp 1 with an integrated infrared gateway, so that the smart lamp 1 with an integrated infrared gateway controls the actions of the external controlled device according to the Bluetooth control commands. Bluetooth has a longer communication range, enabling the smart lamp with an integrated composite gateway to remotely control infrared devices.

[0134] Furthermore, the user can use a mobile terminal to connect to the smart lamp integrated with the composite gateway through the cloud to remotely control external infrared devices and external Bluetooth devices within the communication range.

[0135] When the smart lamp 1 acts as a Bluetooth gateway, it is basically the same as an ordinary gateway. The Bluetooth device is connected to the smart lamp 1 with an integrated Bluetooth gateway, and then connected to the cloud server through the smart lamp 1 with an integrated Bluetooth gateway, thereby completing the two-way communication between the Bluetooth device and the cloud server; Figure 12 As shown, the smart lamp 1 integrated with the composite gateway can receive signals from both Bluetooth devices and infrared devices. Therefore, for the smart lamp 1, there is no difference between Bluetooth devices and infrared devices. Therefore, the infrared device and the Bluetooth device can be connected through the smart lamp 1 to achieve communication.

[0136] Furthermore, the infrared remote control can not only control devices within the infrared range, but can even control remote devices through the infrared remote control.

[0137] In one embodiment, for example, when making a linkage scene, the user uses the APP to set the smart lamp to close the curtains at 20:00 in the evening, and then turn on the air conditioner and turn on the TV. Figure 13As shown; in this process, the APP transmits the command of this scene to the smart lamp 1 through the cloud server, and then the smart lamp 1 controls the Bluetooth curtain robot to close the curtain at 20:00; then the Bluetooth curtain robot tells the smart lamp 1 after closing the curtain, and then the smart lamp 1 transmits an infrared control code to turn on the TV; at the same time, the smart lamp 1 transmits an infrared sequence code to turn on the air conditioner, thus completing the whole process; the whole process only requires the user to set the scene, and it can be triggered by one click on the smart lamp 1.

[0138] The user has defined the above scene, and then wants to solidify it on the infrared remote control. By pressing the infrared remote control, the scene can be triggered or switched. Figure 14 As shown in the figure, in this process, the infrared remote control sends a scene command, which is then transmitted to the smart lamp 1 via infrared. Then, at 20:00, the smart lamp 1 controls the Bluetooth curtain robot to close the curtains. After receiving a reply that the curtains have been closed, the smart lamp 1 sends an infrared control code to turn on the TV. At the same time, the smart lamp 1 sends an infrared sequence code to turn on the air conditioner. These scenes of the smart lamp 1 are synchronized to the APP through the cloud server, thus completing the whole process.

[0139] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of modules is only a logical function division. In actual implementation, there may be other division methods, such as multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or modules, which can be electrical, mechanical or other forms.

[0140] Modules described as separate components may or may not be physically separate, and components shown as modules may or may not be physical modules, that is, they may be located in one place or distributed across multiple network modules. Some or all of these modules may be selected to achieve the purpose of this embodiment based on actual needs.

[0141] In addition, the functional modules in the various embodiments of the present application may be integrated into a processing module, or each module may exist physically separately, or two or more modules may be integrated into a single module. The above-mentioned integrated modules may be implemented in the form of hardware or software functional modules.

[0142] If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a readable storage medium and includes several instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the various embodiments of the present application. The aforementioned readable storage medium includes various media that can store program codes, such as a USB flash drive, a mobile hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.

[0143] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.

Claims

1. An infrared communication method for smart lamps, characterized in that: include: Obtain infrared control signals sent by external control devices through smart lamps; Determining whether a preset infrared code standard library stores a standard infrared signal that matches the infrared control signal, wherein the infrared code standard library pre-stores a plurality of standard infrared signals; If the judgment is yes, the standard infrared signal matching the infrared control signal is sent to the external controlled device through the smart lamp, and the standard infrared signal is used to control the action of the external controlled device; If the judgment is no, generating a simulated infrared signal matching the infrared control signal by the intelligent lamp; Setting the simulated infrared signal as a standard infrared signal and storing it in the infrared code standard library; The step of generating a simulated infrared signal matching the infrared control signal from the infrared control signal by the smart lamp specifically includes: extracting infrared feature information according to the infrared control signal; generating a simulated infrared code according to the infrared characteristic information; Determining whether a mean square error between the simulated infrared code and the infrared control signal meets a preset standard threshold; If the judgment is yes, the simulated infrared code is set as a simulated infrared signal; If the judgment is no, the process returns to the step of extracting infrared feature information according to the infrared control signal.

2. The infrared communication method for smart lighting according to claim 1, characterized in that: The extracting of infrared feature information according to the infrared control signal specifically includes: Denoising the infrared control signal to generate a denoised signal; Feature extraction is performed on the denoised signal to generate infrared feature information.

3. The infrared communication method for smart lighting according to claim 2, characterized in that: The denoising of the infrared control signal to generate a denoised signal specifically includes: Sampling the infrared control signal to generate a sampling signal, wherein the sampling signal includes a noise signal; Performing frequency domain transformation on the sampled signal to generate a transformed signal; performing peak detection on the transformed signal to remove the noise signal and generate a detection signal; Performing an inverse frequency domain transform on the detection signal to generate a denoised signal.

4. The infrared communication method for a smart lamp according to claim 3, characterized in that: The performing peak detection on the transformed signal to remove the noise signal and generate a detection signal specifically includes: Performing peak detection on the transformed signal and generating an extreme point frequency and a detection frequency; generating a carrier frequency according to the extreme point frequency; Determining whether the detection frequency is less than a predetermined multiple of the carrier frequency; If the judgment is no, the detection frequency is deleted, and the process returns to the step of performing peak detection on the transformed signal and generating an extreme point frequency and a detection frequency, wherein the deleted detection frequency is the noise signal; If the judgment is yes, a detection signal is generated based on the converted signal.

5. An infrared communication device for a smart lamp, characterized in that: include: Infrared acquisition module, used to acquire infrared control signals sent by external control devices; an infrared judgment module, configured to judge whether a preset infrared code standard library stores a standard infrared signal that matches the infrared control signal, wherein the infrared code standard library pre-stores a plurality of standard infrared signals; an infrared sending module, configured to send the standard infrared signal that matches the infrared control signal to the external controlled device if a preset infrared code standard library stores a standard infrared signal that matches the infrared control signal, wherein the standard infrared signal is used to control the action of the external controlled device; an infrared simulation module, configured to generate a simulated infrared signal matching the infrared control signal based on the infrared control signal if a preset infrared code standard library does not store a standard infrared signal matching the infrared control signal, specifically comprising: extracting infrared feature information based on the infrared control signal; generating a simulated infrared code based on the infrared feature information; determining whether a mean square error between the simulated infrared code and the infrared control signal meets a preset standard threshold; if so, setting the simulated infrared code as a simulated infrared signal; if not, returning to the step of extracting infrared feature information based on the infrared control signal; The infrared storage module is used to set the simulated infrared signal as a standard infrared signal and store it in the infrared code standard library.

6. A smart lamp integrated with an infrared gateway, characterized in that: It includes an infrared gateway and a lighting component, the lighting component is connected to the infrared gateway, and the infrared gateway includes an infrared receiving device, an infrared transmitting device and the infrared communication device according to claim 5; wherein, The infrared receiving device is connected to the infrared acquisition module and is used to send the infrared control signal to the infrared acquisition module after receiving the infrared control signal sent by the external control device; The infrared emitting device is connected to the infrared sending module and is used to send the standard infrared signal to the external controlled device after receiving the standard infrared signal sent by the infrared sending module and matching the infrared control signal.

7. The intelligent lamp integrated with an infrared gateway according to claim 6, characterized in that: The infrared receiving device includes at least three receiving tubes, which are arranged in a triangle shape and are used to receive infrared control signals sent by the external control device; the receiving tubes are infrared receiving tubes with carriers.

8. The intelligent lamp integrated with an infrared gateway according to claim 6, characterized in that: The infrared emitting device includes at least four emitting tubes, three of which are arranged in a triangle shape and are used to emit a standard infrared signal matching the infrared control signal; the other emitting tube is located at the geometric center of the three emitting tubes.

9. The intelligent lamp integrated with an infrared gateway according to claim 8, characterized in that: The infrared emitting device is provided with an emitting circuit, which includes a switch MOS tube, a first emitting tube, a second emitting tube, a third emitting tube and a fourth emitting tube; the gate of the switch MOS tube is connected to the infrared communication device, the source of the switch MOS tube is grounded, the third pin of the first emitting tube is connected to the drain of the switch MOS tube, the anode of the second emitting tube is connected to both the first pin and the second pin of the first emitting tube, the anode of the third emitting tube is connected to the cathode of the second emitting tube, the anode of the fourth emitting tube is connected to the cathode of the third emitting tube, and the cathode of the fourth emitting tube is connected to the drain of the switch MOS tube.

10. The intelligent lamp integrated with infrared gateway according to claim 9, characterized in that: A first current-limiting resistor is connected in series between the drain of the switch MOS tube and the third pin of the first emitting tube, and a second current-limiting resistor is connected in series between the drain of the switch MOS tube and the cathode of the fourth emitting tube.

11. A smart lamp integrated with a composite gateway, comprising the smart lamp integrated with an infrared gateway according to any one of claims 6 to 10, characterized in that: It also includes a Bluetooth gateway, which is communicatively connected to the smart lamp with integrated infrared gateway. The Bluetooth gateway is used to receive Bluetooth control instructions from external Bluetooth devices and send the Bluetooth control instructions to the smart lamp with integrated infrared gateway, so that the smart lamp with integrated infrared gateway controls the action of the external controlled device according to the Bluetooth control instructions.

Citation Information

Patent Citations

  • Distributed intelligent remote controller for household appliances

    CN102663883A

  • Updatable infrared forwarding updating method based on far-end communication

    CN105788233A