A slot label detection device and a detection method
By introducing a timer and multi-pulse detection mode into the slotted label detection device, and combining amplitude and waveform characteristic references, the problem of false detection in complex environments is solved, and highly reliable label detection is achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- SHENZHEN CHEVEN TECH
- Filing Date
- 2026-03-04
- Publication Date
- 2026-07-07
AI Technical Summary
Existing slotted label detection devices are susceptible to ambient light and electromagnetic interference in complex environments, leading to fluctuations in the received signal amplitude and false detections, thus failing to meet the requirements for high-reliability detection.
A timer is used to generate optical pulse signals and control the receiving unit to sample at a preset time. Combining single-pulse and multi-pulse detection modes, the system makes judgments by obtaining amplitude reference range, threshold reference, and waveform feature reference, thus avoiding misjudgments caused by a single judgment reference.
This improves the anti-interference capability of the slotted label detection device, ensuring the accuracy and adaptability of the detection results and avoiding false detections in complex environments.
Smart Images

Figure CN122347149A_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the field of label detection technology, specifically relating to a groove-type label detection device and detection method. Background Technology
[0002] In the field of information identification and detection in industrial automation, slotted label detection devices are typically used to identify labels attached to backing paper in order to perform operations such as counting and positioning. These slotted label detection devices usually include a light-emitting unit and a receiving unit arranged opposite each other. When a label passes between the two, it will block or transmit the light path. The receiving unit outputs a corresponding electrical signal based on this to determine whether the label is present or not.
[0003] Currently, most common tag detection solutions use a method of comparing amplitude with a single threshold, that is, judging the received signal by a preset voltage threshold, and different states of the tag are corresponding to whether the voltage is higher or lower than the threshold.
[0004] However, in practical applications, the detection environment is often complex, with various uncertainties such as ambient light interference and electromagnetic interference. These interferences can cause fluctuations in the amplitude of the received signal, making it easy for judgment methods based on a single threshold to produce false detections. This makes it unsuitable for various complex application scenarios and fails to meet the requirements of high-reliability detection. Summary of the Invention
[0005] This application provides a slotted label detection device and detection method, which can improve the anti-interference ability of the slotted label detection device and effectively avoid false detection phenomena that may occur in complex environments.
[0006] To address the aforementioned technical problems, this application provides a slotted label detection device, comprising a light-emitting unit, a receiving unit, and a control unit connected to the light-emitting unit and the receiving unit; The control unit is equipped with a timer, and the first output channel of the timer is connected to the light-emitting unit to generate a pulse signal that drives the light-emitting unit to emit light pulses; The second output channel of the timer is connected to the receiving unit and is used to control the receiving unit to sample the light pulse at a preset time to obtain a received signal. The control unit is configured to: process the received signal in a single-pulse detection mode under default conditions; and switch to a multi-pulse detection mode to process the received signal when an abnormality is detected in the single-pulse detection mode. The processing of the received signal includes: Obtain a preset judgment benchmark corresponding to the current detection mode. The preset judgment benchmark includes an amplitude benchmark range, a threshold benchmark, and a waveform feature benchmark. When the received signal meets the corresponding preset judgment benchmark, output the corresponding detection result.
[0007] As a further improvement of this application, the control unit is provided with a DMA controller, which is connected to the first output channel of the timer; The DMA controller is used to receive the flip signal output by the first output channel, and adjust the output flip time of the first output channel according to the flip signal to generate the pulse signal with preset waveform characteristics. The preset waveform features include the single-peak feature corresponding to the single-pulse detection mode and the multi-peak feature corresponding to the multi-pulse detection mode.
[0008] As a further improvement of this application, the control unit is further provided with an analog-to-digital converter, which is connected to the second output channel of the receiving unit and the timer; The second output channel of the timer is used to output a trigger signal at a preset time to control the analog-to-digital converter to digitally sample the analog signal output by the receiving unit to obtain the received signal; The DMA controller is also connected to the analog-to-digital converter and is used to store the received signal into a memory after the analog-to-digital converter has completed sampling.
[0009] As a further improvement to this application, the step of obtaining the preset judgment criterion corresponding to the current detection mode includes: The detection object is placed between the light-emitting unit and the receiving unit; the detection object includes a backing paper and several labels on the backing paper, the backing paper having break lines or being opaque; The object to be detected is moved between the light-emitting unit and the receiving unit to obtain multiple sample values; the multiple sample values include a first type of sample value collected after the light pulse emitted by the light-emitting unit passes through the backing paper, and a second type of sample value collected after the light pulse passes through the tag; The maximum value among the first type of sampled values and the second type of sampled values is determined as the first peak value and the second peak value, respectively. The amplitude reference range of the invalid tag signal is determined based on the first peak value and the allowable fluctuation range, and the amplitude reference range of the valid tag signal is determined based on the second peak value and the allowable fluctuation range; wherein, the amplitude reference range includes the amplitude reference range of the invalid tag signal and the amplitude reference range of the valid tag signal. And, the threshold benchmark is determined based on the first peak value and the second peak value.
[0010] As a further improvement to this application, the threshold benchmark is the average of the first peak value and the second peak value; and / or, The permissible fluctuation range is ±5%.
[0011] As a further improvement to this application, the step of obtaining the preset judgment criterion corresponding to the current detection mode further includes: The single-peak feature is used as the waveform feature reference for the single-pulse detection mode, and the multi-peak feature is used as the waveform feature reference for the multi-pulse detection mode.
[0012] As a further improvement of this application, in the single-pulse detection mode, the received signal conforms to the corresponding preset judgment criterion, including: The waveform of the received signal conforms to the single-peak characteristic; Furthermore, when the amplitude of the received signal is greater than the threshold reference, the amplitude of the received signal is within the range of the invalid tag signal amplitude reference; when the amplitude of the received signal is less than the threshold reference, the amplitude of the received signal is within the range of the valid tag signal amplitude reference.
[0013] As a further improvement of this application, in the multi-pulse detection mode, the received signal conforms to the corresponding preset judgment criterion, including: The waveform of the received signal conforms to the multi-peak characteristic; Furthermore, for each pulse peak in the received signal, when the amplitude of the pulse peak is greater than the threshold reference, the amplitude of the pulse peak is within the range of the invalid tag signal amplitude reference. When the amplitude of the pulse peak is less than the threshold reference, the amplitude of the pulse peak is within the range of the effective tag signal amplitude reference.
[0014] As a further improvement to this application, the detected anomaly includes: the number of output jumps of the received signal per unit time exceeds a preset threshold.
[0015] As a further improvement to this application, this application also provides a grooved label detection method, applied to the grooved label detection device, specifically including the following steps: The pulse signal that drives the light-emitting unit to emit light pulses is generated through the first output channel of the timer; The receiving unit is controlled by the second output channel of the timer to sample the light pulse at a preset time to obtain the received signal; By default, the received signal is processed in single-pulse detection mode; When an anomaly is detected in the single-pulse detection mode, the system switches to multi-pulse detection mode to process the received signal. The processing of the received signal includes: Obtain a preset judgment benchmark corresponding to the current detection mode. The preset judgment benchmark includes an amplitude benchmark range, a threshold benchmark, and a waveform feature benchmark. When the received signal meets the corresponding preset judgment benchmark, output the corresponding detection result.
[0016] This application provides a slotted label detection device and detection method, which includes a timer in the control unit. The timer has a first output channel and a second output channel. The first output channel of the timer is connected to a light-emitting unit to generate a pulse signal that drives the light-emitting unit to emit light pulses. The second output channel of the timer is connected to a receiving unit to control the receiving unit to sample the light pulses at a preset time so as to obtain the received signal and avoid timing deviations that may occur due to the use of different clock references to control the emission and sampling.
[0017] The control unit is configured to process the received signal sampled by the receiving unit in single-pulse detection mode by default. When the control unit detects a detection abnormality in single-pulse detection mode, it will automatically switch to multi-pulse detection mode to continue processing the received signal. This avoids detection interruption or distortion of detection results caused by the single-pulse detection mode being unable to adapt to the current working conditions, ensuring that the tag detection work can continue and improving the adaptability of the device to different detection environments.
[0018] Meanwhile, in both single-pulse and multi-pulse detection modes, the control unit needs to acquire the preset judgment benchmark corresponding to the current detection mode. This avoids the judgment deviation that may occur when judging the received signals of different features without a single judgment benchmark, thus ensuring the accuracy of the tag detection results. Attached Figure Description
[0019] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only a part of the embodiments of this application, and not all of the embodiments. For those skilled in the art, other drawings obtained from these drawings without creative effort are all within the scope of protection of this application.
[0020] Figure 1 This is a functional block diagram of the slotted label detection device provided in the embodiments of this application.
[0021] Figure 2 This is a flowchart illustrating the determination of a threshold reference in the slotted label detection device provided in this application embodiment.
[0022] Figure 3 A circuit diagram of an optional light-emitting unit provided for an embodiment of this application.
[0023] Figure 4 A circuit diagram of an optional receiving unit provided in an embodiment of this application.
[0024] Figure 5 A circuit diagram of an optional control unit provided for an embodiment of this application.
[0025] Figure 6 This is a timing diagram of the slotted label detection device provided in the embodiments of this application.
[0026] Figure 7 This is a schematic diagram of the structure of the label and backing paper in the grooved label detection device provided in the embodiments of this application.
[0027] Figure 8 This is a schematic diagram of the structure of the slotted label detection device provided in the embodiments of this application.
[0028] Figure 9 This is a schematic diagram of the structure for moving a label in the slotted label detection device provided in this application embodiment.
[0029] Figure 10 A specific embodiment of the slotted label detection device provided in this application is shown in the figure.
[0030] Figure 11 This is a timing diagram of the single-pulse detection mode in the slotted label detection device provided in the embodiments of this application. Figure 12 This is a timing diagram of the multi-pulse detection mode in the slotted label detection device provided in the embodiments of this application.
[0031] Figure 13 This is a flowchart of the grooved label detection method provided in the embodiments of this application. Detailed Implementation
[0032] To make the objectives, technical solutions, and advantages of this application clearer, the application will be further described in detail below with reference to the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are merely illustrative of this application and are not intended to limit this application.
[0033] To make the description of this disclosure more detailed and complete, illustrative descriptions of the implementation methods and specific embodiments of this application are provided below; however, this is not the only form of implementing or utilizing the specific embodiments of this application. The implementation methods cover the features of multiple specific embodiments and the method steps and their order for constructing and operating these specific embodiments. However, other specific embodiments can also be used to achieve the same or equivalent functions and step sequences. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0034] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in sequences other than those illustrated or described herein.
[0035] In the description of the embodiments of this application, unless otherwise stated, " / " means "or". For example, A / B can mean A or B. The word "and / or" in the text is merely a description of the relationship between related objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist simultaneously, and B exists alone. In addition, in the description of the embodiments of this application, "multiple" means two or more. Other quantifiers should be understood similarly. The preferred embodiments described herein are only for illustration and explanation of this application and are not intended to limit this application. Furthermore, the embodiments of this application and the features in the embodiments can be combined with each other without conflict.
[0036] In the field of information identification and detection in industrial automation, slotted label detection devices are typically used to identify labels attached to backing paper in order to perform operations such as counting and positioning. These slotted label detection devices usually include a light-emitting unit and a receiving unit arranged opposite each other. When a label passes between the two, it will block or transmit the light path. The receiving unit outputs a corresponding electrical signal based on this to determine whether the label is present or not.
[0037] Currently, most common tag detection solutions use a method of comparing amplitude with a single threshold, that is, judging the received signal by a preset voltage threshold, and different states of the tag are corresponding to whether the voltage is higher or lower than the threshold.
[0038] However, in practical applications, the detection environment is often complex, with various uncertainties such as ambient light interference and electromagnetic interference. These interferences can cause fluctuations in the amplitude of the received signal, making it easy for judgment methods based on a single threshold to produce false detections. This makes it unsuitable for various complex application scenarios and fails to meet the requirements of high-reliability detection.
[0039] In view of this, please refer to Figures 1-13 This application proposes a slotted label detection device and detection method, which can improve the anti-interference ability of the slotted label detection device and effectively avoid false detection phenomena that may occur in complex environments.
[0040] Please refer to Figure 1 This is a schematic diagram of the structure of the slotted label detection device provided in the embodiment of this application. The slotted label detection device includes a light-emitting unit, a receiving unit, and a control unit connected to the light-emitting unit and the receiving unit.
[0041] As an optional implementation, this application provides a timer in the control unit. The timer has a first output channel (T_CH1) and a second output channel (T_CH2). The first output channel of the timer is connected to the light-emitting unit to generate a pulse signal that drives the light-emitting unit to emit light pulses. The second output channel of the timer is connected to the receiving unit to control the receiving unit to sample the light pulses at a preset time so as to obtain the received signal.
[0042] It is understandable that the first and second output channels mentioned above belong to the same timer, which can avoid the timing deviation that may occur due to the use of different clock references to control transmission and sampling. Moreover, this design does not require additional hardware components for clock calibration and timing synchronization. The timing control of transmission and sampling can be achieved solely through the timer in the control unit, without increasing hardware costs.
[0043] Furthermore, the control unit is configured to process the received signal sampled by the receiving unit in a single-pulse detection mode in the default state. When the control unit detects a detection abnormality in the single-pulse detection mode, it will automatically switch to a multi-pulse detection mode to continue processing the received signal.
[0044] It should be noted that the single-pulse detection mode, as the default mode, can adapt to normal tag detection conditions without signal abnormalities or significant external interference, meeting the basic requirements for tag detection in normal scenarios. However, when a detection abnormality occurs in the single-pulse detection mode, it will switch to the multi-pulse detection mode in a timely manner to avoid detection interruption or distortion of detection results caused by the single-pulse detection mode being unable to adapt to the current working conditions, ensuring that tag detection can continue and improving the device's adaptability to different detection environments.
[0045] As an optional implementation, in both the single-pulse detection mode and the multi-pulse detection mode, the control unit needs to obtain the preset judgment criteria corresponding to the current detection mode. The preset judgment criteria include the amplitude reference range, the threshold reference, and the waveform characteristic reference. Only when the received signal meets the corresponding preset judgment criteria will the corresponding detection result be output.
[0046] Since the light pulses emitted by the light-emitting unit are different in single-pulse detection mode and multi-pulse detection mode, the characteristics of the received signals collected by the receiving unit are also different. Therefore, this application obtains a preset judgment benchmark corresponding to the current detection mode to avoid the possible judgment deviation that may occur when a single judgment benchmark is used to judge the received signals with different characteristics.
[0047] Meanwhile, the aforementioned preset judgment criteria integrate three dimensions of judgment indicators: amplitude reference range, threshold reference, and waveform feature reference. It is not a single-dimensional judgment criterion, but can judge the received signal from multiple dimensions. It ensures that the detection result is only output when the received signal meets the corresponding preset judgment criteria, avoiding the output of incorrect detection results due to invalid interference signals or signals with abnormal features, and ensuring the accuracy of tag detection results.
[0048] As an optional implementation, this application further includes a DMA (Direct Memory Access) controller within the control unit, which is connected to the first output channel of the timer to receive the toggle signal output by the first output channel.
[0049] It is understandable that the flip signal here refers to the signal when the level of the first output channel flips during the output pulse signal process. The process of the first output channel outputting pulse signals is essentially a process of switching between high and low levels. The corresponding flip signal will be generated at the moment the level flips.
[0050] Furthermore, the DMA controller can adjust the output flip time of the first output channel based on the received flip signal, thereby generating a pulse signal with preset waveform characteristics.
[0051] For example, when the first output channel generates a flip signal, the flip signal will start the DMA controller to transmit data. The DMA controller controls the timer's compare register to change the time of the next output flip of the first output channel. In this way, by continuously adjusting the time of each output flip, a pulse signal with preset waveform characteristics can be generated.
[0052] Furthermore, by using a DMA controller in conjunction with the toggle signal of the first output channel of the timer to adjust the output toggle time, the hardware can automatically generate pulse signals, resulting in more precise timing control and higher signal generation stability. No additional hardware is required; it can be achieved simply by using the DMA controller within the control unit in conjunction with the existing timer settings.
[0053] In an optional embodiment, the generated pulse signal with preset waveform characteristics includes a single-peak feature corresponding to a single-pulse detection mode and a multi-peak feature corresponding to a multi-pulse detection mode.
[0054] In the single-pulse detection mode, the generated pulse signal contains only one pulse in one detection cycle, and the corresponding received signal presents a single peak shape. In the multi-pulse detection mode, the generated pulse signal contains multiple continuous pulses in one detection cycle, and the corresponding received signal presents a multiple peak shape. The specific waveforms of the single-peak and multi-peak characteristics will not be elaborated on here.
[0055] As an optional implementation, this application also includes an ADC (Analog to Digital Converter) in the control unit, which connects the analog-to-digital converter to the receiving unit and to the second output channel of the timer.
[0056] In this embodiment, the second output channel of the timer is used to output a trigger signal at a preset time. The trigger signal is used to control the analog-to-digital converter to start working, and the analog signal output by the receiving unit is digitally sampled by the analog-to-digital converter to obtain the received signal.
[0057] It should be noted that the receiving unit outputs an analog signal, which cannot be directly digitized and logically judged by the control unit. It needs to be converted into a digital form of the received signal by an analog-to-digital converter so that the subsequent control unit can perform processing operations such as amplitude comparison, threshold judgment and waveform feature recognition based on the received signal.
[0058] Further, please continue to refer to Figure 1 In this application, the DMA controller is connected to the analog-to-digital converter. After the analog-to-digital converter completes the digital sampling, the DMA controller will automatically read the received signal from the data register of the analog-to-digital converter and store it in the memory. The memory here can be the random access memory inside the control unit or other readable and writable storage media. This application does not impose too many restrictions on the specific configuration of the memory.
[0059] Thus, this application triggers the analog-to-digital converter to start sampling through the second output channel of the timer, and then the DMA controller automatically stores the sampling result into the memory, ensuring precise synchronization between the sampling time and the light pulse emission time, reducing the processing load of the control unit. Moreover, all the above hardware components are integrated into the control unit, and signal linkage and functional cooperation are achieved only through direct connection between the components, without the need to add other hardware components, effectively improving the overall operating efficiency of the control unit.
[0060] In an optional embodiment, please refer to Figure 6 This is a timing diagram of the slotted label detection device provided in the embodiments of this application. The timing diagram shows the key signal timing relationships of the slotted label detection device during operation, including the single pulse waveform output by the first output channel T_CH1 of the timer, the multi-pulse waveform output by the first output channel T_CH1 of the timer, the trigger sampling signal output by the second output channel T_CH2 of the timer, the sampling process of the ADC analog-to-digital converter and the DMA controller, and the data processing process.
[0061] It can be observed that in the multi-pulse waveform output by the first output channel T_CH1 of the timer, several key time nodes such as t0, t1, t2, t3, and t4 are marked.
[0062] Where t0 is the start time of the PWM pulse signal, the timer starts counting and prepares to output pulses. At time t1, the PWM output goes high, and the light-emitting unit starts to emit light. It should be noted that for both single-pulse detection mode and multi-pulse detection mode, time t1 is the start time of light emission, but the two modes cannot be used simultaneously.
[0063] Furthermore, time t2 is only valid for the multi-pulse detection mode. At this time, the PWM output goes low, forming the falling edge of the first positive pulse, thus completing the output of the first complete pulse. Time t3 is also only valid for the multi-pulse detection mode. At this time, the PWM output goes high again, starting to form the rising edge of the second positive pulse. At time t4, the PWM output goes low. For the multi-pulse detection mode, this forms the falling edge of the second positive pulse, thus completing the output of the second pulse, and the light-emitting unit ends its current emission.
[0064] During the sampling process of the ADC analog-to-digital converter and DMA controller, time t5 is marked. t5 is the moment when the ADC begins sampling, which is controlled by the trigger signal output from the second output channel T_CH2 of the timer. T_CH2, as an external trigger signal, triggers the ADC to start the sampling operation at this moment, performing digital conversion on the analog signal output from the receiving unit.
[0065] During data processing, time t6 and the time period from t6 to t7 are marked. Time t6 marks the completion of ADC sampling, at which point the sampled received signal is ready for subsequent processing by the control unit. The time period from t6 to t7 is the data processing stage, during which the control unit performs multi-dimensional analysis and judgment on the received signal, including comparison with preset judgment benchmarks, and finally outputs the detection result.
[0066] It is important to note that in this application, the first output channel T_CH1 and the second output channel T_CH2 of the timer are two different output channels of the same timer. T_CH1 is used to output single-pulse or multi-pulse signals to drive the light-emitting unit to emit light pulses; these two pulse modes will not exist simultaneously. T_CH2 serves as an external trigger signal to trigger the ADC to perform sampling. By using two channels of the same timer, precise hardware synchronization between light pulse emission and signal sampling is achieved, ensuring a strict correspondence between the sampling time and the emission time within each sampling cycle.
[0067] At the same time, there is no need to add additional hardware components for clock calibration or timing synchronization. The timing control of transmission and sampling can be achieved solely through the timer in the control unit, which ensures the accuracy of timing and reduces hardware costs.
[0068] As an optional implementation method, please refer to Figure 2 This is a flowchart illustrating the process of determining a threshold benchmark in the slotted label detection device provided in this application embodiment. The process of obtaining the preset judgment benchmark corresponding to the current detection mode includes: S10: The detection object is placed between the light-emitting unit and the receiving unit; the detection object includes a backing paper and several labels on the backing paper, the backing paper having a break line or being opaque; S11: The object to be detected is moved between the light-emitting unit and the receiving unit to obtain multiple sample values; the multiple sample values include a first type of sample value collected after the light pulse emitted by the light-emitting unit passes through the backing paper, and a second type of sample value collected after the light pulse passes through the tag; S12: The maximum value among the first type of sampled value and the second type of sampled value is determined as the first peak value and the second peak value, respectively; S13: Determine the reference range of invalid tag signal amplitude based on the first peak value and the allowable fluctuation range, and determine the reference range of valid tag signal amplitude based on the second peak value and the allowable fluctuation range; wherein, the reference range of amplitude includes the reference range of invalid tag signal amplitude and the reference range of valid tag signal amplitude; S14: And, determine the threshold benchmark based on the first peak value and the second peak value.
[0069] In this embodiment of the application, when obtaining the preset judgment benchmark corresponding to the current detection mode, it is necessary to first place the detection object between the transmitting unit and the receiving unit. Please refer to... Figure 7 This is a schematic diagram of the structure of the label and backing paper in the grooved label detection device provided in this application embodiment. The detection object includes the backing paper and several labels disposed on the backing paper. The backing paper can be opaque or has a break line.
[0070] It should be noted that the labels are the objects to be inspected. Typically, several labels are affixed to a backing paper at certain intervals. The backing paper serves to support the labels. Please refer to [the relevant documentation / reference]. Figure 8 This is a schematic diagram of the structure of the slotted label detection device provided in the embodiment of this application. The label can be transmitted through the detection area between the transmitting unit and the receiving unit by the backing paper.
[0071] It is understandable that setting the backing paper to be opaque or having broken lines is to create light transmission characteristics different from the label body at the gaps between the labels. In this way, the opaque backing paper can block some light, and the broken lines form regular light transmission gaps, allowing the receiving unit to collect the backing paper signal that is clearly different from the label signal, thus providing a basis for subsequent differentiation between the label and the backing paper.
[0072] In practice, please refer to Figure 9 This is a schematic diagram of the structure for moving a label in the slotted label detection device provided in this application embodiment. The object to be detected can be moved between the light-emitting unit and the receiving unit, for example, by manual dragging or dragging via a conveyor device. During this process, the control unit continuously acquires multiple sample values. When the object to be detected moves between the light-emitting unit and the receiving unit, the light pulses emitted by the light-emitting unit alternately pass through the backing paper and the label. Due to the different light transmittance characteristics of the backing paper and the label, the sample values collected by the receiving unit will exhibit two different numerical characteristics.
[0073] Specifically, when the light pulse passes through the backing paper, some of the light can pass through the backing paper or the break line to reach the receiving unit, and the sampled value collected at this time is relatively high; when the light pulse passes through the tag, the light is blocked by the tag, and only a small amount of light passes through, or mainly the dark current of the receiving unit itself, and the sampled value collected at this time is relatively low.
[0074] In this embodiment of the application, the multiple sampled values obtained during the above-mentioned movement process are divided into a first type of sampled values collected after the light pulse emitted by the light-emitting unit passes through the backing paper, and a second type of sampled values collected after the light pulse passes through the tag. That is, the first type of sampled values corresponds to the signal collected when the light pulse passes through the backing paper, and the second type of sampled values corresponds to the signal collected when the light pulse passes through the tag.
[0075] Furthermore, during the movement, due to factors such as positional deviation or light scattering, the sampled values collected each time they pass the backing paper or label may fluctuate. Therefore, the control unit selects the maximum value from the first type of sampled values as the first peak value and selects the maximum value from the second type of sampled values as the second peak value.
[0076] Based on this, this application determines the reference range of invalid tag signal amplitude based on the first peak value and the allowable fluctuation range, and determines the reference range of valid tag signal amplitude based on the second peak value and the allowable fluctuation range.
[0077] It is understandable that an invalid tag signal refers to the signal collected by the receiving unit when the light pulse passes through the backing paper or the break line. This amplitude reference range is used to define which amplitude signal should be judged as the backing paper signal in subsequent detection. A valid tag signal refers to the signal collected by the receiving unit when the light pulse passes through the tag. This amplitude reference range is used to define which amplitude signal should be judged as the tag signal. The above-mentioned amplitude reference ranges of invalid tag signals and valid tag signals together constitute the required amplitude reference range.
[0078] At the same time, the threshold benchmark can also be confirmed based on the first peak value and the second peak value. The threshold benchmark is used to initially distinguish whether the received signal belongs to a valid tag signal or an invalid tag signal in the subsequent detection process.
[0079] Optionally, the average of the first peak and the second peak can be used as the threshold benchmark.
[0080] In one specific embodiment, please refer to Figure 10 The figure shows a specific embodiment of the slotted label detection device provided in this application. In this embodiment, after the detection object is dragged back and forth between the light-emitting unit and the receiving unit, the control unit obtains multiple sample values from V0 to V15.
[0081] Among them, the sampling values of V0, V1, V4, V6, V7, V10, and V12 are the first type of sampling values obtained after the light pulse passes through the breakpoint line or the backing paper, while the sampling values of V2, V3, V5, V8, V9, V11, V13, V14, and V15 are the second type of sampling values obtained after the light pulse passes through the tag.
[0082] Assuming the first peak value taken from the first sample value is 1000 LSB (Least Significant Bit, the smallest quantization unit of an analog-to-digital converter), and the second peak value taken from the second sample value is 200 LSB, with an allowable fluctuation range of ±5%, then the reference range for the amplitude of the invalid tag signal is 950 LSB to 1050 LSB, and the reference range for the amplitude of the valid tag signal is determined to be 150 LSB to 250 LSB.
[0083] Based on this, the threshold benchmark is (1000LSB+200LSB) / 2=600LSB.
[0084] Thus, the preset judgment criteria obtained through the above process can be adaptively calibrated according to the specific characteristics of the currently used label and backing paper, so that the judgment criteria in the subsequent detection process match the signal characteristics of the actual detection object, thereby improving the accuracy and reliability of the detection.
[0085] As an optional implementation, since the preset judgment criteria include amplitude reference range, threshold reference and waveform feature reference, and the amplitude reference range and threshold reference have been determined by moving the detection object, it is also necessary to obtain the preset judgment criteria corresponding to the current detection mode.
[0086] In an optional embodiment, this application uses single-peak characteristics as the waveform feature reference for single-pulse detection mode and multi-peak characteristics as the waveform feature reference for multi-pulse detection mode, that is, the preset waveform features of the pulse signal generated by the DMA controller in conjunction with the first output channel of the timer.
[0087] In single-pulse detection mode, the pulse signal emitted by the light-emitting unit contains only one pulse within one detection cycle. Ideally, the received signal should exhibit a single peak. Therefore, the single-peak characteristic is used as the waveform characteristic benchmark in this mode to determine whether the received signal has a single, obvious peak. When the waveform of the received signal exhibits a single peak, it indicates that it matches the waveform characteristics of the transmitted pulse, and is highly likely to be a valid signal. Conversely, if the waveform of the received signal shows multiple peaks or a chaotic shape, it may be subject to interference and should be excluded.
[0088] In multi-pulse detection mode, the pulse signal emitted by the light-emitting unit contains multiple consecutive pulses within one detection cycle. Ideally, the received signal should exhibit multiple peaks. Therefore, the multi-peak characteristic is used as the waveform characteristic benchmark in this mode to determine whether the received signal has multiple obvious peaks. When the waveform of the received signal shows multiple peaks corresponding to the number of transmitted pulses, it indicates that it matches the waveform characteristics of the transmitted pulses. If the number of peaks in the received signal is insufficient or excessive, or the spacing between the peaks is abnormal, interference may have occurred and should be eliminated.
[0089] It should be noted that using single-peak and multi-peak features as waveform feature benchmarks for the two detection modes is to establish a correspondence with the waveform features of the transmitted pulses in different modes, and is not intended to impose any restrictions on the waveform feature benchmarks, thus ensuring improved anti-interference capability and detection accuracy of the detection device in complex environments.
[0090] As an optional implementation, in the single-pulse detection mode, the received signal conforms to the corresponding preset judgment criterion, including: The waveform of the received signal conforms to the single-peak characteristic; Furthermore, when the amplitude of the received signal is greater than the threshold reference, the amplitude of the received signal is within the range of the invalid tag signal amplitude reference; when the amplitude of the received signal is less than the threshold reference, the amplitude of the received signal is within the range of the valid tag signal amplitude reference.
[0091] Please refer to Figure 11 This is a timing diagram of the single-pulse detection mode in the slotted label detection device provided in this application embodiment. In single-pulse detection mode, the received signal needs to meet the preset judgment criteria corresponding to the current detection mode, and the waveform of the received signal needs to conform to the corresponding single-peak characteristic. Since the pulse signal emitted by the light-emitting unit itself has a single-peak characteristic in single-pulse detection mode, the corresponding received signal should ideally also present a single peak. If the waveform of the received signal has multiple peaks, the peaks are not obvious, or the waveform is messy, it indicates that the signal may be interfered with, or it is not a valid signal generated by the light pulse emitted this time, and should be excluded.
[0092] Furthermore, assuming the waveform conforms to the single-peak characteristic, it is also necessary to determine the amplitude of the received signal.
[0093] Specifically, when the amplitude of the received signal is greater than the threshold reference, it is initially determined that it may correspond to an invalid tag signal collected when the light pulse passes through the backing paper or the break line. At this time, it is necessary to further verify whether the amplitude is within the invalid tag signal amplitude reference range.
[0094] If the amplitude of the received signal is within the range of the invalid tag signal amplitude reference, it means that the received signal meets the corresponding preset judgment reference. If the amplitude of the received signal is not within the range of the invalid tag signal amplitude reference, it means that the amplitude of the received signal is too high or too low, which may be an interference signal.
[0095] When the amplitude of the received signal is less than the threshold reference, it is initially determined that it may correspond to the valid tag signal collected when the light pulse passes through the tag. At this time, it is necessary to further verify whether the amplitude is within the valid tag signal amplitude reference range.
[0096] If the amplitude of the received signal is within the effective tag signal amplitude reference range, it means that the received signal meets the corresponding preset judgment reference. If the amplitude of the received signal is not within the effective tag signal amplitude reference range, it means that the amplitude of the signal does not conform to the typical tag signal characteristics, and may be an interference signal or an abnormal situation.
[0097] Understandably, in actual testing, the amplitudes of the label signal and the backing paper signal are not fixed but fluctuate within a certain range. This application's method of first classifying based on a threshold benchmark and then matching the corresponding amplitude benchmark range has higher accuracy compared to directly using a single threshold for binary judgment.
[0098] Thus, in single-pulse detection mode, the received signal must meet the preset judgment criteria and the waveform must also meet the single-peak characteristic. Secondly, after classification according to the threshold criteria, its amplitude must fall within the amplitude reference range of the corresponding category. This dual verification method of waveform and amplitude can effectively improve the accuracy of detection and avoid false detection or missed detection due to a single aspect of judgment error.
[0099] As an optional implementation, in the multi-pulse detection mode, the received signal conforms to the corresponding preset judgment criterion, including: The waveform of the received signal conforms to the multi-peak characteristic; Furthermore, for each pulse peak in the received signal, when the amplitude of the pulse peak is greater than the threshold reference, the amplitude of the pulse peak is within the range of the invalid tag signal amplitude reference. When the amplitude of the pulse peak is less than the threshold reference, the amplitude of the pulse peak is within the range of the effective tag signal amplitude reference.
[0100] Please refer to Figure 12 This is a timing diagram of the multi-pulse detection mode in the slotted label detection device provided in this application embodiment. In the multi-pulse detection mode, the received signal also needs to meet the preset judgment criteria corresponding to the current detection mode, and the waveform of the received signal needs to conform to the corresponding multi-peak characteristics.
[0101] The multi-peak characteristic mentioned here refers to the waveform of the received signal exhibiting multiple distinct peaks within one detection cycle. Since the pulse signal emitted by the light-emitting unit in multi-pulse detection mode itself has multi-peak characteristics—that is, it contains multiple consecutive pulses within one detection cycle—the corresponding received signal should ideally also exhibit multiple peaks corresponding to the number of emitted pulses. If the waveform of the received signal shows insufficient peaks, excessive peaks, abnormal peak spacing, or waveform disorder, it indicates that the signal may have been interfered with, or that it is not a valid signal generated by the multi-pulse optical signal emitted in this instance, and should be excluded.
[0102] Furthermore, assuming the waveform conforms to multi-peak characteristics, it is also necessary to determine the amplitude of each pulse peak in the received signal separately. Unlike the single-pulse detection mode, the received signal in the multi-pulse detection mode contains multiple pulse peaks, and the amplitude of each pulse peak needs to be verified individually to ensure it meets the requirements.
[0103] The specific judgment method is similar to that of the single-pulse detection mode, that is, based on the relationship between the amplitude of each pulse peak and the threshold benchmark, it is classified into different amplitude benchmark ranges for verification.
[0104] In an optional embodiment, for a pulse peak in the received signal, if the amplitude of the pulse peak is greater than a threshold reference, it is initially determined that the pulse peak may correspond to a signal component collected when the light pulse passes through the backing paper or the break line. At this point, it is necessary to further verify whether the amplitude is within the invalid tag signal amplitude reference range. If it is within this range, it indicates that the pulse peak meets the corresponding preset judgment benchmark; if it exceeds this range, it indicates that the pulse peak may be an interference signal.
[0105] For a given pulse peak in the received signal, if the amplitude of the pulse peak is less than a threshold reference, it is initially determined that the pulse peak may correspond to a signal component collected when the optical pulse passes through the tag. Further verification is needed to confirm whether the amplitude is within the valid tag signal amplitude reference range. If it is within this range, the pulse peak meets the corresponding preset judgment criteria; if it exceeds this range, the pulse peak may be an interference signal or an abnormal situation.
[0106] It should be noted that in multi-pulse detection mode, each pulse peak in the received signal needs to be verified separately through the amplitude verification process described above. If the amplitude of even one pulse peak fails to fall within the amplitude reference range for the corresponding category, the entire received signal does not meet the preset judgment criteria, and no corresponding detection result will be output. This method of independently verifying each pulse peak is what makes multi-pulse detection mode more rigorous than single-pulse detection mode, and it is also the reason why it has stronger anti-interference capabilities in complex environments.
[0107] Understandably, in actual testing, the amplitudes of both the label signal and the backing paper signal fluctuate within a certain range. This application first classifies each pulse peak based on a threshold benchmark, and then matches it with the corresponding amplitude benchmark range for judgment. This effectively accommodates normal fluctuations while excluding outliers that exceed reasonable ranges.
[0108] Thus, in multi-pulse detection mode, for the received signal to meet the preset judgment criteria, it must simultaneously satisfy the waveform's multi-peak characteristics. Secondly, after each pulse peak in the received signal is classified according to the threshold criteria, its amplitude must fall within the amplitude reference range of the corresponding category. This dual verification method of waveform and multi-peak amplitude allows for more refined discrimination of the received signal, effectively improving the accuracy and reliability of the detection device in environments with strong interference.
[0109] As an optional implementation, the detected anomaly includes: the number of output jumps of the received signal per unit time exceeds a preset threshold.
[0110] The aforementioned output transition refers to a significant change in the amplitude of the received signal within a short period of time, such as a transition from a high level to a low level, or from a low level to a high level. The number of output transitions refers to the frequency of such amplitude changes per unit time. The unit time can be set according to the actual application scenario, for example, it can be set to 1 second, 0.5 seconds, or other time lengths.
[0111] It should be noted that the preset threshold is a pre-set value used to measure whether the number of jumps is within the normal range. This application does not impose further restrictions on the unit time or the specific preset threshold, which can be adjusted according to the actual situation.
[0112] Furthermore, the received signal should exhibit a relatively stable and regular waveform under normal circumstances. However, when there is strong interference in the detection environment, such as electromagnetic interference generated by high-power equipment that frequently starts and stops on site, or rapid changes in ambient light, the received signal may exhibit frequent amplitude jumps.
[0113] When the number of output transitions of the received signal exceeds a preset threshold within a unit of time, it indicates that there is severe interference in the current detection environment, or that the detection device itself is malfunctioning, causing the received signal to be unstable. In this situation, if detection continues in single-pulse detection mode, false detections or missed detections are likely to occur due to the frequent signal transitions. Therefore, the control unit determines this state as a detection anomaly and triggers a mode switch, switching from single-pulse detection mode to multi-pulse detection mode.
[0114] Understandably, multi-pulse detection mode, due to the multiple peaks in the transmitted pulse signal, results in a correspondingly multi-peak characteristic in the received signal, which generally gives it superior anti-interference capabilities compared to single-pulse detection mode. By monitoring the number of output transitions and switching detection modes promptly, the device can automatically adjust to a more suitable detection mode when encountering interference, thereby ensuring the continuity and accuracy of detection.
[0115] As an optional implementation method, please refer to Figures 3 to 5 ,in Figure 3 A circuit diagram of an optional light-emitting unit provided in an embodiment of this application. Figure 4 A circuit diagram of an optional receiving unit provided in an embodiment of this application. Figure 5 A circuit diagram of an optional control unit provided for an embodiment of this application.
[0116] It should be noted that, Figures 3 to 5The specific circuit structure shown is merely one possible implementation method provided by the embodiments of this application, used to exemplify the connection relationship and basic working principle between the light-emitting unit, the receiving unit, and the control unit. In practical applications, those skilled in the art can adaptively adjust or replace the circuit structure according to specific needs, such as selecting different types of components, adjusting the connection method of the peripheral circuit, or adopting a chip solution with higher integration.
[0117] Any circuit configuration that can achieve a complete logical interaction—where the light-emitting unit emits light pulses under pulse signal drive, the receiving unit samples the light pulses and outputs an analog signal, and the control unit processes the received signal and outputs the detection result—falls within the scope of this application. Therefore, this application hereby protects against... Figures 3 to 5 The specific circuit structure shown will not be described in detail. Figures 3 to 5 The specific circuit structure shown should not be construed as a limitation on the technical solution of this application.
[0118] Based on the aforementioned slotted label detection device, this application also provides a slotted label detection method, which is applied to the aforementioned slotted label detection device. Please refer to [reference needed]. Figure 13 The flowchart below shows a slotted label detection method provided in this application embodiment. The slotted label detection method specifically includes the following steps: S1: Generate a pulse signal through the first output channel of the timer to drive the light-emitting unit to emit light pulses; In this embodiment, a pulse signal that drives the light-emitting unit to emit light pulses is generated through the first output channel of the timer. The timer is a hardware module inside the control unit and has precise timing and waveform generation capabilities.
[0119] The first output channel, as one of the output ports of the timer, generates a pulse signal with a specific frequency and duty cycle according to preset parameters. This signal is sent to the light-emitting unit, driving it to emit light pulses according to the timing of the pulse signal.
[0120] It is understandable that the waveform characteristics of the pulse signal here can be in the form of a single pulse or multiple pulses, depending on the current detection mode.
[0121] S2: The receiving unit is controlled to sample the optical pulse at a preset time by the second output channel of the timer to obtain the received signal; Furthermore, the receiving unit is controlled to sample the light pulse at a preset time by the second output channel of the timer to obtain the received signal; the second output channel is also the output port of the timer and shares the same timer clock reference with the first output channel.
[0122] The second output channel outputs a control signal at a preset time. This control signal triggers the receiving unit to start the sampling operation and collect the light pulses emitted by the light-emitting unit. Since the first and second output channels originate from the same timer, the emission time and sampling time of the light pulse can maintain a precise synchronization relationship, ensuring that the receiving unit samples only at the specific time when the light pulse is valid. This suppresses the influence of continuous interference signals such as ambient light at the hardware level.
[0123] S3: In the default state, the received signal is processed in single-pulse detection mode; In this embodiment, the single-pulse detection mode is used as the default working mode, which is suitable for normal detection conditions where there are no signal abnormalities or obvious external interference. The received signal is processed by default in the single-pulse detection mode.
[0124] S4: When an abnormality is detected in the single-pulse detection mode, switch to the multi-pulse detection mode to process the received signal; The processing of the received signal includes: Obtain a preset judgment benchmark corresponding to the current detection mode. The preset judgment benchmark includes an amplitude benchmark range, a threshold benchmark, and a waveform feature benchmark. When the received signal meets the corresponding preset judgment benchmark, output the corresponding detection result.
[0125] When an anomaly is detected in single-pulse detection mode, switch to multi-pulse detection mode to process the received signal.
[0126] In an optional embodiment, when the number of output transitions of the received signal exceeds a preset threshold within a unit of time, it indicates that there may be strong interference or signal instability in the current detection environment. At this time, the control unit automatically switches to multi-pulse detection mode to avoid detection interruption or result distortion caused by the single-pulse detection mode being unable to adapt to the current operating conditions.
[0127] Regardless of whether it is in single-pulse detection mode or multi-pulse detection mode, the processing of the received signal follows the same logic.
[0128] Specifically, the control unit first obtains the preset judgment benchmark corresponding to the current detection mode. The preset judgment benchmark includes three dimensions of benchmark: amplitude benchmark range, threshold benchmark, and waveform feature benchmark.
[0129] Among them, the amplitude reference range is used to define the reasonable amplitude range of valid and invalid signals; the threshold reference is used to initially distinguish the category to which the received signal belongs; and the waveform feature reference is used to define the waveform shape that the received signal should present under a specific detection mode, such as the single-peak feature corresponding to the single-pulse detection mode or the multi-peak feature corresponding to the multi-pulse detection mode.
[0130] Furthermore, the control unit compares the actual amplitude and waveform of the received signal with the aforementioned preset judgment criteria. Only when the received signal simultaneously meets the amplitude reference range, threshold reference, and waveform feature reference corresponding to the current detection mode is the received signal determined to be a valid tag status signal, and the corresponding detection result is output.
[0131] Thus, this application comprehensively verifies the received signal from both amplitude and waveform perspectives, effectively eliminating invalid interference signals or signals with abnormal characteristics, and ensuring the accuracy of the detection results.
[0132] For other details regarding the implementation of the above-mentioned slotted label detection method, please refer to the description of the slotted label detection device provided in the above-mentioned application embodiments, which will not be repeated here.
[0133] This application provides a slotted label detection device and detection method, which includes a timer in the control unit. The timer has a first output channel and a second output channel. The first output channel of the timer is connected to a light-emitting unit to generate a pulse signal that drives the light-emitting unit to emit light pulses. The second output channel of the timer is connected to a receiving unit to control the receiving unit to sample the light pulses at a preset time so as to obtain the received signal and avoid timing deviations that may occur due to the use of different clock references to control the emission and sampling.
[0134] The control unit is configured to process the received signal sampled by the receiving unit in single-pulse detection mode by default. When the control unit detects a detection abnormality in single-pulse detection mode, it will automatically switch to multi-pulse detection mode to continue processing the received signal. This avoids detection interruption or distortion of detection results caused by the single-pulse detection mode being unable to adapt to the current working conditions, ensuring that the tag detection work can continue and improving the adaptability of the device to different detection environments.
[0135] Meanwhile, in both single-pulse and multi-pulse detection modes, the control unit needs to acquire the preset judgment benchmark corresponding to the current detection mode. This avoids the judgment deviation that may occur when judging the received signals of different features without a single judgment benchmark, thus ensuring the accuracy of the tag detection results.
[0136] It should be noted that, in the several embodiments provided in this application, it should be understood that the disclosed devices, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed between each other can be through some interfaces, or indirect coupling or communication connection between devices or units, and can be electrical, mechanical, or other forms.
[0137] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0138] The above description is merely a preferred embodiment of this application and is not intended to limit this application. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this application should be included within the protection scope of this application.
Claims
1. A groove-type label detection device, characterized in that, It includes a light-emitting unit, a receiving unit, and a control unit connected to the light-emitting unit and the receiving unit; The control unit is equipped with a timer, and the first output channel of the timer is connected to the light-emitting unit to generate a pulse signal that drives the light-emitting unit to emit light pulses; The second output channel of the timer is connected to the receiving unit and is used to control the receiving unit to sample the light pulse at a preset time to obtain a received signal. The control unit is configured to process the received signal in a single-pulse detection mode under default conditions. Furthermore, when an anomaly is detected in the single-pulse detection mode, the system switches to a multi-pulse detection mode to process the received signal. The processing of the received signal includes: Obtain a preset judgment benchmark corresponding to the current detection mode. The preset judgment benchmark includes an amplitude benchmark range, a threshold benchmark, and a waveform feature benchmark. When the received signal meets the corresponding preset judgment benchmark, output the corresponding detection result.
2. The grooved label detection device as described in claim 1, characterized in that, The control unit is equipped with a DMA controller, which is connected to the first output channel of the timer. The DMA controller is used to receive the flip signal output by the first output channel, and adjust the output flip time of the first output channel according to the flip signal to generate the pulse signal with preset waveform characteristics. The preset waveform features include the single-peak feature corresponding to the single-pulse detection mode and the multi-peak feature corresponding to the multi-pulse detection mode.
3. The grooved label detection device as described in claim 2, characterized in that, The control unit is also provided with an analog-to-digital converter, which is connected to the second output channel of the receiving unit and the timer; The second output channel of the timer is used to output a trigger signal at a preset time to control the analog-to-digital converter to digitally sample the analog signal output by the receiving unit to obtain the received signal; The DMA controller is also connected to the analog-to-digital converter and is used to store the received signal into a memory after the analog-to-digital converter has completed sampling.
4. The grooved label detection device as described in claim 2, characterized in that, The acquisition of the preset judgment criteria corresponding to the current detection mode includes: The detection object is placed between the light-emitting unit and the receiving unit; the detection object includes a backing paper and several labels on the backing paper, the backing paper having break lines or being opaque; The object to be detected is moved between the light-emitting unit and the receiving unit to obtain multiple sample values; the multiple sample values include a first type of sample value collected after the light pulse emitted by the light-emitting unit passes through the backing paper, and a second type of sample value collected after the light pulse passes through the tag; The maximum value among the first type of sampled values and the second type of sampled values is determined as the first peak value and the second peak value, respectively. The amplitude reference range of the invalid tag signal is determined based on the first peak value and the allowable fluctuation range, and the amplitude reference range of the valid tag signal is determined based on the second peak value and the allowable fluctuation range; wherein, the amplitude reference range includes the amplitude reference range of the invalid tag signal and the amplitude reference range of the valid tag signal. And, the threshold benchmark is determined based on the first peak value and the second peak value.
5. The slotted label detection device as described in claim 4, characterized in that, The threshold benchmark is the average of the first peak value and the second peak value; and / or, The permissible fluctuation range is ±5%.
6. The slotted label detection device as described in claim 4, characterized in that, The step of obtaining the preset judgment criteria corresponding to the current detection mode also includes: The single-peak feature is used as the waveform feature reference for the single-pulse detection mode, and the multi-peak feature is used as the waveform feature reference for the multi-pulse detection mode.
7. The grooved label detection device as described in claim 6, characterized in that, In the single-pulse detection mode, the received signal conforms to the corresponding preset judgment criteria, including: The waveform of the received signal conforms to the single-peak characteristic; Furthermore, when the amplitude of the received signal is greater than the threshold reference, the amplitude of the received signal is within the range of the invalid tag signal amplitude reference; when the amplitude of the received signal is less than the threshold reference, the amplitude of the received signal is within the range of the valid tag signal amplitude reference.
8. The grooved label detection device as described in claim 6, characterized in that, In the multi-pulse detection mode, the received signal conforms to the corresponding preset judgment criteria, including: The waveform of the received signal conforms to the multi-peak characteristic; Furthermore, for each pulse peak in the received signal, when the amplitude of the pulse peak is greater than the threshold reference, the amplitude of the pulse peak is within the range of the invalid tag signal amplitude reference. When the amplitude of the pulse peak is less than the threshold reference, the amplitude of the pulse peak is within the range of the effective tag signal amplitude reference.
9. The slotted label detection device as described in claim 1, characterized in that, The detected anomaly includes: the number of output jumps of the received signal per unit time exceeds a preset threshold.
10. A method for detecting slotted labels, applied to the slotted label detection apparatus as described in any one of claims 1 to 9, characterized in that, Includes the following steps: The pulse signal that drives the light-emitting unit to emit light pulses is generated through the first output channel of the timer; The receiving unit is controlled by the second output channel of the timer to sample the light pulse at a preset time to obtain the received signal; By default, the received signal is processed in single-pulse detection mode; When an anomaly is detected in the single-pulse detection mode, the system switches to multi-pulse detection mode to process the received signal. The processing of the received signal includes: Obtain a preset judgment benchmark corresponding to the current detection mode. The preset judgment benchmark includes an amplitude benchmark range, a threshold benchmark, and a waveform feature benchmark. When the received signal meets the corresponding preset judgment benchmark, output the corresponding detection result.