Methods for obtaining printer consumable parameters and related equipment
By collecting the detection signal sequence during paper feeding in a thermal label printer, the consumable type and size parameters are automatically identified, solving the problem of complex and error-prone manual settings by users, and improving the user experience and accuracy.
Patent Information
- Application Number
- CN202611515400.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-28
- Publication Date
- 2026-11-17
AI Technical Summary
In existing technologies, thermal label printers cannot automatically identify key parameters such as paper type, face paper height, and gap height when using non-standard label consumables, making manual settings complex and prone to errors, thus affecting the user experience.
By driving the paper feed and collecting the detection signal sequence, the physical characteristics of the consumables are reflected by photoelectric sensors, automatically identifying the consumable type and size parameters, eliminating the need for manual settings by the user.
It enables the automatic acquisition of consumable parameters without the need for external identifiers, improving the user experience, reducing the risk of errors, and saving users' operation time.
Smart Images

Figure CN123104254A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of label printer technology, and in particular to a method for obtaining printer consumable parameters and related equipment. Background Technology
[0002] Labels refer to the text, graphic symbols, and all explanatory materials on a product. Labels are widely used in supermarkets and retail, industrial production, express delivery, clothing, office management, and other scenarios. Examples include price tags, product description labels, shelf labels, barcode labels, clothing labels, document labels, archive labels, labels for various items and stationery, and express delivery slips.
[0003] In existing technologies, when thermal label printers use non-standard label consumables (which refer to label consumables with RFID chips but not compatible with the label printer, or label consumables without RFID chips), the printer cannot predict the key parameters of the consumables, such as paper type (gap paper, transparent paper, black label paper, continuous paper), face paper height, and gap height. Manually setting these parameters is complex and error-prone, impacting the user experience. Summary of the Invention
[0004] This application provides a method and related apparatus for obtaining printer consumable parameters, solving the problem that manually setting these parameters is complex, error-prone, and negatively impacts user experience in the prior art. The above technical solution is as follows: Firstly, embodiments of this application provide a method for obtaining printer consumable parameters. In response to the consumable parameter acquisition signal, the current consumable is driven to feed paper, and the detection signal sequence of the current consumable during paper feeding is collected; the detection signal sequence is used to reflect the physical characteristics of the current consumable. The physical characteristic parameters of the current consumable are determined based on the detection signal sequence.
[0005] Secondly, embodiments of this application provide a device for acquiring printer consumable parameters, the device comprising: The driving module is used to drive the current consumable to feed paper in response to the consumable parameter acquisition signal, and to collect the detection signal sequence of the current consumable during paper feeding; the detection signal sequence is used to reflect the physical characteristics of the current consumable. The determination module is used to determine the physical characteristic parameters of the current consumable based on the detection signal sequence.
[0006] Thirdly, embodiments of this application provide a device for acquiring printer consumable parameters, including: a processor and a memory; wherein, the memory stores a computer program, and the processor executes the computer program to implement the method steps provided by the first aspect or any possible implementation of the first aspect of this application.
[0007] Fourthly, embodiments of this application provide a computer storage medium storing multiple instructions, which are adapted to be loaded by a processor and executed by the method steps provided in the first aspect of the embodiments of this application or any possible implementation thereof.
[0008] Fifthly, embodiments of this application provide a computer program product, including a computer program; when the computer program is executed by a processor, it implements the method steps provided by the first aspect of the embodiments of this application or any possible implementation of the first aspect.
[0009] The aforementioned method, apparatus, equipment, label printer, and storage medium for acquiring printer consumable parameters actively trigger paper feeding in response to a consumable parameter acquisition signal. During paper feeding, a sequence of detection signals is continuously acquired. This signal sequence reflects the differences in the reflection or transmission characteristics of light signals by different areas of the consumable (face paper, gaps, black mark). Different physical structures of paper areas correspond to different signal response values. During paper feeding, the signal value changes periodically with the paper structure. This change pattern itself implies the type and size information of the consumable. By analyzing this signal sequence and correlating the fluctuations in the signal waveform with the periodic characteristics of the paper structure, the physical characteristic parameters of the consumable can be deduced in reverse. This process does not rely on any external identifiers or require user-preset parameters. Through signal acquisition and pattern analysis, the automatic acquisition of consumable parameters is achieved, eliminating the need for manual settings by the user and the associated error risks. Attached Figure Description
[0010] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0011] Figure 1 A schematic diagram of a printer consumables parameter acquisition system according to an embodiment of this application is shown; Figure 2 A flowchart illustrating a method for obtaining printer consumable parameters according to an embodiment of this application is shown; Figure 3 A flowchart illustrating a method for obtaining printer consumable parameters according to an embodiment of this application is shown; Figure 4 A flowchart illustrating a method for obtaining printer consumable parameters according to an embodiment of this application is shown; Figure 5 A flowchart illustrating a method for obtaining printer consumable parameters according to an embodiment of this application is shown; Figure 6 A block diagram of a device for acquiring printer consumable parameters according to an embodiment of this application is shown; Figure 7 A schematic diagram of the structure of a computer system suitable for implementing the electronic device of the present application is shown. Detailed Implementation
[0012] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0013] In the description of this application, it should be understood that the terms "first," "second," etc., are used for descriptive purposes only and should not be construed as indicating or implying relative importance. In the description of this application, it should be noted that, unless otherwise expressly specified and limited, "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or device that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to these processes, methods, products, or devices. Those skilled in the art can understand the specific meaning of the above terms in this application based on the specific circumstances. Furthermore, in the description of this application, unless otherwise stated, "multiple" means two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist; for example, A and / or B can represent: A alone, A and B simultaneously, and B alone. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship.
[0014] Figure 1 A schematic diagram of an exemplary system architecture to which the technical solutions of the embodiments of this application can be applied is shown.
[0015] The system architecture may include terminal devices (such as...) Figure 1The device shown includes one or more of a smartphone 101, tablet 102, and portable computer 103 (which could also be a desktop computer, etc.), a network 104, and a server 105. The network 104 serves as a medium for providing a communication link between the terminal device and the server 105. The network 104 can include various connection types, such as wired communication links, wireless communication links, etc.
[0016] It should be understood that Figure 1 The number of terminal devices, networks, and servers shown is merely illustrative. Depending on implementation needs, there can be any number of terminal devices, networks, and servers. For example, server 105 could be a server cluster composed of multiple servers.
[0017] Users can use terminal devices to interact with server 105 via network 104 to receive or send messages, etc. Server 105 can be a server that provides various services. For example, users can use terminal device 103 (or terminal device 101 or 102) to upload consumable parameter acquisition signals to server 105. Server 105 can respond to the consumable parameter acquisition signal, drive the current consumable to feed paper, and collect the detection signal sequence of the current consumable during paper feeding; the detection signal sequence is used to reflect the physical characteristics of the current consumable; and the physical characteristic parameters of the current consumable are determined based on the detection signal sequence.
[0018] It should be noted that the method for obtaining printer consumable parameters provided in this application embodiment can be executed by server 105, and correspondingly, the device for obtaining printer consumable parameters is generally located in server 105. However, in other embodiments of this application, the terminal device may also have similar functions to the server, thereby executing the printer consumable parameter acquisition scheme provided in this application embodiment.
[0019] Next, combine Figure 1 This application describes a method for obtaining printer consumable parameters according to an exemplary embodiment. Please refer to [link / reference needed] for details. Figure 2 The example illustrates a flowchart of a method for obtaining printer consumable parameters provided in an embodiment of this application. Figure 2 As shown, the method for obtaining the printer consumable parameters includes the following steps: S10, in response to the consumable parameter acquisition signal, drive the current consumable to feed paper, and collect the detection signal sequence of the current consumable during paper feeding; the detection signal sequence is used to reflect the physical characteristics of the current consumable; S20, determine the physical characteristic parameters of the current consumable based on the detection signal sequence.
[0020] This application provides a method for obtaining printer consumable parameters. This method, in response to a consumable parameter acquisition signal, drives the current consumable to feed paper and collects a detection signal sequence. Then, based on the detection signal sequence, it determines the physical characteristic parameters of the current consumable. This enables the printer to automatically identify the consumable type and obtain key dimension parameters even when the consumable does not have an RFID tag, without requiring manual user settings. The technical solutions of each claim are described in detail below.
[0021] Specifically, the method for obtaining the defined printer consumable parameters includes the steps of driving the current consumable to feed paper in response to the consumable parameter acquisition signal, collecting the detection signal sequence of the current consumable during paper feeding, and determining the physical characteristic parameters of the current consumable based on the detection signal sequence.
[0022] The consumable parameter acquisition signal is a start signal used to trigger the printer to automatically acquire the physical characteristic parameters of the currently installed consumables. This signal can be triggered in various ways, including by the user pressing a physical button at a specific rhythm, or it can be automatically generated when the printer detects that consumables without RFID tags have been loaded. Upon receiving this signal, the printer's motor rotates, which in turn moves the label paper along the paper feed path via the rubber roller, thus executing the paper feeding action.
[0023] During the paper feeding process, sensors installed in the paper feeding channel continuously collect detection signals. This detection signal sequence refers to the sequence of signal values collected by the sensors in chronological order during paper feeding, and this sequence is used to reflect the physical characteristics of the current consumable.
[0024] Specifically, a photoelectric sensor can emit light signals to the label paper and receive reflected or transmitted light, converting it into an electrical signal value. Since different areas of the label paper (face paper, gaps, black mark, and transparent area) have different light reflection and transmission characteristics, the signal value output by the sensor will change with the paper feed position. In this way, the collected analog signal can be converted into a digital signal and stored in chronological order as a detection signal sequence.
[0025] Furthermore, in order to identify the specific physical characteristics of the consumables, it is necessary to analyze and process the acquired detection signal sequence.
[0026] The physical characteristic parameters include consumable type and size parameters. Consumable types include gap paper (label paper with gaps between the face paper), black label paper (label paper with black markings printed on the back of the backing paper), transparent paper (label paper with strong light transmission), and continuous paper (continuous roll paper without face paper gaps). Size parameters include face paper height (length of a single label along the paper feeding direction) and gap height (length of the gap between two adjacent face papers). After the paper feeding is completed, the reflection sampling data and transmission sampling data can be determined, the paper type can be judged, a dividing line that can distinguish the paper surface and the gap can be calculated, and finally the length of the label and the gap can be calculated.
[0027] In this embodiment, driving the current consumable paper feed includes: Drive the current consumable to move the paper in a single direction for a preset distance.
[0028] In this embodiment, in response to the consumable parameter acquisition signal, the drive motor causes the label paper to travel a preset distance in the forward or reverse paper output direction, thus ensuring that the consumable paper is output in a single direction.
[0029] The preset distance is a pre-configured fixed length value, such as 100 mm or 200 mm. During the paper feeding at the preset distance, a detection signal sequence is continuously acquired. This paper feeding method is simple to implement, has low control complexity, and low development and debugging costs. It is suitable for most conventional consumables. For consumables with moderate label length and clear paper structure characteristics, unidirectional paper feeding can efficiently complete all tasks.
[0030] In this embodiment, driving the current consumable paper feed includes: Drive the current consumable to continuously feed paper in a single direction, and during the paper feeding process, detect whether the collected detection signal sequence contains data that can cover the complete structural cycle corresponding to the current consumable; If so, then stop the paper feed; If not, continue with the step of driving the current consumable to continuously feed paper in a single direction.
[0031] In this embodiment, the current consumable is driven to continuously feed paper in a single direction, and the collected detection signal sequence is detected in real time during the paper feeding process to determine whether the detection signal sequence contains data that can cover the complete structural cycle corresponding to the current consumable.
[0032] Here, the structural cycle refers to a complete repeating unit of the label paper. For example, for gap paper, a structural cycle includes a face sheet plus a gap; for black label paper, a structural cycle includes a face sheet plus a black label. The data of a complete structural cycle means that the detection signal sequence contains at least a complete face sheet area and a complete positioning mark area, so that the size parameters can be accurately calculated.
[0033] If the detection signal sequence already contains data that covers the complete structural cycle, the paper feed is terminated and the consumable is no longer driven to move. If the detection signal sequence does not yet contain data that covers the complete structural cycle, the process of driving the current consumable to feed continuously in a single direction continues until enough data is collected. This paper feeding method changes the paper feeding distance from a fixed preset value to a data-driven dynamic value. That is, when the paper label is short and the cycle is small, a small amount of paper feeding is enough to obtain complete data. The early termination mechanism significantly saves paper feeding for small-sized label consumables, reduces paper waste, and shortens the paper testing time.
[0034] In this embodiment, driving the current consumable paper feed includes: Drive the current consumable to feed paper along the first direction; When the detection signal sequence collected during the paper feeding of the current consumable in the first direction contains data that can cover the complete structural cycle corresponding to the current consumable, the current consumable is driven to switch to paper feeding in the second direction; the first direction is either forward paper feeding or reverse paper feeding, and the second direction is the direction opposite to the first direction.
[0035] In this embodiment, in addition to the above-mentioned method of driving the current consumable to feed paper in a single direction, the current consumable can also be driven to feed paper in a first direction, and the collected detection signal sequence is continuously detected during the paper feeding process. When the collected detection signal sequence is detected to contain data that can cover the complete structural cycle corresponding to the current consumable, the paper feeding in the first direction is stopped, and the current consumable is driven to switch to feeding paper in the second direction. The above paper feeding method detects the collected detection signal sequence in real time, and when the sequence is detected to contain data that can cover the complete structural cycle, the paper feeding in the first direction is immediately terminated and the paper feeding in the second direction is switched, thereby changing the actual paper feeding length in the first direction from a preset fixed value to a variable dynamically determined by the real-time data acquisition results.
[0036] The first direction is either forward paper feeding or reverse paper feeding, and the second direction is the opposite direction to the first direction.
[0037] It should be noted that this combination of first and second direction paper feeding control is particularly suitable for printers with limited installation space and obstructions in front of the paper output tray. In traditional unidirectional long-distance paper feeding, the filament must extend continuously in a single direction, with a large portion of the paper exposed outside the machine. After paper measurement, the paper must be reversed to return the filament to the printing start position. This results in the total paper feeding journey including both the paper extension segment and the pre-printing return segment, leading to a longer processing time.
[0038] In this embodiment, by advancing the paper return action to the paper measurement stage, that is, immediately switching to the second direction paper feed after the first direction paper feed has collected complete structural cycle data, the consumables begin to move in the reverse direction during the paper measurement process. When the paper measurement is completed, the consumables are close to or have reached the starting position, thereby eliminating the time overhead of separate paper return before printing and shortening the overall time from paper measurement to printing start.
[0039] At the same time, this method controls the movement range of consumables within a limited physical area, avoiding excessive paper protrusion outside the machine and effectively reducing the risk of wrinkles, contamination, or paper jams caused by excessive paper protrusion.
[0040] In addition, the same section of consumable is scanned twice by the sensor during the paper feeding process in the first and second directions. The signal sequences collected in the two tests come from the same physical section of the paper but in opposite directions. The two measurement data can corroborate and supplement each other. Compared with single unidirectional acquisition, the reliability and consistency of the signal data are improved, providing a more sufficient sample basis for subsequent signal analysis and parameter calculation. This paper feeding method changes the paper feeding distance from a preset fixed value to a data-driven dynamic value.
[0041] In this embodiment, the printer includes physical buttons; the consumable parameter acquisition signal is triggered by the user pressing the physical button a preset number of times within a preset time window; the preset number of times corresponds to a different pressing rhythm for the physical button than the pressing rhythm for the paper feed operation and the long press to turn off operation.
[0042] In this embodiment, the printer includes one or more physical buttons, and the consumable parameter acquisition signal is triggered by the user pressing the physical button a preset number of times within a preset time window.
[0043] Specifically, the pressing rhythm corresponding to the preset number of times is different from the pressing rhythm corresponding to the paper feed operation and the long press power off operation. For example, the pressing paper feed operation corresponds to a short press, the long press power off operation corresponds to a long press for 3 seconds, and the consumable parameter acquisition signal corresponds to pressing 3 times in 2 seconds. The pressing rhythms of the three operations are different.
[0044] This means that on a label printer with minimal hardware, three different functions are triggered using only a single physical button. The instructions are distinguished by the difference in timing rather than the number of buttons, which reduces hardware costs and the learning curve, while effectively preventing accidental triggering in daily use.
[0045] In this embodiment, the method further includes: When the printer detects that the consumable compartment cover changes from an open state to a closed state, and the printer's consumable detection sensor detects that consumables have been placed in the printer, and the printer fails to read the RFID tag of the placed consumables, a consumable parameter acquisition signal is generated.
[0046] In this embodiment, when the printer's consumable compartment cover changes from an open state to a closed state, and the printer's consumable detection sensor detects that consumables have been placed in the printer, and the printer fails to read the RFID tag of the placed consumables, a consumable parameter acquisition signal is automatically generated. If the printer determines that the currently loaded label consumables are non-standard label consumables when all three conditions are met, the consumable parameter acquisition process is automatically started without manual triggering by the user.
[0047] It should be noted that the non-standard label consumables refer to consumables for which the label printer cannot read the physical characteristic parameters of the label consumables by recognizing the RFID tag. These label consumables mainly include chipless consumables, chip-failed consumables, and non-genuine chip consumables.
[0048] Among them, chip-free consumables refer to label consumables that do not contain any radio frequency identification chips or electronic tags. These consumables are the most traditional thermal transfer / thermal label paper, which consists purely of a media layer and adhesive and does not have any data storage or wireless communication capabilities.
[0049] Among them, chip failure consumables refer to consumables that, although they contain radio frequency identification chips, have chips that are physically damaged due to static electricity or bending during antenna manufacturing, packaging processes, or transportation and storage, causing the printer's radio frequency antenna to be unable to wake up the chip, resulting in unsuccessful reading.
[0050] Non-genuine chip consumables refer to consumables that have RFID chips, but the manufacturer identification code (such as EPC / TID area data) stored in the chip does not match the encryption key or supplier prefix preset in the printer firmware. That is, although the physical signal can be read, it cannot pass the printer's identity authentication, and it is determined that such label consumables are in a state of invalid information reading.
[0051] In summary, regarding the aforementioned situation with non-standard label consumables (where the consumables are not defective and unusable), the printer does not need to report an error or stop. Instead, it automatically downgrades to acquiring visual / physical parameters. That is, when the consumable type, length, and grid coordinates cannot be read from the chip, the printer uses optical sensors (detecting label gaps / black marks) and stepper motor feedback (measuring label paper feed length) to deduce the consumable parameters. The printer temporarily stores the measured label length, print density offset, and paper feed speed compensation value in random access memory. At this point, even with non-genuine chip consumables, the printer can ensure that the printed content (such as barcodes / text) falls precisely within the effective label area and does not deviate from the paper by calibrating the paper coefficient of the non-standard medium. Therefore, users do not need to manually select a non-standard mode or input the consumable length from the menu, greatly reducing the risk of printhead wear and paper jams caused by selecting incorrect media parameters.
[0052] In this embodiment, the method further includes: When the printer detects that the consumable compartment cover changes from an open state to a closed state, and the printer's consumable detection sensor detects that consumables have been placed in the printer, and the printer fails to read the RFID tag of the placed consumables, and detects a user-triggered consumable parameter acquisition operation, the consumable parameter acquisition signal is generated.
[0053] In this embodiment, a consumables compartment cover is closed when the printer detects that consumables have been inserted into the printer, the printer's consumables detection sensor detects that consumables have been inserted, the printer fails to read the RFID tag indicating that consumables have been inserted, and a user-triggered consumables parameter acquisition operation is detected. That is, in addition to meeting the automatic detection conditions, the user also needs to actively trigger the operation by pressing a button. Paper feeding requires 4 to 5 sheets, so each paper feed requires manual rewinding. The user needs to choose whether to perform a paper feed to avoid paper waste.
[0054] In this embodiment, the paper feed of the consumable is actively triggered in response to the consumable parameter acquisition signal, and a detection signal sequence is continuously acquired during the paper feed. This signal sequence reflects the differences in the reflection or transmission characteristics of light signals by different areas of the consumable (face paper, gaps, black mark), and different physical structures of the paper area correspond to different signal response values. During the paper feed, the signal value changes periodically with the paper structure. This change pattern itself implies the type and size information of the consumable. By analyzing this signal sequence and corresponding the fluctuation pattern in the signal waveform with the periodic characteristics of the paper structure, the physical characteristic parameters of the consumable can be deduced in reverse. It does not rely on any external identifiers or user preset parameters. The automatic acquisition of consumable parameters is achieved through signal acquisition and pattern parsing, eliminating the manual setting by the user and the error risks it introduces.
[0055] Specifically, in some embodiments, the specific implementation of step S20 can be found in [reference needed]. Figure 3 . Figure 3 It is based on Figure 2 The detailed description of step S20 in the method for obtaining printer consumable parameters shown in the corresponding embodiment indicates that step S20 may include the following steps: The detection signal sequence includes a reflection signal sequence and a transmission signal sequence; the reflection signal sequence is used to reflect the reflection characteristics of the current consumable surface; the transmission signal sequence is used to reflect the transmission characteristics of the current consumable. S210, determine the consumable type of the current consumable based on the reflected signal sequence and the transmitted signal sequence, and determine a judgment threshold for distinguishing between the face paper and the positioning mark based on the reflected signal sequence and the transmitted signal sequence; S220, calculate the size parameters corresponding to the current consumable based on the consumable type and the determination threshold.
[0056] In this embodiment, the detection signal sequence includes a reflection signal sequence and a transmission signal sequence. The reflection signal sequence reflects the reflection characteristics of the current consumable surface. The transmission signal sequence reflects the transmission characteristics of the current consumable. The printer is equipped with both a reflection sensor and a transmission sensor. The reflection sensor detects the light signal reflected from the consumable surface and outputs a reflection signal sequence, which reflects the reflection characteristics of the consumable surface, such as high reflectivity of the face paper, low reflectivity of the slits, and extremely low reflectivity of the black mark. The transmission sensor detects the light signal passing through the consumable and outputs a transmission signal sequence, which reflects the transmission characteristics of the consumable, such as low transmittance of the face paper, high transmittance of the slits, and relatively high transmittance of the transparent paper.
[0057] Furthermore, the type of consumable can be determined by combining the reflected and transmitted signal sequences. That is, since different consumables exhibit different combinations of signal characteristics in both reflection and transmission dimensions, joint analysis can accurately distinguish between gap paper, black mark paper, and transparent paper. For example, the gap region shows a decrease in reflected signal and an increase in transmitted signal, with opposite signs; the black mark region shows a significant decrease in reflected signal and a slight decrease or no change in transmitted signal, with the same sign but a larger ratio; the transparent paper region shows an increase in both reflected and transmitted signals, with the same sign and a similar ratio.
[0058] In addition, the determination threshold for distinguishing between face paper and positioning marks can be determined based on the reflected signal sequence and the transmitted signal sequence.
[0059] The judgment threshold is a signal value used to distinguish the detection signal into the paper area and the non-paper area, namely the positioning mark area such as the gap and the black mark. After determining the consumable type and the judgment threshold, a detection channel with higher contrast is selected according to the consumable type. For example, the transmission channel is selected for gap paper and the reflection channel is selected for black mark paper. The judgment threshold of the channel is used to segment the paper area and the positioning mark area from the signal sequence, and then the size parameters are calculated.
[0060] In this embodiment, determining the threshold for distinguishing between tissue paper and positioning markers based on the reflected signal sequence and the transmitted signal sequence includes: Multiple reflection fluctuation segments with fluctuations are identified from the reflected signal sequence, and a reflection judgment threshold is determined based on the mean of the maximum reflection signal and the mean of the minimum reflection signal corresponding to each of the multiple reflection fluctuation segments. Multiple transmission fluctuation segments with fluctuations are identified from the transmission signal sequence, and a transmission determination threshold is determined based on the mean of the maximum transmission signal and the mean of the minimum transmission signal corresponding to each of the multiple transmission fluctuation segments.
[0061] In this embodiment, multiple reflection fluctuation segments with fluctuations are identified from the reflection signal sequence, and a reflection judgment threshold is determined based on the mean of the maximum reflection signal and the mean of the minimum reflection signal corresponding to each of the multiple reflection fluctuation segments.
[0062] Specifically, for each reflection fluctuation segment, the maximum and minimum reflection signal values within that segment are determined, and the average of the maximum and minimum reflection signal values across all reflection fluctuation segments is calculated. The reflection determination threshold is set to the midpoint between the average maximum and minimum reflection signal values.
[0063] Similarly, multiple transmission fluctuation segments with fluctuations are identified from the transmission signal sequence, and the transmission judgment threshold is determined based on the mean of the maximum transmission signal and the mean of the minimum transmission signal corresponding to each of the multiple transmission fluctuation segments. Then, based on the threshold calculation method of multi-sample statistics, the abnormal deviation that may exist in a single edge is effectively eliminated. The data fusion of multiple periods smooths out the extreme value shift caused by accidental factors such as local dirt and indentation, so that the calculated judgment threshold has statistical representativeness and stability.
[0064] In this embodiment, calculating the size parameters corresponding to the current consumable based on the consumable type and the determination threshold includes: The target detection channel is determined based on the consumable type; the target detection channel is the detection channel with higher contrast for the size parameters of the current consumable corresponding to the consumable type, which is either the reflection detection channel or the transmission detection channel. The moment when the target detection signal value in the target detection signal sequence corresponding to the target detection channel crosses the target detection channel and is used to determine the target judgment threshold for distinguishing between face paper and positioning mark is determined as the state switching moment. The size parameters corresponding to the current consumable are calculated based on the number of motor steps of the printer between adjacent state transition times.
[0065] In this embodiment, the target detection channel is determined based on the type of consumable. The target detection channel is the one that provides higher contrast for the dimensional parameters of the current consumable, either the reflection detection channel or the transmission detection channel. For example, for gap paper, the transmission detection channel provides higher contrast for detecting the gap area, so the transmission detection channel is selected as the target detection channel; for black mark paper, the reflection detection channel provides higher contrast for detecting the black mark, so the reflection detection channel is selected as the target detection channel.
[0066] Specifically, the moment when the target detection signal value in the target detection signal sequence corresponding to the target detection channel exceeds the target judgment threshold corresponding to the target detection channel is determined as the state switching moment. This state switching moment refers to the moment when the detection signal switches from the paper area to the non-paper area. Thus, the size parameters corresponding to the current consumable can be calculated based on the number of motor steps of the printer between adjacent state switching moments.
[0067] It should be noted that the type determination result is linked to the measurement channel selection based on optical contrast. Instead of using a fixed sensor for measurement, the channel with the highest signal-to-noise ratio is dynamically selected according to the physical characteristics of the paper. This ensures that the optimal measurement accuracy can be obtained for each type of paper from the measurement principle.
[0068] In this embodiment, determining the state switching time as the moment when the target detection signal value in the target detection signal sequence corresponding to the target detection channel crosses the target determination threshold corresponding to the target detection channel includes: If, in the target detection signal sequence corresponding to the target detection channel, at least M target detection signals are located on the same side of the target determination threshold corresponding to the target detection channel among the N consecutive target detection signals after the target time, the target time is determined as the state switching time; the target time is the time when the target detection signal value in the target detection signal sequence crosses the target determination threshold.
[0069] In this embodiment, in the target detection signal sequence corresponding to the target detection channel, the moment when the target detection signal value first crosses the target determination threshold is recorded as the target moment. However, due to factors such as burrs on the paper edge, local dirt on the surface, sensor signal noise, or ambient light interference, the signal may experience a brief rebound or jitter at the boundary position that crosses the threshold. That is, the signal value jumps back and forth near the threshold instead of switching cleanly from one side to the other. If the moment when the threshold is first crossed is directly determined as the state switching moment, such instantaneous noise may lead to misjudgment of the boundary position, thereby affecting the measurement accuracy of the paper height or gap height.
[0070] To avoid the above problems, this embodiment sets a confirmation window after the target time. In the confirmation window, it checks whether there are at least M target detection signals on the same side of the target determination threshold among the N consecutive target detection signals after the target time.
[0071] Where N and M are preset positive integers, and M is less than or equal to N. For example, N can be set to 3 and M can be set to 2, which means that in the three consecutive sampling points after the target time, at least two sampling points have signal values that remain on the same side of the threshold before the target time is confirmed as a valid state transition time.
[0072] It should be noted that this judgment mechanism uses the statistical consistency of multiple sampling points to filter out signal jitter. Instantaneous noise usually manifests as isolated, discontinuous jumps, which cannot form a consistent trend in multiple consecutive sampling points. In contrast, the real physical boundary switching will cause the signal to remain stable on the same side of the threshold for a period of time. By requiring at least M points out of N consecutive sampling points to meet the same side condition, false out-of-bounds events caused by local spikes, dirt, or random noise can be effectively identified and eliminated, while retaining the out-of-bounds moment corresponding to the real boundary.
[0073] In this embodiment, by simultaneously acquiring reflection and transmission signal sequences, the physical characteristics of the consumables are characterized from both reflection and transmission dimensions. Different paper types exhibit fundamentally different signal combination patterns in both reflection and transmission dimensions: the face paper area has strong reflection and weak transmission, the gap area has weak reflection and strong transmission, the black mark area has extremely weak reflection and weak transmission, and the transparent paper area has weak reflection and relatively strong transmission. This dual-dimensional combination difference is an inherent property of the paper's physical structure. By jointly analyzing the reflection and transmission signal sequences, a deterministic mapping from signal combination patterns to paper types can be established. The judgment threshold used to distinguish between the face paper and the positioning mark is a necessary boundary parameter for dividing the continuous signal into discrete segments. Only by selecting the optimal channel and optimal threshold corresponding to the current consumable type after the type determination is completed can the state switching time be accurately located, and the size parameters be calculated, thus providing accurate quantitative basis for consumable type identification and size parameter acquisition.
[0074] Specifically, in some embodiments, the specific implementation of step S20 can also be found in [the relevant literature]. Figure 4 . Figure 4 It is based on Figure 2 In accordance with the detailed description of step S20 in the method for obtaining printer consumable parameters shown in the corresponding embodiment, step S20 may further include the following steps: In this embodiment, determining the physical characteristic parameters of the current consumable based on the detection signal sequence includes: S230, Detect whether there is a fluctuation segment in the detection signal sequence whose signal change amplitude exceeds a preset flatness determination threshold; the detection signal sequence includes a reflection signal sequence and / or a transmission signal sequence; the reflection signal sequence is used to reflect the reflection characteristics of the current consumable surface; the transmission signal sequence is used to reflect the transmission characteristics of the current consumable. S240, if not, determine that the current consumable is continuous paper.
[0075] In this embodiment, the detection signal sequence includes a reflection signal sequence and / or a transmission signal sequence. The physical meaning of this signal sequence is that when the sensor scans through different areas of the paper, the signal value fluctuates accordingly as the paper feed position changes because the reflection or transmission characteristics of the incident light are essentially different due to the structure such as the face paper, gaps, and black marks.
[0076] The detection signal sequence is scanned traversally to calculate the signal difference between adjacent sampling points or to calculate the amplitude of signal change within a preset local window. The preset flatness judgment threshold is a pre-configured signal change amplitude threshold, which characterizes whether the signal has a physical structural correlation change or small random fluctuations caused by sensor noise or ambient light fluctuations. That is, when the signal change amplitude is lower than the threshold, it is regarded as system noise or baseline drift and does not constitute an effective fluctuation segment. Only when the change amplitude exceeds the threshold is it considered as an effective signal fluctuation caused by paper structure change.
[0077] If there are no segments in the entire detection signal sequence where the signal change amplitude exceeds the preset flatness judgment threshold, that is, the reflected signal and the transmitted signal remain stable throughout the entire paper feeding interval without any effective fluctuations, then the current consumable is determined to be continuous paper.
[0078] Specifically, the characteristic that distinguishes continuous paper from gap paper, black mark paper, and transparent paper is that continuous paper is a uniform medium with no structural changes along the paper feeding direction. That is, there is no gap between the face paper and the back paper, no black mark on the back of the back paper, and the overall paper material is consistent. The light transmittance and reflectivity remain constant throughout the paper feeding process. Therefore, continuous paper will not produce effective fluctuation segments in the reflection signal sequence and the transmission signal sequence. Thus, it is only necessary to perform a stability check on the signal of a single channel to complete the judgment.
[0079] It should be noted that, compared to the multi-step processing flow required for non-continuous paper, which involves matching reflection and transmission fluctuation segments, generating reference data pairs, comparing reflection and transmission fluctuation values, and calculating thresholds, this method significantly reduces the computational steps, avoids unnecessary dual-channel joint analysis, optimizes the decision path, saves processing resources, and shortens the overall paper testing time. Furthermore, this pre-processing diversion excludes the special case of continuous paper at the entry point of the complete type determination process, ensuring that subsequent complex determination processes are only performed on non-continuous paper, thus improving the overall computational efficiency of the process.
[0080] In this embodiment, after detecting whether there is a fluctuation segment in the detection signal sequence whose signal change amplitude exceeds a preset flatness determination threshold, the method further includes: If so, then the current consumable is determined to be non-continuous paper; Identify fluctuating reflection wave segments from the reflected signal sequence and fluctuating transmission wave segments from the transmitted signal sequence; The reflected wave segment and the transmitted wave segment are matched according to their respective physical locations of consumables, and the reflected wave segment and the transmitted wave segment located in the same consumable physical location range are determined as a set of reference data pairs. Calculate the reflection fluctuation value of the reflection fluctuation section and the transmission fluctuation value of the transmission fluctuation section in each set of control data; Based on the comparison results of the corresponding reflection fluctuation value and transmission fluctuation value of the control data in each group, the consumable type of the corresponding paper segment of each group of control data is determined.
[0081] In this embodiment, when a fluctuating segment with a signal change amplitude exceeding a preset flatness determination threshold is detected in the detection signal sequence, it is determined that the current consumable is non-continuous paper, namely, one of gap paper, black mark paper, or transparent paper.
[0082] Among them, the reflected wave section with fluctuation can be identified from the reflected signal sequence, and the transmitted wave section with fluctuation can be identified from the transmitted signal sequence. The wave section refers to the interval where the signal value changes significantly relative to the flat area.
[0083] Furthermore, the reflection fluctuation segment and the transmission fluctuation segment can be matched according to their respective physical locations of consumables. Since the installation positions of the reflection sensor and the transmission sensor in the paper feeding direction may be different, the reflection signal and the transmission signal corresponding to the same physical location may be offset on the time axis. The signals are time-aligned according to the sensor installation position offset, and the reflection fluctuation segment and the transmission fluctuation segment located in the same consumable physical location range are determined as a set of reference data pairs.
[0084] For each set of control data pairs, the reflection fluctuation value of the reflection fluctuation section and the transmission fluctuation value of the transmission fluctuation section are calculated. The reflection fluctuation value can refer to the variation amplitude of the reflected signal within the fluctuation section, and the transmission fluctuation value can refer to the variation amplitude of the transmission signal within the fluctuation section. Therefore, based on the comparison results of the corresponding reflection fluctuation value and transmission fluctuation value of each set of control data pairs, the consumable type of the corresponding paper section of each set of control data pairs can be determined.
[0085] In this embodiment, determining the consumable type for each paper segment based on the comparison results of the corresponding reflection fluctuation value and transmission fluctuation value of each set of control data includes: If the corresponding reflection fluctuation value and transmission fluctuation value of the reference data pair have opposite signs, then the corresponding paper segment of the reference data pair is determined to be gap paper. If the reflection fluctuation value and the transmission fluctuation value of the corresponding reference data pair have the same sign and the ratio of the reflection fluctuation value to the transmission fluctuation value is greater than a preset ratio threshold, then the paper segment corresponding to the reference data pair is determined to be black label paper. If the reflection fluctuation value and the transmission fluctuation value of the reference data pair have the same sign and the ratio of the reflection fluctuation value to the transmission fluctuation value is less than or equal to the preset ratio threshold, then the paper segment corresponding to the reference data pair is determined to be transparent paper.
[0086] In this embodiment, the same or different signs of the reflection fluctuation value and the transmission fluctuation value are judged for each set of control data. The logical basis for this judgment is that the influence mechanism of the positioning marks of different papers on reflected light and transmitted light is essentially different.
[0087] The positioning mark of the gap paper is the hollow gap between the face paper. When the sensor scans to the gap position, the incident light passes directly through the gap to reach the transmission sensor, the transmission signal is enhanced, and the reflection signal is weakened due to the absence of face paper. Therefore, the reflection fluctuation value and the transmission fluctuation value must show opposite signs.
[0088] The positioning mark of the black mark paper is a black mark printed on the back of the base paper. This mark has strong absorption characteristics for incident light and reduces the intensity of reflected and transmitted signals. Therefore, the reflection fluctuation value and the transmission fluctuation value have the same sign relationship. Moreover, the sensitivity of the reflected signal to the black mark is much higher than that of the transmitted signal. The amplitude of the reflection fluctuation value is significantly greater than that of the transmission fluctuation value, and the ratio of the two exceeds the preset ratio threshold.
[0089] The positioning marks of the transparent paper are usually an alternating distribution of transparent and opaque areas. Its transmission characteristics change significantly while its reflection characteristics change relatively gently. The reflection fluctuation value and the transmission fluctuation value also have the same sign relationship. However, the amplitude of the reflection fluctuation value is similar to that of the transmission fluctuation value or the amplitude of the transmission fluctuation value is larger. The ratio between the two does not exceed the preset ratio threshold.
[0090] In summary, by using this two-layer judgment logic—first determining whether the numbers are the same or different to distinguish gap paper from other types, and then comparing the ratio of reflection fluctuation value to transmission fluctuation value under the condition of the same number to distinguish black mark paper from transparent paper—the classification of the three types of non-continuous paper can be completed. This judgment method is entirely based on the optical and physical properties of the paper itself, without the need for a preset classification model, without the need to configure parameter templates for different printer models, and without the need for users to manually input consumable type information. The judgment logic is clear, the amount of calculation is small, and the adaptability is strong.
[0091] Specifically, if the corresponding reflection and transmission fluctuation values of the reference data pair have opposite signs (i.e., one is positive and the other is negative), then the corresponding paper segment of the reference data pair is determined to be gap paper. The waveform characteristics of gap paper are that the surface paper has low transmission and high reflection, while the bottom paper has high transmission and low reflection. The directions of change of the reflected and transmitted signals are opposite, hence the opposite signs of the fluctuation values.
[0092] Specifically, if the reflection fluctuation value and transmission fluctuation value of the reference data pair have the same sign (i.e., both are positive or both are negative), and the ratio of the reflection fluctuation value to the transmission fluctuation value is greater than a preset ratio threshold, then the paper segment corresponding to the reference data pair is determined to be black mark paper. The black marked area of black mark paper has a greater impact on the reflection signal and a relatively smaller impact on the transmission signal, therefore the ratio of the reflection fluctuation value to the transmission fluctuation value is relatively large.
[0093] Specifically, if the reflection and transmission fluctuation values of the reference data pair have the same sign, and the ratio of the reflection to transmission fluctuation values is less than or equal to a preset ratio threshold, then the paper segment corresponding to that reference data pair is determined to be transparent paper. The reflection and transmission signals of transparent paper change in the same direction and their ratios are relatively balanced.
[0094] In this embodiment, determining the consumable type for each paper segment based on the comparison results of the corresponding reflection fluctuation value and transmission fluctuation value of each set of control data includes: Calculate the difference between the corresponding reflection fluctuation value and the transmission fluctuation value of the reference data pair; If the difference is positive and greater than a preset difference threshold, then the paper segment corresponding to the comparison data pair is determined to be black label paper. If the difference is negative and its absolute value is greater than the preset difference threshold, then the paper segment corresponding to the comparison data pair is determined to be gap paper. If the absolute value of the difference is less than or equal to the preset difference threshold, and the reflection fluctuation value and transmission fluctuation value of the corresponding control data pair are both greater than the preset base threshold, then the paper segment corresponding to the control data pair is determined to be transparent paper.
[0095] In this embodiment, the difference between the reflection fluctuation value and the transmission fluctuation value corresponding to the control data pair is calculated. If the difference is positive and greater than a preset difference threshold, the paper segment corresponding to the control data pair is determined to be black mark paper. If the difference is negative and its absolute value is greater than the preset difference threshold, the paper segment corresponding to the control data pair is determined to be gap paper. If the absolute value of the difference is less than or equal to the preset difference threshold, and both the reflection fluctuation value and the transmission fluctuation value corresponding to the control data pair are greater than a preset base threshold, the paper segment corresponding to the control data pair is determined to be transparent paper.
[0096] This means directly subtracting the transmission fluctuation from the reflected fluctuation and observing whether the difference is positive or negative, large or small. If the difference is positive and large, it indicates that the reflected fluctuation is much greater than the transmission fluctuation, which is a black label. If the difference is negative and the absolute value is large, it indicates that the transmission fluctuation is much greater than the reflected fluctuation, which is a gap. If the difference is not large but both fluctuations are quite large, it indicates a transparent label.
[0097] In this embodiment, a pre-detection step is performed before entering the complete judgment process. This step detects whether there are fluctuating segments in the detection signal sequence whose signal change amplitude exceeds a preset flatness judgment threshold. Continuous paper is the only paper type that has no structural changes in both the reflection and transmission dimensions. Its reflection and transmission signal sequences are stable signals throughout the entire paper feeding interval, without any signal fluctuations. Therefore, continuous paper can be directly determined by a single sequence stability check, without the need to perform the subsequent complex dual-channel processing. This fast discrimination mechanism, set up before the complete judgment process, diverts the simplest scenario of continuous paper for processing first. This allows the determination of continuous paper to be completed in the single sequence check stage and terminates the subsequent process, avoiding the need to perform complete dual-channel processing for all consumable types. This optimizes the calculation path, saves processing resources, and shortens the total test time.
[0098] Specifically, in some embodiments, the specific implementation of step S10 can be found in [reference needed]. Figure 5 . Figure 5 It is based on Figure 2 The detailed description of step S10 in the method for obtaining printer consumable parameters shown in the corresponding embodiment indicates that step S10 may include the following steps: S110, drive the current consumable to move the paper a first distance along the first direction; S120, drive the current consumable to move the paper a second distance along the second direction; the first direction is either forward paper movement or reverse paper movement, and the second direction is the opposite direction to the first direction; the sum of the first distance and the second distance does not exceed a preset distance.
[0099] In this embodiment, the current consumable is driven to travel a first distance along a first direction, and then driven to travel a second distance along a second direction. The first direction is either forward paper feeding (i.e., paper output direction) or reverse paper feeding (i.e., paper take-up direction), and the second direction is the opposite direction to the first direction. The sum of the first distance and the second distance does not exceed a preset distance, which is a pre-configured upper limit value of length.
[0100] It should be noted that the bidirectional paper feeding schemes in the above embodiments and this embodiment both constrain the paper feeding stroke of the consumable within a limited physical range. In the fixed-distance paper feeding scheme, the first distance and the second distance are both preset fixed values. After the consumable feeds along the first direction for the first distance, it switches to the second direction for the second distance. In the dynamic value paper feeding scheme, the paper feeding length in the first direction is dynamically determined by the real-time data acquisition status. When it is detected that the acquired signal sequence has contained data covering the entire structural cycle, the paper feeding in the first direction is terminated and the second direction is switched. The common feature is that both use bidirectional paper feeding to enable the consumable to complete the forward extension and reverse retraction during the paper measurement process. When the paper measurement ends, the consumable is already in a state close to the starting printing position, and there is no need to perform a separate paper return action after the paper measurement is completed.
[0101] Among them, the fixed-distance paper feeding scheme has a simple control logic and is suitable for conventional consumables with moderate label length and clear structural features; the dynamic value paper feeding scheme drives the decision of paper feeding length through real-time data. When the consumable label is short, it can terminate the first direction of paper feeding in advance and switch directions after collecting complete structural cycle data, further reducing the amount of paper feeding. It is suitable for usage scenarios with large label size variations. The above two schemes can be selected according to the actual characteristics of the consumables or user configuration to adapt to different application needs.
[0102] In this embodiment, the detection signal sequence includes a first detection signal sequence collected during the current consumable material's paper feed along the first direction and a second detection signal sequence collected during the current consumable material's paper feed along the second direction; Determining the physical characteristic parameters of the current consumable based on the detection signal sequence includes: The first detection signal sequence and the second detection signal sequence are concatenated to obtain the target concatenated detection signal sequence; The physical characteristic parameters of the current consumable are determined based on the target splicing detection signal sequence.
[0103] In this embodiment, the detection signal sequence includes a first detection signal sequence collected during the current consumable material's paper feed in the first direction and a second detection signal sequence collected during the current consumable material's paper feed in the second direction. The first and second detection signal sequences are spliced together to obtain the target spliced detection signal sequence. The splicing method can be to sequentially append the second detection signal sequence after the first detection signal sequence to form a longer detection signal sequence.
[0104] Therefore, the spliced target splicing detection signal sequence contains the detection data of the consumable during the paper feeding in two opposite directions. After splicing the paper feeding data in the two directions, it is equivalent to letting the sensor see a longer piece of paper.
[0105] It should be noted that compared to relying solely on data from one direction, the spliced data covers a wider range of label periods, offers richer signal characteristics, has a larger statistical sample size, provides higher confidence in type determination, and calculates size parameters more accurately. Furthermore, because the data is spliced from two segments, each segment does not require a long paper feed, maintaining the same total paper feed distance while obtaining more effective information within that same feed distance.
[0106] In this embodiment, when the first distance and the second distance are equal, the detection signal sequence includes a first detection signal sequence collected during the current consumable material's paper feed along the first direction and a second detection signal sequence collected during the current consumable material's paper feed along the second direction; Determining the physical characteristic parameters of the current consumable based on the detection signal sequence includes: The first physical characteristic parameter corresponding to the current consumable is determined based on the first detection signal sequence, and the second physical characteristic parameter corresponding to the current consumable is determined based on the second detection signal sequence; If the difference between the first physical characteristic parameter and the second physical characteristic parameter is within a preset tolerance range, then the physical characteristic parameter of the current consumable is determined based on the average of the first physical characteristic parameter and the second physical characteristic parameter. If the difference between the first physical characteristic parameter and the second physical characteristic parameter is not within the preset tolerance range, then the steps of responding to the consumable parameter acquisition signal, driving the current consumable to feed paper, and collecting the detection signal sequence of the current consumable during paper feeding are re-executed.
[0107] In this embodiment, the first distance and the second distance are equal, that is, the forward paper feeding distance and the reverse paper feeding distance are the same. The detection signal sequence includes a first detection signal sequence collected during the current consumable material's paper feeding in the first direction and a second detection signal sequence collected during the current consumable material's paper feeding in the second direction.
[0108] Specifically, the first physical characteristic parameter corresponding to the current consumable is determined according to the first detection signal sequence, and the second physical characteristic parameter corresponding to the current consumable is determined according to the second detection signal sequence. Since the forward and reverse paper feeds pass through the same consumable, the same paper is measured twice independently. The two measurement results can be mutually verified to confirm the measurement accuracy. At the same time, when the second direction paper feed ends, the consumable just returns to the vicinity of the starting position of the first direction paper feed, without the need for additional paper return stroke.
[0109] Next, it is necessary to determine whether the difference between the first physical characteristic parameter and the second physical characteristic parameter is within the preset tolerance range. If the difference is within the preset tolerance range, it means that the two measurement results are consistent. The physical characteristic parameter of the current consumable is determined based on the average of the first and second physical characteristic parameters. Taking the average value can reduce the random error of a single measurement and improve the measurement accuracy. If the difference is not within the preset tolerance range, it means that the two measurement results are inconsistent, and the paper measurement step is repeated.
[0110] In this embodiment, by driving the consumable to travel a first distance along a first direction, and then driving the consumable to travel a second distance along a second direction opposite to the first direction, the consumable completes reciprocating motion within a limited physical range. When the first distance and the second distance are equal, the net displacement of the consumable is zero. After the paper measurement is completed, the consumable returns to the starting position. Essentially, this transforms the long-distance unidirectional paper extension measurement into a reciprocating scanning measurement within a limited range. The sensor completes two scans within the range, ensuring complete acquisition of signal data while controlling the paper extension length within a limited range. This adapts to compact spaces and reduces the risk of paper jams and paper contamination. Furthermore, the positioning is completed as soon as the paper measurement is finished, eliminating the need for additional paper return time, allowing the printing task to be executed immediately.
[0111] The following describes an embodiment of the apparatus described in this application, which can be used to execute the method for obtaining printer consumable parameters as described in the above embodiments of this application. For details not disclosed in the apparatus embodiments of this application, please refer to the embodiments of the method for obtaining printer consumable parameters described above in this application.
[0112] Figure 6 A block diagram of a printer consumables parameter acquisition apparatus according to an embodiment of this application is shown.
[0113] Reference Figure 6 As shown, a printer consumables parameter acquisition device according to an embodiment of this application includes: The driving module 10 is used to drive the current consumable to feed paper in response to the consumable parameter acquisition signal, and to collect the detection signal sequence of the current consumable during the paper feeding period; the detection signal sequence is used to reflect the physical characteristics of the current consumable. The determination module 20 is used to determine the physical characteristic parameters of the current consumable based on the detection signal sequence.
[0114] Optionally, the determining module 20 is configured to: the detection signal sequence includes a reflection signal sequence and a transmission signal sequence; the reflection signal sequence is used to reflect the reflection characteristics of the current consumable surface; the transmission signal sequence is used to reflect the transmission characteristics of the current consumable; determine the consumable type of the current consumable based on the reflection signal sequence and the transmission signal sequence, and determine a judgment threshold for distinguishing between the face paper and the positioning mark based on the reflection signal sequence and the transmission signal sequence; and calculate the size parameters corresponding to the current consumable based on the consumable type and the judgment threshold.
[0115] Optionally, the driving module 10 is used to drive the current consumable to travel a preset distance in a single direction.
[0116] Optionally, the driving module 10 is configured to: drive the current consumable to continuously feed paper in a single direction, and during the paper feeding process, detect whether the collected detection signal sequence contains data that can cover the complete structural cycle corresponding to the current consumable; if yes, then terminate the paper feeding; if no, then continue to execute the step of driving the current consumable to continuously feed paper in a single direction.
[0117] Optionally, the driving module 10 is configured to: drive the current consumable to travel a first distance along a first direction; drive the current consumable to travel a second distance along a second direction; the first direction is either forward paper feeding or reverse paper feeding, and the second direction is a direction opposite to the first direction; the sum of the first distance and the second distance does not exceed a preset distance.
[0118] Optionally, the determining module 20 is configured to: include a first detection signal sequence collected during the current consumable's paper feed in the first direction and a second detection signal sequence collected during the current consumable's paper feed in the second direction; splice the first detection signal sequence and the second detection signal sequence to obtain a target spliced detection signal sequence; and determine the physical characteristic parameters of the current consumable based on the target spliced detection signal sequence.
[0119] Optionally, the driving module 10 is configured to: drive the current consumable to feed paper along a first direction; when it is detected that the collected detection signal sequence of the current consumable during paper feeding along the first direction contains data that can cover the complete structural cycle corresponding to the current consumable, drive the current consumable to switch to paper feeding along a second direction; the first direction is either forward paper feeding or reverse paper feeding, and the second direction is the direction opposite to the first direction.
[0120] Optionally, the determining module 20 is configured to: detect whether there is a fluctuation segment in the detection signal sequence whose signal change amplitude exceeds a preset flatness determination threshold; the detection signal sequence includes a reflection signal sequence and / or a transmission signal sequence; the reflection signal sequence is used to reflect the reflection characteristics of the current consumable surface; the transmission signal sequence is used to reflect the transmission characteristics of the current consumable; if not, determine that the current consumable is continuous paper.
[0121] Optionally, the determining module 20 is configured to: if so, determine that the current consumable is non-continuous paper; identify a fluctuating reflection wave segment from the reflection signal sequence and a fluctuating transmission wave segment from the transmission signal sequence; match the reflection wave segment and the transmission wave segment according to their respective corresponding physical locations of the consumables, and determine a set of reference data pairs for reflection wave segments and transmission wave segments located in the same physical location range of the consumables; calculate the reflection wave value of the reflection wave segment and the transmission wave value of the transmission wave segment in each set of reference data pairs; and determine the consumable type of the corresponding paper segment in each set of reference data pairs based on the comparison results of the reflection wave value and the transmission wave value of each set of reference data pairs.
[0122] Optionally, the determining module 20 is configured to: if the reflection fluctuation value and transmission fluctuation value corresponding to the reference data pair have opposite signs, then determine that the paper segment corresponding to the reference data pair is gap paper; if the reflection fluctuation value and transmission fluctuation value corresponding to the reference data pair have the same sign and the ratio of the reflection fluctuation value to the transmission fluctuation value is greater than a preset ratio threshold, then determine that the paper segment corresponding to the reference data pair is black label paper; if the reflection fluctuation value and transmission fluctuation value corresponding to the reference data pair have the same sign and the ratio of the reflection fluctuation value to the transmission fluctuation value is less than or equal to the preset ratio threshold, then determine that the paper segment corresponding to the reference data pair is transparent paper.
[0123] Optionally, the determining module 20 is configured to: calculate the difference between the reflection fluctuation value and the transmission fluctuation value corresponding to the control data pair; if the difference is positive and greater than a preset difference threshold, then determine that the paper segment corresponding to the control data pair is black mark paper; if the difference is negative and its absolute value is greater than the preset difference threshold, then determine that the paper segment corresponding to the control data pair is gap paper; if the absolute value of the difference is less than or equal to the preset difference threshold, and both the reflection fluctuation value and the transmission fluctuation value corresponding to the control data pair are greater than a preset basic threshold, then determine that the paper segment corresponding to the control data pair is transparent paper.
[0124] Optionally, the determining module 20 is configured to: identify multiple reflection fluctuation segments with fluctuations from the reflection signal sequence, and determine a reflection determination threshold based on the mean of the maximum reflection signal and the mean of the minimum reflection signal corresponding to each of the multiple reflection fluctuation segments; identify multiple transmission fluctuation segments with fluctuations from the transmission signal sequence, and determine a transmission determination threshold based on the mean of the maximum transmission signal and the mean of the minimum transmission signal corresponding to each of the multiple transmission fluctuation segments.
[0125] Optionally, the determining module 20 is configured to: determine a target detection channel based on the consumable type; the target detection channel is the detection channel with higher contrast for the size parameters of the current consumable corresponding to the consumable type among the reflection detection channel and the transmission detection channel; determine the target moment when the target detection signal value in the target detection signal sequence corresponding to the target detection channel crosses the target determination threshold applied to distinguish the face paper from the positioning mark as the state switching moment; and calculate the size parameters corresponding to the current consumable based on the number of motor steps of the printer between adjacent state switching moments.
[0126] Optionally, the determining module 20 is configured to: determine the target time as the state switching time when at least M target detection signals are located on the same side of the target determination threshold corresponding to the target detection channel among the N consecutive target detection signals after the target time in the target detection signal sequence corresponding to the target detection channel; the target time is the time when the target detection signal value in the target detection signal sequence crosses the target determination threshold.
[0127] Optionally, the determining module 20 is configured to: when the first distance and the second distance are equal, the detection signal sequence includes a first detection signal sequence collected during the current consumable's paper feeding along the first direction and a second detection signal sequence collected during the current consumable's paper feeding along the second direction; determine a first physical characteristic parameter corresponding to the current consumable based on the first detection signal sequence, and determine a second physical characteristic parameter corresponding to the current consumable based on the second detection signal sequence; if the difference between the first physical characteristic parameter and the second physical characteristic parameter is within a preset tolerance range, determine the physical characteristic parameter of the current consumable based on the average of the first physical characteristic parameter and the second physical characteristic parameter; if the difference between the first physical characteristic parameter and the second physical characteristic parameter is not within the preset tolerance range, re-execute the step of responding to the consumable parameter acquisition signal, driving the current consumable to feed paper, and collecting the detection signal sequence of the current consumable during paper feeding.
[0128] Optionally, the device is configured such that: the printer includes physical buttons; the consumable parameter acquisition signal is triggered by the user pressing the physical buttons a preset number of times within a preset time window; the preset number of times corresponds to a different pressing rhythm for the physical buttons than the pressing rhythm for the paper feed operation and the long press to power off operation.
[0129] Optionally, the device is configured to: generate a consumable parameter acquisition signal when it detects that the consumable compartment cover of the printer changes from an open state to a closed state, and the consumable detection sensor of the printer detects that consumables have been placed in the printer, and the printer fails to successfully read the RFID tag of the placed consumables.
[0130] Optionally, the device is configured to: generate a consumable parameter acquisition signal when it detects that the consumable compartment cover of the printer changes from an open state to a closed state, and the consumable detection sensor of the printer detects that consumables have been placed in the printer, and the printer fails to successfully read the radio frequency identification of the consumables that have been placed in, and detects a user-triggered consumable parameter acquisition operation.
[0131] In this embodiment, the paper feed of the consumable is actively triggered in response to the consumable parameter acquisition signal, and a detection signal sequence is continuously acquired during the paper feed. This signal sequence reflects the differences in the reflection or transmission characteristics of light signals by different areas of the consumable (face paper, gaps, black mark), and different physical structures of the paper area correspond to different signal response values. During the paper feed, the signal value changes periodically with the paper structure. This change pattern itself implies the type and size information of the consumable. By analyzing this signal sequence and corresponding the fluctuation pattern in the signal waveform with the periodic characteristics of the paper structure, the physical characteristic parameters of the consumable can be deduced in reverse. It does not rely on any external identifiers or user preset parameters. The automatic acquisition of consumable parameters is achieved through signal acquisition and pattern parsing, eliminating the manual setting by the user and the error risks it introduces.
[0132] It should be noted that the printer consumable parameter acquisition device provided in the above embodiments is only illustrated by the division of the above functional modules when executing the printer consumable parameter acquisition method. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. In addition, the printer consumable parameter acquisition device and the printer consumable parameter acquisition method embodiments provided in the above embodiments belong to the same concept, and the implementation process is detailed in the method embodiments, which will not be repeated here.
[0133] The sequence numbers of the embodiments in this application are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.
[0134] Figure 7 A schematic diagram of the structure of a computer system suitable for implementing the electronic device of the present application is shown.
[0135] It should be noted that, Figure 7 The computer system of the electronic device shown is merely an example and should not impose any limitation on the functionality and scope of use of the embodiments of this application.
[0136] like Figure 7 As shown, the computer system includes a Central Processing Unit (CPU) 1001, which can perform various appropriate actions and processes based on programs stored in Read-Only Memory (ROM) 1002 or programs loaded from storage portion 1008 into Random Access Memory (RAM) 1003, such as performing the methods described in the above embodiments. Various programs and data required for system operation are also stored in RAM 1003. The CPU 1001, ROM 1002, and RAM 1003 are interconnected via bus 1004. Input / output (I / O) interface 1005 is also connected to bus 1004.
[0137] The following components are connected to I / O interface 1005: an input section 1006 including a keyboard, mouse, etc.; an output section 1007 including a cathode ray tube (CRT), liquid crystal display (LCD), etc., and speakers, etc.; a storage section 1008 including a hard disk, etc.; and a communication section 1009 including a network interface card such as a LAN (Local Area Network) card, modem, etc. The communication section 1009 performs communication processing via a network such as the Internet. A drive 1010 is also connected to I / O interface 1005 as needed. Removable media 1011, such as a disk, optical disk, magneto-optical disk, semiconductor memory, etc., are installed on drive 1010 as needed so that computer programs read from them can be installed into storage section 1008 as needed.
[0138] Specifically, according to embodiments of this application, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of this application include a computer program product comprising a computer program carried on a computer-readable medium, the computer program including a computer program for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via communication section 1009, and / or installed from removable medium 1011. When the computer program is executed by central processing unit (CPU) 1001, it performs various functions defined in the system of this application.
[0139] It should be noted that the computer-readable medium shown in the embodiments of this application can be a computer-readable signal medium or a computer-readable storage medium, or any combination of the two. A computer-readable storage medium can be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM), flash memory, optical fiber, portable compact disc read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof. In this application, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In this application, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, carrying a computer-readable computer program. The transmitted data signal can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. The computer-readable signal medium can also be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The computer program contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to wireless, wired, etc., or any suitable combination thereof.
[0140] Specifically, based on embodiments of this application, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of this application include a computer program product comprising a computer program carried on a computer-readable medium, the computer program including a computer program for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via communication section 1009, and / or installed from removable medium 1011. When the computer program is executed by central processing unit (CPU) 1001, it performs various functions defined in the system of this application.
[0141] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this application. Each block in a flowchart or block diagram may represent a module, segment, or portion of code, which contains one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in a block diagram or flowchart, and combinations of blocks in a block diagram or flowchart, may be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0142] The units described in the embodiments of this application can be implemented in software or hardware, and the described units can also be located in a processor. The names of these units do not necessarily limit the specific unit itself.
[0143] In another aspect, this application also provides a computer-readable medium, which may be included in the electronic device described in the above embodiments; or it may exist independently and not assembled into the electronic device. The computer-readable medium carries one or more programs, which, when executed by the electronic device, cause the electronic device to perform the methods described in the above embodiments.
[0144] It should be noted that although several modules or units for the device used to perform actions have been mentioned in the detailed description above, this division is not mandatory. In fact, according to the embodiments of this application, the features and functions of two or more modules or units described above can be embodied in one module or unit. Conversely, the features and functions of one module or unit described above can be further divided and embodied by multiple modules or units.
[0145] Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein can be implemented by software or by combining software with necessary hardware. Therefore, the technical solutions according to the embodiments of this application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (such as a CD-ROM, USB flash drive, external hard drive, etc.) or on a network, including several instructions to cause a computing device (such as a personal computer, server, touch terminal, or network device, etc.) to execute the methods according to the embodiments of this application.
[0146] Other embodiments of this application will readily occur to those skilled in the art upon consideration of the specification and practice of the embodiments disclosed herein. This application is intended to cover any variations, uses, or adaptations of this application that follow the general principles of this application and include common knowledge or customary techniques in the art not disclosed herein.
[0147] It should be understood that this application is not limited to the precise structure described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this application is limited only by the appended claims.
Claims
1. A method for obtaining printer consumable parameters, characterized in that, The method includes: In response to the consumable parameter acquisition signal, the current consumable is driven to feed paper, and the detection signal sequence of the current consumable during paper feeding is collected; the detection signal sequence is used to reflect the physical characteristics of the current consumable. The physical characteristic parameters of the current consumable are determined based on the detection signal sequence.
2. The method as described in claim 1, characterized in that, The detection signal sequence includes a reflection signal sequence and a transmission signal sequence; the reflection signal sequence is used to reflect the reflection characteristics of the current consumable surface; the transmission signal sequence is used to reflect the transmission characteristics of the current consumable. Determining the physical characteristic parameters of the current consumable based on the detection signal sequence includes: The consumable type of the current consumable is determined based on the reflected signal sequence and the transmitted signal sequence, and a determination threshold for distinguishing between tissue paper and positioning mark is determined based on the reflected signal sequence and the transmitted signal sequence. Calculate the size parameters corresponding to the current consumable based on the consumable type and the determination threshold.
3. The method as described in claim 1, characterized in that, The driving of the current consumable paper feed includes: Drive the current consumable to move the paper in a single direction for a preset distance.
4. The method as described in claim 1, characterized in that, The driving of the current consumable paper feed includes: Drive the current consumable to continuously feed paper in a single direction, and during the paper feeding process, detect whether the collected detection signal sequence contains data that can cover the complete structural cycle corresponding to the current consumable; If so, then stop the paper feed; If not, continue with the step of driving the current consumable to continuously feed paper in a single direction.
5. The method as described in claim 1, characterized in that, The driving of the current consumable paper feed includes: Drive the current consumable to move the paper a first distance along the first direction; Drive the current consumable to move the paper a second distance along the second direction; the first direction is either forward paper movement or reverse paper movement, and the second direction is the opposite direction to the first direction; the sum of the first distance and the second distance does not exceed a preset distance.
6. The method as described in claim 5, characterized in that, The detection signal sequence includes a first detection signal sequence collected during the current consumable material's paper feed along the first direction and a second detection signal sequence collected during the current consumable material's paper feed along the second direction; Determining the physical characteristic parameters of the current consumable based on the detection signal sequence includes: The first detection signal sequence and the second detection signal sequence are concatenated to obtain the target concatenated detection signal sequence; The physical characteristic parameters of the current consumable are determined based on the target splicing detection signal sequence.
7. The method as described in claim 1, characterized in that, The driving of the current consumable paper feed includes: Drive the current consumable to feed paper along the first direction; When the detection signal sequence collected during the paper feeding of the current consumable in the first direction contains data that can cover the complete structural cycle corresponding to the current consumable, the current consumable is driven to switch to paper feeding in the second direction; the first direction is either forward paper feeding or reverse paper feeding, and the second direction is the direction opposite to the first direction.
8. The method as described in claim 1, characterized in that, Determining the physical characteristic parameters of the current consumable based on the detection signal sequence includes: The detection signal sequence is used to detect whether there are fluctuation segments in the detection signal sequence whose signal change amplitude exceeds a preset flatness threshold; the detection signal sequence includes a reflection signal sequence and / or a transmission signal sequence; the reflection signal sequence is used to reflect the reflection characteristics of the current consumable surface; the transmission signal sequence is used to reflect the transmission characteristics of the current consumable. If not, determine that the current consumable is continuous paper.
9. The method as described in claim 8, characterized in that, After detecting whether there is a fluctuation segment in the detected signal sequence whose signal change amplitude exceeds a preset flatness threshold, the method further includes: If so, then the current consumable is determined to be non-continuous paper; Identify fluctuating reflection wave segments from the reflected signal sequence and fluctuating transmission wave segments from the transmitted signal sequence; The reflected wave segment and the transmitted wave segment are matched according to their respective physical locations of consumables, and the reflected wave segment and the transmitted wave segment located in the same consumable physical location range are determined as a set of reference data pairs. Calculate the reflection fluctuation value of the reflection fluctuation section and the transmission fluctuation value of the transmission fluctuation section in each set of control data; Based on the comparison results of the corresponding reflection fluctuation value and transmission fluctuation value of the control data in each group, the consumable type of the corresponding paper segment of each group of control data is determined.
10. The method as described in claim 9, characterized in that, The determination of the consumable type for each paper segment based on the comparison results of the corresponding reflection fluctuation value and transmission fluctuation value of each set of control data includes: If the corresponding reflection fluctuation value and transmission fluctuation value of the reference data pair have opposite signs, then the corresponding paper segment of the reference data pair is determined to be gap paper. If the reflection fluctuation value and the transmission fluctuation value of the corresponding reference data pair have the same sign and the ratio of the reflection fluctuation value to the transmission fluctuation value is greater than a preset ratio threshold, then the paper segment corresponding to the reference data pair is determined to be black label paper. If the reflection fluctuation value and the transmission fluctuation value of the reference data pair have the same sign and the ratio of the reflection fluctuation value to the transmission fluctuation value is less than or equal to the preset ratio threshold, then the paper segment corresponding to the reference data pair is determined to be transparent paper.
11. The method as described in claim 9, characterized in that, The determination of the consumable type for each paper segment based on the comparison results of the corresponding reflection fluctuation value and transmission fluctuation value of each set of control data includes: Calculate the difference between the corresponding reflection fluctuation value and the transmission fluctuation value of the reference data pair; If the difference is positive and greater than a preset difference threshold, then the paper segment corresponding to the comparison data pair is determined to be black label paper. If the difference is negative and its absolute value is greater than the preset difference threshold, then the paper segment corresponding to the comparison data pair is determined to be gap paper. If the absolute value of the difference is less than or equal to the preset difference threshold, and the reflection fluctuation value and transmission fluctuation value of the corresponding control data pair are both greater than the preset base threshold, then the paper segment corresponding to the control data pair is determined to be transparent paper.
12. The method as described in claim 2, characterized in that, The step of determining the threshold for distinguishing between the face paper and the positioning mark based on the reflected signal sequence and the transmitted signal sequence includes: Multiple reflection fluctuation segments with fluctuations are identified from the reflected signal sequence, and a reflection judgment threshold is determined based on the mean of the maximum reflection signal and the mean of the minimum reflection signal corresponding to each of the multiple reflection fluctuation segments. Multiple transmission fluctuation segments with fluctuations are identified from the transmission signal sequence, and a transmission determination threshold is determined based on the mean of the maximum transmission signal and the mean of the minimum transmission signal corresponding to each of the multiple transmission fluctuation segments.
13. The method as described in claim 2, characterized in that, The step of calculating the size parameters corresponding to the current consumable based on the consumable type and the determination threshold includes: The target detection channel is determined based on the consumable type; the target detection channel is the detection channel with higher contrast for the size parameters of the current consumable corresponding to the consumable type, which is either the reflection detection channel or the transmission detection channel. The moment when the target detection signal value in the target detection signal sequence corresponding to the target detection channel crosses the target detection channel and is used to determine the target judgment threshold for distinguishing between face paper and positioning mark is determined as the state switching moment. The size parameters corresponding to the current consumable are calculated based on the number of motor steps of the printer between adjacent state transition times.
14. The method as described in claim 13, characterized in that, The step of determining the state switching moment as the target moment when the target detection signal value in the target detection signal sequence corresponding to the target detection channel crosses the target determination threshold corresponding to the target detection channel includes: If, in the target detection signal sequence corresponding to the target detection channel, at least M target detection signals are located on the same side of the target determination threshold corresponding to the target detection channel among the N consecutive target detection signals after the target time, the target time is determined as the state switching time; the target time is the time when the target detection signal value in the target detection signal sequence crosses the target determination threshold.
15. The method as described in claim 5, characterized in that, When the first distance and the second distance are equal, the detection signal sequence includes a first detection signal sequence collected during the current consumable material's paper feed in the first direction and a second detection signal sequence collected during the current consumable material's paper feed in the second direction; Determining the physical characteristic parameters of the current consumable based on the detection signal sequence includes: The first physical characteristic parameter corresponding to the current consumable is determined based on the first detection signal sequence, and the second physical characteristic parameter corresponding to the current consumable is determined based on the second detection signal sequence; If the difference between the first physical characteristic parameter and the second physical characteristic parameter is within a preset tolerance range, then the physical characteristic parameter of the current consumable is determined based on the average of the first physical characteristic parameter and the second physical characteristic parameter. If the difference between the first physical characteristic parameter and the second physical characteristic parameter is not within the preset tolerance range, then the steps of responding to the consumable parameter acquisition signal, driving the current consumable to feed paper, and collecting the detection signal sequence of the current consumable during paper feeding are re-executed.
16. The method according to any one of claims 1 to 15, characterized in that, The printer includes physical buttons; the consumable parameter acquisition signal is triggered by the user pressing the physical button a preset number of times within a preset time window; the preset number of times corresponds to different pressing rhythms for the physical button than pressing to feed paper and pressing and holding to turn off the printer.
17. The method according to any one of claims 1 to 15, characterized in that, The method further includes: When the printer detects that the consumable compartment cover changes from an open state to a closed state, and the printer's consumable detection sensor detects that consumables have been placed in the printer, and the printer fails to read the RFID tag of the placed consumables, a consumable parameter acquisition signal is generated.
18. The method according to any one of claims 1 to 15, characterized in that, The method further includes: When the printer detects that the consumable compartment cover changes from an open state to a closed state, and the printer's consumable detection sensor detects that consumables have been placed in the printer, and the printer fails to read the RFID tag of the placed consumables, and detects a user-triggered consumable parameter acquisition operation, the consumable parameter acquisition signal is generated.
19. A device for acquiring printer consumable parameters, characterized in that, The device includes: The driving module is used to drive the current consumable to feed paper in response to the consumable parameter acquisition signal, and to collect the detection signal sequence of the current consumable during paper feeding; the detection signal sequence is used to reflect the physical characteristics of the current consumable. The determination module is used to determine the physical characteristic parameters of the current consumable based on the detection signal sequence.
20. A printer, comprising a main body, wherein a control module is disposed on the main body, characterized in that, The control module can execute the method for obtaining printer consumable parameters as described in any one of claims 1 to 18.
21. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the steps of the method for obtaining printer consumable parameters as described in any one of claims 1 to 18.
