A radiation detection method and a multifunctional audible and visual alarm device

By implementing secure initialization of the radiation detection equipment's interface, adaptive data acquisition, and dynamic threshold determination, the problems of false alarms and unstable data acquisition in complex environments have been solved, achieving efficient and reliable radiation detection and alarm.

CN123112972APending Publication Date: 2026-11-17SICHUAN HUAHANG TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611302059.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-26
Publication Date
2026-11-17

AI Technical Summary

Technical Problem

Existing radiation detection and alarm equipment has shortcomings in initialization safety, data acquisition robustness, dose judgment accuracy, and alarm responsiveness. It is susceptible to noise interference, abnormal format, and complex environment, which can lead to false alarms and equipment malfunctions.

Method used

The main control module initializes the peripheral interfaces one by one, and uses an adaptive character buffer collection algorithm and a dynamic sliding threshold strategy to achieve robust parsing of serial port data and multi-level linkage control. Combined with flexible decimal judgment and zero-digit verification, the data acquisition accuracy and the sensitivity of the alarm system are improved.

Benefits of technology

It effectively prevents false triggering during reset and initial power-on, enhances the equipment's anti-interference capability in complex environments, improves the accuracy of data acquisition and the reliability of alarms, and reduces false alarms and missed alarms.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123112972A_ABST
    Figure CN123112972A_ABST
Patent Text Reader

Abstract

This invention relates to a radiation detection method and a multifunctional audible and visual alarm, belonging to the field of radiation detection technology. The method includes a main control module performing secure initialization of peripheral interfaces, employing an adaptive character buffer algorithm to collect and parse dose rate data output from a Geiger counter sensor in real time, automatically removing redundant symbols and restoring numerical values ​​to improve data accuracy. Through a multi-level safety threshold library and dynamic sliding threshold determination, combined with historical sampling and dose rate changes, intelligent linkage alarm and safety deactivation are achieved. The alarm integrates a sensor, main control, relay, and display module, featuring initial load safety locking upon power-on, data noise filtering, adaptive numerical accuracy correction, and intelligent threshold control functions, significantly improving the safety of the radiation detection alarm system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of radiation detection technology, and more specifically relates to a radiation detection method and a multifunctional audible and visual alarm. Background Technology

[0002] Radiation detection equipment is widely used in nuclear energy, medical, industrial testing, and environmental monitoring fields to monitor and alarm for radioactive material leaks or radiation exceeding limits in real time. Among these, the Geiger counter, as a traditional radiation sensor, is widely used due to its simple structure, high sensitivity, and low cost. Existing radiation alarms mostly employ a single threshold judgment method, with relatively fixed alarm logic. They are prone to false alarms triggered by occasional noise or transient abnormal data, lacking robustness in data acquisition and adjustability in threshold judgment. Especially in industrial environments, during power fluctuations, or when equipment is reset, incomplete initialization of external interfaces often leads to relay malfunctions, causing controlled load equipment to start or stop erroneously.

[0003] Traditional radiation alarms mostly rely on frame header and tail protocol markers for serial port data parsing. This makes them prone to losing valid information or generating parsing errors when encountering non-standard formats, dropped frames, or noise interference, making them unsuitable for complex scenarios. Regarding data validity and accuracy, existing products typically extract raw values ​​directly, failing to adaptively correct for abnormal formats such as redundant symbols and misaligned decimal points, affecting the accuracy of dose determination. Furthermore, most systems use static threshold determination methods, which are not sensitive enough or prone to lag in alarm responses to scenarios with slowly changing dose rates or sudden high values.

[0004] To improve the safety, accuracy, and robustness of radiation detection and alarm equipment, there is an urgent need for a new detection method and equipment that can achieve secure interface initialization, adaptive data acquisition, flexible data parsing, dynamic threshold determination, and multi-level linkage control. This would effectively prevent false triggering during power-on and reset phases, enhance the anti-interference capability and alarm accuracy of radiation alarm systems in complex environments, and enable safe and efficient management of controlled loads and audible and visual warnings. Summary of the Invention

[0005] This invention aims to solve the technical problems existing in radiation detection and alarm equipment in terms of initialization safety, data acquisition robustness, dose judgment accuracy, and alarm responsiveness. Specifically, it includes: preventing false triggering due to uncertain port status during reset and initial power-on; improving the reliability of serial port data parsing under noise interference, abnormal format, and frame loss conditions; achieving adaptive restoration and accuracy correction of non-standard data such as redundant symbols and decimal point misalignment; and enhancing the sensitivity of the alarm system to dose changes and its ability to resist false alarms through dynamic sliding multi-level threshold judgment and linkage control, thereby ensuring the safe, efficient, and stable operation of radiation detection and alarm.

[0006] To achieve the above objectives, the present invention employs the following technical solution; the method includes: After the alarm is powered on, the main control module initializes all peripheral interfaces one by one. At the first moment of startup, the main control chip sets the GPIO port connected to the relay to output mode through firmware and forces it to a logic high level so that the relay is in the released state and the controlled load device is in the disconnected or safe standby state. After the preset delay waiting period ends, the main control module initializes the serial communication, SPI bus, dot matrix screen and status variables in sequence and enters the data acquisition and linkage logic process. The main control module asynchronously monitors the dose rate data stream emitted by the radiation sensor via a serial port. It adopts an adaptive character buffer collection algorithm to judge each byte that arrives in real time. If it is a numerical character, it is added to the buffer and the receiving timestamp is dynamically refreshed. If it is a non-numerical character, it is discarded and not added to the buffer. When there is no new data input in the buffer within a set timeout period, the collected characters are parsed as a frame of data. The character sequence in the buffer is subjected to flexible decimal judgment and numerical restoration. After removing redundant signs and points, only the main minus sign, main decimal point and numeric characters are retained to form a candidate floating-point expression. The stripped character sequence is then zero-bit checked and corrected to restore it to a floating-point value. If the restored value is reasonable, it proceeds to the next judgment. If the parsing is abnormal, it is classified as an invalid frame or a zero-dose frame and the buffer is cleared. A multi-level safety threshold library is established, and the current dose value is compared with the threshold at each level in real time. A dynamic sliding threshold strategy is adopted to adjust the threshold at each level in real time based on historical sampling data and dose change rate. The criterion chain is comprehensively judged through sampling counting window, and the alarm action is executed only when multiple consecutive criteria are triggered. If the historical sampling returns to the safe zone, the alarm is lifted.

[0007] In one scheme, during the preset delay waiting interval, only the safe output of the relay is maintained, while other GPIO pins remain in the default safe state, and all peripheral load actions are locked to eliminate false triggering caused by uncertain port levels, power fluctuations, or reset jitter in the initial stage of power-on, reset, or abnormal restart.

[0008] In one approach, the adaptive character buffer collection algorithm does not rely on frame header and tail markers for data parsing. Instead, it uses a timing-driven and filtering mechanism to parse the serial port data stream, thereby improving robustness in scenarios involving letters, noisy characters, or dropped frames.

[0009] In one scheme, the flexible decimal judgment and numerical restoration includes: adaptively identifying and correcting redundant negative signs, decimal point misalignment or non-standard format, judging the abnormality of the input string through a sign counter and a decimal point counter, and locating the main negative sign and the main decimal point.

[0010] In one approach, the step of performing zero-bit verification and correction on the stripped character sequence adopts the zero-value tracing method, which verifies and corrects the leading and trailing zeros of the character sequence to ensure the accuracy of numerical restoration.

[0011] In one scheme, the dynamic sliding threshold strategy dynamically lowers the alarm threshold if multiple consecutive sampling results are at high values; if the value drops rapidly, it is restored to the original static threshold.

[0012] In one embodiment, the alarm action includes controlling the relay output and triggering an audible and visual alarm response.

[0013] Furthermore, a multifunctional audible and visual alarm for radiation detection, wherein the alarm is applicable to the method described above, and the alarm comprises: Geiger counter sensor module, main control module, dot matrix display module, and relay control module; The Geiger counter sensor module is used to detect the count of β and γ ray events and convert them into dose rate values, which are then output to the main control module in TTL level form via serial port. The main control module is electrically connected to the Geiger counter sensor module, the dot matrix display module, and the relay control module. It is used to initialize the peripheral interfaces one by one after power-on, and set the GPIO port connected to the relay control module to output mode and force it to logic high level at the first time of startup, so that the relay control module is in the released state. After the preset delay waiting interval ends, it initializes the serial communication, SPI bus, dot matrix display module, and status variables in sequence. The main control module is also used to asynchronously monitor the dose rate data stream sent by the Geiger counter sensor module via serial port, and to use an adaptive character buffer collection algorithm to judge each byte that arrives in real time. If it is a numerical character, it is added to the buffer and the receiving timestamp is dynamically refreshed. If it is a non-numerical character, it is discarded and not added to the buffer. When there is no new data input in the buffer within the set timeout period, the collected characters are parsed as a frame of data. The main control module is also used to perform flexible decimal judgment and numerical restoration on the character sequence in the buffer. After removing redundant signs and points, only the main minus sign, main decimal point and numeric characters are retained to form candidate floating-point expressions. Zero-bit verification and correction are performed to restore the floating-point value. If the restored value is reasonable, it will proceed to the subsequent judgment. If the parsing is abnormal, it will be classified as an invalid frame or a zero-dose frame and the buffer will be cleared. The main control module is also used to establish a multi-level safety threshold library, compare the current dose value with the threshold at each level in real time, and adopt a dynamic sliding threshold strategy to adjust the threshold at each level in real time according to historical sampling data and dose change rate. The criterion chain is comprehensively judged through the sampling counting window, and the relay control module is controlled to perform an alarm action only when multiple consecutive criteria are triggered. If the historical sampling returns to the safe zone, the alarm is deactivated. The dot matrix display module is electrically connected to the main control module and is used to display the current dose rate value and alarm status in real time in a graphical and digital manner. The relay control module is electrically connected to the GPIO port of the main control module and is used to perform release or engagement actions according to the control signal output by the main control module to control the on / off state of the external load device.

[0014] Beneficial effects of this invention: This invention effectively improves the safety, stability, and practicality of the radiation detection alarm system through the secure initialization of the hardware interface, optimization of the data acquisition algorithm, and standardized design of the threshold determination mechanism. The main control module employs a safety lock to securely lock critical peripherals during power-on and initial reset, preventing malfunctions of the controlled load and reducing risks during initial operation. The adaptive character buffer collection algorithm enhances the anti-interference capability of serial port data parsing against noise interference, format abnormalities, and frame loss, making data acquisition more accurate and robust.

[0015] The flexible decimal judgment and numerical restoration steps can automatically correct non-standard data formats such as redundant symbols and decimal point misalignment, improving the accuracy and reliability of dose value analysis. The multi-level dynamic sliding threshold strategy effectively copes with complex scenarios of dose changes, realizes the judgment and dynamic adaptation of alarm linkage control, and reduces false alarms and missed alarms. Attached Figure Description

[0016] Figure 1 This is a flowchart of the method of the present invention; Figure 2 This is a hardware structure diagram of the alarm device of the present invention; Figure 3 This is a schematic diagram of the appearance of the alarm device of the present invention. Detailed Implementation

[0017] To facilitate understanding of the present invention, a more complete description will be given below with reference to the accompanying drawings. Typical embodiments of the invention are shown in the drawings. However, the invention can be implemented in many different forms and is not limited to the embodiments described herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete.

[0018] Unless otherwise defined, all technical and scientific terms used in this invention have the same meaning as understood by one of ordinary skill in the art to which this invention pertains. The terminology used in this specification is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention.

[0019] like Figure 1 As shown, a radiation detection method specifically includes: Step 1: Alarm Initialization and Linkage Self-Protection. After the alarm is powered on, the main control module first initializes all hardware interfaces and adopts a state self-protection delay start mechanism. It actively puts the relays linked with environmental devices into a safe release state, and then performs communication and display initialization after a delay of several seconds. This effectively eliminates the problem of relay false triggering caused by unknown levels on various GPIO ports during the power-on or reset process of the main control chip, ensuring power safety and equipment lifespan.

[0020] In the initialization and linkage self-protection stage of the alarm device in this invention, after the alarm device is powered on, the main control module first initializes all peripheral interfaces one by one.

[0021] Specifically, upon startup, the main control chip uses firmware to set the GPIO port (e.g., GPIO15) connected to the relay to output mode and forces it to a logic high level, ensuring the relay is in a released state and all controlled load devices are disconnected or in safe standby mode. Simultaneously, the main control does not immediately initialize communication with other devices such as Geiger sensors and dot matrix displays, but instead enters a preset delay interval (e.g., 2 seconds). During this period, only the relay's safe output is maintained, and other GPIO pins of the alarm are in a default safe state, with all external load actions "locked." This design fully considers the uncertainties in the chip's internal port levels, power fluctuations, or reset jitter during the initial power-on, reset, or abnormal restart of the main control chip. By using a pre-program startup and delay-based self-protection approach, the relay control signal is ensured to be stable and effectively in non-alarm mode, eliminating the risk of malfunctions caused by irregular level changes. After the safe delay period ends, the main control sequentially initializes serial communication, the SPI bus and dot matrix display, status variables, and other hardware and software resources, entering the normal data acquisition and linkage logic flow.

[0022] Step 2: Real-time Data Acquisition and Sequence Buffering. The main control module asynchronously monitors the dose rate data stream emitted by the radiation sensor via serial port. To address the unpredictable sensor output format (potentially including letters, noise characters, and dropped frames), an adaptive character buffer collection algorithm is employed: the program dynamically identifies each arriving byte; if it is a numerical character, it is automatically added to the buffer, and the receiving timestamp is dynamically updated; if it is a non-numerical character, it is automatically discarded and not added to the buffer. If no new data is input within the set timeout period, all collected characters are parsed as a single frame. This method abandons the traditional parsing approach based on frame header and tail markers, effectively avoiding noise interference, broken frames, and other anomalies through time-driven processing and filtering, greatly improving the robustness of the serial port data stream.

[0023] After entering the data acquisition phase, the main control module initiates an asynchronous continuous monitoring mechanism for the serial data stream of the GR61 sensor. The sensor continuously outputs the detected radiation dose value at a baud rate of 38400. This value may be in pure numerical form such as "1.253", or in a mixed format with prefixes, suffixes, or noise, such as "tar1.253" or "start0.452End". The serial stream also contains occasional frame drops, jumbled letters, newlines, and even non-printable characters. Traditional protocols that strictly adhere to frame header and tail markers often fail in this context due to missing identifiers or the presence of unknown miscellaneous characters, resulting in a lack of robustness and accuracy in the dose acquisition process.

[0024] To reliably acquire dosage information, the main control program employs a sequence buffer and dynamic timing-driven algorithm. Upon the arrival of each new byte, the alarm immediately performs character attribute discrimination and calls the function. The determination of whether byte 'c' is a valid numeric character is performed, specifically defining the domain as follows: .

[0025] At the algorithm implementation level, each character is reached... ,like Then add it to the current input buffer. Otherwise, the data is discarded without further processing. Simultaneously, the timestamp is updated in real-time for each received numeric character. It counts the milliseconds for the current alarm, thus accurately recording the arrival time of the latest valid digit. Unlike traditional frame structures, the entire collection logic has no fixed length or structural limitations; the buffer capacity is only limited by the alarm's RAM capacity, generally defined as... Bytes are used to prevent special extreme value inputs from triggering memory leaks.

[0026] The core issue is that not all inputs strictly begin or end with a specific character—the data flowing from the GR61 can be interrupted at any time by noise or interference signals. To address this risk, the algorithm is designed to trigger the parsing process with a dynamic timeout. Specifically, in each main loop, the current alarm time is checked. Time of arrival of the last significant digit difference, if (generally If s), then it is considered that a sufficient interval has elapsed since the last digital input, and no new data has been added, indicating that the sequence collection is complete, and the current buffer content is regarded as a complete frame of raw dose data. After collection is completed, the algorithm immediately checks the length of the buffer \(B\). If the buffer contains at least one numeric character, the floating-point restoration logic is entered. Otherwise, if it contains only noise or an invalid decimal point, the buffer is cleared and a new loop is started, ensuring that only valid dose values ​​are adopted and enter the backend process.

[0027] The mathematical essence of the entire adaptive acquisition mechanism lies in the fact that it does not impose strict syntactic constraints on the input character sequence; the termination of the sequence is adaptively determined by the temporal distribution of the input events, greatly enhancing the fault tolerance of the acquisition process for serial port out-of-order issues such as abnormal frames, missing frame headers, and interspersed garbled characters. The simplified formula is: in, This involves assembling the buffer sequence B into a string and converting it into a numerical value using a specific floating-point parsing method. The entire buffer cleanup and recycling process employs a circular indexing mechanism for extremely fast clearing and reuse. To achieve high robustness, the algorithm also incorporates certain anomaly detection procedures: such as... Forced buffer discarding ensures memory overflow prevention. In the event of extreme data flow congestion or prolonged external noise dominating the input, the main controller automatically triggers a soft reset to reactivate the serial port, ensuring the alarm device does not freeze in an unexpected input state.

[0028] This character buffering algorithm is not limited to "classification by logical type and time series slicing," but also reflects its ability to mitigate the negative impact of input anomalies from the dual dimensions of the unidirectional input stream by using serial input and the alarm's local timer as mutual criteria. It achieves advanced behavior such as "natural framing of critical events, automatic filtering of non-events, and automatic clearing of redundant frames," greatly improving the fault tolerance and real-time performance of serial port data parsing. When an input anomaly occurs but digital content arrives continuously, the main controller can always maintain buffer activation based on the latest valid input moment until the final segmentation point is reached at a fraction of a second, ensuring that any valid decimal or negative number, even if it deviates from the traditional protocol frame structure, can be restored without omission.

[0029] Ultimately, based on this dynamic sequence buffering and event-driven mechanism, regardless of the clutter, loss of beginning and end points, or even malicious interruptions that the data stream encounters, the alarm can discard invalid data within a few input cycles and accurately extract key dose information, greatly improving the radiation detection alarm's adaptability and service life in complex industrial environments.

[0030] Step 3: Flexible Floating-Point Parsing under Anomaly Detection. After receiving the data, the alarm device performs flexible decimal judgment and numerical restoration on the character sequence in the buffer. Compared with the existing simple forced conversion method, this invention first adaptively identifies and corrects possible redundant negative signs, decimal point misalignment, and non-standard formats (such as multiple decimal points at the beginning or end), then progressively strips and restores the main body of the number, and finally uses a self-developed zero-value starting traceability method to restore the numerical value to a floating-point value with high precision. In this way, even if the original data has a disordered format, the accuracy and stability of dose restoration are greatly improved.

[0031] After the character sequence in the buffer is received, it enters the flexible floating-point parsing stage. Unlike directly calling library functions to force a string to floating-point conversion, this process performs deep correction and adaptive parsing with fault tolerance to address the chaotic digital formats and output anomalies present in industrial environments. Data sources may contain complex and disordered strings such as "-1.264", "..251", "-.2.53", "001.003", "-.0013.", ".1234", and "12.3.45", and may even have multiple symbols or decimal points at the beginning or end. If these abnormal formats are directly processed by traditional parsing methods, it often leads to parsing failure, value loss, or misreading. The goal of flexible parsing is to accurately restore dosage values ​​and achieve industrial-grade stability and safety.

[0032] The first step of the algorithm is adaptive sign correction and decimal point rearrangement. The entire character sequence... The alarm device is traversed, and a symbol counter is set. With decimal point counter Whenever a "-" symbol is encountered, then... Increment it and record its position as . Set; each time a "." is found... Increment and its position is denoted as . Set. If or This indicates that the input string contains extra symbols or decimal points. In this case, the algorithm uses the position-distance-from-zero method to extract the decimal point and minus sign most likely to be the primary sign. The specific mathematical expression is as follows: That is, the symbol closest to the starting position is selected as the main sign, and all the remaining symbols are stripped off. For the decimal point, the criterion of "closest to the numeric body and not sandwiched at the end or the beginning" can also be adopted: in which, represents the position of the first numeric character in the string. In the actual judgment process, if the string starts with "." or "-", it is regarded as valid, and the remaining symbols and dots are all removed. If there are extra dots or negative signs at the end, they are also cleared. The algorithm ensures that the main negative sign and the main decimal point exist independently and have reasonable positions.

[0033] After the symbol processing is completed, the process proceeds to numeric body extraction. A new character sequence S' is constructed, which only retains the main negative sign, the main decimal point and all numeric characters ("0~9"), and all other non-numeric content is excluded. This filtering operation essentially is: These characters are concatenated to form a candidate floating-point expression. In some extreme cases, the string may appear as "3....5", which becomes "3.5" after cleaning; if it is "一.2.3", it becomes "1.23".

[0034] After the number is restored by elastic floating-point parsing, it does not immediately enter the value conversion, but adopts a zero-value starting tracing method for final verification. The tracing method is used to solve inputs such as "-.00001", ".00032" or "001.004", so as to avoid obtaining "0" after parsing or discarding significant bits. Let the restored character sequence , the main control traverses the front and rear of the string, strips meaningless zero bits, and then performs floating-point conversion. The specific formula is: in which, and respectively remove the interference of redundant zeros at the head and tail, ensuring that ".00012" will be converted to "0.00012" instead of "0" or "12". For the pure zero string "0000.000", it is directly set to zero, but if there is one non-zero bit, all bits are retained. The decimal point existing in the middle is automatically assigned by the aforementioned main sign strategy, and no additional processing is performed. The processing of the negative sign refers to the main symbol method, only the first negative sign is retained and the final positive or negative is determined according to the position. The data is restored and all input anomalies can be repositioned and corrected in the final parsing stage.

[0035] If the parsed value is within a reasonable range (generally 0 ~ 1000 μSv / h), then proceed to the subsequent safety linkage judgment. If the parsed output is abnormal (such as overflow, invalid, non-numeric, etc.), it is automatically classified as an invalid frame or a zero-dose frame, and the abnormality identifier is recorded, and the buffer is softly reset to avoid subsequent actions triggering false alarms.

[0036] The algorithm is highly flexible and fault-tolerant, capable of handling special situations in real-world engineering environments, such as damaged sensor data formats, decimal point misalignment, redundant negative signs, prefix and suffix inclusions, and line breaks / miscellaneous terms. A multi-step process of identification, correction, purification, restoration, and source tracing ensures the accuracy and stability of floating-point parsing. Ultimately, the high-precision dose data has the following expression: Its output, upon comparison, demonstrates that it can naturally correct most non-standard formats or abnormal inputs and restore the original significant digits. Regardless of whether it's "-.251", "001.003", ".-1234", "12.3.45", or even "start0.452End", the elastic parsing algorithm can automatically remove miscellaneous items, correct the main digits, and restore the true dose value. This provides radiation detection alarms with the high fault tolerance, robustness, and easy maintenance required in industrial settings, completely solving the accuracy loss and misreading problems faced by traditional direct conversion methods.

[0037] Step 4: Safety linkage judgment based on dynamic multi-level thresholds. The alarm device establishes a multi-level safety threshold library and compares the current dose value with each level of threshold in real time. Unlike the traditional fixed-threshold single-level triggering scheme, this invention adopts a dynamic sliding threshold strategy. Based on the dose change rate and historical detection values, it corrects and decides the actual trigger threshold in real time: if multiple samples are continuously at a high value, the alarm threshold is dynamically lowered to speed up the response; if the value drops rapidly, it is appropriately restored to the original threshold to prevent false alarms. This design improves the response speed and effectively suppresses transient fluctuations that could lead to false alarms. The actions of the relay and audible / visual alarms are actively determined and executed by the main control unit, ensuring the scientific nature and reliability of emergency linkage.

[0038] In the linkage discrimination phase, the alarm device integrates a dynamic multi-level threshold discrimination algorithm. Through the interaction of historical dose data sequences and real-time sampled values, it endows the relay output, audible and visual alarms, and other actuators with higher safety and sensitivity. Traditional alarm mechanisms are usually based on fixed thresholds, triggering a response upon a single exceedance. This design is susceptible to transient fluctuations or abnormal single-point interference, leading to false judgments and false alarms, and cannot adapt to sudden changes in dose rate in the detection environment or the high and low variation patterns under different scenarios. The multi-level sliding threshold discrimination system proposed in this invention essentially establishes a dynamic threshold matrix library. For different dose response levels, the discrimination threshold is continuously adjusted according to the input fluctuation state, forming an elastic decision chain.

[0039] In the specific implementation process, the alarm device presets a multi-level dose safety threshold library. Each threshold level Corresponding to different response levels, such as early warning, general alarm, and severe alarm. The currently obtained floating-point dose value. The algorithm compares the threshold values ​​with those in a threshold library. The core of the algorithm lies in its dynamic threshold strategy; each new dose acquisition does not rely solely on historical static thresholds, but instead uses a sliding correction function that combines past data... Secondary sampling data With the current rate of dose change They jointly determine the actual alarm threshold.

[0040] The sliding correction function is defined as: in, For the i-th level dynamic threshold, The original static threshold, and These are the weighting coefficients. This is the historical average value. ; Rate of dose change .like If the value remains above the threshold, the dynamic threshold automatically decreases, making the alarm more sensitive to continuous overexposure and shortening the linkage delay. If the value drops sharply or returns to the safe zone in recent samplings, the algorithm automatically increases the dynamic threshold to restore the original alarm height, effectively suppressing false triggering caused by short pulses and instantaneous fluctuations.

[0041] The decision-making logic is executed proactively after each data collection. Let the current triggering criterion be: in This is the sequence of relay output and audible / visual alarm actions. The alarm device uses a continuous sampling stack, setting a sampling count window M in the judgment sequence. If the criteria are triggered M times consecutively (typically M=3~5), the actual alarm action is executed. If historical sampling regresses, and... ( If the alarm is cleared, the relay will automatically return to its open or safe state. This sampling window strategy can resist the influence of single-point anomalies in the input stream, changing the decision chain from single-point triggering to multiple comprehensive judgments, which greatly improves the ability to suppress false alarms.

[0042] Dynamic thresholds can proactively adapt to changing scenarios even in extreme situations. For example, if a detection history consistently falls within a high-dose region, the alarm device further adjusts the threshold using an exponentially weighted average (EWMA). in and As a sliding parameter, EWMA can automatically enhance the threshold adjustment range under sustained high doses, ensuring that alarm actions are not sluggish due to chronically high values. For a rapid decrease in dose within a short period, the sliding threshold returns to the static threshold, and the relay output quickly withdraws from the alarm state, avoiding "high-dose instantaneous recovery trigger error".

[0043] Action response decisions are proactively executed by the main control module. If an alarm is detected, the relay switches, the audible and visual alarms are activated, and the trigger level and real-time dose information are recorded and pushed to the host computer or black box storage. When the action is deactivated, the recovery status is automatically recorded. Multi-level thresholds and dynamic corrections are entirely algorithm-driven, requiring no frequent manual intervention, reducing operational burden and improving emergency response efficiency.

[0044] Example 2: like Figure 2 and Figure 3 As shown, a multifunctional audible and visual alarm for radiation detection includes a Geiger counter sensor module, a main control module, a dot matrix display module, a relay control module, a power alarm module, and an optional audible and visual alarm unit. The components work together according to their functional division and electrical connection relationship to realize real-time detection, early warning linkage, and multimodal audible and visual display of the on-site radiation environment.

[0045] The Geiger counter sensor module uses a GR61 Geiger-Miller ray detector, which incorporates a high-voltage power supply and pulse shaping circuit. It automatically converts detected β and γ ray event counts into real-time dose rate values ​​represented in ASCII code, and transmits these values ​​to the master controller via a TTL-level serial port (UART, 38400bps baud rate). The GR61 sensor module operates at 5V, and its serial data line is connected to the UART receive pin of the master control module (GPIO4 of ESP8266), and is grounded to the master control circuit, ensuring complete and accurate signal transmission. To prevent power supply ripple from affecting sensitive counting, an electrolytic capacitor for decoupling filtering is provided at the sensor power input.

[0046] The main control module uses the Espressif ESP8266EX microcontroller, based on the NodeMCU V3 development board architecture, and undertakes core functions such as data parsing, status management, display control, and external linkage of the alarm system. Internally, the main control module periodically acquires radiation dose rate data provided by the GR61 module via a software serial port (SoftwareSerial), employing timeout numerical filtering and decimal parsing algorithms to ensure that valid digital information can be extracted even in cases of abnormal data formats or frame drops. Simultaneously, it compares the detected actual dose rate with a preset safety threshold (e.g., 0.5 μSv / h, parameter adjustable) to achieve multi-path linkage control logic. The main control module drives eight cascaded MAX7219 chips via the SPI host interface, displaying the current radiation status graphically and digitally in real time using a two-dimensional 32×16 dot matrix. Simultaneously, the main control module's GPIO15 output signal directly controls the relay module, enabling automatic cut-off and closure responses of environmental peripherals.

[0047] The dot matrix display module consists of eight FC-16 type 8×8 LED units and eight MAX7219 display driver chips physically arranged in 2 rows and 4 columns (32×16 pixels in total), using a serpentine cascading method and achieving data chain transmission through rigid ribbon cables. The top four units are cascaded from left to right, and the bottom four units are cascaded from right to left, requiring a special mapping algorithm to accurately map the displayed content to the pixel coordinates. The dot matrix display module is used to synchronously display the current value (μSv / h) in a high-brightness partition, and displays Chinese characters such as "Ready" and "Illuminate" in the status position. It supports software brightness adjustment and master control refresh anti-jitter strategy to effectively prevent visual flicker and afterimage phenomena.

[0048] The relay control module uses a 5V relay unit, which directly responds to the main control GPIO15 after isolation drive (high level for release under normal conditions, low level for activation during an alarm). The relay input terminal supports sharing a 5V power supply with GR61 or MAX7219 modules. The contact output circuit can be connected in parallel or series to field power equipment such as ventilation alarms and electromagnetic locks to achieve critical safety linkage for local environmental management or key work areas. The module has an internal filter capacitor, and the external output terminal is placed at the front end of high-voltage / high-current equipment, providing strong surge suppression capability.

[0049] The power alarm module adopts a standard 5V input conversion and multi-channel voltage regulation design to independently allocate stable DC power to the GR61 sensor, MAX7219 dot matrix, ESP8266 main controller, and relays, ensuring stable operation of the alarm system under alarm state switching and high-current relay tripping. All logic units share a common electrical ground, and optimized physical wiring reduces noise coupling.

[0050] In terms of optional audible and visual alarm units, the main controller can also be equipped with multi-colored high-brightness LED warning lights (red and green dual-color), and the buzzer / voice playback module can be controlled by PWM to execute green / red flashing and voice prompts in a loop according to the judgment status, effectively improving the intuitiveness of the alarm and the efficiency of on-site handling.

[0051] The aforementioned units are reliably interconnected via metal cabling, cables, and active filtering components according to preset signal flow and interface standards. The main control module coordinates serial port data streams, SPI display streams, and GPIO control signals to achieve adaptive management of all hardware and software resources. The entire alarm system can realize online real-time radiation dose detection, on-site digital / character large-screen display, and automatic linkage with sound, light, and relay peripherals. It is widely applicable to safety assurance in operation scenarios such as radioactive laboratories, medical facilities, nuclear energy, and non-destructive testing.

[0052] Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The program can be stored in a computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. The storage medium can be a magnetic disk, optical disk, read-only memory (ROM), or random access memory (RAM), etc.

[0053] It should be understood that the above detailed description of the technical solutions of the present invention with reference to preferred embodiments is illustrative and not restrictive. Those skilled in the art can modify the technical solutions described in the embodiments or make equivalent substitutions for some of the technical features based on reading this specification; however, these modifications or substitutions do not cause the essence of the corresponding technical solutions to depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A radiation detection method, characterized in that: The method includes: After the alarm is powered on, the main control module initializes all peripheral interfaces one by one. At the first moment of startup, the main control chip sets the GPIO port connected to the relay to output mode through firmware and forces it to a logic high level so that the relay is in the released state and the controlled load device is in the disconnected or safe standby state. After the preset delay waiting period ends, the main control module initializes the serial communication, SPI bus, dot matrix screen and status variables in sequence and enters the data acquisition and linkage logic process. The main control module asynchronously monitors the dose rate data stream emitted by the radiation sensor via a serial port. It adopts an adaptive character buffer collection algorithm to judge each byte that arrives in real time. If it is a numerical character, it is added to the buffer and the receiving timestamp is dynamically refreshed. If it is a non-numerical character, it is discarded and not added to the buffer. When there is no new data input in the buffer within a set timeout period, the collected characters are parsed as a frame of data. The character sequence in the buffer is subjected to flexible decimal judgment and numerical restoration. After removing redundant signs and points, only the main minus sign, main decimal point and numeric characters are retained to form a candidate floating-point expression. The stripped character sequence is then zero-bit checked and corrected to restore it to a floating-point value. If the restored value is reasonable, it proceeds to the next judgment. If the parsing is abnormal, it is classified as an invalid frame or a zero-dose frame and the buffer is cleared. A multi-level safety threshold library is established, and the current dose value is compared with the threshold at each level in real time. A dynamic sliding threshold strategy is adopted to adjust the threshold at each level in real time based on historical sampling data and dose change rate. The criterion chain is comprehensively judged through sampling counting window, and the alarm action is executed only when multiple consecutive criteria are triggered. If the historical sampling returns to the safe zone, the alarm is lifted.

2. The radiation detection method according to claim 1, characterized in that: During the preset delay waiting interval, only the safe output of the relay is maintained, while other GPIO pins remain in the default safe state. All external load actions are locked to eliminate false triggering caused by uncertain port levels, power fluctuations, or reset jitter during the initial stages of power-on, reset, or abnormal restart.

3. The radiation detection method according to claim 1, characterized in that: The adaptive character buffer collection algorithm does not rely on frame header and frame tail markers for data parsing. Instead, it uses a timing-driven and filtering mechanism to parse the serial port data stream, thereby improving its robustness in scenarios with mixed letters, noisy characters, or dropped frames.

4. The radiation detection method according to claim 1, characterized in that: The flexible decimal judgment and numerical restoration includes: adaptively identifying and correcting redundant negative signs, misaligned decimal points, or non-standard formats; judging abnormalities in the input string through a sign counter and a decimal point counter; and locating the main negative sign and the main decimal point.

5. The radiation detection method according to claim 1, characterized in that: The step of zero-bit verification and correction of the stripped character sequence adopts the zero-value tracing method, which verifies and corrects the leading zeros and trailing zeros of the character sequence to ensure the accuracy of numerical restoration.

6. The radiation detection method according to claim 1, characterized in that: In the dynamic sliding threshold strategy, if the sampling results are high for multiple consecutive times, the alarm threshold is dynamically lowered; if the value drops rapidly, it is restored to the original static threshold.

7. The radiation detection method according to claim 1, characterized in that: The alarm actions include controlling the relay output and triggering an audible and visual alarm response.

8. A multifunctional audible and visual alarm for radiation detection, wherein the alarm is applicable to the method as described in any one of claims 1-7, characterized in that: The alarm device includes: Geiger counter sensor module, main control module, dot matrix display module, and relay control module; The Geiger counter sensor module is used to detect the count of β and γ ray events and convert them into dose rate values, which are then output to the main control module in TTL level form via serial port. The main control module is electrically connected to the Geiger counter sensor module, the dot matrix display module, and the relay control module. It is used to initialize the peripheral interfaces one by one after power-on, and set the GPIO port connected to the relay control module to output mode and force it to logic high level at the first time of startup, so that the relay control module is in the released state. After the preset delay waiting interval ends, it initializes the serial communication, SPI bus, dot matrix display module, and status variables in sequence. The main control module is also used to asynchronously monitor the dose rate data stream sent by the Geiger counter sensor module via serial port, and to use an adaptive character buffer collection algorithm to judge each byte that arrives in real time. If it is a numerical character, it is added to the buffer and the receiving timestamp is dynamically refreshed. If it is a non-numerical character, it is discarded and not added to the buffer. When there is no new data input in the buffer within the set timeout period, the collected characters are parsed as a frame of data. The main control module is also used to perform flexible decimal judgment and numerical restoration on the character sequence in the buffer. After removing redundant signs and points, only the main minus sign, main decimal point and numeric characters are retained to form candidate floating-point expressions. Zero-bit verification and correction are performed to restore the floating-point value. If the restored value is reasonable, it will proceed to the subsequent judgment. If the parsing is abnormal, it will be classified as an invalid frame or a zero-dose frame and the buffer will be cleared. The main control module is also used to establish a multi-level safety threshold library, compare the current dose value with the threshold at each level in real time, and adopt a dynamic sliding threshold strategy to adjust the threshold at each level in real time according to historical sampling data and dose change rate. The criterion chain is comprehensively judged through the sampling counting window, and the relay control module is controlled to perform an alarm action only when multiple consecutive criteria are triggered. If the historical sampling returns to the safe zone, the alarm is deactivated. The dot matrix display module is electrically connected to the main control module and is used to display the current dose rate value and alarm status in real time in a graphical and digital manner. The relay control module is electrically connected to the GPIO port of the main control module and is used to perform release or engagement actions according to the control signal output by the main control module to control the on / off state of the external load device.