Method, device and circuit for detecting lamp module of cold light source equipment and medium
By monitoring the level status and duration of the output pins of the lamp module in the cold light source device in real time, combining the voltage of multiple pins of the driver chip, accurately determine the fault type and generate control instructions to alert, it solves the difficulty of detecting cold in the existing technology. The problem of LED lighting failure of light source equipment improves the reliability and maintenance efficiency of the equipment.
Patent Information
- Application Number
- CN202411506341.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-25
- Publication Date
- 2025-02-11
AI Technical Summary
The prior art is difficult to effectively detect LED lighting failures in cold light source equipment, resulting in detection errors and potential medical accidents.
By monitoring the level status and duration of the lamp module fault output pin in the cold light source device in real time, determine that the lamp module with a low level status that has reached the preset time is a fault, and collect multiple pin voltages of the driving chip to determine the fault type , generate control commands to alert.
It effectively shortens the time from fault detection to response, improves the reliability and maintenance efficiency of the equipment, accurately judges the type of fault for maintenance, reduces equipment downtime, and improves operating efficiency and service life.
Smart Images

Figure CN119421291A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of detection control technology, and in particular to a method, device, detection circuit and medium for detecting a lamp module of a cold light source device. Background Art
[0002] With the rapid development of endoscopic technology, the cold light source instrument in the electronic endoscope system, as a light source device, has high light intensity and good lighting effect, which provides great convenience for medical intracavity observation and detection. The cold light source device has become a more important instrument in endoscopic surgery.
[0003] However, when there is a problem with the LED light of the cold light source device, such as the current of the LED light is too high or too low, it may cause detection errors. At present, the LED light inspection of the cold light source device is directly observed by the naked eye, which makes it difficult for inspectors to find light problems in time. For example, when the LED light is short-circuited or open-circuited, it is difficult to directly observe, which may lead to inaccurate results of cold light source equipment detection, or even medical accidents. Summary of the invention
[0004] In view of this, the present invention provides a method, device, detection circuit and medium for detecting a light module of a cold light source device, so as to solve the problem of detecting LED light in the cold light source device.
[0005] In a first aspect, the present invention provides a method for detecting a lamp module of a cold light source device, the method comprising:
[0006] When at least one lamp module in the cold light source device is turned on, obtaining the level state and duration of the fault output pin corresponding to each of the lamp modules;
[0007] If the detection level state is a low level and the duration reaches a first preset time length, it is determined that the lamp module in the current low level state is faulty, and a fault signal is reported to the cold light source device;
[0008] Collecting multiple pin voltages of a driver chip of a lamp module having a fault within the duration, starting from detecting that the lamp module is in a low level state, determining the fault type of the lamp module having a fault according to the multiple pin voltages, and generating a corresponding control instruction;
[0009] The control instruction is sent to a fault feedback device, wherein the control instruction is used to control the fault feedback device to warn the lamp module having the fault and the fault type of the lamp module.
[0010] In combination with the first aspect, in a possible implementation manner, determining the fault type of the faulty lamp module according to the multiple pin voltages includes:
[0011] Calculating an average voltage value of the plurality of pin voltages;
[0012] If the average voltage value is lower than the first target voltage and lasts for a second preset time period, determining that the fault type of the lamp module is an open circuit fault;
[0013] If the average voltage value is lower than the second target voltage and lasts for the second preset time period, it is determined that the fault type of the lamp module is a short circuit fault; wherein the first target voltage is greater than or equal to the second target voltage.
[0014] In combination with the first aspect, in another possible implementation manner, generating a corresponding control instruction and sending the control instruction to a fault feedback device includes:
[0015] When the fault type is an open circuit fault, a first control instruction is generated, and the first control instruction is sent to the fault feedback device, wherein the first control instruction is used to control the fault feedback device to warn a first prompt message of a fault;
[0016] When the fault type is a short circuit fault, a second control instruction is generated and sent to the fault feedback device. The second control instruction is used to control the fault feedback device to warn of a second prompt message of a fault. The second prompt message includes a prompt message of suspending use.
[0017] In combination with the first aspect, in another possible implementation, after determining that the lamp module in the current low-level state has a fault, it also includes: sending a trigger instruction to the driver chip connected to the lamp module, and the trigger instruction is used to trigger the fault type detection task of the lamp module.
[0018] In combination with the first aspect, in yet another possible implementation, when at least one lamp module in the cold light source device is turned on, the method further includes:
[0019] Collecting the voltage value of each of the lamp modules;
[0020] Determining whether each lamp module is within a standard voltage range according to the voltage value of each lamp module;
[0021] If there is one or more lamp modules that are not within their corresponding standard voltage range, generating a notification message and a third control instruction;
[0022] The notification message is reported to the cold light source device, and the third control instruction is sent to the fault feedback device, wherein the third control instruction is used to control the fault feedback device to display prompt information of abnormal gear voltage.
[0023] In combination with the first aspect, in another possible implementation manner, judging whether each lamp module is within a standard voltage range according to the voltage value of each lamp module includes:
[0024] Obtaining N gear standard voltage ranges of the cold light source host, wherein each gear standard voltage range corresponds to a lighting mode of the cold light source device, N is a positive integer and N≥1;
[0025] Determine a target gear standard voltage range among N gear standard voltage ranges;
[0026] Determine whether the voltage value of the lamp module currently collected is within the target gear standard voltage range;
[0027] If the currently collected voltage value of the lamp module is within the target gear standard voltage range, it is determined that the gear voltage of the lamp module in the current illumination mode of the cold light source device is normal;
[0028] If the currently collected voltage value of the lamp module is not within the target gear standard voltage range, it is determined that the gear voltage of the lamp module in the current illumination mode of the cold light source device is abnormal.
[0029] In combination with the first aspect, in another possible implementation, after determining that the lamp module gear voltage in the current lighting mode of the cold light source device is abnormal, it also includes: calculating the voltage difference between the currently collected voltage value of the lamp module and the target gear standard voltage range; compensating the currently collected voltage value of the lamp module according to the voltage difference until the compensated voltage value is within the target gear standard voltage range.
[0030] In a second aspect, the present invention further provides a lamp module detection device for a cold light source device, the device comprising:
[0031] An acquisition module, used for acquiring the level state and duration of the fault output pin corresponding to each of the lamp modules when at least one lamp module in the cold light source device is turned on;
[0032] A detection module, used to detect whether the level state is a low level and whether the duration reaches a preset time length;
[0033] A determination module, configured to determine that a lamp module in a current low-level state is faulty when the detection module detects that the level state is a low level and the duration reaches a preset time length;
[0034] A sending module, used for reporting a fault signal to the cold light source device;
[0035] A collection module, used for collecting multiple pin voltages of a driving chip of a lamp module having a fault within the duration, starting from detecting that the lamp module is in a low level state, determining a fault type of the lamp module having a fault according to the multiple pin voltages, and generating a corresponding control instruction;
[0036] The sending module is used to send the control instruction to the fault feedback device, and the control instruction is used to control the fault feedback device to warn the faulty lamp module and the fault type of the lamp module.
[0037] In a third aspect, the present invention further provides a detection circuit, comprising a memory and a processor, wherein the memory and the processor are connected, computer instructions are stored in the memory, and the processor executes the lamp module detection method of the cold light source device of the first aspect or any corresponding embodiment thereof by executing the computer instructions.
[0038] In a fourth aspect, the present invention provides a computer-readable storage medium having computer instructions stored thereon, the computer instructions being used to enable a computer to execute the lamp module detection method of a cold light source device of the first aspect or any corresponding embodiment thereof.
[0039] In addition, the present invention also provides a computer program product, including computer instructions, which are used to enable a computer to execute the lamp module detection method of the cold light source device of the first aspect or any corresponding embodiment thereof.
[0040] The present invention provides a lamp module detection method, device and detection circuit for a cold light source device, which can respond quickly when a lamp module fails by real-time monitoring the level state and duration of the fault output pin of the lamp module in the cold light source device. Once it is detected that the low level state continues for a preset time, it is immediately determined as a fault and reported, effectively shortening the time from fault discovery to response, and improving the reliability and maintenance efficiency of the equipment.
[0041] In addition, when it is confirmed that the lamp module in the cold light source equipment has a fault, the multiple pin voltages of the driver chip of the faulty lamp module during the fault period are further collected. This step can accurately analyze the specific type of fault. Based on the analysis of the pin voltage data, it is possible to accurately determine the type of fault (such as short circuit, open circuit, driver chip failure, etc.), providing a clear direction for subsequent maintenance, and quickly isolating the faulty module to prevent the spread of the fault, thereby protecting the stability and safety of the entire cold light source equipment system. At the same time, it also reduces the equipment downtime caused by the fault and improves the operating efficiency and service life of the equipment. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0043] Figure 1 is a structural diagram of a cold light source device according to an embodiment of the present invention;
[0044] Figure 2 is a flow chart of a lamp module detection method of a cold light source device according to an embodiment of the present invention;
[0045] Figure 3 is a flow chart of another method for detecting a lamp module of a cold light source device according to an embodiment of the present invention;
[0046] Figure 4 is a flow chart of a lamp module detection method of another cold light source device according to an embodiment of the present invention;
[0047] Figure 5 is a structural block diagram of a lamp module detection device of a cold light source device according to an embodiment of the present invention;
[0048] Figure 6 is a schematic structural diagram of a detection circuit according to an embodiment of the present invention. DETAILED DESCRIPTION
[0049] The technical solution of the present invention will be described clearly and completely below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0050] The technical solution of the embodiment of the present invention is applied to a lamp module detection scenario, specifically to detect whether the lamp module in the cold light source device is working normally.
[0051] Cold light source equipment is a special lighting device, whose main feature is that it generates relatively less heat during the light-emitting process, or effectively dissipates the generated heat through special design, thereby avoiding a series of problems caused by heat accumulation. Furthermore, cold light source equipment uses chemical energy, electrical energy, bioenergy and other excitation light sources. Although cold light source equipment generates heat when working, it has higher luminous efficiency and generates less heat than thermal light sources (such as incandescent lamps).
[0052] Cold light sources generally involve the phenomenon that electrons collide and excite fluorescent materials to produce light under the action of an electric field. For example, LED (light-emitting diode) is a typical cold light source, which uses electron-hole pairs to recombine and emit light, directly converting electrical energy into light energy, reducing the generation of heat energy.
[0053] Because cold light source equipment has the characteristics of low heat, high efficiency, environmental protection, energy saving and long life, it can be applied to other fields such as medical field, semiconductor field, agricultural field, etc.
[0054] Currently, there is no specific detection method to determine whether the light of the cold light source device is working properly, or whether the light is faulty or the gear current is insufficient, or relying on manual detection and judgment will lead to problems such as untimely detection, errors in detection results, and high labor costs. Therefore, in order to solve the above problems, the embodiment of the present invention uses the detection module of the single-chip microcomputer to detect the working condition of the light module in the cold light source device, so as to fill the gap in the fault detection of the light module of the cold light source host / host of the current endoscope system.
[0055] The technical solution provided by the embodiment of the present invention is described in detail below.
[0056] See also Figure 1 , is a structural diagram of a cold light source device provided in an embodiment of the present invention. The cold light source device includes at least one lamp module, a lamp module driver chip (referred to as "driver chip"), and a voltage acquisition module. In addition, the cold light source device may also include other more or fewer modules or units, which are not limited in this embodiment.
[0057] The voltage acquisition module is used to acquire the pin voltage of the driver chip. Optionally, the voltage acquisition module can be a multi-channel analog-to-digital converter, which is used for data acquisition and detection under the lamp module detection method provided in this embodiment. The lamp module driver chip, also known as the LED lamp driver module: is used to drive the LED lamp and provide a fault detection pin.
[0058] In addition, the cold light source device further comprises a processing module for processing the collected data and determining whether at least one lamp module of the cold light source device fails.
[0059] The above-mentioned lamp modules include but are not limited to LED lamps, and other types of lamp modules.
[0060] An embodiment of the present invention provides a lamp module detection method for a cold light source device. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0061] See also Figure 2 , is a flow chart of a lamp module detection method of a cold light source device provided by an embodiment of the present invention. The method can be applied to a processing module. The processing module can be arranged inside the cold light source device or outside the cold light source device, and the processing module and Figure 1 The driving chip, voltage acquisition module and other modules shown are connected. Figure 2 As shown, the method includes:
[0062] Step S101: when at least one lamp module in the cold light source device is turned on, the level state and duration of the fault output pin corresponding to each lamp module are obtained.
[0063] Specifically, the cold light source device is powered on to light up at least one lamp module, such as Figure 1 3 LED lights are shown in FIG. 1 , which may correspond to red, green and blue colors. When at least one LED light is in an on state, a fault detection operation is performed.
[0064] The fault output pin level corresponding to each LED lamp can be obtained by collecting the pins on the LED lamp driver chip by the voltage collection module. The fault output pin (FLT) is a pin of the LED lamp driver chip, and the level state of each output pin includes a high level or a low level. For example, the first level state of the fault output pin of the first lamp module (such as LED1) is obtained. The first level state is the level signal that the LED lamp driver chip is driven by the first lamp module at the current sampling moment.
[0065] Step S102: Detect whether the level state is a low level and whether the duration reaches a first preset duration.
[0066] Specifically, when the level signal of the first lamp module is obtained as a low level, timing starts from the current detection of the low level signal, and after a duration, the level state of the first lamp module is continuously sampled to determine whether it is always in a low level state during the duration.
[0067] The duration can be customized by the cold light source device or the cold light source system. In addition, optionally, the duration can be set to be the time interval from when the current LED1 is powered on to when a change in the level state of the fault output pin of the LED1 is detected.
[0068] If both are yes, execute step S103; if not, that is, the level state is high level, and / or the duration of the low level signal is less than the first preset duration, it is determined that the first lamp module (LED1) is normal.
[0069] It should be understood that in addition to using the level signal to determine whether the LED lamp is faulty, this step can also be combined with other methods, such as checking whether the LED lamp is lit, or whether there are other obvious faults.
[0070] Step S103: determining that the lamp module currently in the low level state is faulty, and reporting a fault signal to the cold light source device.
[0071] For example, the fault signal is used to inform the cold light source device that the first lamp module currently being detected has a fault. Similarly, the method is used to detect whether the second lamp module (LED2) and the third lamp module (LED3) have a fault. If so, the fault signal of the faulty lamp module is reported to the cold light source device.
[0072] In this embodiment, the fault detection of the first lamp module to the third lamp module is performed in real time, so once a fault is detected, a fault signal will be generated in time and reported to the cold light source device.
[0073] In step S103, after determining that the lamp module currently in the low level state fails, the method further includes: sending a trigger instruction to a driving chip connected to the lamp module, wherein the trigger instruction is used to trigger a fault type detection task of the lamp module.
[0074] Step S104: collecting multiple pin voltages of the driver chip of the faulty lamp module within a duration, starting from detecting that it is in a low level state, determining the fault type of the faulty lamp module according to the multiple pin voltages, and generating corresponding control instructions.
[0075] In a possible implementation, the fault type of the current lamp module is determined by voltage comparison, and the fault types include: short circuit fault and open circuit fault. Among them, open circuit (i.e., broken circuit) means: no current flows between two points in the circuit, or a conductor with a very large impedance value and resistance value is connected, causing the entire circuit to be in a disconnected state. In the open circuit state, the current is 0. Short circuit means: a circuit or a part of a circuit is short-circuited, such as a load and a power supply are connected together by a wire. In the case of a short circuit, the current provided by the power supply will be much larger than the current provided when the circuit is open. Therefore, the current after the short circuit is not a fixed value, but a value that may be very large.
[0076] This step specifically includes: first, calculating the average voltage value of multiple pin voltages; then comparing the average voltage value with the target voltage. If the average voltage value is lower than the first target voltage and lasts for a second preset time, then determining that the fault type of the lamp module is an open circuit fault. If the average voltage value is lower than the second target voltage and lasts for a second preset time, then determining that the fault type of the lamp module is a short circuit fault; wherein the first target voltage is greater than the second target voltage, V 目标1 >V 目标2 .
[0077] Specifically, taking the first lamp module (LED1) as an example, assuming that LED1 is detected as a faulty lamp module in step S103, starting from the first detection that the pin 1 voltage of LED1 is at a low level, multiple samples are taken within the duration, for example, M times, where M ≥ 1 and is a positive integer, and the voltage average of the M samples of the pin 1 voltage of LED1 is calculated.
[0078] Assume the average voltage is V 平 , compare if the average voltage value V corresponding to the pin 1 of the LED1 lamp driver chip 平 <V 目标1 , and the duration reaches the second preset time (t2), it is determined that the LED1 lamp has an open circuit fault. Optionally, the second preset time t2 = 1.2 ms (milliseconds), the first target voltage V 目标1 The standard voltage can be the gear voltage of the LED lamp, and the voltage range of each gear is different. For example, 10 gears are divided in the voltage range of 0.5-2.5V, and the standard voltage can be a voltage in the 10 gears, such as 1.0V. At this time, the first target voltage V 目标1 is 0.75V.
[0079] If the average voltage value V corresponding to the LED1 lamp driver chip pin 1 is compared 平 <V 目标2 , and the duration reaches the second preset time (t2), it is determined that the LED1 lamp has a short circuit fault. 目标2 =50mv and lasts for 1.2ms, the processing module determines that LED1 has a short circuit fault.
[0080] Step S105: Send the control instruction to the fault feedback device.
[0081] The control instructions correspond to different fault types and are used to control the fault feedback device to warn the faulty lamp module and the fault type of the lamp module.
[0082] Specifically, the fault feedback device issues an alarm in the following ways, including but not limited to: indicator light alarm, buzzer or sound alarm, and display screen alarm.
[0083] Specifically, in the indicator light alarm mode, the fault feedback device can be one or more status indicator lights: for example, in a PLC (programmable logic controller), the status indicator lights of the light modules can be used to indicate the safety status of each light module. When the status indicator light corresponding to a light module is off or flashing, it indicates that the light module indicated by the status indicator light has a fault. The above-mentioned status indicator light can be a specific module or subsystem that may be equipped with a status indicator light, which indicates normal, warning or fault status with different colors or flashing modes.
[0084] In the buzzer or sound alarm mode, the fault feedback device can be a buzzer or an audio device. When the fault feedback device receives a control instruction, the buzzer or the audio device is used to emit a specific sound, such as a long beep, a short beep or a different tone combination to attract the operator's attention and indicate different types of faults.
[0085] In the display screen alarm display mode, the fault feedback device is a display screen, such as a touch screen LCD screen. The display screen will display detailed fault information or error code when receiving a control command. This mode provides intuitive visual feedback, allowing the operator to quickly identify the faulty lamp module and the corresponding fault type.
[0086] It should be noted that in this embodiment, the alarm can also be issued in other ways, such as sending the fault information to the remote monitoring center or the operator's mobile device (such as a mobile phone, tablet computer, etc.) through the network or wireless communication technology. Alternatively, a log recording mechanism alarm can be established within the system, and this embodiment does not limit this.
[0087] In addition, a possible implementation of this step includes: when the above step S104 detects that the fault type of LED1 is an open circuit fault, a first control instruction is generated based on the open circuit fault, and the first control instruction is sent to the fault feedback device, and the first control instruction is used to control the fault feedback device to warn the first prompt information of the fault. After receiving the first control instruction, the fault feedback device warns that the current LED1 has a fault and the fault type is an open circuit fault.
[0088] When the above step S104 detects that the fault type of LED1 is a short circuit fault, a second control instruction is generated based on the short circuit fault, and the second control instruction is sent to the fault feedback device, and the second control instruction is used to control the fault feedback device to warn the second prompt information of the fault. After receiving the second control instruction, the fault feedback device warns that the current LED1 is faulty and the fault type is a short circuit fault.
[0089] In addition, the second prompt information includes prompt information for suspending use. It is understood that after the fault feedback device receives the second prompt information, in addition to alerting the current LED1 of a short circuit fault, it also prompts the user to suspend the use of the current cold light source device. For example, taking the fault feedback device as an example of a display screen, when a short circuit fault of LED1 is detected, the display screen will display a prompt message, prompting that the current LED1 is faulty and the specific fault type is a short circuit fault, and wait for the operator or administrator to handle it; if the alarm is not responded to or processed for a long time, the cold light source device starts the automatic shutdown process. Specifically, the length of the long time can be customized by the system, and this embodiment does not limit this.
[0090] The present invention provides a lamp module detection method, device and detection circuit for a cold light source device, which can respond quickly when a lamp module fails by real-time monitoring the level state and duration of the fault output pin of the lamp module in the cold light source device. Once it is detected that the low level state continues for a preset time, it is immediately determined as a fault and reported, effectively shortening the time from fault discovery to response, and improving the reliability and maintenance efficiency of the equipment.
[0091] In addition, when it is confirmed that the lamp module in the cold light source equipment has a fault, the multiple pin voltages of the driver chip of the faulty lamp module during the fault period are further collected. This step can accurately analyze the specific type of fault. Based on the analysis of the pin voltage data, it is possible to accurately determine the type of fault (such as short circuit, open circuit, driver chip failure, etc.), providing a clear direction for subsequent maintenance, and quickly isolating the faulty module to prevent the spread of the fault, thereby protecting the stability and safety of the entire cold light source equipment system. At the same time, it also reduces the equipment downtime caused by the fault and improves the operating efficiency and service life of the equipment.
[0092] In addition, this solution sends the detected fault information and fault type to the fault feedback device through control instructions for alarm, so that the operator can intuitively and quickly understand the fault status and specific location of the cold light source equipment. This instant feedback mechanism not only improves the efficiency of fault handling, but also enhances the user experience and facilitates rapid response measures.
[0093] This technical solution realizes the intelligent detection and maintenance management of the lamp module of the cold light source equipment, and provides technical support for the remote monitoring, fault diagnosis and preventive maintenance of the equipment. In addition, it can also perform fault trend analysis, further optimize equipment design and maintenance strategies, and improve the overall operation and maintenance level.
[0094] Optionally, the above step S104 determines the fault type of the faulty lamp module based on collecting voltages of multiple pins of the faulty lamp module. The fault type can also be determined by current comparison. Specifically, step S104 includes:
[0095] When the level state of the fault output pin is low, multiple currents of LED1 (multiple current values on the output pin of the LED lamp driver chip) are collected, and the average current value of the multiple currents is calculated, such as I 平 , and compared with the first preset current range (such as the open circuit current preset value range 0~a), if the average current value is within the first preset current range and lasts for a third preset time, it is determined that LED1 has an open circuit fault. At this time, it is necessary to remind the user to replace the device and generate a first control instruction to control the fault feedback device to issue an alarm prompt message.
[0096] If the average current value is within the second preset current range, the second preset current range is the short-circuit current preset value range a to b, and lasts for the third preset time, it is determined that a short-circuit fault occurs in LED 1. At this time, it is necessary to remind the user to stop using it, generate a second control instruction to control the fault feedback device to issue an alarm prompt message, and start the automatic shutdown process of the cold light source device when no processing operation of the operator or administrator on the alarm prompt message is received within the preset time.
[0097] It should be understood that the third preset time length may be equal to or different from the second preset time length in the aforementioned embodiment, and this embodiment does not impose any limitation on this.
[0098] In this embodiment, when it is detected that at least one LED lamp has a fault, a control instruction is generated and an alarm is issued, and the current working current of the LED lamp of the cold light source device is detected through the acquisition module, and the detection result is compared with the preset current range to determine whether the LED lamp of the cold light source device has a fault, and the specific fault type of the faulty LED lamp is detected, so as to give an alarm prompt to the operator or administrator through the fault feedback device according to different working current states, so as to avoid detection errors caused by continued use of the cold light source device and avoid medical accidents.
[0099] It should be noted that the current detection in this embodiment can be implemented by a current acquisition module or a current acquisition device, which is connected to each output pin of the driver chip and is used to collect the current value of each LED lamp output pin on the driver chip in real time.
[0100] In addition, in order to obtain multiple current values of the LED lamp within a preset time period, it is necessary to set up hardware including a current acquisition module, an analog-to-digital converter, and a microcontroller MCU, and perform sampling according to the software programming configuration. In the sampling cycle, the voltage value of each sample is read and recorded, and then converted into a current value using Ohm's law. Optionally, to ensure the accuracy of the data, correlation filtering technology can also be used to reduce noise interference and improve detection accuracy.
[0101] In some optional implementations, in step S101: at least one lamp module in the cold light source device is turned on, and the method further includes: detecting whether each lamp module (LED lamp) is operating within a normal standard voltage range. Figure 3 , the method provided in this embodiment specifically includes:
[0102] Step S301: collecting the voltage value of each lamp module.
[0103] Step S302: judging whether each lamp module is within a standard voltage range according to the voltage value of each lamp module.
[0104] The standard voltage range is preset, and the standard voltage range corresponding to each lamp module may be the same or different. Each lamp module may have a different standard voltage range corresponding to different lighting modes. For example, the total voltage range of 0 to 3V may be divided into 10 or more standard voltage ranges, wherein the 10 standard voltage ranges may correspond to 10 different lighting modes, and each standard voltage range may correspond to one lighting mode.
[0105] If not, step S303 is executed. If yes, it is determined that the working voltage of the currently detected lamp module is normal, or it indicates that the voltage supplying power to the current lamp module is normal.
[0106] Step S303: If there is one or more lamp modules that are not within their corresponding standard voltage range, a notification message and a third control instruction are generated.
[0107] For example, this embodiment includes 3 LED lamps, and the voltage values sampled by LED1 to LED3 are respectively detected to see whether they are within the standard voltage range corresponding to each LED lamp. If one or more of them are not within the standard voltage range, a notification message and a third control instruction are generated.
[0108] The notification message is used to notify the cold light source device that the current voltage of a certain LED lamp is abnormal (for example, the voltage is too high or too low). The third control instruction is used to instruct the cold light source device or the fault feedback device to issue an alarm or perform relevant remedial measures.
[0109] Step S304: reporting the notification message to the cold light source device, and sending the third control instruction to the fault feedback device.
[0110] Among them, the third control instruction is used to control the fault feedback device to display prompt information of abnormal gear voltage.
[0111] Specifically, see Figure 4 The above step S302: judging whether each lamp module is within the standard voltage range according to the voltage value of each lamp module, specifically includes:
[0112] Step S401: Obtain N gear standard voltage ranges of the cold light source host.
[0113] Among them, each gear standard voltage range corresponds to the lighting mode of the cold light source device, N is a positive integer and N≥1.
[0114] Step S402: Determine a target gear standard voltage range among the N gear standard voltage ranges.
[0115] Step S403: determining whether the currently collected voltage value of the lamp module (also referred to as a sampled voltage) is within the target gear standard voltage range.
[0116] If yes, execute step S404; if no, execute step S405.
[0117] Step S404: if the currently collected voltage value of the lamp module is within the target gear standard voltage range, it is determined that the gear voltage of the lamp module in the current illumination mode of the cold light source device is normal.
[0118] Step S405: if the currently collected voltage value of the lamp module is not within the target gear standard voltage range, it is determined that the gear voltage of the lamp module in the current illumination mode of the cold light source device is abnormal.
[0119] Furthermore, after step S405, it also includes: calculating the voltage difference between the voltage value of the lamp module currently collected and the standard voltage range of the target gear; compensating the voltage value of the lamp module currently collected according to the voltage difference until the compensated voltage value is within the standard voltage range of the target gear.
[0120] A specific implementation method is as follows: first, initialize the analog-to-digital conversion module to obtain illumination parameters of different modes, wherein the illumination parameters include illumination intensity. Scan the status of each LED lamp in the cold light source device to determine whether the current LED lamp is in the on state. If it is in the on state, further check whether the duration of the on state is greater than the preset duration. If both are true, the detection process of the LED lamp voltage data will be triggered.
[0121] The voltage on the fault output pin of the LED lamp is collected and processed. If it is detected that the sampled voltage of the LED lamp (the pin voltage of the driver chip) is less than the standard voltage range of the gear, step S405 is executed at this time to determine that the gear voltage in the current lighting mode is too small. A remedial measure includes: generating and sending an indication signal to the cold light source device host, the cold light source device host generates a third control instruction, and sends the third control instruction to the fault feedback device, so that the fault feedback device warns the prompt information that the current gear voltage is too small.
[0122] If it is detected that the sampled voltage of the LED lamp is greater than the standard voltage range of the gear, it is determined that the gear voltage in the current lighting mode is too large. A remedial measure includes: generating and sending an indication signal to the cold light source device host, generating a third control instruction, and sending the third control instruction to the fault feedback device, so that the fault feedback device warns of a prompt message that the current gear voltage is too large.
[0123] If it is detected that the sampled voltage of the LED lamp meets the standard voltage range of the gear, step S404 is executed to determine that the gear voltage in the current lighting mode is normal and will not be reported to the host.
[0124] See Table 1 below, which shows the mapping relationship between the gear positions and sampling voltages of different modes of the endoscope cold light source device. This mapping relationship can prompt the user whether the light voltage in the current usage environment meets the target gear standard voltage range.
[0125] Table 1
[0126] Standard voltage range of gear Sampling voltage Light intensity Standard voltage range 1 Sampling voltage value a Light intensity 1 Standard voltage range 2 Sampling voltage value b Light Intensity 2 …… …… …… Standard voltage range Sampling voltage value m Light intensity
[0127] It should be understood that the standard voltage range of the gear position of each of the above three LED lamps in the lighting mode may be the same or different.
[0128] In this embodiment, the sampled voltage value of each LED lamp in the cold light source device is compared with the standard voltage range of the target gear, so as to detect whether the working voltage of each LED lamp is normal. If the detection is abnormal, for example, when the voltage of the LED lamp is too large, it is easy to affect the life safety of the patient; if the voltage of the LED lamp is too small, it will reduce the efficiency of the operator; this method realizes the safety check of the voltage of each LED lamp in the cold light source device, so that when at least one LED lamp of the cold light source device is aged or fails, it can timely discover and remind the user that the current voltage of a certain LED lamp gear does not meet the standard voltage range, and promptly inform the user to repair or replace it, so as to ensure the safety of the operation of each LED lamp module in the cold light source device.
[0129] In addition, a lamp module detection device for a cold light source device is also provided in this embodiment, and the device is used to implement the above-mentioned embodiments and preferred embodiments, and the descriptions that have been made will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware for a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.
[0130] like Figure 5, which is a structural block diagram of a lamp module detection device for a cold light source device provided in this embodiment, and the device can be used to implement the lamp module detection method described in the above embodiment. Specifically, the device includes: an acquisition module 510, a detection module 520, a determination module 530, a sending module 540, and a collection module 550, etc. In addition, the device in this embodiment can also include other more or fewer modules, such as a storage module, etc., which is not limited in this embodiment.
[0131] The acquisition module 510 is used to acquire the level state and duration of the fault output pin corresponding to each lamp module when at least one lamp module in the cold light source device is turned on.
[0132] The detection module 520 is used to detect whether the level state is a low level and whether the duration reaches a preset duration.
[0133] The determination module 530 is used to determine that the lamp module in the current low level state is faulty when the detection module 520 detects that the level state is low and the duration reaches a preset time.
[0134] The sending module 540 is used to report a fault signal to the cold light source device.
[0135] The acquisition module 550 is used to acquire multiple pin voltages of the driver chip of the faulty lamp module within the duration, starting from detecting that the lamp is in a low level state, determine the fault type of the faulty lamp module according to the multiple pin voltages, and generate corresponding control instructions.
[0136] The sending module 540 is further used to send the control instruction to the fault feedback device, where the control instruction is used to control the fault feedback device to warn the faulty lamp module and the fault type of the lamp module.
[0137] In some optional embodiments, the acquisition module 550 is specifically used to calculate the average voltage value of multiple pin voltages; if the average voltage value is lower than the first target voltage and lasts for a second preset time period, the fault type of the lamp module is determined to be an open circuit fault; if the average voltage value is lower than the second target voltage and lasts for the second preset time period, the fault type of the lamp module is determined to be a short circuit fault; wherein the first target voltage is greater than or equal to the second target voltage.
[0138] In some optional embodiments, the acquisition module 550 is also used to generate a first control instruction when the fault type is an open circuit fault, and send the first control instruction to the fault feedback device through the sending module 540. The first control instruction is used to control the fault feedback device to alarm the first prompt information of the fault.
[0139] The acquisition module 550 is also used to generate a second control instruction based on the fault type being a short circuit fault, and send the second control instruction to the fault feedback device through the sending module 540. The second control instruction is used to control the fault feedback device to warn of a second prompt message of a fault, and the second prompt message includes a prompt message of suspending use.
[0140] In some optional implementations, the sending module 540 is further used to send a trigger instruction to the driver chip connected to the lamp module when it is determined that the lamp module currently in a low level state fails, and the trigger instruction is used to trigger the current detection task of the lamp module.
[0141] In some optional implementations, the acquisition module 550 is further configured to acquire the voltage value of each of the lamp modules.
[0142] The detection module 520 is further used to determine whether each lamp module is within a standard voltage range according to the voltage value of each lamp module.
[0143] The determination module 530 is further configured to generate a notification message and a third control instruction if the detection module 520 detects that there are one or more lamp modules that are not within their corresponding standard voltage ranges.
[0144] The sending module 540 is further used to report the notification message to the cold light source device, and to send a third control instruction to the fault feedback device, wherein the third control instruction is used to control the fault feedback device to display prompt information of abnormal gear voltage.
[0145] In some optional embodiments, the detection module 520 is specifically used to obtain N gear standard voltage ranges of the cold light source host, where each gear standard voltage range corresponds to the lighting mode of the cold light source device, N is a positive integer and N≥1; determine the target gear standard voltage range in the N gear standard voltage ranges; and determine whether the voltage value of the lamp module currently collected is within the target gear standard voltage range.
[0146] The determination module 530 is also used to determine that the lamp module gear voltage in the current lighting mode of the cold light source device is normal when the detection module 520 detects that the voltage value of the lamp module currently collected is within the target gear standard voltage range; and to determine that the lamp module gear voltage in the current lighting mode of the cold light source device is abnormal when the detection module 520 detects that the voltage value of the lamp module currently collected is not within the target gear standard voltage range.
[0147] In some optional embodiments, the determination module 530 is also used to calculate the voltage difference between the currently collected voltage value of the lamp module and the target gear standard voltage range; and compensate the currently collected voltage value of the lamp module according to the voltage difference until the compensated voltage value is within the target gear standard voltage range.
[0148] The lamp module detection device provided in this embodiment can respond quickly when a lamp module fails by real-time monitoring the level state and duration of the fault output pin of the lamp module in the cold light source device. Once it is detected that the low level state continues for a preset time, it is immediately determined as a fault and reported, effectively shortening the time from fault discovery to response, and improving the reliability and maintenance efficiency of the equipment.
[0149] In addition, when it is confirmed that the lamp module in the cold light source equipment has a fault, the multiple pin voltages of the driver chip of the faulty lamp module during the fault period are further collected. This step can accurately analyze the specific type of fault. Based on the analysis of the pin voltage data, it is possible to accurately determine the type of fault (such as short circuit, open circuit, driver chip failure, etc.), providing a clear direction for subsequent maintenance, and quickly isolating the faulty module to prevent the spread of the fault, thereby protecting the stability and safety of the entire cold light source equipment system. At the same time, it also reduces the equipment downtime caused by the fault and improves the operating efficiency and service life of the equipment.
[0150] The further functional description of each of the above modules and units is the same as that of the above corresponding embodiments and will not be repeated here.
[0151] The lamp module detection device in this embodiment is presented in the form of a functional unit, where the unit refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and memory that executes one or more software or fixed programs, and / or other devices that can provide the above functions.
[0152] The embodiment of the present invention also provides a detection circuit having the above Figure 5 The lamp module detection device shown.
[0153] See also Figure 6, is a schematic diagram of the structure of a detection circuit provided in this embodiment, and the detection circuit device includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. The various components are connected to each other using different buses for communication, and can be installed on a common mainboard or installed in other ways as needed. The processor can process instructions executed in the detection circuit, including instructions stored in or on the memory to display graphical information of the GUI on an external input / output device (such as a display device coupled to the interface).
[0154] In some optional embodiments, if desired, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple computer devices can be connected, and each device provides part of the necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 6 A processor 10 is taken as an example.
[0155] The processor 10 may be a central processing unit. The processor 10 may further include a hardware chip. The hardware chip may be a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic or any combination thereof.
[0156] The memory 20 stores instructions executable by at least one processor 10, so that the at least one processor 10 executes the lamp module detection method shown in the above embodiment.
[0157] The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required by at least one function; the data storage area may store data created according to the use of the detection circuit, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 20 may include a memory remotely arranged relative to the processor 10, and these remote memories may be connected to the detection circuit via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0158] The memory 20 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid state drive; the memory 20 may also include a combination of the above types of memory.
[0159] The detection circuit also includes an input device 30 and an output device 40. The processor 10, the memory 20, the input device 30 and the output device 40 may be connected via a bus or other means. Figure 6 The example of connecting through bus is taken in the following.
[0160] The input device 30 can receive input digital or character information, and generate key signal input related to the user settings and function control of the detection circuit, such as a touch screen, a keypad, a mouse, a track pad, a touch pad, an indicator bar, one or more mouse buttons, a trackball, a joystick, etc. The output device 40 may include a display device, an auxiliary lighting device (e.g., an LED) and a tactile feedback device (e.g., a vibration motor), etc. The above-mentioned display device includes but is not limited to a liquid crystal display, a light emitting diode, a display and a plasma display. In some optional embodiments, the display device can be a touch screen.
[0161] In addition, the detection circuit of this embodiment also includes at least one communication interface, which is used for the detection circuit to communicate with other devices or communication networks.
[0162] It should be understood that the above detection circuit can be integrated into an electronic device. Optionally, the electronic device is a cold light source device.
[0163] An embodiment of the present invention also provides a computer-readable storage medium, and the above-mentioned method according to the embodiment of the present invention can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented by downloading through a network and originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware.
[0164] The storage medium may be a disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid state drive, etc.; further, the storage medium may also include a combination of the above-mentioned types of memories. It is understood that a computer, a processor, a microprocessor controller or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by the computer, processor or hardware, the lamp module detection method shown in the above embodiment is implemented.
[0165] Embodiments of the present application may also provide a computer program product, including computer program instructions, which, when executed by a processor, cause the processor to perform the steps in the above method. Wherein, the computer program product may be written in any combination of one or more programming languages to perform program codes for performing the operations of the disclosed embodiments, wherein the programming languages include object-oriented programming languages, such as Java, C++, etc., and also include conventional procedural programming languages, such as "C" language or similar programming languages. The program code may be executed entirely on a user computing device, partially on a user device, as an independent software package, partially on a user computing device, partially on a remote computing device, or entirely on a remote computing device or server.
[0166] The above embodiments are only used to illustrate the technical solutions of the embodiments of the present invention, rather than to limit them. Although the embodiments of the present invention are described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some of the technical features therein by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for detecting a lamp module of a cold light source device, characterized in that: The method comprises: When at least one lamp module in the cold light source device is turned on, obtaining the level state and duration of the fault output pin corresponding to each of the lamp modules; If the level state is detected to be a low level and the duration reaches a first preset time length, it is determined that the lamp module in the current low level state is faulty, and a fault signal is reported to the cold light source device; Collecting multiple pin voltages of a driver chip of a lamp module having a fault within the duration, starting from detecting that the lamp module is in a low level state, determining the fault type of the lamp module having a fault according to the multiple pin voltages, and generating a corresponding control instruction; The control instruction is sent to a fault feedback device, wherein the control instruction is used to control the fault feedback device to warn the lamp module that has a fault and the fault type of the lamp module.
2. The method according to claim 1, characterized in that The determining the fault type of the failed lamp module according to the plurality of pin voltages comprises: Calculating an average voltage value of the plurality of pin voltages; If the average voltage value is lower than the first target voltage and lasts for a second preset time period, determining that the fault type of the lamp module is an open circuit fault; If the average voltage value is lower than the second target voltage and lasts for the second preset time period, it is determined that the fault type of the lamp module is a short circuit fault; wherein the first target voltage is greater than or equal to the second target voltage.
3. The method according to claim 2, characterized in that Generate a corresponding control instruction, and send the control instruction to the fault feedback device, including: Based on the fault type being an open circuit fault, generating a first control instruction, and sending the first control instruction to the fault feedback device, wherein the first control instruction is used to control the fault feedback device to warn of a first prompt message of a fault; Based on the fault type being a short circuit fault, a second control instruction is generated and sent to the fault feedback device, the second control instruction is used to control the fault feedback device to warn of a second prompt message of a fault, the second prompt message including a prompt message of suspension of use.
4. The method according to claim 1, characterized in that: After determining that the lamp module currently in the low level state fails, the method further includes: A trigger instruction is sent to a driving chip connected to the lamp module, wherein the trigger instruction is used to trigger a fault type detection task of the lamp module.
5. The method according to any one of claims 1 to 4, characterized in that: When at least one lamp module in the cold light source device is turned on, the method further comprises: Collecting the voltage value of each of the lamp modules; Determining whether each lamp module is within a standard voltage range according to the voltage value of each lamp module; If there is one or more lamp modules that are not within their corresponding standard voltage range, generating a notification message and a third control instruction; The notification message is reported to the cold light source device, and the third control instruction is sent to the fault feedback device, wherein the third control instruction is used to control the fault feedback device to display prompt information of abnormal gear voltage.
6. The method according to claim 5, characterized in that The step of judging whether each lamp module is within a standard voltage range according to the voltage value of each lamp module comprises: Obtaining N gear standard voltage ranges of the cold light source host, wherein each gear standard voltage range corresponds to a lighting mode of the cold light source device, N is a positive integer and N≥1; Determine a target gear standard voltage range among N gear standard voltage ranges; Determine whether the voltage value of the lamp module currently collected is within the target gear standard voltage range; If the currently collected voltage value of the lamp module is within the target gear standard voltage range, it is determined that the gear voltage of the lamp module in the current illumination mode of the cold light source device is normal; If the currently collected voltage value of the lamp module is not within the target gear standard voltage range, it is determined that the gear voltage of the lamp module in the current illumination mode of the cold light source device is abnormal.
7. The method according to claim 6, characterized in that After determining that the gear voltage of the lamp module in the current illumination mode of the cold light source device is abnormal, the method further includes: Calculating the voltage difference between the currently collected voltage value of the lamp module and the target gear standard voltage range; The currently collected voltage value of the lamp module is compensated according to the voltage difference until the compensated voltage value is within the target gear standard voltage range.
8. A lamp module detection device for a cold light source device, characterized in that: The device comprises: An acquisition module, used for acquiring the level state and duration of the fault output pin corresponding to each of the lamp modules when at least one lamp module in the cold light source device is turned on; A detection module, used to detect whether the level state is a low level and whether the duration reaches a preset time length; A determination module, configured to determine that a lamp module in a current low-level state is faulty when the detection module detects that the level state is a low level and the duration reaches a preset time length; A sending module, used for reporting a fault signal to the cold light source device; A collection module, used for collecting a plurality of pin voltages of a driving chip of a lamp module having a fault within the duration, starting from detecting that the lamp module is in a low level state, determining a fault type of the lamp module having a fault according to the plurality of pin voltages, and generating a corresponding control instruction; The sending module is further used to send the control instruction to the fault feedback device, and the control instruction is used to control the fault feedback device to warn the faulty lamp module and the fault type of the lamp module.
9. A detection circuit, characterized in that: comprising a memory and a processor, wherein the memory and the processor are connected; The memory stores computer instructions. The processor executes the computer instructions to perform the lamp module detection method of a cold light source device according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer readable storage medium has computer instructions stored thereon. The computer instructions are used to enable a computer to execute a lamp module detection method for a cold light source device according to any one of claims 1 to 7.