System and method for dynamically displaying hourglass effect of lamplight

By receiving the countdown parameters to generate a light matrix sequence and controlling the LED unit display, the problems of insufficient user interaction and light flow control in the prior art are solved, and flexible lighting hourglass effect display is realized, improving the user experience.

CN120340410APending Publication Date: 2025-07-18HANSONG NANJING TECH LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510789177.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-13
Publication Date
2025-07-18

AI Technical Summary

Technical Problem

The prior art lacks user interactivity, custom functions and lighting flow algorithm control in LED lighting hourglass timing, and cannot achieve flexible time visualization.

Method used

By receiving the countdown parameters input by the user, a light matrix sequence is generated, and control instructions are generated based on the sequence to control the time-sharing display of multiple LED units to realize the dynamic display of the hourglass effect of the light.

Benefits of technology

It realizes user-defined light flow control and color gradient, improving user interaction and display effects fluency and real-time.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120340410A_ABST
    Figure CN120340410A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a system and method for dynamically displaying the hourglass effect of lamplight. The method comprises the following steps: receiving countdown parameters input by a user; generating a lighting matrix sequence based on the countdown parameter; wherein the lighting matrix sequence comprises lighting matrixes of a plurality of time points; and generating a first control instruction based on the lighting matrix sequence, and controlling the plurality of LED units to perform time-sharing display based on the first control instruction.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of LED lighting dynamic display, and in particular to a system and method for dynamically displaying an hourglass effect of lighting. Background Art

[0002] Traditional hourglass timing uses the physical process of sand flowing from the upper container to the lower container to intuitively display the passage of time, reflecting the core logic of time visualization. With the development of technology, the use of LED lights to simulate hourglass timing has expanded functionality and aesthetics while retaining the core logic of time visualization. Existing technology can achieve simple hourglass timing animation demonstrations using LED lights, but it is still insufficient in terms of user interaction, user customization, color brightness gradient, and light flow algorithm control.

[0003] Therefore, there is an urgent need to provide a system and method for a dynamic display of an hourglass effect of light, which can realize user interaction and customization according to the countdown parameters input by the user, and generate control instructions for LED lights according to the countdown parameters, so as to realize light flow algorithm control and color brightness gradient control. Summary of the invention

[0004] One or more embodiments of the present specification provide a system for dynamically displaying an hourglass effect of light, the system comprising: a data receiving module, configured to receive countdown parameters input by a user; a sequence pre-generation module, configured to generate a lighting matrix sequence based on the countdown parameters; wherein the lighting matrix sequence includes lighting matrices at multiple time points; and a control display module, configured to generate a first control instruction based on the lighting matrix sequence, and control a plurality of LED units to display in a time-sharing manner based on the first control instruction.

[0005] One or more embodiments of the present specification provide a method for dynamically displaying an hourglass effect of light, the method comprising: receiving a countdown parameter input by a user; generating a lighting matrix sequence based on the countdown parameter; wherein the lighting matrix sequence comprises lighting matrices at multiple time points; generating a first control instruction based on the lighting matrix sequence, and controlling multiple LED units to display in a time-sharing manner based on the first control instruction.

[0006] One or more embodiments of the present specification provide a device for dynamically displaying an hourglass effect of light, including a processor, wherein the processor is used to execute the aforementioned method for dynamically displaying an hourglass effect of light.

[0007] One or more embodiments of the present specification provide a computer-readable storage medium, wherein the storage medium stores computer instructions. When a computer reads the computer instructions in the storage medium, the computer executes the aforementioned method for dynamically displaying an hourglass effect of light. BRIEF DESCRIPTION OF THE DRAWINGS

[0008] This specification will be further described by way of exemplary embodiments, which will be described in detail with reference to the accompanying drawings. These embodiments are not restrictive. In these embodiments, the same reference numerals represent the same structures, where: Figure 1 is a schematic diagram of an application scenario of a dynamic display system for the hourglass effect of lights shown in some embodiments of this specification; Figure 2 is an exemplary block diagram of a dynamic display system for the hourglass effect of lights shown in some embodiments of this specification; Figure 3 is an exemplary flowchart of a method for the dynamic display of the hourglass effect of lights shown in some embodiments of this specification; Figure 4 is an exemplary schematic diagram of a simulation method shown in some embodiments of this specification; Figure 5 is an exemplary flowchart of a method for generating a second control instruction shown in some embodiments of this specification. Detailed implementation manners

[0009] To more clearly illustrate the technical solutions of the embodiments of this specification, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some examples or embodiments of this specification. For those of ordinary skill in the art, without creative efforts, this specification can also be applied to other similar scenarios based on these drawings. Unless obvious from the language context or otherwise stated, the same reference numerals in the figures represent the same structures or operations.

[0010] It should be understood that the "system", "device", "unit" and / or "module" used herein is a way to distinguish different components, elements, parts, portions or assemblies at different levels. However, if other words can achieve the same purpose, the said words can be replaced by other expressions.

[0011] As shown in this specification and the claims, unless the context clearly indicates an exception, words such as "a", "an", "one" and / or "the" are not specifically singular and may also include the plural. Generally speaking, the terms "comprising" and "including" only indicate the inclusion of the steps and elements that have been clearly identified, and these steps and elements do not constitute an exclusive list. The method or device may also include other steps or elements.

[0012] Flowcharts are used in this specification to illustrate the operations performed by the system according to the embodiments of this specification. It should be understood that the preceding or following operations are not necessarily performed precisely in order. Instead, the steps may be processed in reverse order or simultaneously. At the same time, other operations may also be added to these processes, or one or more operations may be removed from these processes.

[0013] Figure 1 It is a schematic diagram of an application scenario of a system for dynamically displaying an hourglass effect of light according to some embodiments of this specification.

[0014] In some embodiments, the hourglass effect dynamic display system of lights can dynamically adjust the flow, color and brightness of lights according to time changes or user input, and display the countdown of hourglass or other related functions, which can be widely used in time and efficiency management, smart home interaction, leisure and entertainment, commercial display, public and urban facilities and other fields. The hourglass effect dynamic display system of lights combines functionality and aesthetics, embodies the combination of intelligence and creative design, and can adjust the display effect and interaction mode according to the application scenario requirements.

[0015] In some embodiments, Figure 1 As shown, an application scenario (hereinafter referred to as application scenario) 100 of a system for dynamically displaying an hourglass effect of light may include a processor 110 , a network 120 , a memory 130 , a terminal 140 , and an hourglass light 150 .

[0016] The processor 110 may process data and / or information obtained from various components of the application scenario 100 or other information sources. For example, the processor 110 may obtain data and / or information input by a user from the terminal 140, such as countdown parameters, LED light parameters, etc. For another example, the processor 110 may generate a lighting matrix sequence based on the countdown parameters. For another example, the processor 110 may generate a first control instruction based on the lighting matrix sequence, and control the time-sharing display of multiple LED units in the hourglass lamp based on the first control instruction.

[0017] In some embodiments, the processor 110 may be a single server or a server group. The server group may be centralized or distributed. In some embodiments, the processor 110 may be local or remote. In some embodiments, the processor 110 may be implemented on a cloud platform. In some embodiments, the processor 110 and the terminal 140 or the hourglass 150 may be integrated into one. In some embodiments, the processor 110 and the terminal 140 or the hourglass 150 may be directly or indirectly connected, and the combined action may implement the methods and / or functions described in this specification.

[0018] Network 120 may include any suitable network capable of facilitating information and / or data exchange. In some embodiments, at least one component of application scenario 100 (e.g., processor 110, memory 130, terminal 140, hourglass lamp 150, etc.) may exchange information and / or data with at least one other component in application scenario 100 via network 120. For example, processor 110 may obtain historical data, etc. from memory 130 via network 120.

[0019] Memory 130 may store data, instructions, and / or any other information related to the dynamic display system of the hourglass effect of the lamp. In some embodiments, memory 130 may store data and / or information obtained by processor 110, terminal 140, and hourglass lamp 150 (e.g., countdown parameters, user interaction information, lit lamp matrix sequence, etc.). In some embodiments, memory 130 may store data and / or instructions that processor 110 uses to execute or utilize to complete the exemplary methods described in this specification. For example, memory 130 may store a first control instruction generated by processor 110 based on countdown parameters and the lit lamp matrix sequence. In some embodiments, memory 130 may include one or more storage components, and each storage component may be an independent device or a part of other devices. In some embodiments, memory 130 may be implemented on a cloud platform. In some embodiments, memory 130 may be a part of processor 110, terminal 140, and / or hourglass lamp 150.

[0020] Terminal 140 refers to a device used for interacting with users. Among them, users may refer to hourglass lamp users, hourglass lamp testers, etc. In some embodiments, terminal 140 may include mobile phone 141, tablet 142, computer 143, etc. In some embodiments, a system or platform configured to allow users to input countdown parameters may be provided in terminal 140. In some embodiments, terminal 140 may provide various interaction operations for users. For example, a user (such as an hourglass lamp user, etc.) may pause the hourglass countdown via terminal 140.

[0021] Hourglass lamp 150 refers to a lamp with a lighting display function and capable of simulating an hourglass. Hourglass lamp 150 includes a plurality of LED units. In some embodiments, hourglass lamp 150 may control the plurality of LED units for time-division display based on the first control instruction to simulate the process of sand grains falling from the upper part to the bottom part of a real hourglass, thereby forming a flowing and changing hourglass effect. In some embodiments, hourglass lamp 150 may send data and / or information related to the hourglass lamp countdown progress and hourglass lamp display status to processor 110, memory 130, etc. via network 120. In some embodiments, hourglass lamp 150 may obtain control instructions issued by processor 110 via network 120.

[0022] For more information about the above countdown parameters, lighting matrix sequences, user interaction information, etc., please refer to the relevant descriptions in the following text (such as Figure 3 ).

[0023] It should be noted that the application scenario 100 is provided only for illustrative purposes and is not intended to limit the scope of this specification. For those of ordinary skill in the art, various modifications or changes can be made according to the description of this specification. However, the changes and modifications will not deviate from the scope of this specification.

[0024] Figure 2 is an exemplary module diagram of a dynamic display system for the hourglass effect of lights shown in some embodiments of this specification.

[0025] In some embodiments, as Figure 2 shown, the dynamic display system 200 for the hourglass effect of lights (hereinafter may be simply referred to as the system) may include a data receiving module 210, a sequence pre-generation module 220, a control display module 230, a real-time simulation module 240, and a preset trigger module 250.

[0026] In some embodiments, the data receiving module may be configured to receive countdown parameters input by the user.

[0027] In some embodiments, the sequence pre-generation module may be configured to generate a lighting matrix sequence based on the countdown parameters. Among them, the lighting matrix sequence includes lighting matrices at multiple time points.

[0028] In some embodiments, the sequence pre-generation module is further configured to match a target sub-library in the simulation database based on the countdown parameters; and obtain the lighting matrix sequence from the target sub-library. The simulation database includes multiple sub-libraries, and one sub-library corresponds to one duration value. The simulation database is constructed based on multiple simulations. One simulation includes: generating initial parameters; performing simulations based on the initial parameters, recording the position simulation data, speed simulation data, and duration simulation data of this simulation; digitally processing the position simulation data to obtain the lighting matrix sequence of this simulation; and storing the lighting matrix sequence, position simulation data, and speed simulation data of this simulation into the corresponding sub-library in the simulation database based on the duration simulation data.

[0029] In some embodiments, the sequence pre-generation module is further configured to record the collision simulation data of this simulation in response to a collision occurring during a simulation; and store the collision simulation data of this simulation into the corresponding sub-library in the simulation database based on the duration simulation data of this simulation.

[0030] In some embodiments, the control and display module may be configured to generate a first control instruction based on a lighting matrix sequence, and control a plurality of LED units to display in a time-sharing manner based on the first control instruction.

[0031] In some embodiments, the control display module is further configured to generate a first control instruction in response to a collision occurring during a simulation based on the lighting matrix sequence and the collision simulation data, and control the time-sharing display of multiple LED units and the hourglass lamp to emit a collision sound effect based on the first control instruction.

[0032] In some embodiments, the control display module is further configured to generate a second control instruction based on a lighting matrix of multiple target time points in response to receiving user interaction information, and control the time-sharing display of multiple LED units based on the second control instruction.

[0033] In some embodiments, the control display module is further configured to generate a second control instruction based on the lighting matrix and LED light parameters at multiple target time points, and control the time-sharing display and light display of multiple LED units based on the second control instruction.

[0034] In some embodiments, the control display module is further configured to generate a third control instruction in response to the end of the hourglass countdown based on different smart devices and different preset trigger events, and control the display mode of multiple LED units after the end of the hourglass countdown based on the third control instruction.

[0035] In some embodiments, the real-time simulation module can be configured to obtain the positions and velocities of multiple gravel quanta at a first time point from the target sub-library in response to receiving user interaction information; for multiple target time points starting from the first time point, based on the positions, velocities and external disturbance characteristics of the multiple gravel quanta at the previous target time point, generate the positions and velocities of the multiple gravel quanta at the current target time point through simulation; wherein the positions and velocities of the multiple gravel quanta at the first target time point are determined based on the positions and velocities of the multiple gravel quanta at the first time point; and digitally process the positions of the multiple gravel quanta at the multiple target time points to obtain a light matrix of the multiple target time points.

[0036] In some embodiments, the real-time simulation module is further configured to pause the hourglass countdown in response to the tilt angle of the hourglass lamp being greater than a preset angle threshold.

[0037] In some embodiments, the preset trigger module can be configured to trigger the smart device to perform a preset trigger event in response to the end of the hourglass countdown. In some embodiments, the preset trigger module can be connected to the smart device for communication.

[0038] It should be noted that the above description of the hourglass effect dynamic display system and its modules is only for the convenience of description and cannot limit the present specification to the scope of the embodiments. It is understandable that for those skilled in the art, after understanding the principle of the system, they may arbitrarily combine the modules or form a subsystem to connect with other modules without deviating from the principle. In some embodiments, Figure 1 The data receiving module 210, the sequence pre-generating module 220, the control display module 230, the real-time simulation module 240 and the preset triggering module 250 disclosed in the specification can be different modules in a system, or one module can realize the functions of two or more of the above modules. For example, each module can share a storage module, or each module can have its own storage module. Such variations are all within the protection scope of this specification.

[0039] Figure 3 FIG. 1 is an exemplary flow chart of a method for dynamically displaying an hourglass effect of light according to some embodiments of this specification. Figure 3 As shown, the process 300 includes steps 310 to 330. In some embodiments, the process 300 can be executed by a light hourglass effect dynamic display system.

[0040] It should be noted that the hourglass effect dynamic display system of lights can be connected to a remote processor for communication, and the simulation software in the remote processor can analyze and simulate the data. The hourglass effect dynamic display system of lights can perform the following steps based on the analysis and simulation results of the simulation software.

[0041] In some embodiments, the method for dynamically displaying the hourglass effect of light includes: receiving countdown parameters input by a user; generating a lighting matrix sequence based on the countdown parameters; and generating a first control instruction based on the lighting matrix sequence, and controlling multiple LED units to display in time based on the first control instruction.

[0042] Step 310: receiving countdown parameters input by the user.

[0043] The countdown parameter refers to the relevant parameters for all the sand quanta in the simulated hourglass to fall to the bottom of the simulated hourglass. For example, the countdown parameter may include the time (such as 5 minutes) for all the sand quanta in the simulated hourglass to fall to the bottom of the simulated hourglass.

[0044] Among them, the simulated hourglass refers to the hourglass that simulates the real hourglass in the simulation software. The sand grain quantum is used to simulate the sand grains in the real hourglass in the simulation software. In some embodiments, the number and particle size of the sand grain quanta can be set according to user requirements. It can be understood that for a real hourglass, without changing the number of sand grains, the total falling time of the sand grains can be adjusted by changing the opening size of the narrow channel connecting the upper and lower cavities at the middle position of the hourglass. During the simulation process, without changing the number of sand grain quanta, the countdown parameter can affect the falling speed of the sand grain quanta in the simulated hourglass. The larger the value of the countdown parameter, the longer the duration corresponding to the countdown parameter, and the slower the falling speed of the sand grain quanta in the simulated hourglass.

[0045] In some embodiments, the movement trajectory of the sand grain quanta can be displayed or presented by multiple LED units in the hourglass lamp. For example, multiple LED units can be arranged in a matrix in the hourglass lamp, and the multiple LED units gradually light up from top to bottom and then gradually dim from top to bottom, so as to be able to display or present the process of the sand grain quanta falling or flowing in the simulated hourglass, that is, to simulate the process of the sand grains falling in the real hourglass.

[0046] In some embodiments, the particle size of the sand grain quanta can be displayed or presented by multiple adjacent LED units in the hourglass lamp lighting up or extinguishing simultaneously. For example, the larger the particle size of the sand grain quanta, the more adjacent LED units light up or extinguish simultaneously.

[0047] In some embodiments, the data receiving module can communicate with a terminal (such as a mobile phone, etc.) to receive the countdown parameter input by the user using the APP in the terminal. In some embodiments, the data receiving module can also receive the countdown parameter input by the user through any other feasible means. For example, receive the countdown parameter input by the user through the input button set on the hourglass lamp, etc.

[0048] Step 320, generate a lit matrix sequence based on the countdown parameter.

[0049] The lit matrix sequence is used to reflect the lighting or extinguishing situation of multiple LED units arranged in a matrix in the hourglass lamp. In some embodiments, the lit matrix sequence includes lit matrices at multiple time points.

[0050] The multiple time points include each unit time (i.e., time point) within the duration from the start to the end of the hourglass effect. For the lit matrix of one unit time, each lit matrix is used to indicate whether each LED unit among the multiple LED units lights up at the time point corresponding to the unit time. In some embodiments, the unit time can be a manually preset time unit, such as 1s or 1ms, etc.

[0051] The sequence pre-generation module can generate the lighted matrix sequence in various ways. In some embodiments, the sequence pre-generation module can manually set the lighted matrix for each unit time in sequence based on the countdown parameter to generate the lighted matrix sequence. Among them, the value of 1 in the lighted matrix indicates that the LED unit corresponding to the matrix position is lighted, and 0 indicates not lighted. For example, for the LED unit matrix of it means that at the current time point, the LED unit in the second column of the first row is lighted, and the rest of the LED units are extinguished.

[0052] In some embodiments, the sequence pre-generation module can also generate the lighted matrix sequence based on the countdown parameter through a prediction model.

[0053] The prediction model is a model for generating the lighted matrix sequence. In some embodiments, the prediction model is a machine learning model. For example, the prediction model can include any one or a combination of a Long Short-Term Memory (LTSM) model or other custom model structures, etc.

[0054] In some embodiments, the input of the prediction model can include the countdown parameter, and the output of the prediction model can include the lighted matrix sequence.

[0055] In some embodiments, the prediction model can be obtained by training with a large number of first training samples with the first label. In some embodiments, the first training sample can include multiple sample countdown parameters, and the first label can be the sample lighted matrix sequence corresponding to the first training sample. In some embodiments, the first training sample can be obtained from historical data, and the first label corresponding to the first training sample can be the lighted matrix sequence in the historical data that satisfies the sample countdown parameter.

[0056] In some embodiments, the sequence pre-generation module can be trained by various methods based on the first training sample and the first label. For example, it can be trained based on the gradient descent method. Only as an example, multiple first training samples with the first label can be input into the initial prediction model, a loss function can be constructed through the first label and the result of the initial prediction model, and the parameters of the initial prediction model can be iteratively updated based on the loss function. When the loss function of the initial prediction model meets the preset training conditions, the model training is completed, and the trained prediction model is obtained. Among them, the preset training conditions can be that the loss function converges, the number of iterations reaches a threshold, etc.

[0057] In some embodiments of the present specification, the lighting matrix sequence generated based on the trained prediction model is compared with the lighting matrix sequence generated directly according to the countdown parameters. Since the model uses a large amount of data for training, the model can learn the settings of the lighting matrix sequence under a variety of different countdown parameters. The generated lighting matrix sequence has better stability and smoothness than simple manual settings or settings based on human experience, thereby improving the smoothness and real-time performance of the subsequent control of the hourglass dynamic effect.

[0058] For more information on how to generate a lighting matrix sequence based on countdown parameters, please refer to the relevant description below.

[0059] Step 330: Generate a first control instruction based on the lighting matrix sequence, and control the multiple LED units to display in time based on the first control instruction.

[0060] The first control instruction can be used to control the multiple LED units to display in time. In some embodiments, the control display module can control the multiple LED units to light up or turn off at multiple time points through the first control instruction.

[0061] In some embodiments, the first control instruction can also be used to control the hourglass lamp to emit a collision sound effect. For more information about how the first control instruction controls the hourglass lamp to emit a collision sound effect, please refer to Figure 4 and its related description.

[0062] The control display module can generate the first control instruction in a variety of ways based on the light matrix sequence. In some embodiments, the control display module can generate the first control instruction based on the light matrix sequence by a row-by-row scanning method. For example, the control display module can read the light matrix sequence row by row and generate the corresponding first control instruction according to the data of each row.

[0063] In some embodiments, the control display module can generate a first control instruction based on the lighting matrix sequence through a first preset table. The first preset table may include a correspondence between multiple sets of lighting matrix sequences and the first control instruction. The first preset table can be set by a technician according to needs.

[0064] The time-sharing display of the LED unit refers to the display of the LED unit at multiple time points. In some embodiments, the time-sharing display of the LED unit may include the lighting or extinguishing of the LED unit at multiple time points. For example, the first control instruction may control multiple LED units arranged in a matrix to light up or extinguish in sequence at multiple time points based on a lighting matrix sequence (such as gradually brightening from top to bottom and then gradually darkening from top to bottom) to simulate the process of sand falling in a real hourglass within the duration corresponding to the countdown parameter, thereby presenting an hourglass effect.

[0065] In some embodiments, the control display module may send a first control instruction generated based on the lighting matrix sequence to a plurality of LED units to control the time-division display of the plurality of LED units. Based on the time-division display of the plurality of LED units, the hourglass lamp can present an hourglass effect within the duration corresponding to the countdown parameter, thereby realizing the dynamic display of the hourglass effect of the light.

[0066] In some embodiments of this specification, by obtaining the countdown parameter input by the user and pre-generating the lighting matrix sequence, precise timing control of the hourglass effect can be achieved, ensuring the smoothness and real-time nature of the LED unit switching.

[0067] In some embodiments, the sequence pre-generation module generates a lighting matrix sequence based on the countdown parameter, including: matching to obtain a target sub-library in the simulation database based on the countdown parameter; and obtaining the lighting matrix sequence from the target sub-library. Among them, the simulation database includes multiple sub-libraries, each sub-library corresponds to a duration value, and the simulation database is constructed based on multiple simulations.

[0068] The simulation database refers to a database that stores multiple groups of lighting matrix sequences having a corresponding relationship with the countdown parameter. A sub-library is any one database in the simulation database, and each sub-library corresponds to a duration value. Among them, the duration value refers to the total duration from the start to the end of the hourglass effect. In some embodiments, there may be one or more sub-libraries corresponding to the same duration value, and different sub-libraries corresponding to the same duration value may correspond to different lighting matrix sequences, and different lighting matrix sequences have different hourglass effects.

[0069] In some embodiments, the sub-library includes a lighting matrix sequence corresponding to the duration value, position simulation data, and speed simulation data. For more content about the position simulation data and speed simulation data, reference can be made to the relevant descriptions in the following text.

[0070] In some embodiments, when the duration value corresponding to the sub-library is the same as the countdown parameter, this sub-library is the target sub-library.

[0071] In some embodiments, the simulation database can be constructed through multiple hourglass simulations. Exemplary hourglass simulation methods may include hourglass dynamics simulation and discrete element method (DEM) software (such as EDEM, LIGGGHTS, or Blender physics engine), etc. In some embodiments, the simulation database can be set by technicians according to experience. For more content about constructing the simulation database, reference can be made to Figure 4 and its related descriptions.

[0072] In some embodiments, the sequence pre-generation module may retrieve a sub-library with a duration value identical to the countdown parameter from the simulation database based on the countdown parameter, and use this sub-library as the target sub-library. Among them, the retrieval statement is determined based on the database category. Only as an example, if the simulation database category is MySQL, then the retrieval statement may be an SQL statement.

[0073] In some embodiments, the sequence pre-generation module may directly obtain the lit matrix sequence from the target sub-library based on the target sub-library. For example, the sequence pre-generation module may directly use any lit matrix sequence in the target sub-library as the lit matrix sequence for this time. Another example is that the sequence pre-generation module may select the lit matrix sequence in the target sub-library according to human preferences. Among them, the human preferences may be determined based on the effect label. In some embodiments, for sub-libraries corresponding to the same duration value, different lit matrix sequences in the sub-library may be labeled according to the hourglass effect finally displayed, to obtain corresponding effect labels for subsequent human selection.

[0074] In some embodiments of this specification, by matching the target sub-library from the simulation database and obtaining the lit matrix sequence from the target sub-library, the lit matrix sequence corresponding to the duration value identical to the countdown parameter can be directly obtained. Compared with real-time simulation, this method is more convenient and can save computing resources.

[0075] Figure 4 It is an exemplary schematic diagram of the simulation method shown in some embodiments of this specification.

[0076] In some embodiments, the simulation database is constructed based on multiple simulations. As Figure 4 shown, one simulation among the multiple simulations includes: generating initial parameters 410; performing a simulation based on the initial parameters 410, and recording the position simulation data 420, speed simulation data 430, and duration simulation data 440 of this simulation; performing digital processing on the position simulation data 420 to obtain the lit matrix sequence 450 of this simulation; and based on the duration simulation data 440, storing the lit matrix sequence 450, position simulation data 420, and speed simulation data 430 of this simulation into the corresponding sub-library 460 in the simulation database.

[0077] The initial parameters refer to the parameters related to the specifications of the simulated hourglass in the simulation software. For example, the initial parameters include the number of sand grains of the simulated hourglass, channel parameters, etc. Among them, the channel parameters include the aperture and damping of the simulated hourglass. The aperture can be used to characterize the opening size of the narrow channel connecting the upper and lower cavities at the middle position of the simulated hourglass. The damping refers to the parameter of energy dissipation during the movement of the simulated hourglass. In some embodiments, the initial parameters can be user-defined or randomly generated.

[0078] In some embodiments, during the simulation process, the quantum number of the sand grains in the simulated hourglass can affect the number of lit LED units of the hourglass lamp at the same time point (i.e., the number of LED units used). That is, the more the quantum number of the sand grains in the simulated hourglass is set, the more the LED units of the hourglass lamp will be lit at the same time point.

[0079] In some embodiments, during the simulation process, the aperture of the simulated hourglass can affect the minimum number of lit LED units of the hourglass lamp in consecutive multiple rows (i.e., the number of sand grains falling through the aperture). That is, the smaller the aperture of the simulated hourglass is set, the fewer the number of sand grain quanta passing through the aperture at a single time, and the fewer the minimum number of lit LED units of the hourglass lamp in consecutive multiple rows.

[0080] In some embodiments, during the simulation process, the damping of the simulated hourglass can affect the lighting time interval of the multiple LED units of the hourglass lamp during time-division display. That is, the greater the damping of the simulated hourglass, the slower the falling speed of the sand grain quanta in the simulated hourglass, and the greater the lighting time interval of the multiple LED units of the hourglass lamp during time-division display.

[0081] In some embodiments, the initial parameters can also include the particle size of the sand grain quanta. That is, the user can change the particle size of the sand grain quanta by setting the initial parameters. For more information about the particle size of the sand grain quanta, reference can be made to Figure 3 and its related descriptions.

[0082] The position simulation data can reflect the position information of the sand grain quanta in the simulated hourglass. In some embodiments, the position simulation data can include the position information of each sand grain quantum at multiple time points. In some embodiments, the position simulation data can be obtained based on the particle trajectory recording function. For example, enable the particle trajectory recording function on the simulation software and output the position coordinates of each sand grain quantum according to a preset time step. Among them, the preset time step is the unit time length set in advance by humans according to experience, representing the time interval between each adjacent time point among multiple time points. For example, if the preset time step is 0.1 s, it means recording the position coordinates of each sand grain quantum every 0.1 s.

[0083] The velocity simulation data can reflect the velocity information of the sand grain quanta in the simulated hourglass. In some embodiments, the velocity simulation data can include the motion velocity of each sand grain quantum at multiple time points.

[0084] The duration simulation data can reflect the duration information of the simulated hourglass to complete a single simulation. In some embodiments, the duration simulation data can include: the duration from the first sand grain quantum falling from the upper part of the simulated hourglass to the last sand grain quantum falling to the bottom of the simulated hourglass.

[0085] In some embodiments, the speed simulation data and duration simulation data can be directly output based on simulation software. For example, while outputting the position coordinates of each gravel quantum according to a preset time step, the speed simulation data of each gravel quantum at this time is recorded. Another example is that the duration simulation data can be output based on the duration of a single simulation of the simulated hourglass.

[0086] In some embodiments, the sequence pre-generation module performs digital processing on the position simulation data to obtain the lit lamp matrix sequence for this simulation, which may include the following steps: S1: Obtain the physical layout of each LED unit of the hourglass lamp, including the number of LED layers, the number of LEDs in each layer, the layer spacing, etc. Among them, the physical layout of each LED unit can be obtained by manual input or from a configuration file; S2: Through scaling, map the position coordinates of each gravel quantum in the simulated hourglass at each time point to each LED unit of the hourglass lamp, and establish a mapping relationship table between the position coordinates of the gravel quantum and the LED unit; S3: For each time point, construct an initial lit lamp matrix, and based on the mapping relationship table, set the value of the LED unit of the hourglass lamp corresponding to the position coordinates of the gravel quantum in the simulated hourglass to 1, and set the values of the remaining LED units to 0, to obtain the lit lamp matrix; S4: Construct a sequence of all time points and the lit lamp matrix corresponding to each time point to obtain the lit lamp matrix sequence.

[0087] In some embodiments, the sequence pre-generation module stores the lit lamp matrix sequence, position simulation data, and speed simulation data of this simulation into the corresponding sub-library in the simulation database based on the duration simulation data, including: retrieving the sub-library corresponding to the duration value that is the same as the duration simulation data in the simulation database. If not, create a new sub-library, and the duration value of this sub-library is the same as the duration value of the duration simulation data; if so, directly store the lit lamp matrix sequence, position simulation data, and speed simulation data of this simulation into this sub-library.

[0088] In some embodiments, a single simulation also includes adding perturbations to the movement of multiple gravel quanta.

[0089] Perturbation refers to the movement of gravel quanta due to being disturbed during movement. For example, perturbations can include Perlin noise, Gaussian noise, etc. In some embodiments, perturbations can be triggered based on a preset random distribution.

[0090] In some embodiments, the sequence pre-generation module can add noise force to the sand quantum in the simulation software to increase disturbance. It can be understood that by adding disturbance to the movement of multiple sand quanta in one simulation, the light matrix sequence simulated by the simulation is the light matrix sequence with disturbance added, so that the falling process of the hourglass can be simulated more realistically, making the simulated hourglass more vivid and improving the viewing experience.

[0091] In some embodiments, a simulation further includes a collision simulation, where the collision simulation refers to a process in which a sand quantum in a simulated hourglass collides with a sand quantum at the bottom of the simulated hourglass and then rebounds.

[0092] In some embodiments, the response rule of the collision simulation includes velocity attenuation and reflection angle. The response rule of the collision simulation refers to the response mode of the sand quantum when it falls and contacts the sand quantum at the bottom of the simulated hourglass and then rebounds. Velocity attenuation refers to the reduction or decrease of velocity after the collision. For example, the velocity after the collision is reduced to the original value. times, of which It can be set manually based on experience. The reflection angle is the opposite of the vertical velocity, for example, ,in Less than 1, Vy is the vertical velocity when falling, is the reflection speed.

[0093] In some embodiments, the collision simulation also includes a "stuck" or "collapse" effect, that is, a visual effect that simulates the occasional poor flow or small-scale sand pile collapse in a real hourglass. In some embodiments, the "stuck" or "collapse" effect in the collision simulation can be triggered based on a preset random distribution.

[0094] It can be understood that by adding collisions in the simulation, the simulated lighting matrix sequence is a lighting matrix sequence including collisions, which can make the dynamic display effect of the hourglass lamp more vivid, thereby improving the viewing experience.

[0095] In some embodiments, the method for dynamically displaying the hourglass effect of lights also includes: in response to a collision occurring during a simulation, recording the collision simulation data of this simulation; based on the duration simulation data of this simulation, storing the collision simulation data of this simulation into a corresponding sub-library in a simulation database; and based on the lighting matrix sequence and the collision simulation data, generating a first control instruction, and based on the first control instruction, controlling the time-sharing display of multiple LED units and controlling the hourglass lights to emit a collision sound effect.

[0096] Collision simulation data refers to data related to the collision of sand quanta in the simulated hourglass. In some embodiments, the collision simulation data includes the time point when the collision occurs and the rebound speed when the collision occurs during the simulation. In some embodiments, the sub-library also includes collision simulation data. In some embodiments, the collision can be triggered based on a preset random distribution.

[0097] In some embodiments, when a collision occurs, the simulation software can record the time point of the collision and the rebound speed of each gravel quantum during the collision, thereby obtaining collision simulation data. In some embodiments, the sequence pre-generation module can digitize the position simulation data and the collision simulation data to generate a lighting matrix sequence, thereby generating a first control instruction through the control display module, and controlling multiple LED units to display in time based on the first control instruction.

[0098] It should be noted that the steps of digitally processing the position simulation data and the collision simulation data to generate the lighting matrix sequence are similar to the steps of digitally processing the position simulation data to generate the lighting matrix sequence. For details, please refer to steps S1-S4 above.

[0099] In some embodiments, the sequence pre-generation module can store the lighting matrix sequence, position simulation data, and speed simulation data in the simulation database in a corresponding sub-library based on the duration simulation data of the current simulation, and can also store the collision simulation data in the sub-library. For more information on how to determine the corresponding sub-library in the simulation database based on the duration simulation data of the current simulation, please refer to the relevant description above.

[0100] In some embodiments, in response to a collision occurring during a simulation, the control display module may generate a first control instruction through a first preset table based on the light matrix sequence and the collision simulation data. Specifically, the first preset table may also include the collision simulation data, that is, the first preset table may include a correspondence between multiple sets of light matrix sequences, collision simulation data and the first control instruction. For more information on how to generate the first control instruction, please refer to Figure 3 and its related description.

[0101] A collision sound effect refers to a sound effect produced when a collision occurs between sand quanta in a simulated hourglass. In some embodiments, the volume of the collision sound effect may be related to the rebound speed of the sand quanta when they collide. For example, the greater the rebound speed, the greater the volume. In some embodiments, the playback time of the collision sound effect may be determined based on the time point when the collision occurs. For example, the playback time of the collision sound effect may be the same as the time point when the collision occurs. For another example, the playback time of the collision sound effect may lag behind the time point when the collision occurs by 0.1s. The specific playback time of the collision sound effect may be determined manually and is not limited here.

[0102] In some embodiments of the present specification, the authenticity, viewing experience, and interactivity of the hourglass can be improved by simulating collisions and adding collision sound effects, thereby improving the user experience.

[0103] Figure 5 is an exemplary flow chart of a method for generating a second control instruction according to some embodiments of this specification. Figure 5 As shown, the process 500 includes steps 510 to 540. In some embodiments, the process 500 can be executed by a light hourglass effect dynamic display system.

[0104] In some embodiments, the method for dynamically displaying the hourglass effect of light also includes: in response to receiving user interaction information, obtaining the positions and velocities of multiple sand quanta at a first time point from the target sub-library; for multiple target time points starting from the first time point, based on the positions, velocities and external disturbance characteristics of the multiple sand quanta at the previous target time point, generating the positions and velocities of the multiple sand quanta at the current target time point through simulation; digitally processing the positions of the multiple sand quanta at the multiple target time points to obtain a lighting matrix for the multiple target time points; and generating a second control instruction based on the lighting matrix for the multiple target time points, and controlling the time-sharing display of multiple LED units based on the second control instruction.

[0105] In some embodiments, the hourglass effect dynamic display system of the light can control the display effect of the hourglass light after receiving the user interaction information (i.e., after the first time point) to simulate the falling process of the sand in the hourglass in real time. As mentioned above, the hourglass effect dynamic display system of the light can be connected to the remote processor for communication, and the simulation software in the remote processor can analyze and simulate the data. The hourglass effect dynamic display system of the light can perform the following steps based on the analysis results and simulation results of the simulation software.

[0106] Step 510: in response to receiving user interaction information, obtaining positions and velocities of a plurality of sand quanta at a first time point from a target sub-library.

[0107] For more information about the target sub-library, see Figure 3 and its related description.

[0108] User interaction information refers to the relevant data and information regarding the user's interaction behavior with the hourglass lamp. For example, user interaction information includes the user shaking or tilting the hourglass lamp. In some embodiments, user interaction information can be obtained through sensors (such as acceleration sensors and gyroscopes) built into the hourglass. Among them, the gyroscope can be used to detect the shaking of the hourglass lamp. At this time, user interaction information includes the number of shakes and the shaking frequency of the hourglass lamp per unit time. The acceleration sensor can be used to detect the tilt angle and tilt direction of the hourglass lamp. The tilt angle refers to the angle between the axis of the hourglass and the vertical direction, and the tilt direction includes left tilt or right tilt.

[0109] The first time point refers to the time point when user interaction information is received. For example, if user interaction information is received at the nth second since the start of the hourglass effect, the first time point can be the nth second.

[0110] In some embodiments, at the first time point, the positions and velocities of multiple sand grain quanta can be obtained based on the velocity simulation data and position simulation data in the target sub-library. Since the first time point is included within the duration of the countdown parameter and the preset time step is the same, the velocity simulation data and position simulation data at multiple time points included in the target sub-library also include the velocity simulation data and position simulation data at the first time point. For example, when the first time point is m, the real-time simulation module can obtain the velocity simulation data and position simulation data at the mth second from the target sub-library as the velocity simulation data and position simulation data at the first time point.

[0111] Step 520, for multiple target time points starting from the first time point, based on the positions, velocities, and external perturbation characteristics of multiple sand grain quanta at the previous target time point, simulate and generate the positions and velocities of multiple sand grain quanta at the current target time point.

[0112] The target time point refers to the time point after user interaction information is received. In some embodiments, the interval between adjacent target time points can be determined by a preset time step. The preset time step can be set manually. For example, if the preset time step is 0.1s, it means the interval between adjacent target time points is 0.1s. It can be understood that when the preset time step is 1s, the countdown parameter is 10s, and the first time point is 6s, the target time points are 6s, 7s, 8s, 9s, and 10s.

[0113] The current target time point refers to the time point at which the positions and velocities of multiple sand grain quanta need to be calculated through current simulation. The previous target time point refers to the previous target time point adjacent to the current target time point.

[0114] The first target time point refers to the first time point after the first time point. In some embodiments, the positions and velocities of multiple gravel quanta at the first target time point are determined based on the positions and velocities of multiple gravel quanta at the first time point. For example, the real-time simulation module may use the position and velocity of each gravel quantum at the first time point as the position and velocity of each gravel quantum at the first target time point. Alternatively, the real-time simulation module may use the average position and average velocity of multiple gravel quanta at the first time point as the positions and velocities of multiple gravel quanta at the first target time point.

[0115] The external perturbation feature refers to a feature related to an external perturbation. In some embodiments, the external perturbation feature includes the shaking frequency, tilt angle, and tilt direction of the hourglass lamp. In some embodiments, the external perturbation feature may be obtained based on user interaction information.

[0116] In some embodiments, for multiple target time points starting from the first time point, the real-time simulation module may simulate and generate the positions and velocities of multiple gravel quanta at the current target time point based on the positions, velocities, and external perturbation features of multiple gravel quanta at the previous target time point through various methods. For example, multi-body dynamics simulation, discrete element method (DEM), etc.

[0117] In some embodiments, for multiple target time points starting from the first time point, the real-time simulation module may simulate and generate the position offset parameters and velocity offset parameters of multiple gravel quanta at the current target time point based on the positions, velocities, and external perturbation features of multiple gravel quanta at the previous target time point through an interaction generation model.

[0118] The interaction generation model is a model used to generate the position offset parameters and velocity offset parameters of multiple gravel quanta at the current target time point. In some embodiments, the interaction generation model is a machine learning model. For example, the interaction generation model may include any one or a combination of a deep neural network (DNN) model or other custom model structures, etc.

[0119] In some embodiments, the input of the interaction generation model may include the positions, velocities, and external perturbation features of multiple gravel quanta at the previous target time point, and the output of the interaction generation model may include the position offset parameters and velocity offset parameters of multiple gravel quanta at the current target time point.

[0120] In some embodiments, the interaction generation model may be obtained by training with a large number of second training samples with second labels. In some embodiments, the second training samples may include the sample positions, sample velocities, and sample external perturbation features of multiple sample gravel quanta at multiple previous target time points, and the second labels may include the sample position offset parameters and sample velocity offset parameters of multiple sample gravel quanta at the current target time point.

[0121] In some embodiments, the second training sample can be obtained based on historical data. The second label can be obtained manually based on experience-based annotation. For example, for different tilt directions, tilt angles, and shaking frequencies, the position offset parameters and velocity offset parameters of each gravel quantum at the current target time point are manually annotated based on the position, velocity, and external disturbance characteristics of each gravel quantum at the previous target time point. However, due to the high cost of manual annotation, data of a preset angle step can be set. For example, the preset angle step is set to 5 degrees, and the tilt angle is annotated as 0, 5, 10, 15 degrees, etc. When the actual tilt angle is 8 degrees, rounding can be used to annotate 8 degrees as 10 degrees.

[0122] It should be noted that the training method of the interactive generation model is similar to that of the prediction model. For details, please refer to Figure 3 and its related description.

[0123] Furthermore, the input of the interactive generation model can be optimized according to the movement trajectory of real gravel. For example, when the sand quanta at a height of 5 cm are piled up at the bottom of the simulated hourglass (i.e., multiple LED units at a height of 5 cm at the bottom of the hourglass are all lit), the new sand quanta will mainly contact the sand quanta at the upper layer of the bottom (e.g., the upper 2 cm), and the sand quanta at the lower layer of the bottom (e.g., the lower 3 cm) can be regarded as fixed objects (i.e., the sand quanta at the lower layer can not participate in the simulation / calculation), thereby greatly reducing the amount of calculation while increasing the simulation realism.

[0124] In some embodiments, the real-time simulation module can simulate, adjust and generate the positions and velocities of multiple grit quanta at the current target time point based on the position offset parameters and velocity offset parameters of multiple grit quanta at the current target time point output by the interactive generation model.

[0125] Step 530, digitally process the positions of multiple sand quanta at multiple target time points to obtain a light matrix at multiple target time points.

[0126] It should be noted that the step of digitizing the positions of multiple gravel quanta at multiple target time points to obtain the light-on matrix at multiple target time points is similar to the step of digitizing the position simulation data to obtain the light-on matrix sequence of this simulation. For details, please refer to Figure 4 Steps S1-S4 in .

[0127] Step 540: Generate a second control instruction based on the lighting matrix of multiple target time points, and control multiple LED units to display in time based on the second control instruction.

[0128] The second control instruction can also be used to control the time-division display of multiple LED units. In some embodiments, the priority of the second control instruction is higher than that of the first control instruction.

[0129] In some embodiments, the control display module can generate a second control instruction based on the lighting matrices at multiple target time points through a second preset table. The setting method of the second preset table is similar to that of the first preset table. For details, please refer to Figure 3 and its related descriptions.

[0130] In some embodiments, the control display module can send the second control instruction to multiple LED units to control the time-division display of multiple LED units. It should be understood that the method of controlling the time-division display of multiple LED units based on the second control instruction is similar to that based on the first control instruction. For details, please refer to Figure 3 and its related descriptions. In particular, since the priority of the second control instruction is higher than that of the first control instruction, when controlling the time-division display of multiple LED units, the second control instruction should be preferentially used to control the time-division display of multiple LED units.

[0131] In some embodiments of this specification, through the real-time simulation of sand quantum, it is possible to make a timely response based on the user's interaction, and timely convert the lighting state displayed by the hourglass lamp, thereby improving the interaction effect.

[0132] In some embodiments, the control display module can also generate a second control instruction based on the lighting matrices at multiple target time points and the LED lighting parameters, and control the time-division display and lighting display of multiple LED units based on the second control instruction.

[0133] The LED lighting parameters refer to the relevant parameters that describe the performance and characteristics of the LED units. For example, the LED lighting parameters can include color temperature, hue, brightness, etc.

[0134] The LED lighting parameters can be obtained in various ways. In some embodiments, the LED lighting parameters can be obtained by the user input through the terminal.

[0135] In some embodiments, the LED lighting parameters can also be determined based on the environmental data.

[0136] The environmental data refers to the environmental light value. In some embodiments, the environmental data can include environmental light brightness, environmental light color temperature, etc. In some embodiments, the environmental data can be obtained through the light sensor built in the hourglass lamp.

[0137] In some embodiments, the control display module can determine the LED lighting parameters by matching with the vector database based on the environmental data.

[0138] A vector database refers to an auxiliary database that stores the mapping relationship between environmental data and LED lighting parameters. In some embodiments, the vector database may include multiple reference vectors and their corresponding reference lighting parameters. Among them, the reference vectors can be constructed based on the environmental data in historical data. And in the historical data, the LED lighting parameters with better lighting display effects under a certain environmental data (i.e., the reference vector) can be used as the reference lighting parameters corresponding to the reference vector.

[0139] A better lighting display effect can mean that the lighting display effect meets the preset display requirements. The preset display requirements may include that the difference between the color temperature of the LED unit and the color temperature of the ambient light is less than the preset color temperature value, the difference between the brightness of the LED unit and the brightness of the ambient light is less than the preset brightness value, etc. In some embodiments, the preset color temperature value and the preset brightness value can be set based on user requirements.

[0140] In some embodiments, the control display module can construct a target vector based on the current environmental data. Based on this target vector, by matching with the vector database, calculate the vector distance between the target vector and the reference vector, and use the reference lighting parameters corresponding to the reference vector with the vector distance less than the preset distance threshold as the LED lighting parameters of the target vector, that is, the LED lighting parameters corresponding to the current environmental data. Among them, the vector distance can include cosine distance and Euclidean distance, etc. The preset distance threshold can be set based on user requirements.

[0141] The second control instruction can also be used to control the lighting display of multiple LED units. For example, the second control instruction can include the hue, color temperature, brightness, etc. of multiple LED units. In some embodiments, the control display module can generate the second control instruction based on the lighting matrix and LED lighting parameters at multiple target time points through a third preset table. The setting method of the third preset table is similar to that of the first preset table, and specific details can be referred to Figure 3 and its related descriptions.

[0142] Lighting display refers to the display effect of the LED lamp. In some embodiments, the control display module can send the second control instruction to multiple LED units to control the time-sharing display and lighting display of multiple LED units. For example, the control display module can send the second control instruction to multiple LED units to control multiple LED units to display green. Another example is that the control display module can send the second control instruction to multiple LED units to control some of the multiple LED units to display dark red and the remaining part to display bright red.

[0143] For more content on how to control the time-sharing display of multiple LED units based on the second control instruction, reference can be made to Figure 3 and its related descriptions.

[0144] In some embodiments of this specification, changing the LED light parameters of the hourglass lamp based on the ambient light is beneficial to improving the integration of the hourglass lamp with the environment.

[0145] In some embodiments, the method for dynamically displaying the hourglass effect of the light further includes: in response to the inclination angle of the hourglass lamp being greater than a preset angle threshold, pausing the hourglass countdown.

[0146] For more information about the inclination angle of the hourglass lamp, reference can be made to the relevant description in step 510 above.

[0147] The preset angle threshold refers to a preset angle value. In some embodiments, the preset angle threshold can be set in advance based on experience.

[0148] In some embodiments, when a sensor (such as an acceleration sensor) built into the hourglass lamp detects that the inclination angle of the hourglass lamp is greater than the preset angle threshold, the real-time simulation module can control the hourglass lamp to pause the hourglass countdown. It can be understood that during the countdown process, when the user needs to do other things, the hourglass countdown can be paused by tilting and placing the hourglass lamp, thereby improving the applicability of the hourglass lamp and avoiding the situation where the user's subsequent timing is inaccurate or needs to be re-timed due to the interruption of the timing.

[0149] In some embodiments, during the pause of the countdown, the user can trigger the continuation of the countdown through other actions. For example, the user can restore the hourglass lamp to its initial position to end the pause and continue the timing.

[0150] In some embodiments, the real-time simulation module can also adjust the state of the hourglass lamp based on the inclination angle of the hourglass lamp detected by a sensor (such as an acceleration sensor) built into the hourglass lamp. For example, when it is detected that the inclination angle of the hourglass lamp is less than 180 degrees, the real-time simulation module can perform the pause and end operations of the hourglass lamp; when it is detected that the hourglass lamp is flipped 180 degrees, the real-time simulation module can control the hourglass countdown to directly return to zero to restart the countdown.

[0151] In some embodiments, the method for dynamically displaying the hourglass effect of the light further includes: in response to the end of the hourglass countdown, triggering a preset trigger event for the smart device.

[0152] In some embodiments, when a preset condition is met, the preset trigger module can determine that the hourglass countdown has ended. Among them, the preset condition can include: calculating the elapsed time starting from the fall of the sand grains, and the timing duration is consistent with the duration of the countdown parameter. In some embodiments, the preset condition can also include the completion of the execution of the last lit light matrix. In some embodiments, the preset condition can be set in advance based on experience.

[0153] An intelligent device refers to a device that can perform data processing, logical judgment, and execute preset trigger events. For example, intelligent devices can include intelligent lamps, intelligent audio devices, and intelligent kitchen utensils. In some embodiments, the intelligent device can be communicatively connected to a preset trigger module. Exemplary communication connection methods include, but are not limited to, WIFI, Bluetooth, etc.

[0154] The preset trigger event refers to an operation instruction set that is preset by the user or the system and is automatically executed when the hourglass lamp countdown ends. For different intelligent devices, different preset trigger events can be set. For example, for an intelligent lamp, the preset trigger event can include turning on or off the intelligent lamp. Another example is that for an intelligent audio, the preset trigger event can include playing, turning off, or switching music on the intelligent audio.

[0155] In some embodiments, the preset trigger module can, in response to the end of the hourglass lamp countdown, generate a control instruction and send it to the corresponding intelligent lamp to control the intelligent lamp to turn on or off the light.

[0156] In some embodiments, the preset trigger module can, in response to the end of the hourglass lamp countdown, generate a control instruction and send it to the corresponding intelligent audio device to control the intelligent audio to play, turn off, or switch music.

[0157] In some embodiments of this specification, by triggering the intelligent device to execute a preset trigger event (such as playing music) when the hourglass timing ends, the functional boundary of the hourglass lamp can be extended, thereby enhancing the user's immersive experience and operation convenience.

[0158] In some embodiments, in response to the end of the hourglass countdown, the control display module can generate a third control instruction based on different intelligent devices and different preset trigger events, and control the display mode of multiple LED units after the end of the hourglass countdown based on the third control instruction.

[0159] Different preset trigger events refer to: different preset trigger events executed by the same intelligent device, or different preset trigger events executed by different intelligent devices.

[0160] The third control instruction can be used to control the display mode of multiple LED units after the end of the hourglass countdown. The display mode after the end of the hourglass countdown refers to the display mode of multiple LED units after the end of the hourglass countdown. In some embodiments, the display mode can include display status and display color, etc. Among them, the display status can include constant display, flashing, etc. The display color can include red, yellow, etc.

[0161] In some embodiments, the control display module can generate a third control instruction based on different intelligent devices and different trigger events through a condition-response rule library.

[0162] A condition-response rule base is a database or logical system that stores and manages automation rules. Based on the rule structure of "IF (condition) → THEN (response)", it enables intelligent devices to automatically execute preset actions according to specific trigger events.

[0163] In some embodiments, the control display module can send a third control instruction to multiple LED units to control the display state and display color of the multiple LED units. For example, when the preset trigger event is to turn on a certain intelligent device, the control display module can control the multiple LED units to be constantly green when the hourglass lamp countdown ends. Another example is that when the preset trigger event is to turn off a certain intelligent device, the control display module can control the multiple LED units to flash red when the hourglass lamp countdown ends.

[0164] In some embodiments of this specification, different display modes and lighting colors are set for different intelligent devices and different preset trigger events, which is convenient for users to distinguish the corresponding preset trigger events, thereby further improving the user experience.

[0165] It should be noted that the above descriptions of processes 300 and 500 are only for illustration and explanation, and do not limit the scope of application of this specification. For those skilled in the art, various modifications and changes can be made to processes 300 and 500 under the guidance of this specification. However, these modifications and changes are still within the scope of this specification.

[0166] One or more embodiments of this specification provide a dynamic display device for the hourglass effect based on lighting. The device includes a processor configured to execute the above-mentioned dynamic display method for the hourglass effect of lighting.

[0167] One or more embodiments of this specification provide a computer-readable storage medium that stores computer instructions. When a computer reads the computer instructions in the storage medium, the computer executes the above-mentioned dynamic display method for the hourglass effect of lighting.

[0168] The basic concepts have been described above. Obviously, for those skilled in the art, the above detailed disclosure is only an example and does not constitute a limitation to this specification. Although not explicitly stated here, those skilled in the art may make various modifications, improvements, and corrections to this specification. Such modifications, improvements, and corrections are suggested in this specification, so such modifications, improvements, and corrections still belong to the spirit and scope of the exemplary embodiments of this specification.

Claims

1. A dynamic display system for the hourglass effect of lights, characterized in that, include: A data receiving module is configured to receive countdown parameters input by a user; A sequence pre-generating module is configured to generate a lighting matrix sequence based on the countdown parameter; wherein the lighting matrix sequence includes lighting matrices at multiple time points; The control display module is configured to generate a first control instruction based on the lighting matrix sequence, and control multiple LED units to display in time based on the first control instruction.

2. The system according to claim 1, wherein The sequence pre-generation module is further configured to: Based on the countdown parameters, a target sub-library is obtained by matching in a simulation database; The lighting matrix sequence is obtained from the target sub-library; wherein the simulation database includes multiple sub-libraries, one sub-library corresponds to one duration value, and the simulation database is constructed based on multiple simulations, and one simulation includes: Generate initial parameters; Perform simulation based on the initial parameters, and record the position simulation data, speed simulation data, and duration simulation data of this simulation; Digitally process the position simulation data to obtain the lighting matrix sequence of the current simulation; Based on the duration simulation data, the lighting matrix sequence, the position simulation data and the speed simulation data of the current simulation are stored in the corresponding sub-library of the simulation database.

3. The system according to claim 1, wherein Also includes: Real-time simulation module, configured as: In response to receiving the user interaction information, acquiring positions and velocities of a plurality of sand quanta at a first time point from the target sub-library; For multiple target time points starting from the first time point, based on the positions, velocities and external disturbance characteristics of multiple sand quanta at the previous target time point, the positions and velocities of multiple sand quanta at the current target time point are generated by simulation; wherein the positions and velocities of multiple sand quanta at the first target time point are determined based on the positions and velocities of the multiple sand quanta at the first time point; Digitally processing the positions of the plurality of sand quanta at the plurality of target time points to obtain a light matrix at the plurality of target time points; The control display module is further configured as follows: In response to receiving the user interaction information, a second control instruction is generated based on the lighting matrix at the multiple target time points, and the multiple LED units are controlled to display in time based on the second control instruction.

4. The system according to claim 1, wherein Also includes: The preset trigger module is connected to the smart device and is configured as follows: In response to the end of the hourglass countdown, the smart device is triggered to perform a preset trigger event.

5. A dynamic display method for the hourglass effect of a light, characterized in that, include: Receive countdown parameters input by the user; Based on the countdown parameters, a lighting matrix sequence is generated; wherein the lighting matrix sequence includes lighting matrices at multiple time points; A first control instruction is generated based on the lighting matrix sequence, and a plurality of LED units are controlled to display in a time-sharing manner based on the first control instruction.

6. The method according to claim 5, wherein The step of generating a lighting matrix sequence based on the countdown parameter comprises: Based on the countdown parameters, a target sub-library is obtained by matching in a simulation database; The lighting matrix sequence is obtained from the target sub-library; wherein the simulation database includes multiple sub-libraries, each of which corresponds to a duration value, and the simulation database is constructed based on multiple simulations, and one simulation includes: Generate initial parameters; Perform simulation based on the initial parameters, and record the position simulation data, speed simulation data, and duration simulation data of this simulation; Digitally process the position simulation data to obtain the lighting matrix sequence of the current simulation; Based on the duration simulation data, the lighting matrix sequence, the position simulation data and the speed simulation data of the current simulation are stored in the corresponding sub-library of the simulation database.

7. The method according to claim 5, wherein Also includes: In response to receiving the user interaction information, acquiring positions and velocities of a plurality of sand quanta at a first time point from the target sub-library; For multiple target time points starting from the first time point, based on the positions, velocities and external disturbance characteristics of multiple sand quanta at the previous target time point, the positions and velocities of multiple sand quanta at the current target time point are generated by simulation; wherein the positions and velocities of multiple sand quanta at the first target time point are determined based on the positions and velocities of the multiple sand quanta at the first time point; Digitally processing the positions of the plurality of sand quanta at the plurality of target time points to obtain a light matrix at the plurality of target time points; Based on the lighting matrix of the multiple target time points, a second control instruction is generated, and based on the second control instruction, the multiple LED units are controlled to display in a time-sharing manner.

8. The method according to claim 5, wherein Also includes: In response to the end of the hourglass countdown, the smart device is triggered to perform a preset trigger event.

9. A dynamic display device for the hourglass effect of a light, comprising a processor, characterized in that, The processor is used to execute a method for dynamically displaying an hourglass effect of light as described in any one of claims 5 to 8.

10. A computer-readable storage medium storing computer instructions. When a computer reads the computer instructions in the storage medium, the computer executes the method for dynamically displaying an hourglass effect of light as described in any one of claims 5 to 8.