CN118225977A - Moisture detection early warning method, device, equipment and medium applied to tobacco leaves - Google Patents

Moisture detection early warning method, device, equipment and medium applied to tobacco leaves Download PDF

Info

Publication number
CN118225977A
CN118225977A CN202410355845.6A CN202410355845A CN118225977A CN 118225977 A CN118225977 A CN 118225977A CN 202410355845 A CN202410355845 A CN 202410355845A CN 118225977 A CN118225977 A CN 118225977A
Authority
CN
China
Prior art keywords
moisture
current
value
early warning
detector
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202410355845.6A
Other languages
Chinese (zh)
Inventor
赵瑜
许秋轩
李金普
李笑
陈雨蒙
韩铮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Tobacco Jiangsu Industrial Co Ltd
Original Assignee
China Tobacco Jiangsu Industrial Co Ltd
Filing date
Publication date
Application filed by China Tobacco Jiangsu Industrial Co Ltd filed Critical China Tobacco Jiangsu Industrial Co Ltd
Publication of CN118225977A publication Critical patent/CN118225977A/en
Pending legal-status Critical Current

Links

Abstract

The embodiment of the invention discloses a moisture detection and early warning method, device, equipment and medium applied to tobacco leaves. When the condition of meeting the moisture detection is detected, acquiring the current moisture value corresponding to the tobacco leaves and/or tobacco shreds at the current moment; updating the stuck count information of the moisture detector when the current moisture value is different from the historical moisture value at the moment before the current moment; and when the stuck count information of the moisture detector meets the preset count early warning condition, early warning is started. The technical scheme provided by the embodiment of the invention realizes the comparison processing of the moisture detection values acquired from two adjacent sides, so as to determine whether the moisture detector has faults or not based on the comparison result, thereby achieving the effect of timely early warning.

Description

Moisture detection early warning method, device, equipment and medium applied to tobacco leaves
Technical Field
The embodiment of the invention relates to tobacco leaf preparation, in particular to a moisture detection and early warning method, a device, equipment and a medium applied to tobacco leaves.
Background
Generally, certain moisture is needed in the tobacco leaf and/or tobacco shred processing process, the quality of the tobacco leaf or tobacco shred is affected by the moisture content, and the quality is also reflected in the taste of the tobacco leaf, so that the moisture detection is needed to be carried out on the tobacco leaf or tobacco shred in real time in the tobacco leaf processing process. In the case of detecting moisture, a moisture detector is often used for detection.
When moisture detection is performed based on the moisture detector, if a power failure, a main board failure, or a network cable joint loosening and other failures occur in the moisture detector, the measured value of the moisture detector in the logic controller will keep a measured value before the failure, namely, the moisture is blocked. That is, in the event of moisture sticking, the logic controller still displays a moisture value, but the moisture value is always the moisture value collected before the failure. Under the condition of the moisture value, the subsequent process is still executed, and the problem of influencing the product quality exists.
Furthermore, when the moisture is blocked in the mode, an operation user still shows the moisture value in the logic controller, so that the fault of the moisture detector cannot be determined in time, and the problem that the moisture value is difficult to find under the condition of inaccurate moisture detection value is caused.
Disclosure of Invention
The embodiment of the invention provides a method, a device, equipment and a medium for detecting and early warning moisture in tobacco leaves, which are used for effectively, accurately and timely determining whether a moisture detector fails or not, and further carrying out early warning so as to achieve the effect of detecting the moisture and further improving the quality of the tobacco leaves.
In a first aspect, an embodiment of the present invention provides a method for detecting and early warning moisture in tobacco, where the method includes:
when the condition that the moisture detection condition is met is detected, acquiring a current moisture value corresponding to the tobacco leaves and/or the tobacco shreds at the current moment;
Updating the stuck count information of the moisture detector when the current moisture value is different from the historical moisture value at the moment before the current moment;
and when the stuck count information of the moisture detector meets the preset count early warning condition, early warning is started.
Further, the moisture detection condition is a condition for acquiring a current moisture value at regular time, and the acquiring the current moisture value corresponding to the tobacco leaf and/or the cut tobacco at the current moment includes:
periodically acquiring the current moisture value corresponding to the tobacco leaf and/or tobacco shred at the current moment;
wherein the period duration of the periodicity is 1s.
Further, the method further comprises:
When the condition that the moisture detection condition is met is detected, the current moisture value at the moment before the current moment is used as the historical moisture value, and the historical moisture value is written into a first numerical table, so that when the current moisture value at the current moment is obtained, the historical moisture value is obtained from the first numerical table.
Further, the moisture detector dead count information includes abnormal time length of the moisture detector, and when the current moisture value is different from the historical moisture value at a time before the current time, updating the moisture detector dead count information includes:
And when the current moisture value is the same as the historical moisture value and the stuck count of the moisture detector is not the first preset value, accumulating the count on the basis of the stuck count of the moisture detector, and updating the abnormal time length of the moisture detector.
Further, the method further comprises:
And when the moisture detector dead-lock count is a first preset value, starting the moisture detector dead-lock count to determine the abnormal time length of the moisture detector.
Further, the method further comprises:
and when the current moisture value is different from the historical moisture value and the moisture detector stuck count is not a first preset value, adjusting the moisture detector stuck count to the first preset value.
Further, when the stuck count information of the moisture detector meets a preset count early warning condition, early warning is started, including:
and when the abnormal time length of the moisture detector in the stuck count information of the moisture detector reaches a preset count time length threshold value, early warning is started.
In a second aspect, an embodiment of the present invention further provides a moisture detection and early warning device for applying the smoke to tobacco leaves, where the device includes:
The moisture detection module is used for acquiring a current moisture value corresponding to the tobacco leaves and/or the tobacco shreds at the current moment when the condition of moisture detection is detected to be met;
The data analysis module is used for updating the locking counting information of the moisture detector when the current moisture value is different from the historical moisture value at the moment before the current moment;
And the information early warning module starts early warning when the stuck count information of the moisture detector meets the preset count early warning condition.
In a third aspect, an embodiment of the present invention further provides an electronic device, including:
one or more processors;
storage means for storing one or more programs,
When the one or more programs are executed by the one or more processors, the one or more processors implement the moisture detection and early warning method applied to tobacco leaves according to any one of the embodiments of the present invention.
In a fourth aspect, an embodiment of the present invention further provides a computer readable storage medium, where a computer program is stored, where the program when executed by a processor implements the method for detecting and early warning moisture applied to tobacco leaves according to any one of the embodiments of the present invention.
According to the technical scheme, when the condition that the moisture detection condition is met is detected, the current moisture value corresponding to the tobacco leaves and/or the tobacco shreds at the current moment is obtained; updating the stuck count information of the moisture detector when the current moisture value is different from the historical moisture value at the moment before the current moment; and when the stuck count information of the moisture detector meets the preset count early warning condition, early warning is started. The technical scheme provided by the embodiment of the invention solves the problems that the water detector is not easy to find manually when the water detector fails in the prior art, and the quality of products is affected when the subsequent process is continued according to the water detector, realizes the comparison processing of the water detection values acquired from two adjacent sides, determines whether the water detector fails or not based on the comparison result, further achieves the effect of timely early warning, and correspondingly, can enable the subsequent process to be executed under the condition of correct water value, thereby achieving the technical effect of effectively controlling the quality of tobacco leaves.
Drawings
In order to more clearly illustrate the technical solution of the exemplary embodiments of the present invention, a brief description is given below of the drawings required for describing the embodiments. It is obvious that the drawings presented are only drawings of some of the embodiments of the invention to be described, and not all the drawings, and that other drawings can be made according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic flow chart of a method for detecting and early warning moisture applied to tobacco leaves according to a first embodiment of the present invention;
fig. 2 is a schematic flow chart of a method for detecting and early warning moisture applied to tobacco leaves according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a moisture detection and early warning device applied to tobacco leaves according to a third embodiment of the present invention;
Fig. 4 is a schematic structural diagram of an electronic device according to a fourth embodiment of the present invention.
Detailed Description
The invention is described in further detail below with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting thereof. It should be further noted that, for convenience of description, only some, but not all of the structures related to the present invention are shown in the drawings.
Before describing the technical scheme provided by the embodiment of the invention, an application scenario may be illustrated. In the process of preparing tobacco shreds and/or tobacco leaves into finished cigarettes, corresponding moisture detection equipment, and optionally a moisture detector can be deployed in the preparation link. The moisture value of the tobacco leaves and/or the tobacco shreds in the preparation process can be obtained based on the moisture detector. Typically, after the moisture value is obtained by the moisture detector, it may be recorded based on a PLC (Programmable Controller ).
In order to realize the technical scheme provided by the embodiment of the invention, the current acquired moisture value, the moisture value acquired at the moment before the current moment, the moisture jamming count value and the jamming count early warning threshold value can be recorded in the PLC. In the case of recording the above values based on the PLC, it can be determined whether or not early warning is required.
Example 1
Fig. 1 is a flowchart of a moisture detection and early warning method applied to tobacco leaves, which is provided in an embodiment of the present invention, and the embodiment is applicable to a scene of determining whether collected moisture values of tobacco leaves are correct in a tobacco leaf and/or tobacco shred preparation process. The apparatus may be configured in a computing device.
As shown in fig. 1, the method for detecting and early warning moisture applied to tobacco leaves provided in this embodiment specifically includes the following steps:
s110, when the condition that the moisture detection condition is met is detected, acquiring the current moisture value corresponding to the tobacco leaves and/or the tobacco shreds at the current moment.
The moisture detection condition may be understood as a condition for acquiring a current moisture value. For example, the moisture detection condition may be a condition that the current moisture value needs to be acquired at a certain time period or at a certain time. The current moisture value refers to: at the current moment, the moisture content value of the tobacco leaf and/or tobacco shred is acquired by a moisture detector.
The moisture value of the tobacco leaf and/or the tobacco shred can be obtained in real time, and the moisture value collected at the current moment is used as the current moisture value.
Specifically, when the current moment or the current situation is detected to meet the moisture detection condition, the current moisture value of the tobacco leaves and/or the tobacco shreds at the current moment can be obtained based on a pre-deployed moisture detector.
In this embodiment, the moisture detection condition may be a condition for acquiring a current moisture value at regular time, where the acquiring the current moisture value corresponding to the tobacco leaf and/or tobacco shred at the current time includes: periodically acquiring the current moisture value corresponding to the tobacco leaf and/or tobacco shred at the current moment; wherein the period duration of the periodicity is 1s.
That is, the moisture detection condition may be a condition for obtaining a moisture value at a timing. Alternatively, the timing may be to determine the moisture value at regular intervals. Periodically, at regular intervals, a certain moisture value may be understood. Alternatively, the periodic period duration may be 1S, or may be 2S, or the like, and the specific period duration may be set according to the actual situation, which is not limited in this embodiment.
It should be noted that, in order to achieve fine control, the shorter the period, the better, and optionally, 0.5S is one period. Of course, in the case where the device performance can reach the corresponding condition, the shorter the period duration can be, the better. The period duration in this embodiment is not limited to optional 20S, 50S. It can be understood that when the time interval between the current time and the previous time of collecting the moisture value of the tobacco leaf and/or the tobacco shred reaches the preset period duration, the timing task is triggered, and the current moisture value of the tobacco leaf and/or the tobacco shred at the current time can be collected.
And S120, updating the locking count information of the moisture detector when the current moisture value is different from the historical moisture value at the moment before the current moment.
Wherein, moisture detector card dead count refers to: in the working process of the moisture detector, if the moisture detector fails, the measured moisture value is inaccurate, and the stuck counts can be accumulated at the moment to obtain the stuck counts of the moisture detector. That is, the seizure count is typically used to monitor and record the number of times the moisture detector has seized or failed during operation. It should be noted that, the accuracy of moisture detection is generally in the micrometer or the part per million, and therefore, the two adjacent measured values often have differences, even if the differences are very small. If two adjacent moisture values are the same, the situation of the moisture detector fault may exist, at this time, the moisture detector fault may be primarily determined, and accordingly, the moisture detector stuck count information may be updated. The initial value of the moisture detection seizure count information is a default value. If the moisture detector is initially determined to be faulty in the application process, the moisture detection jamming count can be accumulated on the basis of a default value, and the effect of updating the moisture detector jamming count information is achieved.
It should be noted that, the jam count accumulation is performed only when the moisture detection value is the same for two times. If the two adjacent moisture detection values are different, the dead count is cleared, and the device has the advantages that whether the moisture detection value is abnormal or not can be accurately and effectively determined, and whether the moisture dead count reaches the early warning condition or not can be determined.
In this embodiment, the method includes: when the condition that the moisture detection condition is met is detected, the current moisture value at the moment before the current moment is used as the historical moisture value, and the historical moisture value is written into a first numerical table, so that when the current moisture value at the current moment is obtained, the historical moisture value is obtained from the first numerical table.
The historical moisture value refers to the moisture value of tobacco leaves or cut tobacco detected by the moisture detector at the previous moment before the current moment. The first numerical table may be understood as a data table recording moisture values at a time before the current time.
It can be understood that when the current moisture value corresponding to the current time t is obtained, the moisture value acquired at the time t-1 before the current time t can be used as a historical moisture value to be written into the first numerical table, and the setting has the advantage that the moisture values of two adjacent times can be recorded to determine whether the moisture detector fails or not based on the moisture values acquired in the two adjacent times, so that the processing quality of tobacco leaves and/or tobacco shreds is ensured.
S130, when the stuck count information of the moisture detector meets the preset count early warning condition, early warning is started.
The preset counting early warning condition can be understood as a condition for determining that the moisture detector fails. The moisture values collected by the moisture detector several times in succession are all the same, and at this time it is possible to confirm that the moisture detector has failed. That is, the preset count early warning condition is the preset early warning times. The early warning can be that the equipment sends out a 'drip' prompt tone, or that the early warning prompt message is sent to the terminal equipment corresponding to the relevant user.
Specifically, in the process of the moisture detector card dead count, the moisture detector card dead count information is obtained in real time, and when the moisture detector card dead count information reaches the preset count early warning condition, early warning can be carried out according to a preset early warning mode. At the position of
On the basis of the above scheme, the moisture detector dead-lock count information includes abnormal time length of the moisture detector, and when the current moisture value is different from the historical moisture value at a previous time before the current time, the method for updating the moisture detector dead-lock count information includes: and when the current moisture value is the same as the historical moisture value and the stuck count of the moisture detector is not the first preset value, accumulating the count on the basis of the stuck count of the moisture detector, and updating the abnormal time length of the moisture detector.
The first preset value may be a default value set under the condition that the moisture detector has no fault, and optionally, the first preset value may be a default value 0 set under the condition that the moisture detector has no fault. The abnormal time period may be understood as how long the moisture detector has failed, i.e., whether the moisture detector has failed is determined from different dimensions.
It can be understood that: when the current moisture value is the same as the previous historical moisture value, and meanwhile, the stuck count of the moisture detector is not the default value in normal operation, the moisture detector is indicated to have faults, namely the moisture value measured in the previous time is problematic, and at the moment, the current moisture value and the previous historical moisture value can be accumulated on the basis of the stuck count of the moisture detector to determine the fault duration of the fault of the moisture detector.
On the basis of the scheme, the method comprises the following steps:
And when the moisture detector dead-lock count is a first preset value, starting the moisture detector dead-lock count to determine the abnormal time length of the moisture detector.
It can be understood that: if the current moisture value is the same as the historical moisture value, it is indicated that the moisture detector may fail, and at this time, it may be determined whether the moisture detector stuck count is a first preset value. If the first preset value is a first preset value, the fact that the moisture detector fails before is indicated, and under the condition, the moisture detector can be started to be stuck for counting so as to record the abnormal time length of the moisture detector.
On the basis of the scheme, the method further comprises the following steps: and when the current moisture value is different from the historical moisture value and the moisture detector stuck count is not a first preset value, adjusting the moisture detector stuck count to the first preset value.
In practical applications, there may be a situation that the moisture values of two adjacent times are the same, and this situation may be that the moisture values of tobacco leaves and/or tobacco shreds are the same, and the moisture detector is not faulty. Alternatively, the moisture values collected several times in succession are the same, but the same number of times does not reach the pre-warning condition, and the moisture values collected next are different from the moisture values collected previously, at this time, it is only that the moisture values of the tobacco leaves and/or the tobacco shreds at the previous times are the same, and the malfunction of the moisture detector cannot be described, and in this case, the locking count of the moisture detector may be adjusted to a first preset value to indicate that the moisture detector has not failed.
On the basis of the above scheme, when the dead count information of the moisture detector meets the preset count early warning condition, early warning is started, and the method comprises the following steps:
and when the abnormal time length of the moisture detector in the stuck count information of the moisture detector reaches a preset count time length threshold value, early warning is started.
That is, when the abnormal time length of the moisture detection in the stuck count information of the moisture detector reaches the threshold value of the time length of the preset time length, the moisture detector can be determined to have faults, and at the moment, early warning can be carried out according to the preset early warning mode, so that the technical effect of effectively reminding a user is achieved.
According to the technical scheme, when the condition that the moisture detection condition is met is detected, the current moisture value corresponding to the tobacco leaves and/or the tobacco shreds at the current moment is obtained; updating the stuck count information of the moisture detector when the current moisture value is different from the historical moisture value at the moment before the current moment; and when the stuck count information of the moisture detector meets the preset count early warning condition, early warning is started. The technical scheme provided by the embodiment of the invention solves the problems that the water detector is not easy to find manually when the water detector fails in the prior art, and the quality of products is affected when the subsequent process is continued according to the water detector, realizes the comparison processing of the water detection values acquired from two adjacent sides, determines whether the water detector fails or not based on the comparison result, further achieves the effect of timely early warning, and correspondingly, can enable the subsequent process to be executed under the condition of correct water value, thereby achieving the technical effect of effectively controlling the quality of tobacco leaves.
Example two
As an alternative embodiment of the foregoing embodiment, fig. 2 is a schematic flow chart of a method for detecting and early warning moisture applied to tobacco leaves according to an embodiment of the present invention; based on the foregoing embodiments, a specific example may be used to further understand the technical solution provided by the embodiments of the present invention.
As shown in fig. 2, the method includes:
Before the technical scheme provided by the embodiment of the invention is executed, variables such as a moisture value at the previous moment, a current moisture value at the current moment, a moisture locking duration count, a moisture locking alarm position and the like can be established in a PLC program. The initial values of the first three variables may be set to a first preset value, and optionally, the first preset value is 0; the initial value of the moisture jam alarm bit variable is set to 5, and if the moisture jam moisture alarm bit (moisture detector jam count information) corresponds to the jam abnormal time length, the initial value may be multiplied by the acquisition cycle time length of the adjacent two acquired moisture detection values.
When the current moisture value corresponding to the current moment is obtained, the current moisture value collected at the previous moment is used as a historical moisture value, and optionally, the current moisture value is used as a previous second moisture value. And writing the current moisture value acquired at the current moment into the current moisture value. At this time, it is possible to compare whether the "previous second moisture value" and the "current moisture value" are the same, if so, the "moisture lock-up period count" is incremented by 1, and if not, the "moisture lock-up period count" is set to an initial value of 0.
Further, comparing the water jamming time length count with the water jamming alarm time length set value, and if the water jamming time length count is smaller than or equal to the water jamming alarm time length set value, assigning the water jamming alarm position to be FALSE to indicate that the water jamming condition is not detected; if the moisture jamming time length count is larger than the moisture jamming alarm time length set value, the moisture jamming alarm bit is assigned to TRUE, and the moisture jamming condition is detected.
When the condition of moisture blocking is detected, early warning can be carried out.
It should be noted that the above steps may be repeatedly performed to obtain the moisture value of the tobacco leaf and/or the cut tobacco in real time, and determine whether the moisture detector has a fault.
According to the technical scheme, when the condition that the moisture detection condition is met is detected, the current moisture value corresponding to the tobacco leaves and/or the tobacco shreds at the current moment is obtained; updating the stuck count information of the moisture detector when the current moisture value is different from the historical moisture value at the moment before the current moment; and when the stuck count information of the moisture detector meets the preset count early warning condition, early warning is started. The technical scheme provided by the embodiment of the invention solves the problems that the water detector is not easy to find manually when the water detector fails in the prior art, and the quality of products is affected when the subsequent process is continued according to the water detector, realizes the comparison processing of the water detection values acquired from two adjacent sides, determines whether the water detector fails or not based on the comparison result, further achieves the effect of timely early warning, and correspondingly, can enable the subsequent process to be executed under the condition of correct water value, thereby achieving the technical effect of effectively controlling the quality of tobacco leaves.
Example III
Fig. 3 is a block diagram of a moisture detection and early warning device applied to tobacco leaves according to a third embodiment of the present invention. The device comprises: the system comprises a moisture detection module 310, a data analysis module 320 and an information pre-warning module 330.
The moisture detection module 310 obtains a current moisture value corresponding to the tobacco leaf and/or the cut tobacco at the current moment when the condition that the moisture detection condition is met is detected. And a data analysis module 320 for updating the stuck count information of the moisture detector when the current moisture value is different from the historical moisture value at a time before the current time. And the information early warning module 330 starts early warning when the stuck count information of the moisture detector meets the preset count early warning condition.
According to the technical scheme, when the condition that the moisture detection condition is met is detected, the current moisture value corresponding to the tobacco leaves and/or the tobacco shreds at the current moment is obtained; updating the stuck count information of the moisture detector when the current moisture value is different from the historical moisture value at the moment before the current moment; and when the stuck count information of the moisture detector meets the preset count early warning condition, early warning is started. The technical scheme provided by the embodiment of the invention solves the problems that the water detector is not easy to find manually when the water detector fails in the prior art, and the quality of products is affected when the subsequent process is continued according to the water detector, realizes the comparison processing of the water detection values acquired from two adjacent sides, determines whether the water detector fails or not based on the comparison result, further achieves the effect of timely early warning, and correspondingly, can enable the subsequent process to be executed under the condition of correct water value, thereby achieving the technical effect of effectively controlling the quality of tobacco leaves.
On the basis of the technical scheme, the moisture detection module comprises:
the current moisture value acquisition unit is used for periodically acquiring the current moisture value corresponding to the tobacco leaf and/or the tobacco shred at the current moment;
wherein the period duration of the periodicity is 1s.
On the basis of the technical scheme, the moisture detection module further comprises:
And a history moisture value acquisition unit configured to, when it is detected that a moisture detection condition is satisfied, write a current moisture value at a time immediately before a current time as the history moisture value into a first numerical table, so as to acquire the history moisture value from the first numerical table when the current moisture value at the current time is acquired.
On the basis of the above technical solutions, the data analysis module includes:
The abnormal unit of the moisture detector is characterized in that when the current moisture value is the same as the historical moisture value and the stuck count of the moisture detector is not a first preset value, the abnormal time of the moisture detector is updated by accumulating the count on the basis of the stuck count of the moisture detector.
When the moisture detector dead-lock count is a first preset value, starting the moisture detector dead-lock count to determine the abnormal time of the moisture detector
On the basis of the above technical solutions, the information early warning module further includes:
and the early warning unit starts early warning when the abnormal time length of the moisture detector in the stuck count information reaches a preset count time length threshold value.
According to the technical scheme provided by the embodiment of the invention, when the condition that the moisture detection condition is met is detected, the current moisture value corresponding to the tobacco leaves and/or the tobacco shreds at the current moment can be obtained; updating the stuck count information of the moisture detector when the current moisture value is different from the historical moisture value at the moment before the current moment; and when the stuck count information of the moisture detector meets the preset count early warning condition, early warning is started. The technical scheme provided by the embodiment of the invention solves the problems that the measured value faults of the moisture meter are difficult to find manually and the product quality is influenced in the prior art, realizes automatic early warning and prompting under the condition of comparing the moisture values in a time period, and achieves the effects of reducing the risk coefficient of the product quality and ensuring that operators are difficult to find the problems.
The moisture detection and early warning device applied to the tobacco leaves provided by the embodiment of the invention can execute the moisture detection and early warning method applied to the tobacco leaves provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
It should be noted that each unit and module included in the above apparatus are only divided according to the functional logic, but not limited to the above division, so long as the corresponding functions can be implemented; in addition, the specific names of the functional units are also only for distinguishing from each other, and are not used to limit the protection scope of the embodiments of the present invention.
Example IV
Fig. 4 is a schematic structural diagram of an electronic device according to a fourth embodiment of the present invention. Fig. 4 shows a block diagram of an exemplary electronic device 40 suitable for use in implementing the embodiments of the present invention. The electronic device 40 shown in fig. 4 is merely an example and should not be construed as limiting the functionality and scope of use of embodiments of the present invention.
As shown in fig. 4, the electronic device 40 is in the form of a general purpose computing device. Components of electronic device 40 may include, but are not limited to: one or more processors or processing units 401, a system memory 402, a bus 403 that connects the various system components (including the system memory 402 and the processing units 401).
Bus 403 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, or a local bus using any of a variety of bus architectures. By way of example, and not limitation, such architectures include Industry Standard Architecture (ISA) bus, micro channel architecture (MAC) bus, enhanced ISA bus, video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Electronic device 40 typically includes a variety of computer system readable media. Such media can be any available media that is accessible by electronic device 40 and includes both volatile and non-volatile media, removable and non-removable media.
The system memory 402 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM) 405 and/or cache memory 405. Electronic device 40 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 405 may be used to read from or write to a non-removable, non-volatile magnetic media (not shown in FIG. 4, commonly referred to as a "hard disk drive"). Although not shown in fig. 4, a magnetic disk drive for reading from and writing to a removable non-volatile magnetic disk (e.g., a "floppy disk"), and an optical disk drive for reading from or writing to a removable non-volatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In such cases, each drive may be coupled to bus 403 through one or more data medium interfaces. Memory 402 may include at least one program product having a set (e.g., at least one) of program modules configured to carry out the functions of embodiments of the invention.
A program/utility 408 having a set (at least one) of program modules 407 may be stored in, for example, memory 402, such program modules 407 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each or some combination of which may include an implementation of a network environment. Program modules 407 generally perform the functions and/or methods of the described embodiments of the invention.
The electronic device 40 may also communicate with one or more external devices 409 (e.g., keyboard, pointing device, display 410, etc.), one or more devices that enable a user to interact with the electronic device 40, and/or any devices (e.g., network card, modem, etc.) that enable the electronic device 40 to communicate with one or more other computing devices. Such communication may occur through an input/output (I/O) interface 411. Also, electronic device 40 may communicate with one or more networks such as a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the Internet, through network adapter 412. As shown, network adapter 412 communicates with other modules of electronic device 40 over bus 403. It should be appreciated that although not shown in fig. 4, other hardware and/or software modules may be used in connection with electronic device 40, including, but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, data backup storage systems, and the like.
The processing unit 401 executes various functional applications and data processing by running a program stored in the system memory 402, for example, to implement the moisture detection early warning method applied to tobacco leaves provided in the embodiment of the present invention.
Example five
The fifth embodiment of the present invention also provides a storage medium containing computer-executable instructions, which when executed by a computer processor, are used to perform a moisture detection and early warning method applied to tobacco leaves. The method comprises the following steps:
when the condition that the moisture detection condition is met is detected, acquiring a current moisture value corresponding to the tobacco leaves and/or the tobacco shreds at the current moment;
Updating the stuck count information of the moisture detector when the current moisture value is different from the historical moisture value at the moment before the current moment;
and when the stuck count information of the moisture detector meets the preset count early warning condition, early warning is started.
The computer storage media of embodiments of the invention may take the form of any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the computer-readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for embodiments of the present invention may be written in one or more programming languages, including an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
Note that the above is only a preferred embodiment of the present invention and the technical principle applied. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, while the invention has been described in connection with the above embodiments, the invention is not limited to the embodiments, but may be embodied in many other equivalent forms without departing from the spirit or scope of the invention, which is set forth in the following claims.

Claims (10)

1. The moisture detection and early warning method applied to tobacco leaves is characterized by comprising the following steps of:
when the condition that the moisture detection condition is met is detected, acquiring a current moisture value corresponding to the tobacco leaves and/or the tobacco shreds at the current moment;
Updating the stuck count information of the moisture detector when the current moisture value is different from the historical moisture value at the moment before the current moment;
and when the stuck count information of the moisture detector meets the preset count early warning condition, early warning is started.
2. The method according to claim 1, wherein the moisture detection condition is a condition for acquiring a current moisture value at a timing, and the acquiring the current moisture value corresponding to the tobacco leaf and/or the tobacco shred at the current time includes:
periodically acquiring the current moisture value corresponding to the tobacco leaf and/or tobacco shred at the current moment;
wherein the period duration of the periodicity is 1s.
3. The method as recited in claim 1, further comprising:
When the condition that the moisture detection condition is met is detected, the current moisture value at the moment before the current moment is used as the historical moisture value, and the historical moisture value is written into a first numerical table, so that when the current moisture value at the current moment is obtained, the historical moisture value is obtained from the first numerical table.
4. The method according to claim 1, wherein the moisture detector seizure count information includes a moisture detector abnormal time period, and the updating the moisture detector seizure count information when the current moisture value is different from a historical moisture value at a time immediately before the current time includes:
When the current moisture value is the same as the historical moisture value and the stuck count of the moisture detector is not the first preset value, accumulating the count on the basis of the stuck count of the moisture detector and updating the abnormal time length of the moisture detector.
5. The method as recited in claim 4, further comprising:
and when the moisture detector dead-lock count is a first preset value, starting the moisture detector dead-lock count to record the abnormal time length of the moisture detector.
6. The method as recited in claim 1, further comprising:
and when the current moisture value is different from the historical moisture value and the moisture detector stuck count is not a first preset value, adjusting the moisture detector stuck count to the first preset value.
7. The method of claim 1, wherein the beginning of the pre-warning when the moisture detector seizure count information meets a preset count pre-warning condition comprises:
and when the abnormal time length of the moisture detector in the stuck count information of the moisture detector reaches a preset count time length threshold value, early warning is started.
8. Be applied to moisture detection early warning device in tobacco leaf, characterized by comprising:
The moisture detection module is used for acquiring a current moisture value corresponding to the tobacco leaves and/or the tobacco shreds at the current moment when the condition of moisture detection is detected to be met;
The data analysis module is used for updating the locking counting information of the moisture detector when the current moisture value is different from the historical moisture value at the moment before the current moment;
And the information early warning module starts early warning when the stuck count information of the moisture detector meets the preset count early warning condition.
9. An electronic device, the device comprising:
one or more processors;
storage means for storing one or more programs,
When the one or more programs are executed by the one or more processors, the one or more processors implement the moisture detection and early warning method applied to tobacco leaves as claimed in any one of claims 1 to 7.
10. A computer-readable storage medium, on which a computer program is stored, characterized in that the program, when executed by a processor, implements the moisture detection and early warning method applied to tobacco leaves according to any one of claims 1 to 7.
CN202410355845.6A 2024-03-27 Moisture detection early warning method, device, equipment and medium applied to tobacco leaves Pending CN118225977A (en)

Publications (1)

Publication Number Publication Date
CN118225977A true CN118225977A (en) 2024-06-21

Family

ID=

Similar Documents

Publication Publication Date Title
US8473789B2 (en) Memory leak monitoring system and associated methods
US8977908B2 (en) Method and apparatus for detecting a suspect memory leak
CN110017994B (en) Method, apparatus, system, device and medium for detecting abnormality of autonomous vehicle
US20100070213A1 (en) Method for Monitoring the Electrical Energy Quality in an Electrical Energy Supply System, Power Quality Field Device and Power Quality System
CN110224885B (en) Equipment monitoring alarm method and device, storage medium and electronic equipment
CN112820066B (en) Object-based alarm processing method, device, equipment and storage medium
US9043652B2 (en) User-coordinated resource recovery
CN110580234A (en) Fusing method suitable for micro server and external system
US20180131560A1 (en) Content-aware anomaly detection and diagnosis
CN113903389A (en) Slow disk detection method and device and computer readable and writable storage medium
CN110943865A (en) Method and device for diagnosing equipment fault time and related equipment
CN112256548B (en) Abnormal data monitoring method and device, server and storage medium
US20100174947A1 (en) Damaged software system detection
CN111241155B (en) Time sequence data abnormality detection method, device, equipment and storage medium
CN111736579B (en) Industrial control equipment safety detection method based on log inquiry and retention
CN111159051B (en) Deadlock detection method, deadlock detection device, electronic equipment and readable storage medium
CN118225977A (en) Moisture detection early warning method, device, equipment and medium applied to tobacco leaves
CN111586129A (en) Alarm method and device for data synchronization, electronic equipment and storage medium
CN111784176A (en) Data processing method, device, server and medium
KR101834814B1 (en) Method for saving fault wave data
CN115793990A (en) Memory health state determination method and device, electronic equipment and storage medium
CN113760669A (en) Problem data warning method and device, electronic equipment and storage medium
CN111103003A (en) Method, device and equipment for discriminating monitoring data of experimental instrument and storage medium
CN114385387B (en) Access information generation method and device and computer equipment
CN112150795A (en) Method and device for detecting vehicle track abnormity

Legal Events

Date Code Title Description
PB01 Publication