A method, device, equipment and medium for adaptive control of IoT lamps
Through the Internet of Things technology, components such as sensors and DIP switches are used to dynamically adjust the lighting parameters of smart lamps based on the traffic information of the target object, solving the problem that existing smart lamps cannot be dynamically adjusted, achieving better energy-saving effects and User experience.
Patent Information
- Application Number
- CN202311386735.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-24
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2043-10-24
AI Technical Summary
Existing smart lamps cannot dynamically adjust induction brightness, standby brightness, and lighting duration according to actual conditions, resulting in failure to achieve better energy-saving effects.
Through the Internet of Things technology, the sensor is used to obtain the flow information of the target object, and the lighting data of the lamp is adjusted according to the flow information, including induction brightness, standby brightness and lighting duration, to achieve adaptive control, and through the DIP switch and Bluetooth communication mode The group implements different lighting strategies and synchronous lighting instructions in different scenarios.
It realizes that lamp control is more suitable for a variety of scenes, avoids light flickering, improves user experience, and achieves better energy-saving effects by dynamically adjusting lighting data.
Smart Images

Figure CN117440575B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of lamp control, and in particular to an Internet of Things lamp adaptive control method, device, equipment and medium. Background Art
[0002] At present, with the development of science and technology, various inventions and creations about smart lamps are emerging in an endless stream, the degree of automation of lamps is getting higher and higher, and lamps with different functions have also provided great convenience for people's lives. For example, lamps with voice control, light control or temperature control functions can control the lighting of the lamps according to the relevant physical quantities detected by their own sensors, thereby realizing the effect of intelligent control of lamps and saving the energy consumed by lamps.
[0003] In the control strategies of lamps in related technologies, parameters such as the sensing brightness, standby brightness, and lighting duration of the lamps are fixed, and fixed actions are performed based on the detected physical quantities. They cannot be dynamically adjusted based on actual conditions, and thus cannot achieve better energy-saving effects.
[0004] The above-mentioned related technologies have the following defects: the lamps cannot be dynamically adjusted according to actual conditions, thereby failing to achieve better energy-saving effects. Summary of the invention
[0005] In order to provide a lighting control strategy that can be more dynamically adjusted in accordance with actual conditions to achieve better energy-saving effects, the present application provides an IoT lighting adaptive control method, device, equipment and medium.
[0006] In the first aspect, the above-mentioned invention objective of the present application is achieved through the following technical solutions:
[0007] An Internet of Things lamp adaptive control method, the Internet of Things lamp adaptive control method comprising:
[0008] Acquire current sensing data, and obtain current flow information according to the current sensing data;
[0009] According to the current flow information, the lighting data corresponding to the lamp is obtained;
[0010] According to the lighting data corresponding to the lamp, the lamp is controlled to light up.
[0011] By adopting the above technical solution, a sensor is installed in the lamp, so that the lamp can sense the corresponding target object and obtain the flow information of the target object, such as pedestrian flow or vehicle flow. The lamp is controlled by the obtained flow information of the target object, so that the control of the lamp is more suitable for a variety of scenarios, and avoids the lamp relying only on sensing data. When the target object is sensed, the light is turned on, resulting in flickering of the light when the flow of the target object is large, which reduces the user experience. The lighting data obtained according to the current flow of the target object refers to the lighting parameters of the lamp, including sensing brightness, standby brightness and lighting time. When it is determined that the flow of the target object has changed, the lighting data of the lamp is adjusted to adapt to the current flow of the target object according to the specific flow of the target object represented by the current flow information, so as to achieve adaptive adjustment of the lighting data of the lamp, and then achieve better energy-saving effect.
[0012] In a preferred example, the present application can be further configured as follows: obtaining the lighting data corresponding to the lamp according to the current flow information specifically includes:
[0013] Obtaining a dial setting of a dial switch in a lamp, and obtaining a lamp type corresponding to the lamp according to the dial setting of the dial switch;
[0014] According to the lamp type and the current flow information, lighting data corresponding to the lamp is obtained.
[0015] By adopting the above technical solution, a dip switch is installed in the lamp, and a binary code can be set in the dip switch. In the present application, the type of the corresponding lamp is identified by setting the binary code of the dip switch in the lamp, so as to implement different lighting strategies according to different lamps. For example, when the lamp is installed in a parking lot, the lamp type can be divided into driveway lights and parking space lights. By identifying the dip settings of the lamps in the parking lot, it is determined whether the identified lamp is a driveway light or a parking space light. The lighting strategies of the driveway light and the parking space light are different. Therefore, more scene applications can be realized by setting the dip switch, thereby improving the practicality of the lamp.
[0016] In a preferred example, the present application may be further configured as follows: the step of obtaining the lighting data corresponding to the lamp according to the current flow information further includes:
[0017] Acquire the last flow information within a predetermined unit time, and perform arithmetic calculation based on the last flow information and the current flow information to obtain the current flow change information;
[0018] According to the current flow change information, the lighting data corresponding to the lamp is obtained.
[0019] By adopting the above technical scheme, an arithmetic calculation is performed based on the flow information of the target object obtained by the lamp last time, combined with the flow information of the target object currently obtained, to obtain the flow change of the target object. For example, when the lamp obtains the flow information of the target object in the previous 10 minutes every 1 minute, the current flow information of the target object is the flow of the target object in the previous 10 minutes at the current moment, and the previous flow information is the flow of the target object in the previous 10 minutes 1 minute ago. The current flow change information is obtained based on the arithmetic calculation of the previous flow information and the current flow information. According to the amplitude of the flow change represented by the current flow change information, the lighting data of the lamp is adjusted accordingly, so that the change of the lamp is more in line with the actual situation, the user experience is improved, and the energy-saving effect of the lamp is enhanced.
[0020] In a preferred example, the present application can be further configured as follows: obtaining the lighting data corresponding to the lamp according to the current flow change information specifically includes:
[0021] The previous lighting data corresponding to the previous flow information is obtained, and the lighting data corresponding to the lamp is obtained according to the previous lighting data corresponding to the previous flow information and the current flow change information.
[0022] By adopting the above-mentioned technical scheme, according to the previous lighting data corresponding to the previous flow information, that is, the corresponding sensing brightness, standby brightness, lighting duration, etc. made by the lamp according to the previous flow information, combined with the flow change of the target object represented by the current flow change information, the current lighting data corresponding to the lamp is obtained. For example, when the current flow change information indicates that the flow of the target object has changed significantly, and the previous lighting data corresponds to the lighting data when the flow of the target object is relatively small, then according to the amplitude of the flow change of the target object represented by the current flow change information, the lighting data of the lamp is adjusted accordingly, so that the adjustment of the lamp adapts to the flow change of the target object, thereby enhancing the energy-saving effect of the lamp.
[0023] In a preferred example, the present application may be further configured as follows: after obtaining the lighting data corresponding to the lamp according to the current flow information, the IoT lamp adaptive control method further includes:
[0024] A lighting instruction is sent to other lamps within a predetermined range, so that the other lamps are lit according to the lighting instruction.
[0025] By adopting the above technical solution, a Bluetooth communication module is also installed in the lamp. When the lamp obtains the corresponding lighting data, it sends a lighting instruction to the remaining lamps within a predetermined range through the Bluetooth communication module. After receiving the lighting instruction, the remaining lamps light up according to the preset lighting rules. For example, when the lamp is installed in a parking lot, the dial setting of the lamp that sends the lighting instruction indicates that the lamp that sends the lighting instruction is a lane light. The lane light that sends the lighting instruction lights up and sends the lighting instruction when it senses the vehicle. The remaining lane lights also light up after receiving the lighting instruction, thereby ensuring the brightness of the vehicle in the parking lot and avoiding the situation where the lamps light up asynchronously or the lighting area is small when the vehicle is driving in the parking lot, which leads to insufficient brightness of the parking lot or the lamps do not light up when the vehicle is driving in the parking lot, thereby further improving the user experience.
[0026] In a preferred example, the present application may be further configured as follows: sending a lighting instruction to other lamps within a predetermined range so that the other lamps light up according to the lighting instruction specifically includes:
[0027] A lighting instruction is sent to the remaining lamps within the predetermined range, so that the remaining lamps determine their corresponding lamp types according to the dial settings of their corresponding dial switches, and the remaining lamps whose lamp types match the lamp are lit according to the lighting instruction.
[0028] By adopting the above technical solution, the lighting instruction includes the dial setting of the lamp that sends the lighting instruction. The other lamps judge the lamp type of the lamp that sends the lighting instruction and the lamp type of the other lamps according to the dial setting of the lamp that sends the lighting instruction and the dial setting of the other lamps themselves, and judge whether the other lamps need to be turned on in combination with the preset lighting rules, and turn on the lamps according to the judgment results. For example, when the lamps are installed in the parking lot, the dial setting of the lamp that sends the lighting instruction indicates that the lamp that sends the lighting instruction is a lane light, and the preset lighting rule is that the parking space light does not turn on when receiving the lighting instruction from the lane light. Then, the other lane lights within the predetermined range of the lane light that sends the lighting instruction will turn on when they receive the lighting instruction, and the other parking space lights within the predetermined range will not turn on when they receive the lighting instruction. Therefore, the lighting strategies between the identities of different lamps are different. Self-organizing networking is realized through the Bluetooth communication module, and the adaptive strategies are synchronized with each other to achieve better user experience and energy-saving benefits.
[0029] In a preferred example, the present application may be further configured as follows: after controlling the lamp to light up according to the lighting data corresponding to the lamp, the present application may further include:
[0030] Acquire the light-on period sensing data, and obtain the light-on period flow information according to the light-on period sensing data;
[0031] Compare the current flow rate change information with the light-on period flow rate information to obtain flow rate difference information;
[0032] An equivalent difference calculation is performed based on the flow difference information and the lighting data to obtain lighting change data during the lighting period, and the lamp is controlled to light up based on the lighting change data during the lighting period.
[0033] By adopting the above technical solution, after the lamp is turned on, the sensor in the lamp senses the number of target objects in real time to obtain the sensing data of the lighting period. The lighting period refers to the time period from the time the lamp is turned on to the next time the current flow information is obtained. During the lighting period, if the flow difference information is greater than the preset threshold, it means that the flow of the target object has undergone an abnormal change, that is, the lighting data during the lighting period is not applicable to the lighting period. Therefore, based on the abnormal change situation represented by the flow difference information and the lighting data obtained by adjustment, an equivalent difference calculation is performed to obtain the lighting change data of the lighting period when the lamp responds to the abnormal change of the flow of the target object. By using the lighting change data of the lighting period as a fault-tolerant mechanism, the fault-tolerant capability of the lamp during adjustment is guaranteed, and the user experience is further improved.
[0034] In the second aspect, the above invention objective of the present application is achieved through the following technical solutions:
[0035] An Internet of Things lamp adaptive control device, the Internet of Things lamp adaptive control device comprising:
[0036] A current flow information acquisition module is used to acquire current sensing data and obtain current flow information according to the current sensing data;
[0037] A lighting data acquisition module, used to obtain lighting data corresponding to the lamp according to the current flow information;
[0038] The lamp lighting control module is used to control the lamp to light up according to the lighting data corresponding to the lamp.
[0039] In the third aspect, the above invention objective of the present application is achieved through the following technical solutions:
[0040] A computer device comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above-mentioned method for adaptively controlling IoT lamps when executing the computer program.
[0041] In a fourth aspect, the above-mentioned invention objective of the present application is achieved through the following technical solutions:
[0042] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps of the above-mentioned method for adaptively controlling an IoT lamp.
[0043] In summary, the present application includes at least one of the following beneficial technical effects:
[0044] 1. The lamps are controlled by the traffic information of the target object, so that the control of the lamps is more suitable for various scenarios, avoiding the situation that the lamps only rely on the sensing data and turn on the lamps as soon as the target object is sensed, resulting in the situation that the lights flicker when the traffic of the target object is large, which reduces the user experience. When the traffic of the target object is judged to have changed, the lighting data of the lamps is adjusted according to the traffic of the specific target object represented by the current traffic information to adapt to the current traffic situation of the target object, so as to achieve adaptive adjustment of the lighting data of the lamps, and then achieve better energy-saving effect;
[0045] 2. A dip switch is installed in the lamp, and a binary code can be set in the dip switch. In this application, the type of the corresponding lamp is identified by setting the binary code of the dip switch in the lamp, so that different lighting strategies can be implemented according to different lamps. More scene applications can be realized by setting the dip switch, thereby improving the practicality of the lamp;
[0046] 3. The lighting period refers to the time period from when the lamp is turned on to the next time the current flow information is obtained. During the lighting period, if the flow difference information is greater than the preset threshold, it means that the flow of the target object has an abnormal change, that is, the lighting data during the lighting period is not applicable to the lighting period. Therefore, based on the abnormal change situation represented by the flow difference information and the lighting data obtained by adjustment, the lighting change data of the lighting period when the lamp responds to the abnormal change of the flow of the target object is obtained. By using the lighting change data of the lighting period as a fault-tolerant mechanism, the fault-tolerant capability of the lamp during adjustment is guaranteed, further improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] Figure 1 This is a first implementation flow chart of the method for adaptively controlling an IoT lamp in an embodiment of the present application;
[0048] Figure 2 It is a partial implementation flow chart of S20 of the method for adaptively controlling an IoT lamp in an embodiment of the present application;
[0049] Figure 3 It is a partial implementation flow chart of S20 of the method for adaptively controlling an IoT lamp in an embodiment of the present application;
[0050] Figure 4is a flowchart for implementing S24 of the method for adaptively controlling an IoT lamp in an embodiment of the present application;
[0051] Figure 5 This is a second implementation flow chart of the method for adaptively controlling an IoT lamp in an embodiment of the present application;
[0052] Figure 6 is a flowchart for implementing S40 of the method for adaptively controlling an IoT lamp in an embodiment of the present application;
[0053] Figure 7 This is a third implementation flow chart of the method for adaptively controlling an IoT lamp in an embodiment of the present application;
[0054] Figure 8 This is a principle block diagram of the adaptive control device for IoT lamps in the embodiment of the present application;
[0055] Fig. 9 It is a diagram of the internal structure of the computer device for adaptively controlling IoT lamps in an embodiment of the present application. DETAILED DESCRIPTION
[0056] The following is combined with Figure 1-9 This application is described in further detail.
[0057] In one embodiment, if Figure 1 As shown, the present application discloses an IoT lamp adaptive control method, which specifically includes the following steps:
[0058] S10: Acquire current sensing data, and obtain current flow information based on the current sensing data.
[0059] In this embodiment, the current sensing data refers to the information of the target object sensed by the current lamp. The current flow information refers to the information of the flow of the target object sensed by the current lamp.
[0060] Specifically, the lamp includes a sensing module, which can identify and sense a predetermined target object, such as a person or a vehicle, and obtain information indicating that the lamp is currently sensing the target object, that is, current sensing data. According to a predetermined unit time, the amount of current sensing data within the time period is obtained to obtain current flow information. In this embodiment, the current flow information refers to the current flow information within the current predetermined unit time.
[0061] S20: Obtain lighting data corresponding to the lamp according to the current flow information.
[0062] In this embodiment, the lighting data refers to the working parameter information of the lamp when it is turned on.
[0063] Specifically, density analysis is performed based on the current traffic information of the target object obtained, and the corresponding lighting data is matched. That is, the density of the current target object is analyzed based on the size of the traffic of the current target object, and then the working parameters of the lamps corresponding to different densities are obtained based on the density matching of the target object, that is, the lighting data. The lighting data includes sensing brightness, standby brightness and lighting duration. For example, when the lamps are installed in a parking lot, the current traffic information indicates that the current traffic volume is large. According to the preset density matching rules, it is judged that the current traffic volume is a peak period with high traffic volume and high density. Then, the lighting data corresponding to the preset corresponding peak period is obtained. The sensing brightness and standby brightness of the lighting data corresponding to the peak period are higher, and the lighting duration is also longer.
[0064] S30: Control the lamp to light up according to the lighting data corresponding to the lamp.
[0065] Specifically, after the corresponding lighting data is obtained, the lamp is controlled to light up according to the lighting data, that is, the lamp is controlled to light up according to the brightness parameter in the lighting data, and the lighting duration is maintained according to the duration parameter in the lighting data.
[0066] In one embodiment, if Figure 2 As shown, in step S20, the lighting data corresponding to the lamp is obtained according to the current flow information, specifically including:
[0067] S21: Obtain the dial setting of the dial switch in the lamp, and obtain the lamp type corresponding to the lamp according to the dial setting of the dial switch.
[0068] In this embodiment, the DIP setting refers to the DIP code of the DIP switch installed in the lamp. The lamp type refers to information used to distinguish different identities of the lamp.
[0069] Specifically, a dip switch is installed in the lamp. The dip switch is an electronic switch device. The dip switch is composed of multiple switches, each of which has two states, on and off. The dip switch can be used for binary coding. Changing the switch state of the dip switch can make the dip switch have different codes. The lamp has adjusted the switch state according to actual conditions before installation. Therefore, the coding information of the dip switch installed in the lamp, that is, the dip setting, is obtained. Different coding information of the dip switch represents different lamp identities. According to the dip setting and preset dip matching rules, corresponding information representing the lamp identity, that is, the lamp type, is obtained. For example, when the lamp is installed in a parking lot, the identity of the lamp includes a lane light and a parking space light. According to the dip setting of the dip switch in the lamp, it is determined whether the lamp is a lane light or a parking space light, so that different lighting strategies can be implemented according to the identities of different lamps.
[0070] S22: Obtain lighting data corresponding to the lamp according to the lamp type and current flow information.
[0071] Specifically, after obtaining the lamp type and current flow information, according to the identity of the lamp represented by the lamp type and the preset density matching rules, when the lamp is matched to the identity corresponding to the lamp type and the flow of the target object within the current predetermined unit time is the current flow information, the corresponding lighting data of the lamp is obtained.
[0072] In one embodiment, if Figure 3 As shown, in step S20, according to the current flow information, the lighting data corresponding to the lamp is obtained, which also includes:
[0073] S23: Obtain the previous flow information within a predetermined unit time, perform arithmetic calculation based on the previous flow information and the current flow information, and obtain the current flow change information.
[0074] In this embodiment, the previous flow information refers to the flow information of the target object in the previous predetermined unit time. The current flow change information refers to the difference between the current flow information and the previous flow information.
[0075] Specifically, within a preset time period after obtaining the current flow information, the preset time period refers to the duration between adjacent time points for obtaining the current flow information. The duration of the preset time period indicates the frequency with which the lamp obtains the current flow information. The longer the preset time period, the lower the frequency with which the lamp obtains the current flow information. If the preset time period is less than a predetermined unit time, the flow information of the target object within the last predetermined unit time, i.e., the last flow information, is obtained. Based on the last flow information and the current flow information, the current flow information is subtracted from the last flow information to obtain the current flow change information. The current flow change information indicates the change in the flow of the target object after the preset time period.
[0076] S24: Obtain lighting data corresponding to the lamp according to the current flow change information.
[0077] Specifically, according to the current flow change information indicating the change of the flow of the target object after a preset time period, the lighting data of the lamp adjusted according to the change is obtained.
[0078] In one embodiment, if Figure 4 As shown, in step S24, the lighting data corresponding to the lamp is obtained according to the current flow change information, specifically including:
[0079] S241: Obtain the last lighting data corresponding to the last flow information, and obtain the lighting data corresponding to the lamp according to the last lighting data corresponding to the last flow information and the current flow change information.
[0080] In this embodiment, the previous light-on data refers to the corresponding light-on data obtained according to the previous flow information.
[0081] Specifically, after obtaining the current flow change information, the lighting data corresponding to the previous flow information is obtained, that is, the previous lighting data. The previous lighting data is the corresponding lighting data obtained based on the previous flow information, which represents the lighting data of the lamp in the previous preset time period. Therefore, based on the previous lighting data and the change in flow of the target object represented by the current flow change information, the previous lighting data is adjusted accordingly to obtain the lighting data corresponding to the change in flow of the target object.
[0082] In one embodiment, if Figure 5 As shown, in step S20: after obtaining the lighting data corresponding to the lamp according to the current flow information, the IoT lamp adaptive control method further includes:
[0083] S40: Sending a lighting instruction to other lamps within the predetermined range, so that the other lamps light up according to the lighting instruction.
[0084] In this embodiment, the lighting instruction refers to instruction information for controlling the lighting of a lamp.
[0085] Specifically, a Bluetooth communication module is installed in the lamp, which can send Bluetooth signals by broadcasting. The communication range of the Bluetooth communication module can be preset, and the lamps can realize communication ad hoc networking through the Bluetooth communication module. After obtaining the lighting data corresponding to the lamp, the lamp sends a lighting instruction to the remaining lamps within the predetermined communication range. After receiving the lighting instruction, the remaining lamps turn on according to the preset lighting strategy.
[0086] Furthermore, the lighting instruction includes a dial setting of the lamp that sends the lighting instruction.
[0087] In one embodiment, if Figure 6 As shown, in step S40, a lighting instruction is sent to other lamps within a predetermined range so that the other lamps light up according to the lighting instruction, which specifically includes:
[0088] S41: Sending a lighting instruction to the remaining lamps within the predetermined range, so that the remaining lamps determine their corresponding lamp types according to the dial settings of their corresponding dial switches, and make the remaining lamps whose lamp types match the lamp turn on according to the lighting instruction.
[0089] Specifically, after the lamp sends a lighting command to the remaining lamps within a predetermined communication range, the remaining lamps determine the identity of the lamp that sends the lighting command through the dial settings in the received lighting command, and determine their own identities through the dial settings of the remaining lamps' own dial switches. After obtaining the identity of the lamp that sends the lighting command and their own identities, according to the preset lighting strategy, the remaining lamps with the same identity as the lamp that sends the lighting command are lit, while the lamps with different identities from the lamp that sends the lighting command are not lit. For example, when the lamp is installed in a parking lot, the identity of the lamp includes a lane light and a parking space light. When the identity of the lamp that sends the lighting command is a lane light, the remaining lane lights within the predetermined range of the lamp that sends the lighting command are lit after receiving the lighting command, while the parking space lights within the predetermined range are not lit.
[0090] In one embodiment, if Figure 7 As shown, after step S30: controlling the lamp to light up according to the lighting data corresponding to the lamp, the method further includes:
[0091] S50: Acquire the sensing data of the lighting period, and obtain the flow information of the lighting period according to the sensing data of the lighting period.
[0092] In this embodiment, the lighting period sensing data refers to the information of the target object sensed by the lamp in the preset time period from the time when the lamp is turned on to the time when the current flow information is obtained next time. The lighting period flow information refers to the flow information of the target object obtained in the preset time period.
[0093] Specifically, the sensing module in the lamp continuously senses the target object. The lighting period refers to a preset time period from the time the lamp is turned on to the next time the current flow information is obtained. The preset time period can be pre-set to different durations. The information of the target object sensed by the lamp within the preset time period is obtained, that is, the lighting period sensing data. Based on the lighting period sensing data obtained within the preset time period represented as the lighting period, the flow information of the target object within the preset time period is obtained, that is, the lighting period flow information.
[0094] Furthermore, the number of times the lighting period flow information is obtained is equal to the lighting period sensing data, that is, each time the lighting period sensing data is obtained, the lighting period flow information is obtained once.
[0095] S60: Compare the current flow change information with the light-on period flow information to obtain flow difference information.
[0096] In this embodiment, the flow difference information refers to the difference between the current flow change information and the light-on period flow information.
[0097] Specifically, each time the lighting period flow information is obtained within the lighting period, the lighting period flow information is compared with the current flow change information most recently obtained before the lighting period, and the difference obtained by the comparison is the flow difference information.
[0098] S70: performing an equivalent price difference calculation based on the flow difference information and the lighting data to obtain the lighting change data during the lighting period, and controlling the lamp to light up based on the lighting change data during the lighting period.
[0099] In this embodiment, the lighting change data during the lighting period refers to the lighting data when the lamp faces an abnormal target object flow during the lighting period.
[0100] Specifically, each time the flow difference information is obtained, the flow difference information is compared with a preset threshold value. When the flow difference information is greater than the preset threshold value, it indicates that an abnormal increase or decrease in the flow of the target object occurs during the lighting period, which means that the lighting data during the lighting period is not applicable to the lighting period. Therefore, based on the change in the flow of the target object represented by the flow difference information and the lighting data during the lighting period, an equivalent difference calculation is performed to obtain the lighting data applicable to the lighting period when the lamp faces abnormal flow of the target object, that is, the lighting change data for the lighting period. According to the lighting change data for the lighting period, the lamp is controlled to adjust the lighting. For example, when the lamp is installed in a parking lot, the density matching rule is based on the vehicle flow, and the lighting data is divided into the first gear - peak period (the number of vehicles is 50) and the second gear - off-peak period. (The number of vehicles is 10), the third gear - no-man period (the number of vehicles is 2), and several consecutive no-man periods are the fourth gear - absolutely no-man period. The sensing brightness in the lighting data of the lamp is 80% in the first gear, 60% in the second gear, 20% in the third gear, and 0% in the fourth gear. The lighting time is 15 seconds in the first gear, 10 seconds in the second gear, 5 seconds in the third gear, and 0 seconds in the fourth gear. According to the flow difference information, the vehicle flow increases from 2 to 50, then the lighting data is quickly switched from the third gear to the first gear, then the sensing brightness is switched from 20% to 80%, and the lighting time is increased to 5+ (3-1) seconds, where 3 represents the third gear and 1 represents the first gear. The equivalent difference is equal to 3-1. The next time the flow difference information is obtained, if it is judged to be the peak period, the lighting time will be increased by 2 seconds. If it suddenly returns to calm, the lighting time will be shortened by the same amount.
[0101] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0102] In one embodiment, an Internet of Things lamp adaptive control device is provided, and the Internet of Things lamp adaptive control device corresponds to the Internet of Things lamp adaptive control method in the above embodiment. Figure 8 As shown, the IoT lamp adaptive control device includes a current flow information acquisition module, a lighting data acquisition module and a lamp lighting control module. The functional modules are described in detail as follows:
[0103] The current flow information acquisition module is used to acquire the current sensing data and obtain the current flow information according to the current sensing data;
[0104] The lighting data acquisition module is used to obtain the lighting data corresponding to the lamp according to the current traffic information;
[0105] The lamp lighting control module is used to control the lamp to light up according to the lighting data corresponding to the lamp.
[0106] Optionally, the lighting data acquisition module includes:
[0107] The lamp type acquisition submodule is used to obtain the dial setting of the dial switch in the lamp, and obtain the lamp type corresponding to the lamp according to the dial setting of the dial switch;
[0108] The submodule for obtaining lighting data based on current flow information is used to obtain the lighting data corresponding to the lamp according to the lamp type and current flow information.
[0109] Optionally, the lighting data acquisition module further includes:
[0110] The current flow change information acquisition submodule is used to obtain the previous flow information within a predetermined unit time, and perform arithmetic calculation based on the previous flow information and the current flow information to obtain the current flow change information;
[0111] The submodule for obtaining lighting data based on current flow change information is used to obtain lighting data corresponding to the lamp according to the current flow change information.
[0112] Optionally, the submodule for obtaining light data based on current traffic change information includes:
[0113] The lighting data acquisition unit based on the current flow change information is used to acquire the previous lighting data corresponding to the previous flow information, and obtain the lighting data corresponding to the lamp according to the previous lighting data corresponding to the previous flow information and the current flow change information.
[0114] Optionally, the IoT lamp adaptive control device also includes:
[0115] The lighting instruction sending module is used to send the lighting instruction to the remaining lamps within the predetermined range, so that the remaining lamps are lit according to the lighting instruction.
[0116] Optionally, the light-on command sending module includes:
[0117] The lamp type matching submodule is used to send a lighting instruction to the remaining lamps within a predetermined range, so that the remaining lamps determine their corresponding lamp types according to the dial settings of their corresponding dial switches, and make the remaining lamps whose lamp types match the lamp light up according to the lighting instruction.
[0118] Optionally, the IoT lamp adaptive control device also includes:
[0119] A light-on period flow information acquisition module is used to acquire the light-on period sensing data, and obtain the light-on period flow information according to the light-on period sensing data;
[0120] The flow difference information acquisition module is used to compare the current flow change information with the light-on period flow information to obtain the flow difference information;
[0121] The equal price difference calculation module is used to perform equal price difference calculation based on the flow difference information and the lighting data, obtain the lighting change data during the lighting period, and control the lighting of the lamps according to the lighting change data during the lighting period.
[0122] The specific definition of the IoT lamp adaptive control device can be found in the definition of the IoT lamp adaptive control method above, which will not be repeated here. Each module in the above IoT lamp adaptive control device can be implemented in whole or in part by software, hardware and a combination thereof. The above modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
[0123] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Fig. 9 As shown. The computer device includes a processor, a memory, a network interface and a database connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store lighting data, density matching rules and current flow information, etc. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, an adaptive control method for IoT lamps is implemented.
[0124] In one embodiment, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the following steps when executing the computer program:
[0125] Get the current sensing data, and obtain the current flow information based on the current sensing data;
[0126] According to the current flow information, the lighting data corresponding to the lamps is obtained;
[0127] According to the lighting data corresponding to the lamp, the lamp is controlled to light up.
[0128] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
[0129] Get the current sensing data, and obtain the current flow information based on the current sensing data;
[0130] According to the current flow information, the lighting data corresponding to the lamps is obtained;
[0131] According to the lighting data corresponding to the lamp, the lamp is controlled to light up.
[0132] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
[0133] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example. In actual applications, the above-mentioned functions can be distributed and completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above.
[0134] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
Claims
1. An adaptive control method for IoT lamps, characterized in that: The Internet of Things lamp adaptive control method comprises: Acquire current sensing data, and obtain current flow information according to the current sensing data; According to the current flow information, the lighting data corresponding to the lamp is obtained; Controlling the lamp to light up according to the lighting data corresponding to the lamp; The obtaining lighting data corresponding to the lamp according to the current flow information specifically includes: Obtaining a dial setting of a dial switch in a lamp, and obtaining a lamp type corresponding to the lamp according to the dial setting of the dial switch; Obtaining lighting data corresponding to the lamp according to the lamp type and the current flow information; The obtaining, according to the lamp type and the current flow information, lighting data corresponding to the lamp specifically includes: According to the identity of the lamp represented by the lamp type and the preset density matching rule, when the lamp is matched to obtain the identity corresponding to the lamp type and the flow rate of the target object within the current predetermined unit time is the current flow rate information, the lighting data corresponding to the lamp; The step of obtaining lighting data corresponding to the lamp according to the current flow information further includes: Acquire the last flow information within a predetermined unit time, and perform arithmetic difference calculation based on the last flow information and the current flow information to obtain the current flow change information, wherein the arithmetic difference calculation refers to subtracting the current flow information from the last flow information; According to the current flow change information, the lighting data corresponding to the lamp is obtained; The obtaining lighting data corresponding to the lamp according to the current flow change information specifically includes: Acquire the last lighting data corresponding to the last flow information, and obtain the lighting data corresponding to the lamp according to the last lighting data corresponding to the last flow information and the current flow change information; After controlling the lamp to light up according to the lighting data corresponding to the lamp, the method further includes: Acquire the light-on period sensing data, and obtain the light-on period flow information according to the light-on period sensing data; Compare the current flow rate change information with the light-on period flow rate information to obtain flow rate difference information; Performing an equivalent difference calculation according to the flow difference information and the lighting data to obtain lighting change data during the lighting period, and controlling the lamp to light up according to the lighting change data during the lighting period; The performing of equivalent difference calculation according to the flow difference information and the lighting data to obtain the lighting change data during the lighting period specifically includes: According to the change in the flow of the target object represented by the flow difference information and the lighting duration in the lighting data, an equivalent difference calculation is performed to obtain the lighting change data of the lighting period when the lamp faces abnormal target object flow during the lighting period. The equivalent difference calculation refers to calculating the fixed equivalent addition and subtraction duration of the lighting duration in the lighting data.
2. The method for adaptively controlling IoT lamps according to claim 1, characterized in that: After obtaining the lighting data corresponding to the lamp according to the current flow information, the IoT lamp adaptive control method further includes: A lighting instruction is sent to other lamps within a predetermined range, so that the other lamps are lit according to the lighting instruction.
3. The method for adaptively controlling IoT lamps according to claim 2, characterized in that: The sending of a lighting instruction to other lamps within a predetermined range so that the other lamps light up according to the lighting instruction specifically includes: A lighting instruction is sent to the remaining lamps within the predetermined range, so that the remaining lamps determine their corresponding lamp types according to the dial settings of their corresponding dial switches, and the remaining lamps whose lamp types match the lamp are lit according to the lighting instruction.
4. An IoT lamp adaptive control device, characterized in that: The IoT lamp adaptive control device comprises: A current flow information acquisition module is used to acquire current sensing data and obtain current flow information according to the current sensing data; A lighting data acquisition module, used to obtain lighting data corresponding to the lamp according to the current flow information; A lamp lighting control module, used to control the lamp to light up according to the lighting data corresponding to the lamp; The lighting data acquisition module comprises: The lamp type acquisition submodule is used to obtain the dial setting of the dial switch in the lamp, and obtain the lamp type corresponding to the lamp according to the dial setting of the dial switch; A submodule for obtaining lighting data based on current flow information is used to obtain lighting data corresponding to the lamp according to the lamp type and current flow information; The lighting data acquisition module also includes: The current flow change information acquisition submodule is used to obtain the previous flow information within a predetermined unit time, and perform arithmetic difference calculation based on the previous flow information and the current flow information to obtain the current flow change information, wherein the arithmetic difference calculation refers to subtracting the current flow information from the previous flow information; A submodule for obtaining lighting data based on current flow change information is used to obtain lighting data corresponding to the lamp according to the current flow change information; The submodule for obtaining light data based on current flow change information includes: A lighting data acquisition unit based on current flow change information is used to acquire the previous lighting data corresponding to the previous flow information, and obtain the lighting data corresponding to the lamp according to the previous lighting data corresponding to the previous flow information and the current flow change information; The IoT lamp adaptive control device also includes: A light-on period flow information acquisition module is used to acquire the light-on period sensing data, and obtain the light-on period flow information according to the light-on period sensing data; The flow difference information acquisition module is used to compare the current flow change information with the light-on period flow information to obtain the flow difference information; The equal price difference calculation module is used to perform equal price difference calculation according to the flow difference information and the lighting data, obtain the lighting change data of the lighting period, and control the lighting of the lamp according to the lighting change data of the lighting period; The equivalent price difference calculation module is specifically used to perform equivalent price difference calculation based on the change in the flow of the target object represented by the flow difference information and the lighting duration in the lighting data, so as to obtain the lighting change data of the lighting period when the lamp faces abnormal target object flow during the lighting period. The equivalent price difference calculation refers to calculating the fixed equivalent addition and subtraction duration of the lighting duration in the lighting data.
5. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method for adaptive control of an Internet of Things lamp as claimed in any one of claims 1 to 3 are implemented.
6. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method for adaptively controlling an IoT lamp as claimed in any one of claims 1 to 3 are implemented.
Citation Information
Patent Citations
Intelligent LED (light emitting diode) lighting electricity-saving control system mainly applied to underground parking
CN102395229A
Wireless intelligent lighting control system
CN105517303A
An intelligent control system for multi-source sensing street lamps
CN109152185A
Intelligent street lamp control system based on urban road management
CN114928924A
Street lamp control device based on ATMS system
CN203340373U
