Intelligent internet-of-things control method and device for bulb lamp, computer equipment and storage medium
By real-time detection of the working mode of the bulb lamp and obtaining the environmental data of the water storage equipment, adjusting the working mode of the bulb lamp and controlling it to play music or adjust the light, the problem of single linkage function of the bulb lamp is solved, and the intelligent IoT control between the bulb lamp and the water storage equipment is realized, which improves the fun.
Patent Information
- Application Number
- CN202510659904.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-21
- Publication Date
- 2025-07-29
AI Technical Summary
The linkage function of the bulb light in the Internet of Things system is single and has poor fun.
By real-time detection of the current working mode of the bulb lamp, obtain environmental data of the water storage equipment, such as water temperature and water flow data, adjust the target working mode of the bulb lamp, and control the bulb lamp to play target music or adjust the light to achieve the Internet of Things linkage with the water storage equipment.
It enhances the richness and fun of the linkage function of the bulb lamp in the Internet of Things system, and realizes the intelligent linkage control between the bulb lamp and water storage equipment.
Smart Images

Figure CN120390337A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of mobile lighting, and particularly to an intelligent Internet of Things control method, device, computer device and storage medium for a bulb lamp. Background Art
[0002] At present, bulb lamps can be added to a home-style Internet of Things through intelligent control operations. In the Internet of Things system, lamps such as incandescent lamps and energy-saving lamps can be coordinated with other devices to control opening and closing. For example, in the same Internet of Things system, the curtain of a certain venue is linked with the white light lighting mode of the bulb lamp, that is, when the curtain is opened, the white light lighting mode of the bulb lamp is started. However, the linkage function of the bulb lamp in the above Internet of Things system is single and the interest is poor. Summary of the Invention
[0003] In view of the above technical problems, the present invention provides an intelligent Internet of Things control method, device, computer device and storage medium for a bulb lamp, which can achieve the effect of improving the richness of the linkage function of the bulb lamp in the Internet of Things system and enhancing the interest of the bulb lamp in the Internet of Things system.
[0004] To achieve the above object, the present invention adopts the following technical solutions:
[0005] On the one hand, the present invention provides an intelligent Internet of Things control method for a bulb lamp, where the bulb lamp is applied to a water storage device; the bulb lamp includes a plurality of light sources; the method includes:
[0006] Real-time detect the current working mode of the bulb lamp;
[0007] Obtain the environmental data of the water storage device;
[0008] Adjust the current working mode of the bulb lamp according to the environmental data, and obtain the target working mode of the bulb lamp;
[0009] And, according to the target working mode, control the bulb lamp to play target music and / or adjust the lights of the plurality of light sources.
[0010] In one of the embodiments, the environmental data at least includes water temperature data;
[0011] The step of adjusting and obtaining the target working mode of the bulb lamp according to the environmental data further includes:
[0012] Identify the target temperature range where the water temperature data is located;
[0013] Obtain target light data corresponding to the target temperature range, where the light data includes at least one of the following data: the adjustment amplitude of the light source brightness, the light source lighting switching frequency, and the light source color system;
[0014] And, based on the target lighting data, adjust the current lighting mode of the bulb lamp to obtain the target lighting mode of the bulb lamp.
[0015] In one embodiment, the environmental data at least includes water flow data;
[0016] The step of adjusting according to the environmental data to obtain the target working mode of the bulb lamp further includes:
[0017] Identify the target flow rate range in which the water flow data is located;
[0018] Obtain target lighting data corresponding to the target flow rate range, where the lighting data includes at least one of the following data: the adjustment amplitude of the light source brightness, the switching frequency of the light source turning on and off, and the light source color system;
[0019] And, based on the target lighting data, adjust the current lighting mode of the bulb lamp to obtain the target lighting mode of the bulb lamp.
[0020] In one embodiment, the environmental data at least includes water temperature data and water flow data;
[0021] The step of adjusting according to the environmental data to obtain the target working mode of the bulb lamp further includes:
[0022] Identify the target temperature range of the water temperature data and identify the target flow rate range in which the water flow data is located;
[0023] Obtain first lighting data corresponding to the target temperature range and obtain second lighting data corresponding to the target flow rate range;
[0024] Combine the first lighting data and the second lighting data to obtain target lighting data; and
[0025] Based on the target lighting data, adjust the current lighting mode of the bulb lamp to obtain the target lighting mode of the bulb lamp.
[0026] In one embodiment, the method further includes:
[0027] Obtain the distance data between the bulb lamp and the side wall of the water storage device; and
[0028] When the distance data is less than a preset distance threshold, increase the adjustment amplitude of the light source brightness of the bulb lamp.
[0029] In one embodiment, the environmental data at least includes water flow data;
[0030] The step of adjusting the target working mode of the bulb lamp according to the environmental data further includes:
[0031] Identifying the target flow rate range in which the water flow data is located;
[0032] Obtaining target music data corresponding to the target flow rate range, where the target music data includes at least one of the following data: music type data, playback speed data of a single music, music style data;
[0033] And, based on the target music data, adjusting the current music mode of the bulb lamp to obtain the target music mode of the bulb lamp.
[0034] In one embodiment, after the step of adjusting the current working mode of the bulb lamp according to the environmental data and obtaining the target working mode of the bulb lamp, the method further includes:
[0035] Obtaining configuration data, where the configuration data includes preference data;
[0036] Adjusting the target working mode according to the configuration data;
[0037] Controlling the bulb lamp to play target music and / or adjusting the lighting of the multiple light sources according to the adjusted target working mode.
[0038] On the other hand, the present invention further provides an intelligent Internet of Things control device for a bulb lamp, where the bulb lamp is applied to a water storage device; the bulb lamp includes multiple light sources; the device includes:
[0039] A real-time detection module, configured to detect the current working mode of the bulb lamp in real time;
[0040] An acquisition module, configured to acquire the environmental data of the water storage device;
[0041] An adjustment module, configured to adjust the current working mode of the bulb lamp according to the environmental data and obtain the target working mode of the bulb lamp; and
[0042] An execution module, configured to control the bulb lamp to play target music and / or adjust the lighting of the multiple light sources according to the target working mode.
[0043] On the other hand, the present invention further provides a computer device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where when the processor executes the computer program, it is used to implement the steps of the intelligent Internet of Things control method for a bulb lamp as described in any one of the above embodiments.
[0044] On the other hand, the present invention also provides a computer storage medium, in which a computer program is stored, and the computer program can be executed by at least one processor, so that the at least one processor executes the steps of the intelligent Internet of Things control method of the bulb lamp as described in any one of the above embodiments.
[0045] Due to the adoption of the above technical solutions, the present invention has the following advantages: by adjusting the current working mode of the bulb lamp according to the environmental data of the water storage device, obtaining the target working mode of the bulb lamp, and controlling the bulb lamp to play the target music or adjust the lights of multiple light sources according to the target working mode; it can effectively control the Internet of Things linkage between the bulb lamp and the water storage device, adding interest to the bulb lamp. Description of the Drawings
[0046] Figure 1 It is an example flow chart of the intelligent Internet of Things control method of the bulb lamp in an embodiment of the present invention;
[0047] Figure 2 It is an example flow chart of obtaining the target working mode of the bulb lamp by adjusting according to the environmental data in the intelligent Internet of Things control method of the bulb lamp in an embodiment of the present invention;
[0048] Figure 3 It is an example flow chart of obtaining the target working mode of the bulb lamp by adjusting according to the environmental data in the intelligent Internet of Things control method of the bulb lamp in an embodiment of the present invention;
[0049] Figure 4 It is an example flow chart of obtaining the target working mode of the bulb lamp by adjusting according to the environmental data in the intelligent Internet of Things control method of the bulb lamp in an embodiment of the present invention;
[0050] Figure 5 It is an example flow chart of adjusting the adjustment range of the light source brightness of the bulb lamp in the intelligent Internet of Things control method of the bulb lamp in an embodiment of the present invention;
[0051] Figure 6 It is an example flow chart of obtaining the target working mode of the bulb lamp by adjusting according to the environmental data in the intelligent Internet of Things control method of the bulb lamp in an embodiment of the present invention;
[0052] Figure 7 It is an example flow chart of obtaining the target working mode of the bulb lamp by adjusting according to the configuration data in the intelligent Internet of Things control method of the bulb lamp in an embodiment of the present invention;
[0053] Figure 8 It is a schematic diagram of the program modules of the intelligent Internet of Things control device of the bulb lamp in an embodiment of the present invention;
[0054] Figure 9FIG. 1 is a schematic diagram of the hardware architecture of a computer device suitable for implementing an intelligent IoT control method for a bulb lamp according to one embodiment of the present invention. DETAILED DESCRIPTION
[0055] To make the objectives, technical solutions, and advantages of the present invention more clear, the technical solutions of the present invention are described clearly and completely below. Obviously, the embodiments described are only some of the embodiments of the present invention, not all of them. All other embodiments derived by ordinary persons in this field based on the embodiments of the present invention without creative effort are within the scope of protection of the present invention.
[0056] Unless otherwise defined, the technical or scientific terms used in the present invention shall have the usual meanings understood by persons of ordinary skill in the field to which the present invention belongs. The words "first", "second", "third", "fourth" and similar terms used in the present invention do not indicate any order, quantity or importance, but are only used to distinguish different components. Words such as "include" or "comprise" mean that the elements or objects preceding the word include the elements or objects listed after the word and their equivalents, without excluding other elements or objects. Words such as "connect" or "connected" are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect.
[0057] In the description of the present invention, it should be understood that the numerical labels before the steps do not identify the order in which the steps are executed, but are only used to facilitate the description of the present invention and to distinguish each step, and therefore should not be understood as a limitation of the present invention.
[0058] Currently, bulbs can be integrated into the home IoT through intelligent control. In IoT systems, lighting fixtures like incandescent lamps and energy-saving lamps can be controlled and switched on and off in coordination with other devices. For example, within the same IoT system, curtains in a venue can be linked to the white light mode of a bulb. Opening the curtains activates the white light mode of the bulb. However, the linkage functionality of bulbs in these IoT systems is limited, making them less engaging.
[0059] To address the above issues, the present invention provides an intelligent IoT control method for bulb lamps, which can enhance the richness of the linkage functions of bulb lamps in IoT systems and increase the fun of bulb lamps in IoT systems. The technical solution of the present invention is described in detail below with reference to specific examples.
[0060] Example 1
[0061] Reference Figure 1As shown, a flowchart of the steps of the intelligent Internet of Things control method for the bulb lamp according to an embodiment of the present invention is shown. In the present invention, the bulb lamp is applied to a water storage device; the bulb lamp includes a plurality of light sources. It can be understood that the flowchart in the embodiment of the present method is not used to limit the order of execution steps. The following is an exemplary description with the control module as the execution subject. The bulb lamp includes a control module, and the control module is used to control the corresponding operations of the bulb lamp, specifically as follows:
[0062] As Figure 1 shown, the intelligent Internet of Things control method for the bulb lamp may include steps S100 to S106, where:
[0063] Step S100, real-time detect the current working mode of the bulb lamp.
[0064] Specifically, the current working mode is used to characterize that the bulb lamp is currently powered on and in a working state. The current working mode includes but is not limited to: music mode, lighting mode. Among them, the music mode characterizes that the bulb lamp is currently in the working mode of playing music; the lighting mode characterizes that the bulb lamp is currently in the working mode of the light source being lit. In some embodiments, the working mode includes the music + lighting mode, that is, it characterizes that the bulb lamp is currently in the working mode of playing music and the light source being lit. The working mode of the bulb lamp is not limited here and can be set according to actual needs.
[0065] Step S102, obtain the environmental data of the water storage device.
[0066] In the embodiments of the present invention, the water storage device includes but is not limited to: swimming pools, hot spring pools, bathing pools, etc.
[0067] Specifically, the environmental data includes at least one of the following data: environmental sound data, water flow data, water temperature data, water turbidity data.
[0068] Step S104, adjust the current working mode of the bulb lamp according to the environmental data, and obtain the target working mode of the bulb lamp.
[0069] Step S106, control the bulb lamp to play the target music and / or adjust the lighting of the plurality of light sources according to the target working mode.
[0070] The embodiments of the present invention have the following advantages: By the environmental data of the water storage device, adjust the current working mode of the bulb lamp to obtain the target working mode of the bulb lamp, and according to the target working mode, control the bulb lamp to play the target music or adjust the lighting of the plurality of light sources; it can effectively perform Internet of Things linkage control between the bulb lamp and the water storage device, adding fun to the bulb lamp.
[0071] Specifically, the environmental data at least includes water temperature data.
[0072] Please refer to Figure 2 , in some specific embodiments of the present invention, the step S104 of adjusting the target working mode of the bulb lamp according to the environmental data may further include the following operations, specifically as follows: Step S200, identifying the target temperature range where the water temperature data is located; Step S202, obtaining the target lighting data corresponding to the target temperature range, where the lighting data includes at least one of the following data: the adjustment amplitude of the light source brightness, the switching frequency of the light source lighting, and the light source color system; and, Step S204, based on the target lighting data, adjusting the current lighting mode of the bulb lamp to obtain the target lighting mode of the bulb lamp. In the embodiments of the present invention, by identifying the target temperature range where the water temperature data is located, matching the target lighting data corresponding to the target temperature range; then adjusting the target lighting mode according to the target lighting data; based on the environmental data of the water storage device, realizing the IoT linkage control between the bulb lamp and the water storage device, improving the intelligence level of the bulb lamp, and enhancing the interest of the bulb lamp.
[0073] In an exemplary embodiment, in the bulb lamp, the corresponding relationship between multiple temperature ranges and lighting data is preset. For example, when the temperature range is below 30°C, it corresponds to mainly cold-colored lighting, which can be understood as that the cold-colored lighting accounts for more than 60% of the total lighting quantity of the light source; when the temperature range is 30°C to 40°C, it corresponds to mainly neutral-colored lighting, which can be understood as that the neutral-colored lighting accounts for more than 60% of the total lighting quantity of the light source; when the temperature range is above 40°C, it corresponds to mainly warm-colored lighting, which can be understood as that the warm-colored lighting accounts for more than 60% of the total lighting quantity of the light source. In step S204, the target color system lighting corresponding to the determined target temperature range can be determined, and based on the comparison result between the target color system lighting and the current color system lighting, the current color system lighting of the bulb lamp is switched to the target color system lighting.
[0074] For example, when the temperature range is below 30°C, it corresponds to a weak level of brightness; when the temperature range is 30°C to 40°C, it corresponds to a medium level of brightness; when the temperature range is above 40°C, it corresponds to a strong level of brightness. In step S204, the target light source brightness corresponding to the determined target temperature range can be determined, the target light source brightness is compared with the current light source brightness to obtain the adjustment amplitude of the light source brightness, and the current light source brightness is adjusted to the target light source brightness according to the adjustment amplitude of the light source brightness.
[0075] For example, when the temperature range is below 30°C, it corresponds to a high speed of the light source lighting switching frequency; when the temperature range is 30°C to 40°C, it corresponds to a medium speed of the light source lighting switching frequency; when the temperature range is above 40°C, it corresponds to a low speed of the light source lighting switching frequency. The above examples of the light source lighting switching frequency are preferably applicable to hot spring pools.
[0076] Specifically, the lighting modes of the bulb lamp include combined lighting modes. For example: white light → red light → red flashing light → colored light 1 → white light →..., cycling through the lights; or, for example: colored light 1 → colored light 2 → colored light 3 → colored light 1 →..., cycling through the lights. The switching frequency of the light source can be understood as, in the combined lighting mode of "white light → red light → red flashing light → colored light 1 → white light →...", the frequency of switching from white light to red light, the frequency of switching from red light to red flashing light, the frequency of switching from red flashing light to colored light 1, the frequency of switching from colored light 1 to white light, and so on.
[0077] Specifically, the environmental data at least includes water flow data.
[0078] Please refer to Figure 3 , in some specific embodiments of the present invention, the step S104 of adjusting the target working mode of the bulb lamp according to the environmental data may further include the following operations, specifically as follows: step S300, identifying the target flow rate range where the water flow data is located; step S302, obtaining the target lighting data corresponding to the target flow rate range, where the lighting data includes at least one of the following data: the adjustment amplitude of the light source brightness, the switching frequency of the light source lighting, the light source color system; and, step S304, based on the target lighting data, adjusting the current lighting mode of the bulb lamp to obtain the target lighting mode of the bulb lamp. In the embodiments of the present invention, by identifying the target flow rate range where the water flow data is located, matching the target lighting data corresponding to the target flow rate range; then adjusting to obtain the target lighting mode according to the target lighting data; based on the environmental data of the water storage device, realizing the IoT linkage control between the bulb lamp and the water storage device, improving the intelligence of the bulb lamp and enhancing the interest of the bulb lamp.
[0079] In an exemplary embodiment, in the bulb lamp, the corresponding relationships between multiple flow rate ranges and lighting data are preset. For example, a flow rate range of less than 1.5 m / s corresponds to cold-colored light, a flow rate range of 1.5 m / s to 2 m / s corresponds to neutral-colored light; a flow rate range of 2 m / s to 2.5 m / s corresponds to warm-colored light. In step S204, the target color system light corresponding to the determined target flow rate range can be determined, and based on the comparison result between the target color system light and the current color system light, the current color system light of the bulb lamp is switched to the target color system light.
[0080] For example, a flow rate range of less than 1.5 m / s corresponds to a weak level of brightness, a flow rate range of 1.5 m / s to 2 m / s corresponds to a medium level of brightness; a flow rate range of 2 m / s to 2.5 m / s corresponds to a strong level of brightness. In step S204, the target light source brightness corresponding to the determined target flow rate range can be determined, the target light source brightness is compared with the current light source brightness to obtain the adjustment amplitude of the light source brightness, and the current light source brightness is adjusted to the target light source brightness according to the adjustment amplitude of the light source brightness.
[0081] Specifically, the environmental data at least includes water temperature data and water flow data.
[0082] Please refer to Figure 4 , in some preferred embodiments of the present invention, the step S104 of adjusting the target operating mode of the bulb lamp according to the environmental data may further include the following operations, specifically as follows: Step S400, identifying the target temperature range of the water temperature data and identifying the target flow rate range of the water flow data; Step S402, obtaining first lighting data corresponding to the target temperature range and obtaining second lighting data corresponding to the target flow rate range; Step S404, combining the first lighting data and the second lighting data to obtain target lighting data; and Step S406, based on the target lighting data, adjusting the current lighting mode of the bulb lamp to obtain the target lighting mode of the bulb lamp. In some embodiments of the present invention, if the difference between the first lighting data and the second lighting data is less than a preset difference threshold, the first lighting data and the second lighting data are combined, and the intermediate lighting data is taken as the target lighting data by compromise. In some other embodiments of the present invention, the priority of the water flow data is higher than the priority of the water temperature data. If the difference between the first lighting data and the second lighting data is greater than the preset difference threshold, the first lighting data is removed, and the second lighting data is determined as the target lighting data. In some other embodiments of the present invention, the priority of the water flow data is lower than the priority of the water temperature data. If the difference between the first lighting data and the second lighting data is greater than the preset difference threshold, the second lighting data is removed, and the first lighting data is determined as the target lighting data.
[0083] Please refer to Figure 5 , in some preferred embodiments of the present invention, the method further includes steps S500 to S502 to adjust the lighting mode of the bulb lamp, specifically as follows: Step S500, obtaining the distance data between the bulb lamp and the side wall of the water storage device; and Step S502, when the distance data is less than a preset distance threshold, increasing the adjustment range of the light source brightness of the bulb lamp. In the embodiments of the present invention, when the distance data between the bulb lamp and the side wall of the water storage device is less than the preset distance threshold, the adjustment range of the light source brightness of the bulb lamp is increased, that is, the adjustment range of the light source brightness of the bulb lamp is further increased in the current lighting mode, so that the bulb lamp can emit a high-brightness light source light in the target lighting mode to remind the user that the bulb lamp is in a position where it is relatively easy to be collided by the side wall of the water storage device in the water storage device; thereby enabling the user to timely move the bulb lamp away from the side wall of the water storage device to reduce the damage caused to the bulb lamp by the collision.
[0084] Specifically, the environmental data at least includes water flow data.
[0085] To further enhance the fun of bulbs in IoT systems, please refer to Figure 6 In some preferred embodiments of the present invention, the step S104 of adjusting the target operating mode of the bulb according to the environmental data may also include the following operations, specifically: step S600, identifying the target flow rate range of the water flow data; step S602, obtaining target music data corresponding to the target flow rate range, wherein the target music data includes at least one of the following data: music type data, single music playback speed data, and music style data; and step S604, adjusting the current music mode of the bulb based on the target music data to obtain the target music mode of the bulb. In an embodiment of the present invention, by identifying the target flow rate range of the water flow data, matching the target music data corresponding to the target flow rate range, and then adjusting the target music mode according to the target music data; based on the environmental data of the water storage device, the IoT linkage control of the bulb and the water storage device is realized, thereby improving the intelligence of the bulb and enhancing the fun of the bulb.
[0086] In an exemplary embodiment, multiple correspondences between flow rate ranges and music data are pre-set. For example, a flow rate range of less than 1.5 m / s corresponds to classical music, a flow rate range of 1.5 m / s to 2 m / s corresponds to light music, and a flow rate range of 2 m / s to 2.5 m / s corresponds to pop music. In this embodiment of the present invention, by using the target flow rate range, slow classical or light music can be matched when the flow rate is relatively slow, and upbeat meteor-like music can be matched when the flow rate is relatively fast.
[0087] For example, the playback speed data of a single music includes 0.5 times, 1 times, 1.25 times, 1.5 times, 1.75 times, 2 times, etc. For example, the music style data includes: DJ style, cello style, horse-head fiddle style, etc.
[0088] To further improve the intelligence level of the bulb, please refer to Figure 7, in some preferred embodiments of the present invention, after the step of adjusting the current working mode of the bulb lamp according to the environmental data and obtaining the target working mode of the bulb lamp, the method further includes steps S700 to S704, where: Step S700, obtaining configuration data, where the configuration data includes preference data; Step S702, adjusting the target working mode according to the configuration data; and Step S704, controlling the bulb lamp to play target music and / or adjusting the lights of the plurality of light sources according to the adjusted target working mode. In the present invention, by combining configuration information, the preference data of different users can be fully integrated into the IoT linkage control of the bulb lamp and the water storage device, which can meet the personalized working mode requirements of different users for the bulb lamp in different scenarios of the water storage device, and can also effectively improve the interest of the bulb lamp.
[0089] Embodiment II
[0090] Please continue to refer to Figure 8 , which shows a schematic diagram of the program modules of the intelligent IoT control device 80 of the bulb lamp according to an embodiment of the present invention. In this embodiment, the intelligent IoT control device 80 of the bulb lamp may include or be divided into one or more program modules, and one or more program modules are stored in an embedded storage chip and executed by one or more processors to complete the present invention and implement the above-mentioned intelligent IoT control method of the bulb lamp. The program modules referred to in the embodiments of the present invention refer to a series of computer program instruction segments that can complete specific functions, and are more suitable for describing the execution process of the intelligent IoT control device 80 of the bulb lamp in the storage medium than the program itself. The following description will specifically introduce the functions of each program module in this embodiment.
[0091] Specifically, the bulb lamp is applied to a water storage device; the bulb lamp includes a plurality of light sources.
[0092] The intelligent IoT control device 80 of the bulb lamp includes:
[0093] A real-time detection module 800, configured to detect the current working mode of the bulb lamp in real time;
[0094] An acquisition module 802, configured to acquire the environmental data of the water storage device;
[0095] An adjustment module 804, configured to adjust the current working mode of the bulb lamp according to the environmental data and obtain the target working mode of the bulb lamp; and
[0096] An execution module 806, configured to control the bulb lamp to play target music and / or adjust the lights of the plurality of light sources according to the target working mode.
[0097] Embodiment III
[0098] Schematically shows a schematic diagram of the hardware architecture of a computer device suitable for implementing the intelligent Internet of Things control method of a bulb lamp according to an embodiment of the present invention. Refer to Figure 9 As shown, an embodiment of the present invention further provides a computer device 100, including a memory 101, a processor 102, and a computer program stored on the memory and executable on the processor. When the processor 102 executes the computer program, it is used to implement the steps of the intelligent Internet of Things control method of the bulb lamp in any of the above embodiments. In this embodiment, the computer device 100 is a device that can automatically perform fractional calculations and / or information processing according to pre-set or stored instructions. Such as Figure 9 As shown, the computer device 100 at least includes, but is not limited to: a memory 101, a processor 102, and a network interface 103 that can be communicatively linked to each other through a system bus. Among them:
[0099] The memory 101 at least includes one type of computer-readable storage medium, and the readable storage medium includes RAM, SRAM, ROM, EEPROM, PROM, etc.
[0100] In some embodiments, the processor 102 may be a central processing unit (CPU for short), a controller, a microcontroller, a microprocessor, or other data processing chips. The processor 10020 is generally used to control the overall operation of the computer device 100, for example, to execute control and processing related to data interaction or communication with the computer device 100. In this embodiment, the processor 102 is used to run the program code stored in the memory 101 or process data.
[0101] It should be noted that Figure 9 Only the computer device 100 with components 101-103 is shown, but it should be understood that it is not required to implement all the shown components, and more or fewer components can be alternatively implemented.
[0102] Embodiment Four
[0103] The present invention also provides a computer storage medium, on which a computer program is stored, and when the computer program is executed by at least one processor, it implements the steps of the intelligent Internet of Things control method of the bulb lamp in the embodiment.
[0104] In this embodiment, the computer storage medium may be an internal storage unit of the computer device, such as the hard disk or memory of the computer device. Among them, the computer storage medium includes a computer-readable storage medium. The computer storage medium is generally used to store the operating system installed in the computer device and various application software, such as the program code of the intelligent IoT control method of the bulb lamp in the embodiment. In addition, the computer storage medium can also be used to temporarily store various data that have been output or will be output.
[0105] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions described in the foregoing embodiments, or perform equivalent replacements for some of the technical features; and these modifications or replacements 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 the present invention.
Claims
1. An intelligent Internet of Things control method for a bulb lamp, characterized in that, The bulb lamp is applied to a water storage device; the bulb lamp includes multiple light sources; and the method includes: Real-time detection of the current working mode of the bulb; Acquiring environmental data of the water storage device; adjusting the current operating mode of the bulb according to the environmental data, and obtaining a target operating mode of the bulb; and According to the target working mode, the bulb is controlled to play target music and / or adjust the lights of the multiple light sources.
2. The intelligent Internet of Things control method of the bulb lamp according to claim 1, characterized in that, The environmental data at least includes water temperature data; The step of adjusting and obtaining the target operating mode of the bulb lamp according to the environmental data further includes: Identifying a target temperature range within which the water temperature data falls; Acquiring target light data corresponding to the target temperature range, wherein the light data includes at least one of the following data: an adjustment range of light source brightness, a light source lighting switching frequency, and a light source color; and Based on the target light data, the current light mode of the bulb is adjusted to obtain the target light mode of the bulb.
3. The intelligent Internet of Things control method for the bulb lamp according to claim 1, characterized in that The environmental data at least includes water flow data; The step of adjusting and obtaining the target operating mode of the bulb lamp according to the environmental data further includes: Identifying a target flow rate range within which the water flow data falls; Acquiring target lighting data corresponding to the target flow rate range, wherein the lighting data includes at least one of the following data: an adjustment range of the light source brightness, a light source lighting switching frequency, and a light source color; and Based on the target light data, the current light mode of the bulb is adjusted to obtain the target light mode of the bulb.
4. The intelligent IoT control method for a bulb lamp according to claim 1, characterized in that: The environmental data includes at least water temperature data and water flow data; The step of adjusting and obtaining the target operating mode of the bulb lamp according to the environmental data further includes: Identifying a target temperature range described by the water temperature data and identifying a target flow rate range described by the water flow data; Acquiring first lighting data corresponding to the target temperature range and acquiring second lighting data corresponding to the target flow rate range; combining the first light data and the second light data to obtain target light data; and Based on the target light data, the current light mode of the bulb is adjusted to obtain the target light mode of the bulb.
5. The intelligent Internet of Things control method for the bulb lamp according to any one of claims 2 to 4, characterized in that The method further comprises: Acquiring distance data between the bulb and the side wall of the water storage device; and When the distance data is less than a preset distance threshold, the adjustment range of the light source brightness of the bulb lamp is increased.
6. The intelligent IoT control method for a bulb lamp according to claim 1, characterized in that: The environmental data at least includes water flow data; The step of adjusting and obtaining the target operating mode of the bulb lamp according to the environmental data further includes: Identifying a target flow rate range within which the water flow data falls; Acquire target music data corresponding to the target flow rate range, wherein the target music data includes at least one of the following data: music type data, single music playback speed data, and music style data; And, based on the target music data, the current music mode of the bulb is adjusted to obtain the target music mode of the bulb.
7. The intelligent Internet of Things control method for the bulb lamp according to any one of claims 2 to 4 and 6, characterized in that, After the step of adjusting the current working mode of the bulb lamp according to the environmental data and obtaining the target working mode of the bulb lamp, the method further includes: Obtain configuration data, where the configuration data includes preference data; Adjust the target working mode according to the configuration data; and According to the adjusted target working mode, control the bulb lamp to play target music and / or adjust the lighting of the multiple light sources.
8. An intelligent Internet of Things control device for a bulb lamp, characterized in that, The bulb lamp is applied to a water storage device; the bulb lamp includes multiple light sources; the device includes: A real-time detection module, configured to detect the current working mode of the bulb lamp in real time; An acquisition module, configured to acquire the environmental data of the water storage device; An adjustment module, configured to adjust the current working mode of the bulb lamp according to the environmental data and obtain the target working mode of the bulb lamp; and An execution module, configured to control the bulb lamp to play target music and / or adjust the lighting of the multiple light sources according to the target working mode.
9. A computer device, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, characterized in that, When the processor executes the computer program, it is used to implement the steps of the intelligent Internet of Things control method of the bulb lamp according to any one of claims 1 to 7.
10. A computer storage medium, characterized in that It stores a computer program, and the computer program can be executed by at least one processor, so that the at least one processor executes the steps of the intelligent Internet of Things control method of the bulb lamp according to any one of claims 1 to 7.