Method, device and equipment for testing flash synchronization of light alarm and medium
By comparing the pulse width difference of the electrical signal of the fire acousto-optical alarm, we can determine whether multiple optical alarms are synchronized with flash, which solves the problems of low testing efficiency and low accuracy in the prior art, and realizes a unified and standardized flash synchronization test.
Patent Information
- Application Number
- CN202510665703.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-22
- Publication Date
- 2025-07-11
AI Technical Summary
The prior art lacks a unified and standardized method to test whether the flash signal of the fire acousto-optical alarm meets the flash synchronization standards in different regions, resulting in low testing efficiency and low accuracy.
By determining the pulse width of the electrical signal of the first optical alarm and the first group of optical alarms, and comparing whether the difference is less than the pulse width threshold, we can judge whether multiple optical alarms are synchronized with flashes, providing a unified flash synchronization test method.
Simplifies the flash synchronization test steps, improves the testing efficiency and accuracy, and can adapt to a variety of different flash synchronization standards.
Smart Images

Figure CN120299201A_ABST
Abstract
Description
Technical Field
[0001] Example embodiments of the present disclosure generally relate to the field of testing, and particularly to a method, apparatus, device, and computer-readable storage medium for testing the flash synchronization of an optical alarm Background Art
[0002] The fire sound and light alarm is an important part of the fire alarm system. In the initial stage of a fire, the fire sound and light alarm quickly issues an alarm through flashing lights and sounds, reminding people to evacuate, buying time for firefighting, and reducing losses. The sound and light signals of the fire sound and light alarm can help firefighters quickly identify the location of the fire in the dark or smoke, guide the evacuation direction, improve the evacuation efficiency, and play an important role
[0003] However, since people with hearing impairments cannot receive the sound signals of the fire sound and light alarm and can only recognize the flashing signals, the flashing signals are particularly important for people with hearing impairments. Asynchronous flashing signals are likely to cause distraction, dizziness, and irritability among people, leading to confusion in the judgment of the alarm, and even more likely to misinterpret the alarm content or even extend the reaction time, interfering with the fire rescue work and increasing the risks of firefighting and rescue. To avoid the rescue problems caused by asynchronous flashing signals, it is necessary to test whether the flashing signals of the fire sound and light alarm meet the flash synchronization standard, and only the fire sound and light alarm that passes the test can be put into use Summary of the Invention
[0004] In a first aspect of the present disclosure, a method for testing the flash synchronization of an optical alarm is provided. The method includes: determining a first pulse width based on the electrical signal of a first optical alarm, where the electrical signal of the first optical alarm is obtained based on the flashing signal emitted by the first optical alarm; determining a second pulse width based on the electrical signals of a first group of optical alarms, where the first group of optical alarms includes at least the first optical alarm, and the electrical signals of the first group of optical alarms are obtained based on the flashing signals emitted by the first group of optical alarms; and determining that multiple optical alarms in the first group of optical alarms flash synchronously if the difference between the first pulse width and the second pulse width is less than a pulse width threshold
[0005] In a second aspect of the present disclosure, a test device for flash synchronization of an optical alarm is provided, including: a first pulse width determination module configured to determine a first pulse width based on an electrical signal of a first optical alarm, where the electrical signal of the first optical alarm is obtained based on a flash signal emitted by the first optical alarm; a second pulse width determination module configured to determine a second pulse width based on electrical signals of a first group of optical alarms, where the first group of optical alarms includes at least the first optical alarm, and the electrical signals of the first group of optical alarms are obtained based on flash signals emitted by the first group of optical alarms; and a synchronous flash determination module configured to determine that multiple optical alarms in the first group of optical alarms flash synchronously if the difference between the first pulse width and the second pulse width is less than a pulse width threshold.
[0006] In a third aspect of the present disclosure, an electronic device is provided. The device includes at least one processing unit; and at least one memory coupled to the at least one processing unit and storing instructions for execution by the at least one processing unit. The instructions, when executed by the at least one processing unit, cause the device to perform the method of the first aspect.
[0007] In a fourth aspect of the present disclosure, a computer-readable storage medium is provided. A computer program is stored on the computer-readable storage medium and can be executed by a processor to implement the method of the first aspect.
[0008] It should be understood that the content described in part of the present disclosure is not intended to define the key features or important features of the embodiments of the present disclosure, nor is it used to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0009] In combination with the accompanying drawings and with reference to the following detailed description, the above and other features, advantages, and aspects of the embodiments of the present disclosure will become more apparent. In the drawings, the same or similar reference numerals denote the same or similar elements, where:
[0010] Figure 1 A schematic diagram of an example environment in which the embodiments of the present disclosure can be implemented is shown;
[0011] Figure 2 A flowchart of a test process for flash synchronization of an optical alarm according to some embodiments of the present disclosure is shown;
[0012] Figure 3 A waveform diagram of the electrical signal of a first optical alarm according to some embodiments of the present disclosure is shown;
[0013] Figure 4 A waveform diagram of the electrical signals of a first group of optical alarms according to some embodiments of the present disclosure is shown;
[0014] Figure 5 A flowchart of a test method for flash synchronization of an optical alarm is shown according to some other embodiments of the present disclosure;
[0015] Figure 6 A block diagram of a device for testing flash synchronization of an optical alarm is shown according to some embodiments of the present disclosure; and
[0016] Figure 7 A block diagram of a device capable of implementing multiple embodiments of the present disclosure is shown. Detailed Description of Specific Embodiments
[0017] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although some embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as limited to the embodiments set forth herein. On the contrary, these embodiments are provided to more thoroughly and completely understand the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not used to limit the protection scope of the present disclosure.
[0018] It should be noted that the titles of any sections / subsections provided herein are not restrictive. Various embodiments are described throughout this document, and any type of embodiment can be included under any section / subsection. In addition, the embodiments described in any section / subsection can be combined with any other embodiments described in the same section / subsection and / or different sections / subsections in any manner.
[0019] In the description of the embodiments of the present disclosure, the term "including" and its like should be understood as an open inclusion, that is, "including but not limited to". The term "based on" should be understood as "at least partially based on". The term "one embodiment" or "the embodiment" should be understood as "at least one embodiment". The term "some embodiments" should be understood as "at least some embodiments". There may also be other explicit and implicit definitions hereinafter. The terms "first", "second", etc. may refer to different or the same objects. There may also be other explicit and implicit definitions hereinafter.
[0020] As briefly mentioned above, a synchronous flash test can be performed on the flash signal of a fire sound and light alarm. However, the regulations in different regions have different flash synchronization standards. In traditional solutions, for different flash synchronization standards, there are corresponding different flash synchronization test methods. Currently, there is no unified and standardized flash synchronization test method that can adapt to various different flash synchronization standards, and the traditional flash synchronization test methods are inefficient and inaccurate.
[0021] In view of this, embodiments of the present disclosure propose a test solution for flash synchronization of optical alarms. According to various embodiments of the present disclosure, a first pulse width is determined based on the electrical signal of a first optical alarm, and the electrical signal of the first optical alarm is obtained based on the flash signal emitted by the first optical alarm. Moreover, a second pulse width is determined based on the electrical signals of a first group of optical alarms, where the first group of optical alarms includes at least the first optical alarm, and the electrical signals of the first group of optical alarms are obtained based on the flash signals emitted by the first group of optical alarms. Further, if the difference between the first pulse width and the second pulse width is less than a pulse width threshold, it is determined that multiple optical alarms in the first group of optical alarms flash synchronously. In this way, the steps of flash synchronization testing are simplified, the testing efficiency and accuracy are improved, and this solution provides a unified and standardized flash synchronization testing method that can adapt to various different flash synchronization standards.
[0022] Some example embodiments of the present disclosure will be further described below with reference to the accompanying drawings.
[0023] Figure 1 FIG. shows a schematic diagram of an example environment 100 in which embodiments of the present disclosure can be implemented. In environment 100, a first group of optical alarms 110 may include multiple optical alarms, and the first group of optical alarms 110 may be a single-loop full-load optical alarm. The optical alarm may be a fire sound and light alarm or an optical alarm for other scenarios, such as Figure 1 the optical alarms 111, 112,... 116 shown in. Any one of the multiple optical alarms may be used as the first optical alarm. In the present disclosure, the optical alarm 111 is taken as an example of the first optical alarm for illustration, and the "first optical alarm 111" herein refers to the "optical alarm 111". It should be understood that Figure 1 the number and connection manner of the optical alarms in the first group of optical alarms 110 in are only examples, and the present disclosure does not make specific limitations in this regard.
[0024] The test device 140 for flash synchronization of optical alarms can perform flash synchronization tests on multiple optical alarms in the first group of optical alarms 110. The test device 140 can include a flash signal acquisition module 120 and an electronic device 130. The flash signal acquisition module 130 can be configured to acquire the flash signal of the first optical alarm, such as the optical alarm 111, and acquire the flash signals of the first group of optical alarms 110, such as acquiring the flash signals of the optical alarms 111 to 116. The flash signal acquisition module 120 can be electrically connected to the electronic device 130. The electronic device 130 can determine whether the synchronous flashing of multiple optical alarms meets the synchronous flashing standard based on the flash signal of the first optical alarm 111 and the flash signals of the first group of optical alarms 110 sent by the flash signal acquisition module 120. If the synchronous flashing standard (such as the pulse width threshold) is met, the flash synchronization test passes; if not, the flash synchronization test fails. The specific process of the flash synchronization test will be introduced in detail below.
[0025] The electronic device 130 can be any device with computing capabilities. In some embodiments, at least a part of the electronic device 130 can be a processor, a server, a mainframe computer, an edge node, a computing device in a cloud environment, etc. For example, the electronic device 130 can be the software, hardware, or a combination of software and hardware of a fire alarm system. Again, for example, the electronic device 130 can also be a server of a cloud operating system, which can provide data processing through virtual machines or similar means. In some embodiments, the electronic device 130 can be a terminal device. The terminal device can be any type of mobile terminal, fixed terminal, or portable terminal. For example, a mobile phone, a computer, a tablet computer, a multimedia tablet, a personal communication service (PCS) device, a navigation device, a personal digital assistant (PDA), a digital camera / video camera, a positioning device, etc., or any combination of the foregoing.
[0026] In some embodiments, the flash signal acquisition module 120 can be integrated in the electronic device 130. In some embodiments, the flash signal acquisition module 120 can be independent of the electronic device 130. Those skilled in the art can easily understand that although in Figure 1 the flash signal acquisition module 120 and the electronic device 130 are shown as separate devices, the present disclosure does not make specific limitations in this regard.
[0027] Figure 2 The flowchart of the process 200 for testing the flash synchronization of optical alarms according to some embodiments of the present disclosure is shown. The following combines Figure 1 and Figure 2 to describe the process 200.
[0028] At block 210, a first pulse width is determined based on the electrical signal of the first optical alarm, and the electrical signal of the first optical alarm is obtained based on the flash signal emitted by the first optical alarm.
[0029] In some embodiments, the flash signal acquisition module 120 may acquire the flash signals emitted by the first optical alarm 111 within at least one flash cycle, and convert the acquired flash signals of at least one flash cycle into electrical signals, that is, the electrical signals of the first optical alarm 111. It should be noted that the flash cycle and the cycle of the electrical signal can be considered to be the same, or the time error between the two is less than 1 s.
[0030] In some embodiments, the electronic device 130 may amplify the electrical signal of the first optical alarm 111 output by the flash signal acquisition module 120 through an operational amplifier, and use an oscillograph ( Figure 1 (not shown in the figure) to acquire the amplified electrical signal, and the sampling time can be set in advance. For example, the sampling time can be predetermined to be a short time such as 5 min or 10 min, so as to quickly measure the waveform of the electrical signal of the first optical alarm 111.
[0031] Next, the electronic device 130 may detect the maximum value (i.e., the peak value) of the electrical signal of the first optical alarm 111, and determine whether the maximum value of the electrical signal of the first optical alarm 111 is within the signal threshold range. Preferably, the signal threshold range includes 10 V to 15 V. If the maximum value of the electrical signal of the first optical alarm 111 is within the signal threshold range, it indicates that the waveform of the electrical signal of the first optical alarm 111 for synchronous flash test meets the standard, and there is no need to re-acquire the flash signal of the first optical alarm 111. On the contrary, if the maximum value of the electrical signal of the first optical alarm 111 exceeds the signal threshold range, for example, the maximum value of the electrical signal of the first optical alarm 111 is greater than or less than the signal threshold range, then at least once perform the following steps: adjust the distance between the first optical alarm 111 and the flash signal acquisition module 120, after adjusting the distance, the flash signal acquisition module 120 re-acquires the flash signal of the first optical alarm 111, the electronic device 130 re-determines the electrical signal of the first optical alarm 111 based on the re-acquired flash signal, and detects whether the maximum value of the electrical signal of the first optical alarm 111 is within the signal threshold range, until the maximum value of the electrical signal of the first optical alarm 111 is within the signal threshold range, then stop repeating the above steps. In this way, the accuracy of the flash synchronization test can be improved.
[0032] In some embodiments, the electronic device 130 determines a first pulse width based on the electrical signal of the first optical alarm 111. Specifically, the electronic device 130 may determine a first signal period and a first signal value based on the electrical signal of the first optical alarm, where the first signal value is less than the maximum value of the electrical signal of the first optical alarm; and determine the time length corresponding to the first signal value in the first signal period as the first pulse width.
[0033] Figure 3 The waveform diagram of the electrical signal of the first optical alarm according to some embodiments of the present disclosure is shown. As Figure 3 shown, the electronic device 130 may determine a first signal period T (the time length T between A and B) and the maximum value Y1 of the electrical signal of the first optical alarm based on the electrical signal 310 of the first optical alarm. Then, a first signal value Y2 is determined based on the maximum value Y1 of the electrical signal of the first optical alarm. To meet the standard, the first signal value Y2 is less than the maximum value Y1 of the electrical signal of the first optical alarm. Preferably, the first signal value Y2 is 10% of the maximum value Y1 of the electrical signal 310 of the first optical alarm, that is, Y2 = 10%Y1. The length L between the intersection points C and D of the dashed line starting from the first signal value Y2 and the electrical signal 310 of the first optical alarm, that is, the time length L corresponding to the first signal value Y2, is used as the first pulse width. The first signal period T is greater than the time length L. It should be understood that Figure 3 the signal curve of
[0034] In some embodiments, after determining the first pulse width, the electronic device 130 may determine whether the first pulse width is less than a pulse width threshold. To meet the standard, the pulse width threshold is preferably 10 ms. If the first pulse width is less than the pulse width threshold (e.g., 10 ms), then the step of determining a second pulse width based on the electrical signal of the first group of optical alarms is performed. This will be further described below.
[0035] In block 220, a second pulse width is determined based on the electrical signal of the first group of optical alarms, where the first group of optical alarms includes at least the first optical alarm, and the electrical signal of the first group of optical alarms is obtained based on the flash signals emitted by the first group of optical alarms.
[0036] In some embodiments, the flash signal acquisition module 120 may convert the flash signals emitted by each optical alarm (including the first optical alarm 111) in the first group of optical alarms into corresponding electrical signals according to at least one flash period. The electronic device 130 may superimpose the electrical signals of each optical alarm and determine the superimposed electrical signal as the electrical signal of the first group of optical alarms. For example, Figure 1In this case, the flash signal acquisition module 120 can respectively obtain the flash signals of the first optical alarm 111 to the optical alarm 116, and convert the obtained flash signals into the electrical signals of the optical alarm 111 to the optical alarm 116. The electronic device 130 can superimpose the electrical signals of the first optical alarm 111 to the optical alarm 116 to obtain a superimposed electrical signal, and use the superimposed electrical signal as the electrical signal of the first group of optical alarms.
[0037] Alternatively, the electronic device 130 can statistically analyze the electrical signals of multiple optical alarms in the first group of optical alarms 110, determine the maximum value of the electrical signals from the electrical signals of the multiple optical alarms, and use the electrical signal of the optical alarm with the maximum value as the electrical signal of the first group of optical alarms.
[0038] In some embodiments, the flash signal acquisition module 120 can also collect the flash signals emitted by multiple optical alarms (including the first optical alarm 111) in the first group of optical alarms 110 within at least one flash period, superimpose the collected flash signals of the multiple optical alarms, and convert the superimposed flash signal into an electrical signal, that is, the electrical signal of the first group of optical alarms. For example, Figure 1 In this case, the flash signal acquisition module 120 can respectively obtain the flash signals of the first optical alarm 111 to the optical alarm 116, superimpose the collected flash signals of the multiple optical alarms to obtain a superimposed flash signal, and convert the superimposed flash signal into an electrical signal, and this electrical signal is used as the electrical signal of the first group of optical alarms.
[0039] It should be understood that the flash signal acquisition module 120 can be any electronic device such as a photodetector that converts a flash signal into an electrical signal, and the present disclosure does not make specific limitations in this regard.
[0040] To facilitate observing the waveform of the electrical signal, in some embodiments, an oscillograph is used to record the electrical signals of multiple optical alarms collected by the flash signal acquisition module 120, such as the electrical signals of each optical alarm before superimposition, and / or the electrical signal of the first group of optical alarms obtained after superimposing the electrical signals of multiple optical alarms. The recording time can be preset. For example, the recording time can be a relatively short time such as 5 min or 10 min, or a relatively long time such as 1 h or 2 h. The present disclosure does not make specific limitations in this regard.
[0041] The above discussion has covered how to determine the electrical signal of the first group of optical alarms. Next, we will discuss how to determine the second pulse width based on the electrical signal of the first group of optical alarms.
[0042] In some embodiments, a second signal period and a second signal value are determined based on the electrical signals of the first set of optical alarms, and the second signal value is less than the maximum value of the electrical signals of the first set of optical alarms; and the time length corresponding to the second signal value in the second signal period is determined as the second pulse width.
[0043] Figure 4 FIG. shows a waveform diagram of the electrical signals of the first set of optical alarms according to some embodiments of the present disclosure. As Figure 4 shown, the electronic device 130 may determine a second signal period M and the maximum value K1 of the electrical signals of the first set of optical alarms based on the electrical signals 410 of the first set of optical alarms. Then, a second signal value K2 is determined based on the maximum value K1 of the electrical signals of the first set of optical alarms. To meet the standard, the second signal value K2 is less than the maximum value K1 of the electrical signals of the first set of optical alarms. Preferably, the second signal value K2 is 10% of the maximum value K1 of the electrical signals of the first set of optical alarms, that is, K2 = 10%K1. The second signal period is the time length M between EF. The length N between the intersection points G and H of the dotted line starting from the second signal value K2 and the electrical signals 310 of the first set of optical alarms, that is, the time length N corresponding to the second signal value K2, and the time length N is used as the second pulse width. It should be understood that Figure 4 the signal curve of
[0044] In some embodiments, the pulse widths of the respective optical alarms in the first set of optical alarms may also be measured for the waveforms of the electrical signals of the respective optical alarms in the first set of optical alarms in the above manner. Specifically, the maximum value of the electrical signal of each optical alarm is measured, and the pulse width of each optical alarm is determined according to 10% of the maximum value (i.e., the second signal value). The pulse widths of all the optical alarms are statistically counted, and the maximum pulse width is determined, and this maximum pulse width is used as the pulse width of the first set of optical alarms, that is, the second pulse width. It should be noted that the maximum pulse width is less than 10 ms.
[0045] The process of determining the pulse width of a single optical alarm (the first optical alarm) and the pulse widths of multiple optical alarms (the first set of optical alarms) has been discussed above. Next, continue to refer to Figure 2 , go to block 230 to determine whether the difference between the first pulse width and the second pulse width is less than the pulse width threshold. In some embodiments, the pulse width threshold is 10 ms.
[0046] In block 240, if the difference between the first pulse width and the second pulse width is less than the pulse width threshold, it is determined that the multiple optical alarms in the first set of optical alarms flash synchronously. On the contrary, if the difference between the first pulse width and the second pulse width is less than the pulse width threshold, it is determined that the multiple optical alarms in the first set of optical alarms flash synchronously.
[0047] The following examples illustrate the test method for flash synchronization of the optical alarm in the embodiments of the present disclosure as a whole. Figure 5 The flowchart of the test method for flash synchronization of the optical alarm according to other embodiments of the present disclosure is shown. In combination with Figure 1 and Figure 5 the process of the test method for flash synchronization of the optical alarm is described.
[0048] As Figure 5 shown, at block 510, the flash acquisition device 120 acquires the flash signal of the first optical alarm 111 at a light intensity of 15 cd, and converts the flash signal of the first optical alarm 111 into an electrical signal.
[0049] At block 520, the oscillograph samples the electrical signal of the first optical alarm 111 for 5 minutes, samples the waveform of the electrical signal of the first optical alarm 111, and the electronic device 130 can determine the maximum value and the first signal period of the electrical signal of the first optical alarm 111 based on the waveform.
[0050] At block 530, the electronic device 130 determines whether the maximum value of the electrical signal of the first optical alarm 111 is within the range of 10V - 15V; if the maximum value of the electrical signal of the first optical alarm 111 is lower than or higher than the range of 10V - 15V, the distance between the flash acquisition device 120 and the first optical alarm 111 is adjusted until the maximum value of the sampled electrical signal of the first optical alarm 111 satisfies the range of 10V - 15V.
[0051] If the maximum value of the electrical signal of the first optical alarm 111 is within the range of 10V - 15V, the process proceeds to block 540, where the electronic device 130 determines the first signal value based on the maximum value of the electrical signal of the first optical alarm 111. The first signal value is 10% of the maximum value of the electrical signal of the first optical alarm 111, and determines the time length corresponding to the first signal value as the first pulse width.
[0052] At block 550, it is determined whether the first pulse width is less than the pulse width threshold of 10 ms. If the first pulse width is greater than the pulse width threshold of 10 ms, the process returns to block 520 for resampling, and the processes of blocks 520 - 540 are executed. If the first pulse width is less than the pulse width threshold of 10 ms, the process proceeds to block 560, where the flash acquisition device 120 can acquire the flash signal of the first group of optical alarms 110 (such as single-loop full-load optical alarms) at a light intensity of 15 cd, and convert the flash signal of the first group of optical alarms 110 into an electrical signal.
[0053] At block 570, the oscillograph continuously samples the electrical signals of the first group of optical alarms 110 for a predetermined time, such as 5 minutes. The electronic device 130 determines the maximum value and the second signal period of the electrical signals of the first group of optical alarms 110 according to the waveform of the electrical signals of the first group of optical alarms 110. The specific process can be referred to above.
[0054] At block 580, the electronic device 130 determines a second signal value based on the maximum value of the electrical signals of the first group of optical alarms 110. The second signal value is 10% of the maximum value of the electrical signals of the first group of optical alarms 110, and determines the time length corresponding to the second signal value as the second pulse width.
[0055] At block 590, the electronic device 130 determines whether the difference between the first pulse signal and the second pulse signal is greater than 10 ms. If the difference between the first pulse signal and the second pulse signal is less than 10 ms, in the case of sampling a shorter predetermined time, such as 5 minutes, it is preliminarily determined that multiple optical alarms in the first group of optical alarms 110 (such as the first optical alarm 111 to the optical alarm 116) flash synchronously. The process returns to block 570, and the oscillograph continues to continuously sample the electrical signals of the first group of optical alarms for a longer predetermined time, such as 2 hours, and executes the process of blocks 570 to 590. After sampling for a longer time, if the difference between the first pulse signal and the second pulse signal is less than 10 ms, it comes to block 591, and finally determines that multiple optical alarms in the first group of optical alarms 110 flash synchronously.
[0056] In the embodiments of the present disclosure, the flash signal of the first optical alarm is converted into an electrical signal, and then the first pulse width is determined, and the flash signals of the first group of optical alarms including the first optical alarm are converted into electrical signals, and then the second pulse width is determined. By comparing the difference between the first pulse width and the second pulse width, it is determined that multiple optical alarms in the first group of optical alarms flash synchronously. In this way, the steps of the flash synchronization test are simplified, the test efficiency and accuracy are improved, and a unified and standardized flash synchronization test method is provided, which can adapt to various different flash synchronization standards.
[0057] Example devices and equipment
[0058] Figure 6 FIG. shows a schematic structural block diagram of a device 600 for testing the flash synchronization of optical alarms according to some embodiments of the present disclosure. Each module / component in the device 600 can be implemented by hardware, software, firmware, or any combination thereof.
[0059] As shown in the figure, the device 600 includes a first pulse width determination module 610 configured to determine a first pulse width based on the electrical signal of the first optical alarm, where the electrical signal of the first optical alarm is obtained based on the flashing signal emitted by the first optical alarm. The device 600 further includes a second pulse width determination module 620 configured to determine a second pulse width based on the electrical signals of the first group of optical alarms, where the first group of optical alarms includes at least the first optical alarm, and the electrical signals of the first group of optical alarms are obtained based on the flashing signals emitted by the first group of optical alarms. The device 600 further includes a synchronous flash determination module 630 configured to determine that multiple optical alarms in the first group of optical alarms flash synchronously if the difference between the first pulse width and the second pulse width is less than the pulse width threshold.
[0060] In some embodiments, the first pulse width determination module 610 is further configured to determine a first signal period and a first signal value based on the electrical signal of the first optical alarm, where the first signal value is less than the maximum value of the electrical signal of the first optical alarm; and determine the time length corresponding to the first signal value in the first signal period as the first pulse width.
[0061] In some embodiments, the first signal value is 10% of the maximum value of the first electrical signal.
[0062] In some embodiments, it further includes a judgment module configured to perform the step of determining the second pulse width based on the electrical signals of the first group of optical alarms if the first pulse width is less than the pulse width threshold.
[0063] In some embodiments, it further includes an electrical signal determination module for the first group of optical alarms, configured to determine the electrical signal of each optical alarm according to the flashing signal of each optical alarm in the first group of optical alarms; and superimpose the electrical signals of each optical alarm, and determine the superimposed electrical signal as the electrical signal of the first group of optical alarms.
[0064] In some embodiments, the second pulse width determination module 620 is further configured to determine a second signal period and a second signal value based on the electrical signal of the first group of optical alarms, where the second signal value is less than the maximum value of the electrical signal of the first group of optical alarms; and determine the time length corresponding to the second signal value in the second signal period as the second pulse width.
[0065] In some embodiments, the second signal value is 10% of the maximum value of the electrical signal of the first group of optical alarms.
[0066] In some embodiments, the pulse width threshold is 10 ms.
[0067] In some embodiments, the maximum value of the electrical signal of the first optical alarm is within the signal threshold range.
[0068] In some embodiments, the signal threshold range includes 10V to 15V.
[0069] Figure 7 A block diagram of an electronic device 700 is shown in which one or more embodiments of the present disclosure may be implemented. It should be understood that Figure 7 the illustrated electronic device 700 is merely exemplary and should not impose any limitation on the functionality and scope of the embodiments described herein. Figure 7 The illustrated electronic device 700 can be used to implement Figure 1 electronic device 130.
[0070] As Figure 7 shown, the electronic device 700 is in the form of a general-purpose electronic device. The components of the electronic device 700 may include, but are not limited to, one or more processors or processing units 710, a memory 720, a storage device 730, one or more communication units 740, one or more input devices 750, and one or more output devices 760. The processing unit 710 can be an actual or virtual processor and is capable of performing various processes according to the programs stored in the memory 720. In a multi-processor system, multiple processing units execute computer-executable instructions in parallel to improve the parallel processing ability of the electronic device 700.
[0071] The electronic device 700 generally includes multiple computer storage media. Such media can be any accessible media that can be obtained by the electronic device 700, including but not limited to volatile and non-volatile media, removable and non-removable media. The memory 720 can be a volatile memory (such as registers, caches, random access memory (RAM)), a non-volatile memory (such as read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory), or some combination thereof. The storage device 730 can be a removable or non-removable medium and can include machine-readable media, such as a flash drive, a magnetic disk, or any other medium that can be used to store information and / or data (such as training data for training) and can be accessed within the electronic device 700.
[0072] The electronic device 700 may further include additional removable / non-removable, volatile / non-volatile storage media. Although not shown in Figure 7As shown, a disk drive for reading from and writing to a removable, non - volatile disk (e.g., a "floppy disk") and an optical disk drive for reading from and writing to a removable, non - volatile optical disk can be provided. In these cases, each drive can be connected to a bus (not shown) by one or more data medium interfaces. Memory 720 can include a computer program product 725 having one or more program modules configured to execute the various methods or actions of the various embodiments of the present disclosure.
[0073] Communication unit 740 enables communication with other electronic devices via a communication medium. Additionally, the functions of the components of electronic device 700 can be implemented in a single computing cluster or multiple computer machines that are capable of communicating via a communication connection. Thus, electronic device 700 can operate in a networked environment using a logical connection to one or more other servers, network personal computers (PCs), or another network node.
[0074] Input device 750 can be one or more input devices such as a mouse, keyboard, trackball, etc. Output device 760 can be one or more output devices such as a display, speaker, printer, etc. Electronic device 700 can also communicate with one or more external devices (not shown) as needed via communication unit 740, external devices such as storage devices, display devices, etc., communicate with one or more devices that enable a user to interact with electronic device 700, or communicate with any device that enables electronic device 700 to communicate with one or more other electronic devices (e.g., a network card, a modem, etc.). Such communication can be performed via an input / output (I / O) interface (not shown).
[0075] According to an exemplary implementation of the present disclosure, a computer - readable storage medium is provided, on which computer - executable instructions are stored, where the computer - executable instructions are executed by a processor to implement the methods described above. According to an exemplary implementation of the present disclosure, a computer program product is also provided, the computer program product being tangibly stored on a non - transient computer - readable medium and including computer - executable instructions, and the computer - executable instructions being executed by a processor to implement the methods described above.
[0076] Aspects of the present disclosure are described herein with reference to the flowcharts and / or block diagrams of methods, apparatuses, devices, and computer program products according to the present disclosure. It should be understood that each block of the flowcharts and / or block diagrams, and combinations of blocks in the flowcharts and / or block diagrams, can be implemented by computer - readable program instructions.
[0077] These computer-readable program instructions can be provided to a processing unit of a general-purpose computer, a special-purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, when executed by the processing unit of the computer or other programmable data processing apparatus, create means for implementing the functions / acts specified in one or more boxes of the flowchart and / or block diagram. These computer-readable program instructions may also be stored in a computer-readable storage medium that causes a computer, a programmable data processing apparatus, and / or other devices to function in a particular manner, such that the computer-readable medium storing the instructions comprises a manufacture, including instructions that implement various aspects of the functions / acts specified in one or more boxes of the flowchart and / or block diagram.
[0078] The computer-readable program instructions may be loaded onto a computer, other programmable data processing apparatus, or other devices, causing a series of operational steps to be performed on the computer, other programmable data processing apparatus, or other devices to produce a computer-implemented process, such that the instructions executed on the computer, other programmable data processing apparatus, or other devices implement the functions / acts specified in one or more boxes of the flowchart and / or block diagram.
[0079] The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various implementations of the present disclosure. In this regard, each box in the flowchart or block diagram may represent a module, a segment of a program, or a part of an instruction, and the module, segment of a program, or part of an instruction contains one or more executable instructions for implementing the specified logical function. In some alternative implementations, the functions noted in the boxes may occur out of the order noted in the figures. For example, two consecutive boxes may in fact be executed substantially in parallel, or they may sometimes be executed in the reverse order, depending on the functions involved. It should also be noted that each box of the block diagrams and / or flowcharts, and combinations of boxes in the block diagrams and / or flowcharts, can be implemented by special-purpose hardware-based systems that perform the specified functions or acts, or by combinations of special-purpose hardware and computer instructions.
[0080] The various implementations of the present disclosure have been described above. The above description is exemplary, not exhaustive, and is not limited to the disclosed implementations. Many modifications and variations will be apparent to those of ordinary skill in the art in the field without departing from the scope and spirit of the described implementations. The choice of terms used herein is intended to best explain the principles of the implementations, the practical application, or the improvement of technologies in the market, or to enable other ordinary skilled persons in the art in the field to understand the various implementations disclosed herein.
Claims
1. A test method for flash synchronization of an optical alarm, comprising: Determining a first pulse width based on the electrical signal of a first optical alarm, where the electrical signal of the first optical alarm is obtained based on the flash signal emitted by the first optical alarm; Determining a second pulse width based on the electrical signals of a first group of optical alarms, where the first group of optical alarms includes at least the first optical alarm, and the electrical signals of the first group of optical alarms are obtained based on the flash signals emitted by the first group of optical alarms; And If the difference between the first pulse width and the second pulse width is less than a pulse width threshold, determining that multiple optical alarms in the first group of optical alarms flash synchronously.
2. The test method according to claim 1, wherein the step of determining the first pulse width based on the first electrical signal includes: Determining a first signal period and a first signal value based on the electrical signal of the first optical alarm, where the first signal value is less than the maximum value of the electrical signal of the first optical alarm; And Determining the time length corresponding to the first signal value in the first signal period as the first pulse width.
3. The test method according to claim 2, wherein the first signal value is 10% of the maximum value of the first electrical signal.
4. The test method according to claim 2, further comprising: If the first pulse width is less than the pulse width threshold, performing the step of determining the second pulse width based on the electrical signals of the first group of optical alarms.
5. The test method according to claim 4, further comprising: Determining the electrical signals of the respective optical alarms according to the flash signals of the respective optical alarms in the first group of optical alarms; And Superposing the electrical signals of the respective optical alarms, and determining the superposed electrical signal as the electrical signal of the first group of optical alarms.
6. The test method according to claim 5, wherein the step of determining the second pulse width based on the electrical signal of the first group of optical alarms includes: Determining a second signal period and a second signal value based on the electrical signal of the first group of optical alarms, where the second signal value is less than the maximum value of the electrical signal of the first group of optical alarms; And Determining the time length corresponding to the second signal value in the second signal period as the second pulse width.
7. The test method according to claim 6, wherein the second signal value is 10% of the maximum value of the electrical signal of the first group of optical alarms.
8. The test method according to claim 1, wherein the pulse width threshold is 10 ms.
9. The test method according to claim 1, wherein the maximum value of the electrical signal of the first optical alarm is within a signal threshold range.
10. The test method according to claim 9, wherein the signal threshold range includes 10 V to 15 V.
11. A test device for flash synchronization of an optical alarm, comprising: A first pulse width determination module configured to determine a first pulse width based on the electrical signal of a first optical alarm, where the electrical signal of the first optical alarm is obtained based on the flash signal emitted by the first optical alarm; A second pulse width determination module, configured to determine a second pulse width based on electrical signals of a first group of optical alarms, the first group of optical alarms including at least the first optical alarm, and the electrical signals of the first group of optical alarms being obtained based on flash signals emitted by the first group of optical alarms; and A synchronous flash determination module, configured to determine that multiple optical alarms in the first group of optical alarms flash synchronously if a difference between the first pulse width and the second pulse width is less than a pulse width threshold.
12. An electronic device, comprising: At least one processing unit; and At least one memory, the at least one memory being coupled to the at least one processing unit and storing instructions for execution by the at least one processing unit, the instructions, when executed by the at least one processing unit, causing the electronic device to perform the method according to any one of claims 1 to 10.
13. A computer-readable storage medium, having stored thereon a computer program, the computer program being executable by a processor to implement the method according to any one of claims 1 to 10.