Illumination control method and system of myopia illumination therapeutic apparatus and myopia illumination therapeutic apparatus

By introducing a monitoring module and a watchdog hardware unit reset module in myopia light therapy device, the operating status of the lighting duration control module is monitored and the recovery process is carried out in abnormal situations, the problem of light being unable to be turned off in time due to software abnormality is solved, and control reliability and safety are improved.

CN120022537APending Publication Date: 2025-05-23BEIJING AIRDOC TECH CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311559987.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-11-21
Publication Date
2025-05-23

AI Technical Summary

Technical Problem

The existing myopia light therapy device cannot turn off the light in time under abnormal software conditions, which poses a safety risk.

Method used

The monitoring module monitors the operating status of the lighting duration control module, and if it is abnormal, the recovery process is performed; at the same time, the watchdog hardware unit reset module is used to reset the counting unit regularly. When the counting unit overflows, the processor turns off the lighting and restarts the treatment device.

Benefits of technology

It realizes the timely turn off light in case of abnormal software, improves the control reliability of light off, and reduces security risks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120022537A_ABST
    Figure CN120022537A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses an illumination control method and system for a myopia illumination therapeutic apparatus and the myopia illumination therapeutic apparatus, and the method comprises the steps: monitoring the operation state of an illumination duration control module through a monitoring module after the illumination of the myopia illumination therapeutic apparatus is started, and if the operation state is abnormal, starting the illumination duration control module; if yes, the illumination duration control module is subjected to recovery processing, and the illumination duration control module is used for controlling the illumination duration; a counting unit in a watchdog hardware unit is reset through a watchdog hardware unit reset module, and the watchdog hardware unit is a hardware circuit in a processor of the myopia illumination therapeutic apparatus; and after the counting unit triggers the overflow mechanism, the processor turns off illumination and restarts the myopia illumination therapeutic apparatus. According to the embodiment of the invention, the problem that illumination cannot be turned off in time under the abnormal condition of software is solved, and the control reliability of illumination turn-off is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the technical field of myopia therapeutic devices, and in particular, to a light control method and system for a myopia light therapeutic device, and a myopia light therapeutic device. Background Art

[0002] Existing myopia light therapy devices have a limit on the length of time the red light is turned on, and the red light needs to be turned off after the specified time. Under normal circumstances, when the control program runs reliably, the red light can be turned off normally. It only needs to be controlled to turn off the red light after the time is reached. That is, the system will specify the length of time for red light exposure, such as 3 minutes, 2 minutes, 1 minute, etc. After the system turns on the red light, the timer is started and the timer expiration time is set. After detecting that the timer reaches the specified time, the control program controls the red light to be turned off.

[0003] In the prior art, the control of light is completely dependent on the control of the software running in the myopia light therapy device. In extreme cases, if the software hangs or runs abnormally, the software control to turn off the light may fail. In this case, the light cannot be reliably turned off on time, posing a possible safety risk. Summary of the invention

[0004] The embodiments of the present application provide a light control method and system for a myopia light therapy device, and a myopia light therapy device, which help to improve the control reliability of light shutoff.

[0005] In order to solve the above problems, in a first aspect, an embodiment of the present application provides a method for controlling light treatment of myopia, including:

[0006] After the myopia light therapy device turns on the light, the operating state of the light duration control module is monitored by the monitoring module. If the operating state is abnormal, the light duration control module is restored. The light duration control module is used to control the duration of the light. The monitoring module is a software module in the system control software of the myopia light therapy device.

[0007] The counting unit in the watchdog hardware unit is reset regularly by a watchdog hardware unit reset module, wherein the watchdog hardware unit is a hardware circuit in the processor of the myopia light therapy device, and the watchdog hardware unit reset module is a software module in the system control software;

[0008] When the watchdog hardware unit reset module stops resetting the counting unit in the watchdog hardware unit, the counting unit triggers an overflow mechanism, and the processor turns off the illumination and restarts the myopia light therapy device.

[0009] In a second aspect, an embodiment of the present application provides a light control system for a myopia light therapy device, comprising:

[0010] The illumination duration control module is used to control the illumination duration of the myopia illumination therapy device;

[0011] A monitoring module, used for monitoring the operating state of the illumination duration control module after the myopia illumination therapeutic device turns on illumination, and restoring the illumination duration control module if the operating state is abnormal. The monitoring module is a software module in the system control software of the myopia illumination therapeutic device;

[0012] A processor, comprising a watchdog hardware unit, wherein the watchdog hardware unit is a hardware circuit in the processor, and the watchdog hardware unit comprises a counting unit;

[0013] A watchdog hardware unit reset module, used for resetting the counting unit at regular intervals, wherein the watchdog hardware unit reset module is a software module in the system control software;

[0014] The counting unit is used to trigger an overflow mechanism when the watchdog hardware unit reset module stops resetting the counting unit;

[0015] The processor is used to turn off the light and restart the myopia light therapy device after the counting unit triggers the overflow mechanism.

[0016] In a third aspect, an embodiment of the present application further provides a myopia light therapy device, including a light control system of the myopia light therapy device described in the embodiment of the present application.

[0017] The illumination control method and system of the myopia illumination therapy device provided by the embodiment of the present application monitor the operating state of the illumination duration control module through the monitoring module after the myopia illumination therapy device turns on illumination. If the operating state is abnormal, the illumination duration control module is restored, and the counting unit in the watchdog hardware unit is reset through the watchdog hardware unit reset module. When the watchdog hardware unit reset module stops resetting the counting unit in the watchdog hardware unit, the counting unit triggers the overflow mechanism, the processor turns off illumination and restarts the myopia illumination therapy device, thereby realizing the synchronization of software and hardware. At the same time, the duration of illumination can be controlled. When the monitoring model finds that the operating status of the illumination duration control module is abnormal, the illumination duration control module can be restored in time, so as to avoid the problem that the illumination duration reaches the preset illumination duration and cannot be turned off in time. Moreover, when the monitoring module is abnormal, the counting unit in the watchdog hardware unit cannot be reset. The counting unit will trigger the overflow mechanism, turn off the illumination and restart the myopia light therapy device. If the light is turned on for treatment, the light can be turned off in time, which solves the problem of not being able to turn off the light in time when the software is abnormal, and improves the control reliability of light shutoff. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0019] Figure 1 A flowchart of a method for controlling light illumination of a myopia treatment light therapy device provided in an embodiment of the present application;

[0020] Figure 2 It is a structural schematic diagram of a light control system of a myopia light therapy device provided in an embodiment of the present application;

[0021] Figure 3 It is a schematic diagram of abnormal processing of each module in an embodiment of the present application;

[0022] Figure 4 It is a schematic diagram of the illumination control system of the myopia illumination therapy device provided in the embodiment of the present application for illumination control. DETAILED DESCRIPTION

[0023] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0024] Figure 1 A flowchart of a method for controlling illumination of a myopia illumination therapy device provided in an embodiment of the present application is as follows: Figure 1 As shown, the method includes: step 110 to step 130.

[0025] Step 110, after the myopia light therapy device turns on the light, the operating status of the light duration control module is monitored by the monitoring module. If the operating status is abnormal, the light duration control module is restored. The light duration control module is used to control the duration of the light. The monitoring module is a software module in the system control software of the myopia light therapy device.

[0026] In an embodiment of the present application, in a myopia light therapy device, the duration of light exposure can be controlled by both software and hardware, which can solve the problem of not being able to turn off the light in time when the software is abnormal.

[0027] Among them, the system control software is the overall software in the myopia light therapy device. The monitoring module is a software control module, which is used to monitor the status of each software module in the myopia light therapy device. For example, it can monitor the status of the light duration control module and the status of the light control module. The light duration control module is a software module, which is a timer, used to time the duration of light. After the myopia light therapy device turns on the light, the light duration control module starts to time. The light control module is also a software module, which is used to control the turning on and off of the light and the intensity of the light. The running state of the system control software determines the running state of the monitoring module.

[0028] After the myopia light therapy device turns on the light, the monitoring module running in the myopia light therapy device monitors the operating state of the light duration control module to see whether the operating state of the light duration control module is normal. If the operating state of the light duration control module is found to be abnormal, that is, the light duration control module cannot perform correct timing, then the light duration control module is restored to avoid the problem that the light duration reaches the preset light duration and cannot be turned off in time. The light for illumination can be red light with a wavelength range of 625 to 740 nm, for example, the wavelength can be 650 nm.

[0029] Step 120, periodically resetting the counting unit in the watchdog hardware unit through the watchdog hardware unit reset module, the watchdog hardware unit is a hardware circuit in the processor of the myopia light therapy device, and the watchdog hardware unit reset module is a software module in the system control software.

[0030] Generally, there is a watchdog hardware unit on the processor. The hardware unit itself is a hardware circuit for monitoring whether the processor is working normally. After enabling the watchdog hardware unit, it is necessary to regularly clear the count of the counting unit in the watchdog hardware unit and reset the counting unit. Once the processor stops working or the timing clearing counting mechanism fails, the counting unit will overflow, and the watchdog hardware unit will automatically reset and restart the processor. Based on this principle, the embodiment of the present application utilizes the switch and timing reset principle of the watchdog hardware unit, and the watchdog hardware unit reset module implemented by software regularly resets the counting unit in the watchdog hardware unit, that is, regularly clears the count of the counting unit in the watchdog hardware unit. The watchdog hardware unit reset module uses a separate thread to regularly reset the counting unit in the watchdog hardware unit.

[0031] Step 130, when the watchdog hardware unit reset module stops resetting the counting unit in the watchdog hardware unit, the counting unit triggers an overflow mechanism, and the processor turns off the illumination and restarts the myopia light therapy device.

[0032] When the myopia light therapy device is operating normally, the light duration control module in the system control software will time the light duration. When the light duration reaches the set value of the preset light duration, the light control module in the control software will turn off the light and shut down normally. When the system control software is abnormal, one situation is that the light duration control module fails to function, that is, the operating state of the light duration control module indicated in step 110 is abnormal. At this time, the light duration control module can be restored. Another situation is that the entire system control software is running abnormally. At this time, the reset module in the watchdog hardware unit will stop working, that is, the watchdog hardware unit reset module cannot reset the counting unit in the watchdog hardware unit. At this time, the overflow mechanism of the counting unit in the watchdog hardware unit will be automatically triggered, and the myopia light therapy device will be automatically restarted. If the myopia light therapy device encounters an abnormality in the entire system control software during the process of turning on the light, the light can be turned off by restarting the myopia light therapy device, solving the problem of not being able to turn off the light in time when the software is abnormal.

[0033] The illumination control method of the myopia illumination therapy device provided in the embodiment of the present application monitors the operating state of the illumination duration control module through the monitoring module after the myopia illumination therapy device turns on illumination. If the operating state is abnormal, the illumination duration control module is restored, and the counting unit in the watchdog hardware unit is reset regularly through the watchdog hardware unit reset module. When the watchdog hardware unit reset module stops resetting the counting unit in the watchdog hardware unit, the counting unit triggers the overflow mechanism, the processor turns off illumination and restarts the myopia illumination therapy device, thereby realizing the illumination control through software and hardware. The illumination duration is controlled. When the monitoring module finds that the operating state of the illumination duration control module is abnormal, the illumination duration control module can be restored in time, so as to avoid the problem that the illumination duration reaches the preset illumination duration and cannot be turned off in time. Moreover, when the monitoring module is abnormal, the counting unit in the watchdog hardware unit cannot be reset, and the counting unit will trigger the overflow mechanism, turn off the illumination and restart the myopia light therapy device. If the light is turned on for treatment, the light can be turned off in time, which solves the problem that the light cannot be turned off in time when the software is abnormal, and improves the control reliability of light shutoff.

[0034] On the basis of the above technical solution, if the operating state is abnormal, the illumination duration control module is restored, including:

[0035] If the operating state is abnormal, resetting and restarting the illumination duration control module through the monitoring module; or

[0036] If the operating state is abnormal, the myopia light therapy device is shut down through the monitoring module and an alarm is issued.

[0037] When the monitoring module finds that the operating state of the lighting duration control module is abnormal, the lighting duration control module can be reset and restarted, that is, based on the timing time of the lighting duration control module, the lighting duration control module is reset, so that the lighting duration control module continues to time based on the timing time, and the lighting is turned off after the continued timing time reaches the preset lighting duration.

[0038] When the monitoring module finds that the operating status of the light duration control module is abnormal, it can also directly shut down the myopia light therapy device and issue an alarm. This can ensure that the light exposure time does not exceed the preset light exposure time and avoid safety risks caused by failure to shut down the light in time.

[0039] On the basis of the above technical solution, the operating status of the lighting duration control module is monitored by the monitoring module, including: monitoring whether the timing count of the lighting duration control module is increasing through the monitoring module; if the timing count is increasing, determining that the operating status of the lighting duration control module is normal; if the timing count is not increasing, determining that the operating status of the lighting duration control module is abnormal.

[0040] The lighting duration control module is used for timing counting. Under normal operating conditions, after the lighting is turned on, the lighting duration control module starts timing counting. At this time, the timing count of the lighting duration control module is incremented. If the timing count of the timing control module no longer increases, it can be determined that the operating status of the lighting duration control module is abnormal.

[0041] By determining whether the operating status of the lighting duration control module is abnormal based on whether the timing count of the lighting duration control module is increasing, the abnormal situation of the lighting duration control module can be discovered in time, and the lighting duration control module can be restored in time to avoid the problem of not being able to turn off the lighting in time due to the abnormality of the lighting duration control module.

[0042] Based on the above technical solution, the method also includes: when it is determined by the monitoring module that the illumination duration reaches a preset illumination duration but is not turned off, turning off the illumination and turning off the myopia light therapy device.

[0043] In addition to monitoring the operating status of the lighting duration control module when the lighting is turned on, the monitoring module also monitors whether the lighting duration reaches the preset lighting duration. When it is determined that the lighting duration reaches the preset lighting duration, it checks whether the light has been turned off. If the light is not turned off, it controls to turn off the light and the myopia light therapy device, ensuring that the lighting duration of the myopia light therapy device does not exceed the preset lighting duration, thereby further improving the reliability of the lighting duration control of the myopia light therapy device.

[0044] On the basis of the above technical solution, after the processor turns off the light and restarts the myopia light therapy device, it also includes: when the monitoring module determines that the time interval for restarting the myopia light therapy device is within a preset time interval, a prompt is given that turning on the light is not allowed at present.

[0045] When the myopia light therapy device is a device that needs to be connected to the Internet, the myopia light therapy device will be connected to the Internet after it restarts due to an abnormality. After being connected to the Internet, it will obtain the last power-on time of the current myopia light therapy device from the server, and check whether the device (myopia light therapy device) is continuously restarted based on the last power-on time, that is, determine whether the time interval for restarting the myopia light therapy device is within the preset time interval (for example, 3 minutes). If the time interval for restarting the myopia light therapy device is within the preset time interval, it will prompt that the device is not allowed to turn on the light at present, which can avoid safety hazards caused by continuous use of light.

[0046] Figure 2 is a structural schematic diagram of a light control system of a myopia light therapy device provided in an embodiment of the present application, such as Figure 2 As shown, the light control system of the myopia light therapy device includes:

[0047] The illumination duration control module 210 is used to control the illumination duration of the myopia illumination therapeutic device;

[0048] A monitoring module 220 is used to monitor the operating state of the illumination duration control module after the myopia illumination therapeutic device turns on illumination, and if the operating state is abnormal, restore the illumination duration control module. The monitoring module is a software module in the system control software of the myopia illumination therapeutic device;

[0049] The processor 230 includes a watchdog hardware unit 231, wherein the watchdog hardware unit is a hardware circuit in the processor, and the watchdog hardware unit includes a counting unit 2311;

[0050] A watchdog hardware unit reset module 240, used for resetting the counting unit 2311 at a fixed time, wherein the watchdog hardware unit reset module is a software module in the system control software;

[0051] The counting unit 2311 is used to trigger an overflow mechanism when the watchdog hardware unit reset module stops resetting the counting unit;

[0052] The processor 230 is used to turn off the illumination and restart the myopia light therapy device after the counting unit triggers the overflow mechanism.

[0053] Among them, the monitoring module is a software control module, which is used to monitor the status of each software module in the myopia light therapy device, for example, it can monitor the status of the light duration control module, and it can also monitor the status of the light control module. The light duration control module is a software module, which is a timer, used to time the duration of light. After the myopia light therapy device turns on the light, the light duration control module starts timing. The light control module is also a software module, which is used to control the turning on and off of the light and the intensity of the light. The watchdog hardware unit reset module is a software module, which is used to use a separate thread to reset the counting unit in the watchdog hardware unit at a regular interval. Each software module runs in the processor. The light for illumination can be red light, with a wavelength range of 625 to 740nm, for example, the wavelength can be 650nm.

[0054] When the myopia light therapy device is operating normally, the light duration control module 210 in the control software will time the light duration. When the light duration reaches the set value of the preset light duration, the light control module 250 in the control software will turn off the light and shut down normally. When the system control software is abnormal, one situation is that the light duration control module 210 fails to function, that is, the monitoring module 220 monitors the operating status of the light duration control module 210 and finds that the operating status of the light duration control module 210 is abnormal. At this time, the monitoring module 220 can restore the light duration control module 210. There is another situation that the entire system control software runs abnormally. At this time, the reset module in the watchdog hardware unit 231 will stop working, that is, the watchdog hardware unit reset module 240 cannot reset the counting unit 2311 in the watchdog hardware unit 231. At this time, the overflow mechanism of the counting unit 2311 in the watchdog hardware unit 231 will be automatically triggered, and the myopia light therapy device will be automatically restarted. If the myopia light therapy device encounters an abnormality in the entire system control software during the process of turning on the light, the light can be turned off by restarting the myopia light therapy device, thereby solving the problem of not being able to turn off the light in time when the software is abnormal.

[0055] The illumination control system of the myopia illumination therapy device provided by the embodiment of the present application monitors the operating state of the illumination duration control module through the monitoring module after the illumination of the myopia illumination therapy device is turned on. If the operating state is abnormal, the illumination duration control module is restored, and the counting unit in the watchdog hardware unit is reset regularly through the watchdog hardware unit reset module. When the watchdog hardware unit reset module stops resetting the counting unit in the watchdog hardware unit, the counting unit triggers the overflow mechanism, the processor turns off the illumination and restarts the myopia illumination therapy device, thereby realizing the illumination control through software and hardware. The illumination duration is controlled. When the monitoring module finds that the operating state of the illumination duration control module is abnormal, the illumination duration control module can be restored in time, so as to avoid the problem that the illumination duration reaches the preset illumination duration and cannot be turned off in time. Moreover, when the monitoring module is abnormal, the counting unit in the watchdog hardware unit cannot be reset, and the counting unit will trigger the overflow mechanism, turn off the illumination and restart the myopia light therapy device. If the light is turned on for treatment, the light can be turned off in time, which solves the problem that the light cannot be turned off in time when the software is abnormal, and improves the control reliability of light shutoff.

[0056] On the basis of the above technical solution, the monitoring module performs recovery processing on the illumination duration control module in the following manner:

[0057] Reset and restart the illumination duration control module; or

[0058] The myopia light therapy device is turned off and an alarm is issued.

[0059] When the monitoring module finds that the operating state of the lighting duration control module is abnormal, the lighting duration control module can be reset and restarted, that is, based on the timing time of the lighting duration control module, the lighting duration control module is reset, so that the lighting duration control module continues to time based on the timing time, and the lighting is turned off after the continued timing time reaches the preset lighting time.

[0060] When the monitoring module finds that the operating status of the light duration control module is abnormal, it can also directly shut down the myopia light therapy device and issue an alarm. This can ensure that the light exposure time does not exceed the preset light exposure time and avoid safety risks caused by failure to shut down the light in time.

[0061] On the basis of the above technical solution, the monitoring module is used to:

[0062] Monitor whether the timing count of the illumination duration control module is increasing. If the timing count is increasing, determine that the operating state of the illumination duration control module is normal; if the timing count is not increasing, determine that the operating state of the illumination duration control module is abnormal.

[0063] The lighting duration control module is used for timing counting. Under normal operating conditions, after the lighting is turned on, the lighting duration control module starts timing counting. At this time, the timing count of the lighting duration control module is incremented. If the timing count of the timing control module no longer increases, it can be determined that the operating status of the lighting duration control module is abnormal.

[0064] By determining whether the operating status of the lighting duration control module is abnormal based on whether the timing count of the lighting duration control module is increasing, the abnormal situation of the lighting duration control module can be discovered in time, and the lighting duration control module can be restored in time to avoid the problem of not being able to turn off the lighting in time due to the abnormality of the lighting duration control module.

[0065] On the basis of the above technical solution, the monitoring module is also used for:

[0066] When it is determined that the illumination duration exceeds the preset illumination duration but is not turned off, the illumination is turned off and the myopia light therapy device is turned off.

[0067] In addition to monitoring the operating status of the lighting duration control module when the lighting is turned on, the monitoring module also monitors whether the lighting duration reaches the preset lighting duration. When it is determined that the lighting duration reaches the preset lighting duration, it checks whether the light has been turned off. If the light is not turned off, it controls to turn off the light and the myopia light therapy device, ensuring that the lighting duration of the myopia light therapy device does not exceed the preset lighting duration, thereby further improving the reliability of the lighting duration control of the myopia light therapy device.

[0068] On the basis of the above technical solution, the monitoring module is also used for:

[0069] When it is determined that the time interval for restarting the myopia light therapy device is within the preset time interval, a prompt is given that turning on the light is not allowed at present.

[0070] When the myopia light therapy device is a device that needs to be connected to the Internet, the myopia light therapy device will be connected to the Internet after it restarts due to an abnormality. After being connected to the Internet, it will obtain the last power-on time of the current myopia light therapy device from the server, and check whether the device (myopia light therapy device) is continuously restarted based on the last power-on time, that is, determine whether the time interval for restarting the myopia light therapy device is within the preset time interval (for example, 3 minutes). If the time interval for restarting the myopia light therapy device is within the preset time interval, it will prompt that the device is not allowed to turn on the light at present, which can avoid safety hazards caused by continuous use of light.

[0071] Figure 3 is a schematic diagram of abnormal processing of each module in the embodiment of the present application, such as Figure 3As shown, the monitoring module monitors the running status of each software module (including the light control module, the light duration control module, etc.) in real time. When a software module is found to be abnormal, the software module with abnormal status is handled abnormally. The abnormal handling method includes restarting the corresponding software module, restarting the system or shutting down the system. Based on the watchdog hardware unit on the hardware processor chip, the software design can use a single thread (i.e., the watchdog hardware unit reset module) to reset the counting unit in the watchdog hardware unit regularly. At the same time, the monitoring module monitors the running status of multiple software modules to be monitored, monitors whether the software module is blocked and timed out, hung, etc., and performs abnormal recovery on the corresponding software module if there is an abnormality. When the entire system control software runs abnormally, the watchdog hardware unit reset module will stop working, and will automatically trigger the overflow mechanism of the counting unit in the watchdog hardware unit, and automatically restart the myopia light therapy device. At the same time, the device will be connected to the Internet after restarting due to abnormality. After connecting to the Internet, it will check whether the device is restarted and started continuously (within 3 minutes). If so, it will prompt that the device is not allowed to turn on the light. This control solution ensures that the lighting can be reliably turned off in extreme situations such as system control software, system, or hardware abnormalities or hangs.

[0072] Figure 4 Schematic diagram of the illumination control system of the myopia illumination therapy device provided in the embodiment of the present application for illumination control. Figure 4 As shown, after the myopia light therapy device is turned on, the hardware unit is initialized, and the software unit is initialized; each software module is started, including the watchdog hardware unit reset module, the monitoring module, the light control module, the light duration control module, etc.; the monitoring module monitors the running status of the light control module and the light duration control module and other software modules, and when an abnormality is found in the software module, the software module is handled abnormally, such as turning off the light, shutting down the system, or resetting the module; when each software module is operating normally, the watchdog hardware unit reset module will reset the counting unit in the watchdog hardware unit at regular intervals to ensure that the counting unit will not overflow, and when the system control software, system, or hardware is abnormal or hung, the watchdog hardware unit reset module cannot reset the counting unit in the watchdog hardware unit, and the counting unit will trigger the overflow mechanism, turn off the light, and restart the myopia light therapy device.

[0073] The embodiment of the present application monitors the operation process of the myopia light therapy device through dual monitoring of software and hardware. It can monitor the key modules of the system operation at a relatively low cost, and can reliably monitor the operation of the system from the hardware. Even if the system is abnormal or the control software is abnormal, the light can be reliably controlled to be shut off, which completely avoids the lighting safety hazards caused by various software and hardware abnormalities, and can ensure the reliable shutdown of the light under any software and hardware abnormalities.

[0074] Correspondingly, the embodiment of the present application also provides a myopia light therapy device, including the light control system of the myopia light therapy device described in the embodiment of the present application.

[0075] Each embodiment in this specification is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0076] The above is a detailed introduction to a light control method, system and myopia light therapy device provided in the embodiments of the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for general technical personnel in this field, according to the ideas of the present application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.

[0077] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

Claims

1. A method for controlling illumination of a myopia illumination treatment instrument, characterized in that, it includes: After the myopia illumination treatment instrument turns on the illumination, the monitoring module monitors the operating state of the illumination duration control module. If the operating state is abnormal, recovery processing is performed on the illumination duration control module. The illumination duration control module is used to control the duration of the illumination. The monitoring module is a software module in the system control software of the myopia illumination treatment instrument; The watchdog hardware unit reset module periodically resets the counting unit in the watchdog hardware unit. The watchdog hardware unit is a hardware circuit in the processor of the myopia illumination treatment instrument. The watchdog hardware unit reset module is a software module in the system control software; When the watchdog hardware unit reset module stops resetting the counting unit in the watchdog hardware unit, the counting unit triggers an overflow mechanism, and the processor turns off the illumination and restarts the myopia illumination treatment instrument.

2. The method according to claim 1, characterized in that, if the operating state is abnormal, performing recovery processing on the illumination duration control module includes: if the operating state is abnormal, resetting and restarting the illumination duration control module through the monitoring module; or if the operating state is abnormal, turning off the myopia illumination treatment instrument through the monitoring module and giving an alarm prompt.

3. The method according to claim 1, characterized in that, the monitoring by the monitoring module of the operating state of the illumination duration control module includes: monitoring by the monitoring module whether the timing count of the illumination duration control module increases. If the timing count increases, it is determined that the operating state of the illumination duration control module is normal. If the timing count does not increase, it is determined that the operating state of the illumination duration control module is abnormal.

4. The method according to claim 1, characterized in that, it further includes: when the monitoring module determines that the duration of the illumination reaches the preset illumination duration but is not turned off, turning off the illumination and turning off the myopia illumination treatment instrument.

5. The method according to any one of claims 1-4, characterized in that, after the processor turns off the illumination and restarts the myopia illumination treatment instrument, it further includes: when the monitoring module determines that the time interval for the myopia illumination treatment instrument to restart and power on is within the preset time interval, prompting that it is not allowed to turn on the illumination currently.

6. An illumination control system for a myopia illumination treatment instrument, characterized in that, it includes: An illumination duration control module for controlling the duration of the illumination in the myopia illumination treatment instrument; A monitoring module for monitoring the operating state of the illumination duration control module after the myopia illumination treatment instrument turns on the illumination. If the operating state is abnormal, recovery processing is performed on the illumination duration control module. The monitoring module is a software module in the system control software of the myopia illumination treatment instrument; A processor including a watchdog hardware unit. The watchdog hardware unit is a hardware circuit in the processor. The watchdog hardware unit includes a counting unit; A watchdog hardware unit reset module, used for resetting the counting unit at regular intervals, wherein the watchdog hardware unit reset module is a software module in the system control software; The counting unit is used to trigger an overflow mechanism when the watchdog hardware unit reset module stops resetting the counting unit; The processor is used to turn off the light and restart the myopia light therapy device after the counting unit triggers the overflow mechanism.

7. The system according to claim 6, It is characterized in that The monitoring module performs recovery processing on the illumination duration control module in the following manner: Reset and restart the illumination duration control module; or The myopia light therapy device is turned off and an alarm is issued.

8. The system according to claim 6, It is characterized in that The monitoring module is used for: Monitor whether the timing count of the illumination duration control module is increasing. If the timing count is increasing, determine that the operating state of the illumination duration control module is normal; if the timing count is not increasing, determine that the operating state of the illumination duration control module is abnormal.

9. The system according to claim 6, It is characterized in that The monitoring module is also used for: When it is determined that the illumination duration exceeds the preset illumination duration but is not turned off, the illumination is turned off and the myopia light therapy device is turned off.

10. The system according to any one of claims 6 to 9, It is characterized in that The monitoring module is also used for: When it is determined that the time interval for restarting the myopia light therapy device is within the preset time interval, a prompt is given that turning on the light is not allowed at present.

11. A myopia light therapy device, It is characterized in that It includes a light control system of a myopia light therapy device as described in any one of claims 6 to 10.