A method and device for controlling the flashing mode of a copper wire lamp
By obtaining and combining the current and historical flashing instructions of the copper wire lamp, a coherent flashing mode is built, which solves the problem of discontinuous flashing effect after copper wire lamp failure, and achieves the integrity and consistency of the flashing effect.
Patent Information
- Application Number
- CN202210356290.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-06
- Publication Date
- 2025-05-27
- Estimated Expiration
- 2042-04-06
AI Technical Summary
When the existing copper wire lamp fails and restarts, there is a lack of association between the new flashing command and the previous flashing command, resulting in discontinuous flashing effects in the front and back, affecting the coherence of the decoration.
By obtaining the current flashing command and historical flashing command of the copper wire lamp, a coherent flashing mode is built to ensure the unity and coherence of the flashing effect. Specific steps include obtaining current and historical instructions, building a flashing mode, and controlling the flashing of the copper wire lamp according to the mode.
After the copper wire lamp fails, a coherent flicker mode is formed by combining historical and current flickering instructions to ensure the integrity and continuity of the flickering effect, and improve the coherence of the decorative.
Smart Images

Figure CN114679828B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of the flashing mode of copper wire lights, and in particular, to a control method and device for the flashing mode of copper wire lights. Background Art
[0002] Copper wire lights are commonly used in various decoration sites to provide the required flashing effects. However, when a power failure occurs and the lights are restarted, the copper wire lights will flash according to the new flashing instructions. There is no correlation between the new flashing instructions and the previous ones, resulting in discontinuous flashing effects before and after, which affects the decoration coherence.
[0003] It can be seen that there are at least the following defects in the prior art: there is no correlation between the new flashing instructions and the previous ones, resulting in discontinuous flashing effects before and after, which affects the decoration coherence.
[0004] Therefore, it is necessary to provide a technical means to solve the above defects. Summary of the Invention
[0005] The purpose of the present invention is to overcome the defects of the prior art and provide a control method and device for the flashing mode of copper wire lights to solve the problem in the prior art that there is no correlation between the new flashing instructions and the previous ones, resulting in discontinuous flashing effects before and after, which affects the decoration coherence.
[0006] The present invention is implemented as follows. A control method for the flashing mode of copper wire lights, the method comprising the steps of:
[0007] Obtain the current flashing instructions of the copper wire lights;
[0008] Obtain the historical flashing instructions of the copper wire lights;
[0009] Construct the flashing mode of the copper wire lights according to the current flashing instructions and the historical flashing instructions;
[0010] Control the flashing of the copper wire lights according to the flashing mode.
[0011] Preferably, the step of obtaining the historical flashing instructions of the copper wire lights includes the steps of:
[0012] Obtain all the historical flashing modes of the copper wire lights;
[0013] Obtain the duration of each historical flashing mode;
[0014] Obtain the number of repetitions of each historical flashing mode;
[0015] Construct a blank storage database;
[0016] Store all the historical flashing modes in the storage database;
[0017] Construct a first mapping of the historical flashing pattern corresponding to the duration.
[0018] Construct a second mapping of the historical flashing pattern corresponding to the number of repetitions.
[0019] Store the first mapping and the second mapping at the corresponding historical flashing pattern in the storage database.
[0020] Preferably, the step of obtaining the historical flashing instruction of the copper wire lamp further includes:
[0021] Obtain the flashing duration of the current flashing instruction.
[0022] Obtain all the durations in the storage database.
[0023] Compare the magnitudes of all the durations with the flashing duration one by one.
[0024] Retain all the durations less than or equal to a preset ratio of the flashing duration.
[0025] Save the historical flashing patterns corresponding to the remaining all the durations in the storage database.
[0026] Preferably, the step of obtaining the historical flashing instruction of the copper wire lamp further includes:
[0027] Obtain the flashing duration of the current flashing instruction.
[0028] Retain all the historical flashing patterns with the number of repetitions greater than a preset value.
[0029] Obtain the durations corresponding to the remaining all the historical flashing patterns.
[0030] Compare the magnitudes of all the durations with the flashing duration one by one.
[0031] Retain all the durations less than or equal to a preset ratio of the flashing duration.
[0032] Save the historical flashing patterns corresponding to the remaining all the durations in the storage database.
[0033] Preferably, the step of constructing the flashing pattern of the copper wire lamp according to the current flashing instruction and the historical flashing instruction includes:
[0034] Determine whether the current flashing instruction contains a blank flashing instruction.
[0035] If so, determine whether the blank flashing instruction is at the head end of the current flashing instruction;
[0036] If so, construct a first flashing mode for flashing the historical flashing instruction and the current flashing instruction;
[0037] If not, determine whether the blank flashing instruction is at the tail end of the current flashing instruction;
[0038] If so, construct a second flashing mode for flashing the current flashing instruction and the historical flashing instruction;
[0039] If not, construct a third flashing mode for flashing the current flashing instruction and the historical flashing instruction;
[0040] If not, construct a fourth flashing mode for flashing the historical flashing instruction and the current flashing instruction.
[0041] Preferably, the constructing the first flashing mode for flashing the historical flashing instruction and the current flashing instruction includes the steps of:
[0042] Obtain the non-blank flashing instruction at the right end of the blank flashing instruction in the current flashing instruction;
[0043] Obtain all the remaining historical flashing instructions;
[0044] Compare the similarity between the tail end of each historical flashing instruction and the non-blank flashing instruction;
[0045] Select the historical flashing instruction with the highest similarity as the first target flashing instruction;
[0046] Intercept, starting from the tail end of the first target flashing instruction, an instruction with the same time as the blank flashing instruction as the first flashing instruction;
[0047] Fill the first flashing instruction into the blank flashing instruction and form a first flashing mode with the non-blank flashing instruction.
[0048] Preferably, the constructing the second flashing mode for flashing the current flashing instruction and the historical flashing instruction includes the steps of:
[0049] Obtain the non-blank flashing instruction at the left end of the blank flashing instruction in the current flashing instruction;
[0050] Obtain all the remaining historical flashing instructions;
[0051] Compare the similarity between the head end of each historical flashing instruction and the non-blank flashing instruction;
[0052] Select the historical flashing instruction with the highest similarity as the second target flashing instruction;
[0053] Intercept instructions with the same time as the blank flashing instruction from the start of the second target flashing instruction as the second flashing instruction;
[0054] Fill the blank flashing instruction with the second flashing instruction and form a second flashing pattern with the non - blank flashing instruction.
[0055] Preferably, constructing the third flashing pattern that flashes the current flashing instruction and the historical flashing instruction includes the steps of:
[0056] Obtain the non - blank flashing instructions at the left end and the right end of the blank flashing instruction in the current flashing instruction;
[0057] Obtain all the remaining historical flashing instructions;
[0058] Compare the similarity between the start and the end of each historical flashing instruction and the non - blank flashing instruction;
[0059] Select the historical flashing instruction with the highest similarity as the third target flashing instruction;
[0060] Intercept instructions with the same time as the blank flashing instruction from the start and the end of the third target flashing instruction as the third flashing instruction;
[0061] Fill the blank flashing instruction with the third flashing instruction and form a third flashing pattern with the non - blank flashing instruction.
[0062] Preferably, constructing the fourth flashing pattern that flashes the historical flashing instruction and the current flashing instruction includes the steps of:
[0063] Obtain the start instruction of the current flashing instruction;
[0064] Obtain all the remaining historical flashing instructions;
[0065] Compare the similarity between the end of each historical flashing instruction and the start instruction;
[0066] Select the historical flashing instruction with the highest similarity as the fourth target flashing instruction;
[0067] Intercept instructions with a preset time length from the end of the fourth target flashing instruction as the fourth flashing instruction;
[0068] Connect the fourth flashing instruction with the start of the current flashing instruction to form a fourth flashing pattern.
[0069] The present invention also provides a control device for the flashing pattern of a copper wire lamp, and the device includes:
[0070] A current flashing instruction acquisition module, configured to acquire the current flashing instruction of the copper wire lamp;
[0071] A historical flashing instruction acquisition module, configured to acquire the historical flashing instruction of the copper wire lamp;
[0072] A flashing mode construction module, configured to construct the flashing mode of the copper wire lamp according to the current flashing instruction and the historical flashing instruction;
[0073] A flashing control module, configured to control the flashing of the copper wire lamp according to the flashing mode.
[0074] A method and device for controlling the flashing mode of a copper wire lamp provided by this application can, on the basis of a newly issued current flashing instruction, combine the historical flashing instruction, organically combine the current flashing instruction and the historical flashing instruction, form a coherent and unified flashing mode, and ensure the integrity of the flashing effect. BRIEF DESCRIPTION OF THE DRAWINGS
[0075] Figure 1 It is a schematic flowchart of a method for controlling the flashing mode of a copper wire lamp according to an embodiment of this application;
[0076] Figure 2 It is a schematic structural diagram of a device for controlling the flashing mode of a copper wire lamp according to an embodiment of this application. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0077] In order to make the objectives, technical solutions and advantages of the present invention clearer and more understandable, the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.
[0078] It should be noted that when an element is referred to as being "fixed to" or "disposed on" another element, it can be directly on the other element or there may be an intermediate element at the same time. When an element is referred to as being "connected to" another element, it can be directly connected to the other element or there may be an intermediate element at the same time.
[0079] In order to improve the convenience of the batting assistance device and the accuracy of assisting batting, in an embodiment of this application, a method and device for controlling the flashing mode of a copper wire lamp and a batting assistance method based on the batting assistance device are provided, which can improve the convenience and portability of batting assistance through a computer device, and can improve the accuracy of assisting batting and the goal probability, and enhance the user experience.
[0080] Such as Figure 1 , in an embodiment of this application, this application provides a method for controlling the flashing mode of a copper wire lamp, and the method includes the steps:
[0081] S1: Obtain the current flashing instruction of the copper wire lamp;
[0082] In the embodiment of the present application, the current flashing instruction can be re-issued by the user and stored in the memory of the copper wire lamp, and the controller of the copper wire lamp can obtain the current flashing instruction from the memory
[0083] S2: Obtain the historical flashing instruction of the copper wire lamp;
[0084] In the embodiment of the present application, the obtaining of the historical flashing instruction of the copper wire lamp includes the steps of:
[0085] Obtain all the historical flashing patterns of the copper wire lamp;
[0086] Obtain the duration of each of the historical flashing patterns;
[0087] Obtain the number of repetitions of each of the historical flashing patterns;
[0088] Construct a blank storage database;
[0089] Store all the historical flashing patterns in the storage database;
[0090] Construct a first mapping between the historical flashing patterns and the corresponding durations;
[0091] Construct a second mapping between the historical flashing patterns and the corresponding number of repetitions;
[0092] Store the first mapping and the second mapping in the storage database at the corresponding historical flashing patterns.
[0093] In the embodiment of the present application, when obtaining the historical flashing instruction of the copper wire lamp, the following exemplary storage database can be obtained:
[0094] Table 1
[0095] Historical blink mode Duration Number of repetitions A 1h 3 B 2h 4 C 1h 2
[0096] In the embodiment of the present application, the obtaining of the historical flashing instruction of the copper wire lamp further includes the steps of:
[0097] Obtain the flashing duration of the current flashing instruction;
[0098] Obtain all the durations in the storage database;
[0099] Compare all the durations with the flashing duration one by one;
[0100] Retain all the durations that are less than or equal to a preset ratio of the flashing duration;
[0101] Save all the remaining historical flashing patterns corresponding to the durations in the storage database.
[0102] In an embodiment of the present application, after obtaining Table 1 above, it can be further processed to obtain Table 2. Specifically, when the flashing duration of the current flashing instruction is 2 hours and the preset ratio is selected as 0.2, then according to the above steps, only historical flashing patterns A and C and their corresponding durations and repetition times can be retained, while historical flashing pattern B and its corresponding information need to be deleted from the storage database, thus obtaining Table 2 as follows:
[0103] Table 2
[0104] Historical blink mode Duration Number of repetitions A 1h 3 C 1h 2
[0105] In an embodiment of the present application, the obtaining of the historical flashing instruction of the copper wire lamp further includes the steps of:
[0106] Obtain the flashing duration of the current flashing instruction;
[0107] Retain all the historical flashing patterns whose repetition times are greater than the preset value;
[0108] Obtain the durations corresponding to all the remaining historical flashing patterns;
[0109] Compare the durations one by one with the flashing duration;
[0110] Retain all the durations less than or equal to the preset ratio of the flashing duration;
[0111] Save all the remaining historical flashing patterns corresponding to the durations in the storage database.
[0112] In an embodiment of the present application, after obtaining Table 2, it can be further processed to obtain Table 3. Specifically, when the durations of multiple historical flashing patterns all meet the requirements, at this time, their repetition times can be compared. At this time, the preset value is selected as 2, then according to the above steps, only historical flashing pattern A and its corresponding duration and repetition times can be retained, thus obtaining Table 3 as follows:
[0113] Table 3
[0114] Historical blink mode Duration Number of repetitions A 1h 3
[0115] S3: Construct the flashing pattern of the copper wire lamp according to the current flashing instruction and the historical flashing instruction;
[0116] In an embodiment of the present application, the constructing of the flashing pattern of the copper wire lamp according to the current flashing instruction and the historical flashing instruction includes the steps of:
[0117] Determine whether the current flashing instruction contains a blank flashing instruction;
[0118] If so, determine whether the blank flashing instruction is located at the head end of the current flashing instruction;
[0119] If so, construct a first flashing mode for flashing the historical flashing instruction and the current flashing instruction;
[0120] If not, determine whether the blank flashing instruction is located at the tail end of the current flashing instruction;
[0121] If so, construct a second flashing mode for flashing the current flashing instruction and the historical flashing instruction;
[0122] If not, construct a third flashing mode for flashing the current flashing instruction and the historical flashing instruction;
[0123] If not, construct a fourth flashing mode for flashing the historical flashing instruction and the current flashing instruction.
[0124] In an embodiment of the present application, when a current flashing instruction is received, first determine whether the current flashing instruction contains a blank flashing instruction (for example, due to a fault causing some flashing information to be missing and becoming a blank flashing instruction). If a blank flashing instruction is contained, the historical flashing instruction is partially added to the current flashing instruction according to the position of the blank flashing instruction in the current flashing instruction, so as to form a new flashing instruction and perform flashing; when no blank flashing instruction is contained, now part of the historical flashing instruction is spliced at the head end of the current flashing instruction, so as to form a new flashing instruction and perform flashing. Such an operation can ensure the coordination and unity of the flashing mode.
[0125] In an embodiment of the present application, the constructing the first flashing mode for flashing the historical flashing instruction and the current flashing instruction includes the steps of:
[0126] Obtain the non-blank flashing instruction at the right end of the blank flashing instruction in the current flashing instruction;
[0127] Obtain all the remaining historical flashing instructions;
[0128] Compare the similarity between the tail end of each historical flashing instruction and the non-blank flashing instruction;
[0129] Select the historical flashing instruction with the highest similarity as the first target flashing instruction;
[0130] Intercept an instruction equal in time to the blank flashing instruction from the tail end of the first target flashing instruction as the first flashing instruction;
[0131] Fill the first flashing instruction into the blank flashing instruction and form a first flashing pattern with the non - blank flashing instruction.
[0132] In an embodiment of the present application, the head of the current flashing instruction is a blank flashing instruction (represented by 0), and the right - hand end of the blank flashing instruction is a non - blank flashing instruction (represented by a non - zero letter). Then the current flashing instruction can be expressed as: 0AB, and the non - blank flashing instruction is expressed as: AB. Select the historical flashing instruction with the highest similarity at the tail end to the non - blank flashing instruction from the remaining historical flashing instructions in the storage database as the first target flashing instruction. For example, select A'B' as the first target flashing instruction from historical flashing instructions CD and A'B' (the similarity of A'B' is higher than that of CD). Then intercept an instruction equal in time to the blank flashing instruction from the tail end of the first target flashing instruction as the first flashing instruction. That is, intercept 1 instruction (B') from the tail end of A'B' as the first flashing instruction, and then fill B' into the blank flashing instruction (AB) to form the first flashing pattern B'AB. Such an operation can ensure the coherence and unity of the flashing effect.
[0133] In an embodiment of the present application, the construction of the second flashing pattern of the current flashing instruction and the historical flashing instruction includes the steps of:
[0134] Obtain the non - blank flashing instruction to the left of the blank flashing instruction in the current flashing instruction;
[0135] Obtain all the remaining historical flashing instructions;
[0136] Compare the similarity between the head of each historical flashing instruction and the non - blank flashing instruction;
[0137] Select the historical flashing instruction with the highest similarity as the second target flashing instruction;
[0138] Intercept an instruction equal in time to the blank flashing instruction from the head of the second target flashing instruction as the second flashing instruction;
[0139] Fill the second flashing instruction into the blank flashing instruction and form a second flashing pattern with the non - blank flashing instruction.
[0140] In an embodiment of the present application, similarly, the current flashing instruction is AB0, the non - blank flashing instruction is AB, the historical flashing instructions are CD and A'B', the second target flashing instruction is A'B', the second flashing instruction is A', and the second flashing pattern is ABA'.
[0141] In an embodiment of the present application, the construction of the third flashing pattern of the current flashing instruction and the historical flashing instruction includes the steps of:
[0142] Obtain the non - blank flashing instructions at the left end and the right end of the blank flashing instruction in the current flashing instruction;
[0143] Obtain all the remaining historical flashing instructions;
[0144] Compare the similarity between the head end and the tail end of each historical flashing instruction and the non - blank flashing instruction;
[0145] Select the historical flashing instruction with the highest similarity as the third target flashing instruction;
[0146] Intercept instructions with the same time as the blank flashing instruction starting from the head end and the tail end of the third target flashing instruction as the third flashing instruction;
[0147] Fill the third flashing instruction into the blank flashing instruction and form a third flashing pattern with the non - blank flashing instruction.
[0148] In the embodiment of the present application, similarly, the current flashing instruction is A0B, the non - blank flashing instruction is A _ B, the historical flashing instructions are CD and A’B’, the third target flashing instruction is A’B’, the third flashing instruction is A’ or B’, and the second flashing pattern is AA’B or AB’B.
[0149] In the embodiment of the present application, the construction of the fourth flashing pattern of the historical flashing instruction and the current flashing instruction includes the steps:
[0150] Obtain the head - end instruction of the current flashing instruction;
[0151] Obtain all the remaining historical flashing instructions;
[0152] Compare the similarity between the tail end of each historical flashing instruction and the head - end instruction;
[0153] Select the historical flashing instruction with the highest similarity as the fourth target flashing instruction;
[0154] Intercept instructions with a preset time length starting from the tail end of the fourth target flashing instruction as the fourth flashing instruction;
[0155] Connect the fourth flashing instruction with the head end of the current flashing instruction to form a fourth flashing pattern.
[0156] In the embodiment of the present application, similarly, the current flashing instruction is AB, the head - end instruction is A, the historical flashing instructions are CD and A’B’, the fourth target flashing instruction is A’B’, the fourth flashing instruction is B’, and the fourth flashing pattern is B’AB.
[0157] S4: Control the flashing of the copper wire lamp according to the flashing pattern.
[0158] In the embodiment of the present application, the flashing of the copper wire lamp is controlled according to the determined flashing mode described above.
[0159] Such as Figure 2 , in the embodiment of the present application, the present invention also provides a device for controlling the flashing mode of a copper wire lamp, and the device includes:
[0160] A current flashing instruction acquisition module 10, configured to acquire the current flashing instruction of the copper wire lamp;
[0161] A historical flashing instruction acquisition module 20, configured to acquire the historical flashing instruction of the copper wire lamp;
[0162] A flashing mode construction module 30, configured to construct the flashing mode of the copper wire lamp according to the current flashing instruction and the historical flashing instruction;
[0163] A flashing control module 40, configured to control the flashing of the copper wire lamp according to the flashing mode.
[0164] In the embodiment of the present application, a device for controlling the flashing mode of a copper wire lamp provided by the present application can implement the above-mentioned method for controlling the flashing mode of a copper wire lamp, thereby ensuring the coordination and unity of the flashing effect of the copper wire lamp.
[0165] A method and a device for controlling the flashing mode of a copper wire lamp provided by the present application can, on the basis of a newly issued current flashing instruction, combine the historical flashing instruction, organically combine the current flashing instruction and the historical flashing instruction, form a coherent and unified flashing mode, and ensure the integrity of the flashing effect.
[0166] The above are only the preferred embodiments of the present invention, and its structure is not limited to the shapes listed above. Any modifications, equivalent replacements, and improvements made within the spirit and principle of the present invention shall be included within the protection scope of the present invention.
Claims
1. A method for controlling the flashing mode of a copper wire lamp, characterized in that, the method comprises the steps of: obtaining the current flashing instruction of the copper wire lamp; obtaining the historical flashing instruction of the copper wire lamp; constructing the flashing mode of the copper wire lamp according to the current flashing instruction and the historical flashing instruction; controlling the flashing of the copper wire lamp according to the flashing mode; wherein, the obtaining the historical flashing instruction of the copper wire lamp comprises the steps of: obtaining all the historical flashing modes of the copper wire lamp; obtaining the duration of each of the historical flashing modes; obtaining the repetition times of each of the historical flashing modes; constructing a blank storage database; storing all the historical flashing modes into the storage database; constructing a first mapping between the historical flashing mode and the corresponding duration; constructing a second mapping between the historical flashing mode and the corresponding repetition times; storing the first mapping and the second mapping into the corresponding historical flashing mode in the storage database.
2. The method for controlling the flashing mode of a copper wire lamp according to claim 1, characterized in that, the obtaining the historical flashing instruction of the copper wire lamp further comprises the steps of: obtaining the flashing duration of the current flashing instruction; obtaining all the durations in the storage database; comparing each of the durations with the flashing duration one by one; retaining all the durations that are less than or equal to a preset ratio of the flashing duration; saving the historical flashing modes corresponding to the remaining all the durations in the storage database.
3. The method for controlling the flashing mode of a copper wire lamp according to claim 2, characterized in that, the obtaining the historical flashing instruction of the copper wire lamp further comprises the steps of: obtaining the flashing duration of the current flashing instruction; retaining all the historical flashing modes with the repetition times greater than a preset value; obtaining the durations corresponding to the remaining all the historical flashing modes; comparing each of the durations with the flashing duration one by one; retaining all the durations that are less than or equal to a preset ratio of the flashing duration; saving the historical flashing modes corresponding to the remaining all the durations in the storage database.
4. The method for controlling the flashing mode of a copper wire lamp according to claim 3, characterized in that, the constructing the flashing mode of the copper wire lamp according to the current flashing instruction and the historical flashing instruction comprises the steps of: judging whether the current flashing instruction contains a blank flashing instruction; if so, judging whether the blank flashing instruction is located at the head end of the current flashing instruction; if so, constructing a first flashing mode for flashing the historical flashing instruction and the current flashing instruction; if not, judging whether the blank flashing instruction is located at the tail end of the current flashing instruction; if so, constructing a second flashing mode for flashing the current flashing instruction and the historical flashing instruction; if not, constructing a third flashing mode for flashing the current flashing instruction and the historical flashing instruction; if not, constructing a fourth flashing mode for flashing the historical flashing instruction and the current flashing instruction.
5. The method for controlling the flashing mode of a copper wire lamp according to claim 4, characterized in that, The first flashing mode for constructing and flashing the historical flashing instruction and the current flashing instruction includes the steps of: Obtain the non - blank flashing instruction to the right of the blank flashing instruction in the current flashing instruction; Obtain all the remaining historical flashing instructions; Compare the similarity between the tail end of each historical flashing instruction and the non - blank flashing instruction; Select the historical flashing instruction with the highest similarity as the first target flashing instruction; Intercept instructions with the same time as the blank flashing instruction starting from the tail end of the first target flashing instruction as the first flashing instruction; Fill the first flashing instruction into the blank flashing instruction and form the first flashing mode with the non - blank flashing instruction.
6. According to the copper wire lamp flashing mode control method described in claim 5, characterized in that The second flashing mode for constructing and flashing the current flashing instruction and the historical flashing instruction includes the steps of: Obtain the non - blank flashing instruction to the left of the blank flashing instruction in the current flashing instruction; Obtain all the remaining historical flashing instructions; Compare the similarity between the head end of each historical flashing instruction and the non - blank flashing instruction; Select the historical flashing instruction with the highest similarity as the second target flashing instruction; Intercept instructions with the same time as the blank flashing instruction starting from the head end of the second target flashing instruction as the second flashing instruction; Fill the second flashing instruction into the blank flashing instruction and form the second flashing mode with the non - blank flashing instruction.
7. According to the copper wire lamp flashing mode control method described in claim 5, characterized in that The third flashing mode for constructing and flashing the current flashing instruction and the historical flashing instruction includes the steps of: Obtain the non - blank flashing instructions to the left and right of the blank flashing instruction in the current flashing instruction; Obtain all the remaining historical flashing instructions; Compare the similarity between the head end and the tail end of each historical flashing instruction and the non - blank flashing instruction; Select the historical flashing instruction with the highest similarity as the third target flashing instruction; Intercept instructions with the same time as the blank flashing instruction starting from the head end and the tail end of the third target flashing instruction as the third flashing instruction; Fill the third flashing instruction into the blank flashing instruction and form the third flashing mode with the non - blank flashing instruction.
8. According to the copper wire lamp flashing mode control method described in claim 5, characterized in that The fourth flashing mode for constructing and flashing the historical flashing instruction and the current flashing instruction includes the steps of: Obtain the head end instruction of the current flashing instruction; Obtain all the remaining historical flashing instructions; Compare the similarity between the tail end of each historical flashing instruction and the head end instruction; Select the historical flashing instruction with the highest similarity as the fourth target flashing instruction; Intercept instructions with a preset time length starting from the tail end of the fourth target flashing instruction as the fourth flashing instruction; Connect the fourth flashing instruction to the head end of the current flashing instruction to form the fourth flashing mode.
9. A copper wire lamp flashing mode control device, characterized in that The device includes: Current flashing instruction acquisition module, used to acquire the current flashing instruction of the copper wire lamp; Historical flashing instruction acquisition module, used to acquire the historical flashing instruction of the copper wire lamp; Flashing mode construction module, used to construct the flashing mode of the copper wire lamp according to the current flashing instruction and the historical flashing instruction; Flashing control module, used to control the flashing of the copper wire lamp according to the flashing mode; Wherein, the acquisition of the historical flashing instruction of the copper wire lamp includes: Acquire all historical flashing modes of the copper wire lamp; Acquire the duration of each of the historical flashing modes; Acquire the repetition times of each of the historical flashing modes; Construct a blank storage database; Store all the historical flashing modes into the storage database; Construct a first mapping between the historical flashing mode and the corresponding duration; Construct a second mapping between the historical flashing mode and the corresponding repetition times; Store the first mapping and the second mapping at the corresponding historical flashing mode in the storage database.
Citation Information
Patent Citations
Method and device for controlling intelligent lamp
CN109287055A