A method, device, equipment and storage medium for synchronizing cigarette quality data
By sampling cigarette sticks on the cigarette machine and transporting them to the comprehensive testing equipment using the cigarette stick conveying device, the data difference problem between the online testing device and the comprehensive testing equipment is solved, and the synchronization of cigarette stick quality data is achieved, the performance of the detection device is optimized and labor costs are saved.
Patent Information
- Application Number
- CN202310222678.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-06
- Publication Date
- 2025-07-25
- Estimated Expiration
- 2043-03-06
AI Technical Summary
In the prior art, there is a difference in the detection results between the online detection device on the cigarette machine and the comprehensive detection equipment for the cigarette branch, which makes it difficult to synchronize the quality data of the cigarette branch, and it is impossible to effectively optimize the detection algorithm and monitor the working status of the online detection device, which increases the risk of cigarette branch quality accidents.
The synchronization of the data is achieved by sampling cigarette sticks on the cigarette machine and transporting them to the cigarette stick comprehensive detection equipment using the pre-created cigarette stick conveying device for detection, and the comprehensive and online quality detection data are obtained and saved.
The accurate synchronization of cigarette support quality data is achieved, the performance of the online detection device on the cigarette machine is optimized, labor costs are saved, and cigarette support quality accidents are avoided.
Smart Images

Figure CN116076779B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of data synchronization, and particularly relates to a method, device, equipment and storage medium for synchronizing cigarette quality data. Background Art
[0002] At present, during the cigarette production process, an on-line detection device installed on a cigarette making machine, such as an on-line detection sensor, can reject cigarettes whose indicators such as weight, air leakage, ventilation rate, and draw resistance do not meet the requirements. Moreover, the cigarette making machine can also characterize the various above-mentioned quality data of each cigarette and store them in a database. In addition, professional cigarette comprehensive detection equipment, such as a cigarette comprehensive test bench, is usually equipped at the cigarette production site, and the data of this comprehensive detection equipment is also stored in the corresponding database, specifically including data such as the detection serial number, detection time, and cigarette quality of each cigarette.
[0003] However, due to differences in precision, detection methods, and detection states, there are certain differences in the detection results between the on-line detection device and the cigarette comprehensive detection equipment. And cigarette production enterprises usually take the detection results of the equipped cigarette comprehensive detection equipment as the standard. Synchronizing the cigarette quality data detected by both, that is, obtaining two sets of quality detection data of the same cigarette at the same time, can further optimize the detection algorithm of the on-line detection device on the cigarette making machine and the control algorithm of the quality control device, and at the same time can accurately monitor the working state of the on-line detection sensor installed on the cigarette making machine, avoiding the occurrence of cigarette quality accidents in cigarette enterprises.
[0004] Therefore, how to synchronize the cigarette quality data detected by the off-line cigarette comprehensive detection equipment and the quality data of each cigarette characterized by the on-line detection device on the cigarette making machine is a problem that still needs to be further solved in this field. Summary of the Invention
[0005] In view of this, the purpose of the present application is to provide a method, device, equipment and storage medium for synchronizing cigarette quality data, which can accurately transport the sampled cigarettes to the comprehensive detection equipment, realize the synchronization of the cigarette quality data detected by the comprehensive detection equipment and the cigarette quality data characterized by the cigarette making machine, save a large amount of labor costs, and avoid the occurrence of cigarette quality accidents in cigarette enterprises. The specific solutions are as follows:
[0006] In a first aspect, the present application discloses a method for synchronizing cigarette quality data, including:
[0007] Sampling the cigarettes to be synchronized by a cigarette making machine to obtain target sampled cigarettes;
[0008] Obtaining the quality data of the target sampled cigarettes detected by an on-line detection device to obtain on-line quality detection data;
[0009] Transport the target sampled cigarette to a comprehensive cigarette detection device through a pre-created cigarette conveying device, so as to detect the target sampled cigarette through the comprehensive cigarette detection device and obtain comprehensive detection data;
[0010] Query the quality data in the comprehensive detection data to obtain comprehensive quality detection data, and save the comprehensive quality detection data and the on-line quality detection data to a preset data table.
[0011] Optionally, the obtaining the on-line quality detection data by acquiring the quality data of the target sampled cigarette detected by the on-line detection device includes:
[0012] Acquire the quality data of the target sampled cigarette detected by the on-line sensor from the on-line database to obtain on-line quality detection data.
[0013] Optionally, the querying the quality data in the comprehensive detection data to obtain comprehensive quality detection data includes:
[0014] Query the quality data in the comprehensive detection data from the comprehensive database to obtain comprehensive quality detection data.
[0015] Optionally, the saving the comprehensive quality detection data and the on-line quality detection data to a preset data table includes:
[0016] Extract the comprehensive quality detection data from the comprehensive database and extract the on-line quality detection data from the on-line database;
[0017] Save the comprehensive quality detection data and the on-line quality detection data to a preset data table according to the cigarette production serial number of the target sampled cigarette detected by the cigarette making machine.
[0018] Optionally, before saving the comprehensive quality detection data and the on-line quality detection data to a preset data table, it further includes:
[0019] Query the cigarette production serial number corresponding to the cigarette with the largest production serial number among the cigarettes with the sampling valve status of 1 in the on-line database to obtain the largest sampled cigarette and the corresponding largest production serial number;
[0020] Judge whether the target sampled cigarette is the largest sampled cigarette according to the largest production serial number and the corresponding production time. If not, query the cigarette with the largest detection serial number and the corresponding detection serial number in the comprehensive database to obtain the largest detected cigarette and the corresponding largest detection serial number;
[0021] Determine whether the target sampled cigarette is the maximum detected cigarette according to the maximum detection serial number and the corresponding detection time. If not, execute the step of saving the comprehensive quality detection data and the on-line quality detection data into a preset data table.
[0022] Optionally, the cigarette quality data synchronization method further includes:
[0023] Connect the comprehensive database storing the comprehensive quality detection data and the on-line database storing the on-line quality detection data by using a computer programming language.
[0024] Optionally, the cigarette conveying device includes a shaft, a connecting plate, a conveying belt, a flap, a sampling box bent plate, a motor, a cylinder, and a fixing bracket.
[0025] In a second aspect, the present application discloses a cigarette quality data synchronization device, including:
[0026] A cigarette sampling module, configured to sample a cigarette to be synchronized by a cigarette making machine to obtain a target sampled cigarette;
[0027] A quality data acquisition module, configured to acquire the quality data of the target sampled cigarette detected by an on-line detection device to obtain on-line quality detection data;
[0028] A cigarette transmission module, configured to convey the target sampled cigarette to a cigarette comprehensive detection device through a pre-created cigarette conveying device;
[0029] A cigarette detection module, configured to detect the target sampled cigarette through the cigarette comprehensive detection device to obtain comprehensive detection data;
[0030] A quality data query module, configured to query the quality data in the comprehensive detection data to obtain comprehensive quality detection data;
[0031] A data storage module, configured to save the comprehensive quality detection data and the on-line quality detection data into a preset data table.
[0032] In a third aspect, the present application discloses an electronic device, including a processor and a memory; wherein, when the processor executes a computer program stored in the memory, the foregoing cigarette quality data synchronization method is implemented.
[0033] In a fourth aspect, the present application discloses a computer-readable storage medium for storing a computer program; wherein, when the computer program is executed by a processor, the foregoing cigarette quality data synchronization method is implemented.
[0034] It can be seen that in this application, first, a cigarette-making machine is used to sample the cigarettes to be data-synchronized to obtain target sampled cigarettes, then the quality data of the target sampled cigarettes detected by an on-line detection device is acquired to obtain on-line quality detection data. Next, the target sampled cigarettes are conveyed to a comprehensive cigarette detection device through a pre-created cigarette conveying device, so that the comprehensive detection data can be obtained by detecting the target sampled cigarettes through the comprehensive cigarette detection device. Then, the quality data in the comprehensive detection data is queried to obtain comprehensive quality detection data, and the comprehensive quality detection data and the on-line quality detection data are saved to a preset data table. Through the created cigarette conveying device, this application can accurately convey the sampled cigarettes to the comprehensive detection device, thus realizing the synchronization of the cigarette quality data detected by the comprehensive detection device and the cigarette quality data represented by the cigarette-making machine. Furthermore, the performance of the on-line detection device on the cigarette-making machine is optimized, and at the same time, the working state of the on-line detection device can be accurately monitored, saving a large amount of labor costs and avoiding the occurrence of cigarette quality accidents in cigarette enterprises. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, the drawings in the following description are only the embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained according to the provided drawings without creative efforts.
[0036] Figure 1 It is a flowchart of a method for synchronizing cigarette quality data disclosed in the present application;
[0037] Figure 2 It is a schematic diagram of a specific cigarette conveying device disclosed in the present application;
[0038] Figure 3 It is a flowchart of a specific method for synchronizing cigarette quality data disclosed in the present application;
[0039] Figure 4 It is a schematic diagram of the structure of a device for synchronizing cigarette quality data disclosed in the present application;
[0040] Figure 5 It is a structural diagram of an electronic device disclosed in the present application. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0041] The following will clearly and completely describe the technical solutions in the embodiments of the present application with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments of the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts belong to the scope of protection of the present application.
[0042] An embodiment of the present application discloses a method for synchronizing cigarette quality data. Refer to Figure 1 as shown, the method includes:
[0043] Step S11: Use a cigarette making machine to sample the cigarettes to be synchronized for data, and obtain target sampled cigarettes.
[0044] In this embodiment, first, the cigarette making machine samples all the cigarettes to be synchronized for cigarette quality data respectively. Specifically, all the cigarettes produced can be sampled respectively according to the production order of the cigarette making machine to obtain corresponding target sampled cigarettes.
[0045] Step S12: Obtain the quality data of the target sampled cigarettes detected by an on-line detection device to obtain on-line quality detection data.
[0046] In this embodiment, after using the cigarette making machine to sample the cigarettes to be synchronized for data to obtain target sampled cigarettes, further, obtain the quality data of the above target sampled cigarettes detected by an on-line detection device located on the cigarette making machine, such as various types of sensors (weight sensor, air leakage sensor, ventilation sensor, draw resistance sensor, etc.) on the cigarette making machine, to obtain corresponding on-line quality detection data.
[0047] Specifically, the step of obtaining the quality data of the target sampled cigarettes detected by the on-line detection device to obtain on-line quality detection data may include: obtaining the quality data of the target sampled cigarettes detected by on-line sensors from an on-line database to obtain on-line quality detection data. It can be understood that since the on-line quality detection data detected by the on-line sensors on the cigarette making machine is stored in the corresponding on-line database, after sampling the cigarettes to be synchronized for data by the cigarette making machine, the quality data of the sampled cigarettes detected by the on-line sensors can be directly obtained from the above on-line database; wherein, the quality data of the sampled cigarettes detected by the on-line sensors includes, but is not limited to, quality index data such as sampling valve state, weight, air leakage, ventilation, draw resistance, etc.
[0048] Step S13: Transport the target sampled cigarettes to a cigarette comprehensive detection device through a pre-created cigarette conveying device, so that the cigarette comprehensive detection device can detect the target sampled cigarettes to obtain comprehensive detection data.
[0049] In this embodiment, after obtaining the online quality detection data by acquiring the quality data of the target sampled cigarette detected by the online detection device, the target sampled cigarette can be conveyed to a cigarette comprehensive detection device, such as a cigarette comprehensive test bench, through a pre-created cigarette conveying device, and then the target sampled cigarette is comprehensively detected by the cigarette comprehensive detection device to obtain corresponding comprehensive detection data. Among them, the cigarette conveying device specifically includes a shaft, a connecting plate, a conveying belt, a flap, a sampling box bending plate, a motor, a cylinder, and a fixed bracket; the comprehensive detection data includes, but is not limited to, quality index data such as detection serial number, detection time, weight, air leakage, ventilation, and draw resistance.
[0050] It should be noted that compared with the traditional method of manually conveying the target sampled cigarette from the online detection device to the cigarette comprehensive detection device, this embodiment designs a cigarette conveying device for automatically conveying the target sampled cigarette to the cigarette comprehensive detection device. Refer to Figure 2 As shown, the cigarette conveying device specifically includes: 1. Shaft; 2. Connecting plate one; 3. Conveying belt one; 4. Flap; 5. Sampling box bending plate; 6. Conveying belt two; 7. Motor one; 8. Connecting plate two; 9. Cylinder; 10. Motor two; 11. Fixed bracket. The process of conveying the sampled cigarette by the above cigarette conveying device specifically includes: when sampling is performed by the cigarette making machine, the output signal of the sampling valve is 1, and the sampled cigarette falls from the drum to the position of 2 (i.e., the connecting plate one) of the cigarette conveying device and is clamped between 3 (conveying belt one) and 2; when the cigarette falls on 2 instantaneously, 10 (motor two) starts and drives 1 (shaft) to rotate, thereby driving 3 to rotate. When 3 rotates, it drives the cigarette to move downward. It should be noted that the distance between 1 and 3 should be slightly smaller than the diameter of the cigarette, and by default, 4 is not connected to 2 and 8 (connecting plate two). Then, passing through 4 (flap), the cigarette falls from 2 to 5 (sampling box bending plate) and finally falls into the sampling box of the cigarette making machine. When the sampled cigarette needs to be sent to the cigarette comprehensive detection device, 9 (cylinder) is turned on, so that 4 connects 3 and 8, and the sampled cigarette rolls along 3, 4, and 8 and finally reaches 6 (conveying belt two). When 9 is turned on, 7 (motor one) rotates to drive the cigarette to the feeding port of the cigarette comprehensive detection device. In this way, the conveyance of the sampled cigarette from the cigarette sampling drum to the cigarette comprehensive detection device is realized.
[0051] Step S14: Query the quality data in the comprehensive detection data to obtain comprehensive quality detection data, and save the comprehensive quality detection data and the online quality detection data to a preset data table.
[0052] In this embodiment, after the comprehensive detection data of the target sampled cigarette is obtained by the cigarette comprehensive detection device, data related to the cigarette quality data can be queried from the above comprehensive detection data, and then the corresponding comprehensive quality detection data can be obtained. Then, the queried comprehensive quality detection data and the above online quality detection data are saved together into a pre-created data table.
[0053] Specifically, querying the quality data in the comprehensive detection data to obtain the comprehensive quality detection data may include: querying the quality data in the comprehensive detection data from the comprehensive database to obtain the comprehensive quality detection data. It can be understood that after the cigarette comprehensive detection device detects the comprehensive detection data of the target sampled cigarette, it will save it to the corresponding comprehensive database. Therefore, when it is necessary to obtain the quality data in the comprehensive detection data, it can be directly obtained from the comprehensive database.
[0054] In this embodiment, it is also necessary to connect the comprehensive database storing the comprehensive quality detection data and the online database storing the online quality detection data in advance using a computer programming language. For example, use a computer programming language such as python, Java, etc. to connect the comprehensive database corresponding to the comprehensive test device and the online database recording the single-cigarette data information of the cigarette machine.
[0055] In this embodiment, saving the comprehensive quality detection data and the online quality detection data to the preset data table may specifically include: extracting the comprehensive quality detection data from the comprehensive database and extracting the online quality detection data from the online database; saving the comprehensive quality detection data and the online quality detection data to the preset data table according to the cigarette production serial number of the target sampled cigarette detected by the cigarette machine. That is, first extract the comprehensive quality detection data detected by the cigarette comprehensive detection device from the comprehensive database, then extract the online quality detection data detected by the online detection device from the online database, and then save the above comprehensive quality detection data and the online quality detection data to the pre-created data table according to the cigarette production serial number detected by the cigarette machine.
[0056] It can be seen that in the embodiment of the present application, first, a cigarette-making machine is used to sample the cigarettes to be synchronized with data to obtain target sampled cigarettes, then the quality data of the target sampled cigarettes detected by an on-line detection device is obtained to get on-line quality detection data. Next, the target sampled cigarettes are transported to a comprehensive cigarette detection device through a pre-created cigarette conveying device, so that the comprehensive detection data can be obtained by detecting the target sampled cigarettes through the comprehensive cigarette detection device. Then, the quality data in the comprehensive detection data is queried to obtain comprehensive quality detection data, and the comprehensive quality detection data and the on-line quality detection data are saved to a preset data table. In the embodiment of the present application, the created cigarette conveying device can accurately transport the sampled cigarettes to the comprehensive detection device, thereby realizing the synchronization of the cigarette quality data detected by the comprehensive detection device and the cigarette quality data characterized by the cigarette-making machine. Furthermore, the performance of the on-line detection device on the cigarette-making machine is optimized, and at the same time, the working state of the on-line detection device can be accurately monitored, saving a large amount of labor costs and avoiding the occurrence of cigarette quality accidents in cigarette enterprises.
[0057] An embodiment of the present application discloses a specific method for synchronizing cigarette quality data. Refer to Figure 3 as shown, the method includes:
[0058] Step S21: Use a cigarette-making machine to sample the cigarettes to be synchronized with data to obtain target sampled cigarettes.
[0059] Step S22: Obtain the quality data of the target sampled cigarettes detected by an on-line sensor from an on-line database to get on-line quality detection data.
[0060] Step S23: Transport the target sampled cigarettes to a comprehensive cigarette detection device through a pre-created cigarette conveying device, so that the comprehensive detection data can be obtained by detecting the target sampled cigarettes through the comprehensive cigarette detection device.
[0061] Step S24: Query the quality data in the comprehensive detection data from a comprehensive database to obtain comprehensive quality detection data, extract the comprehensive quality detection data from the comprehensive database, and then extract the on-line quality detection data from the on-line database.
[0062] Step S25: Query the cigarette production serial number corresponding to the cigarette with the largest production serial number among the cigarettes with the sampling valve status of 1 in the on-line database to obtain the largest sampled cigarette and the corresponding largest production serial number.
[0063] In this embodiment, after extracting the online quality inspection data from the online database, it is necessary to save the extracted online quality inspection data to the corresponding online database. However, to prevent the phenomenon of duplicate saving due to the online quality inspection data of the target sampled cigarette already being saved in the online database, before saving the online quality inspection data, the cigarette production number corresponding to the cigarette with the largest production number among the cigarettes with the sampling valve status of 1 in the above-mentioned online database can be queried to obtain the corresponding largest sampled cigarette and the corresponding largest production number. Among them, when obtaining the largest production number, the production numbers of all cigarettes in the online database can be sorted in descending order first, and then the largest production number can be directly obtained.
[0064] Step S26: Determine whether the target sampled cigarette is the largest sampled cigarette according to the largest production number and the corresponding production time. If not, query the cigarette with the largest inspection number and the corresponding inspection number in the comprehensive database to obtain the largest inspected cigarette and the corresponding largest inspection number.
[0065] In this embodiment, after obtaining the largest sampled cigarette and the corresponding largest production number, determine whether the target sampled cigarette is the largest sampled cigarette according to the largest production number and the corresponding production time, that is, determine whether the online database has recorded the quality inspection data related to the target sampled cigarette. The basis for judgment is whether the cigarette production number and production time have been updated. If the largest production number and the corresponding production time in the current online database are inconsistent with the production number and the corresponding time of the target sampled cigarette, it indicates that the online database has not recorded the quality inspection data related to the target sampled cigarette at this time. At this time, the cigarette with the largest inspection number and the corresponding inspection number in the above-mentioned comprehensive database can be further queried to obtain the corresponding largest inspected cigarette and the corresponding largest inspection number.
[0066] Step S27: Determine whether the target sampled cigarette is the largest inspected cigarette according to the largest inspection number and the corresponding inspection time. If not, save the comprehensive quality inspection data and the online quality inspection data to the preset data table according to the cigarette production number of the target sampled cigarette detected by the cigarette machine.
[0067] In this embodiment, after querying for the cigarette with the largest detection serial number in the comprehensive database and the corresponding detection serial number to obtain the largest detected cigarette and the corresponding largest detection serial number, it is determined whether the target sampled cigarette is the largest detected cigarette according to the largest detection serial number and the corresponding detection time. If the largest detection serial number and the corresponding detection time are inconsistent with the detection serial number and the corresponding detection time of the target sampled cigarette, it indicates that the target sampled cigarette is not the largest detected cigarette. At this time, the comprehensive quality detection data and the online quality detection data can be saved to a preset data table together according to the cigarette production serial number of the target sampled cigarette detected by the cigarette machine.
[0068] Among them, for the more specific processing procedures of the above steps S21 to S24, reference can be made to the corresponding content disclosed in the foregoing embodiments, and details will not be elaborated here.
[0069] It can be seen that the cigarette conveying device created in the embodiment of the present application can accurately and automatically convey the sampled cigarette to the comprehensive detection device, thus saving a large amount of labor costs; and before saving the quality detection data to the comprehensive database and the online database, the judgment of the same information is carried out, thus ensuring the synchronous update of the information; by saving the quality detection data extracted from the two databases to a preset data table, the synchronization of the cigarette quality data detected by the comprehensive detection device and the cigarette quality data characterized by the cigarette machine can be realized, which plays a role in feedback verifying the performance of the online detection device on the cigarette machine.
[0070] Correspondingly, the embodiment of the present application also discloses a cigarette quality data synchronization device. Refer to Figure 4 as shown. This device includes:
[0071] A cigarette sampling module 11, configured to sample the cigarette to be synchronized by a cigarette machine to obtain a target sampled cigarette;
[0072] A quality data acquisition module 12, configured to acquire the quality data of the target sampled cigarette detected by an online detection device to obtain online quality detection data;
[0073] A cigarette transmission module 13, configured to convey the target sampled cigarette to a cigarette comprehensive detection device through a pre-created cigarette conveying device;
[0074] A cigarette detection module 14, configured to detect the target sampled cigarette through the cigarette comprehensive detection device to obtain comprehensive detection data;
[0075] A quality data query module 15, configured to query the quality data in the comprehensive detection data to obtain comprehensive quality detection data;
[0076] A data storage module 16 for storing the comprehensive quality inspection data and the online quality inspection data into a preset data table.
[0077] Specific working processes of each of the above modules can refer to the corresponding content disclosed in the foregoing embodiments, and will not be elaborated herein.
[0078] It can be seen that in the embodiment of the present application, first, a cigarette making machine is used to sample the cigarettes to be data synchronized to obtain target sampled cigarettes, then the quality data of the target sampled cigarettes detected by an online detection device is obtained to obtain online quality inspection data, and then the target sampled cigarettes are transported to a cigarette comprehensive inspection device through a pre-created cigarette transportation device, so as to detect the target sampled cigarettes by the cigarette comprehensive inspection device to obtain comprehensive inspection data, then the quality data in the comprehensive inspection data is queried to obtain comprehensive quality inspection data, and the comprehensive quality inspection data and the online quality inspection data are stored into a preset data table. In the embodiment of the present application, the created cigarette transportation device can accurately transport the sampled cigarettes to the comprehensive inspection device, thereby realizing the synchronization of the cigarette quality data detected by the comprehensive inspection device and the cigarette quality data characterized by the cigarette making machine, further optimizing the performance of the online detection device on the cigarette making machine, and at the same time, accurately monitoring the working state of the online detection device, saving a large amount of labor costs, and avoiding the occurrence of cigarette quality accidents in cigarette enterprises.
[0079] In some specific embodiments, the quality data acquisition module 12 may specifically include:
[0080] A quality data acquisition unit for acquiring the quality data of the target sampled cigarettes detected by an online sensor from an online database to obtain online quality inspection data.
[0081] In some specific embodiments, the quality data query module 15 may specifically include:
[0082] A quality data query unit for querying the quality data in the comprehensive inspection data from a comprehensive database to obtain comprehensive quality inspection data.
[0083] In some specific embodiments, the data storage module 16 may specifically include:
[0084] A quality inspection data extraction unit for extracting the comprehensive quality inspection data from the comprehensive database and extracting the online quality inspection data from the online database;
[0085] A data storage unit for storing the comprehensive quality inspection data and the online quality inspection data into a preset data table according to the cigarette production serial number of the target sampled cigarettes detected by the cigarette making machine.
[0086] In some specific embodiments, before the data storage module 16, the following may further be included:
[0087] A production serial number query unit, configured to query the production serial number of the cigarette with the largest production serial number among the cigarettes with the sampling valve status of 1 in the online database, so as to obtain the largest sampled cigarette and the corresponding largest production serial number;
[0088] A first judgment unit, configured to judge whether the target sampled cigarette is the largest sampled cigarette according to the largest production serial number and the corresponding production time;
[0089] A detection serial number query unit, configured to, if the target sampled cigarette is not the largest sampled cigarette, query the cigarette with the largest detection serial number and the corresponding detection serial number in the comprehensive database, so as to obtain the largest detected cigarette and the corresponding largest detection serial number;
[0090] A second judgment unit, configured to judge whether the target sampled cigarette is the largest detected cigarette according to the largest detection serial number and the corresponding detection time;
[0091] A step execution unit, configured to, if the target sampled cigarette is not the largest detected cigarette, execute the step of storing the comprehensive quality detection data and the online quality detection data into a preset data table.
[0092] In some specific embodiments, the cigarette quality data synchronization device may further include:
[0093] A database connection unit, configured to connect the comprehensive database storing the comprehensive quality detection data and the online database storing the online quality detection data by using a computer programming language.
[0094] In some specific embodiments, the cigarette conveying device includes a shaft, a connecting plate, a conveying belt, a flap, a sampling box bent plate, a motor, a cylinder, and a fixing bracket.
[0095] Furthermore, an embodiment of the present application also discloses an electronic device, Figure 5 which is a structural diagram of an electronic device 20 shown according to an exemplary embodiment. The content in the figure should not be regarded as any limitation to the scope of use of the present application.
[0096] Figure 5Schematic diagram of the structure of an electronic device 20 provided by an embodiment of the present application. The electronic device 20 may specifically include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input / output interface 25, and a communication bus 26. Among them, the memory 22 is used to store a computer program, and the computer program is loaded and executed by the processor 21 to implement the relevant steps in the cigarette quality data synchronization method disclosed in any of the foregoing embodiments. Additionally, the electronic device 20 in this embodiment may specifically be an electronic computer.
[0097] In this embodiment, the power supply 23 is used to provide operating voltages for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and external devices, and the communication protocol it follows can be any communication protocol applicable to the technical solution of the present application, and specific limitations are not imposed here; the input / output interface 25 is used to obtain external input data or output data to the outside, and its specific interface type can be selected according to specific application requirements, and specific limitations are not made here.
[0098] In addition, as a carrier for resource storage, the memory 22 can be a read-only memory, a random access memory, a magnetic disk, or an optical disc, etc., and the resources stored thereon can include an operating system 221, a computer program 222, etc., and the storage method can be short-term storage or permanent storage.
[0099] Among them, the operating system 221 is used to manage and control each hardware device and the computer program 222 on the electronic device 20, and it can be Windows Server, Netware, Unix, Linux, etc. The computer program 222, in addition to including a computer program capable of implementing the cigarette quality data synchronization method executed by the electronic device 20 disclosed in any of the foregoing embodiments, may further include a computer program capable of performing other specific tasks.
[0100] Furthermore, the present application also discloses a computer-readable storage medium for storing a computer program; wherein, when the computer program is executed by a processor, it implements the cigarette quality data synchronization method disclosed above. For the specific steps of this method, reference can be made to the corresponding content disclosed in the foregoing embodiments, and details are not elaborated here.
[0101] In the present specification, the various embodiments are described in a progressive manner, and the key points of each embodiment are the differences from other embodiments. The same or similar parts among the various embodiments can be referred to each other. For the devices disclosed in the embodiments, since they correspond to the methods disclosed in the embodiments, the description is relatively simple, and the relevant parts can be referred to the description of the method part.
[0102] Those skilled in the art may further realize that the units and algorithm steps of each example described in connection with the embodiments disclosed herein can be implemented by electronic hardware, computer software, or a combination of the two. To clearly illustrate the interchangeability of hardware and software, the components and steps of each example have been generally described according to their functions in the above description. Whether these functions are executed in a hardware or software manner depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of this application.
[0103] The steps of the methods or algorithms described in connection with the embodiments disclosed herein can be directly implemented by hardware, software modules executed by a processor, or a combination of the two. The software modules can be placed in a random access memory (RAM), internal memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other form of storage medium well-known in the technical field.
[0104] Finally, it should also be noted that in this document, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the term "comprising", "including" or any other variant thereof is intended to cover a non-exclusive inclusion, such that a process, method, article or device comprising a series of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article or device. Without further limitation, an element defined by the statement "comprising a..." does not exclude the presence of additional identical elements in the process, method, article or device comprising the element.
[0105] The above has provided a detailed introduction to a cigarette quality data synchronization method, device, equipment, and storage medium provided by this application. Specific examples are used in this document to elaborate on the principle and implementation manner of this application. The description of the above embodiments is only used to help understand the method and its core idea of this application; at the same time, for those of ordinary skill in the art, according to the idea of this application, there will be changes in the specific implementation manner and application scope. In summary, the content of this specification should not be construed as a limitation to this application.
Claims
1. A method for synchronizing cigarette quality data, characterized in that, Including: Sampling the cigarette sticks to be data-synchronized by a cigarette making machine to obtain target sampled cigarette sticks; Obtaining the quality data of the target sampled cigarette sticks detected by an online sensor from an online database to obtain online quality detection data; Transporting the target sampled cigarette sticks to a comprehensive cigarette stick detection device through a pre-created cigarette stick conveying device, so as to detect the target sampled cigarette sticks through the comprehensive cigarette stick detection device to obtain comprehensive detection data; Querying the quality data in the comprehensive detection data from a comprehensive database to obtain comprehensive quality detection data, and saving the comprehensive quality detection data and the online quality detection data to a preset data table; The cigarette stick conveying device includes a shaft, a first connecting plate, a second connecting plate, a first conveying belt, a second conveying belt, a flap, a sampling box bending plate, a first motor, a second motor, a cylinder, and a fixed bracket; The process of the cigarette stick conveying device for transporting the target sampled cigarette sticks includes: when the cigarette making machine samples, the output signal of the sampling valve is 1, and the target sampled cigarette sticks fall from the drum onto the first connecting plate of the cigarette stick conveying device and are clamped between the first conveying belt and the first connecting plate; when the target sampled cigarette sticks fall onto the first connecting plate instantaneously, the second motor starts and drives the shaft to rotate, thereby driving the first conveying belt to rotate. When the first conveying belt rotates, it drives the target sampled cigarette sticks to move downward; passing through the flap, the target sampled cigarette sticks fall from the first connecting plate onto the sampling box bending plate and finally fall into the cigarette making machine sampling box; when the target sampled cigarette sticks need to be sent to the comprehensive cigarette stick detection device, the cylinder is turned on so that the flap connects the first conveying belt and the second connecting plate, and the sampled cigarette sticks roll along the first conveying belt, the flap, and the second connecting plate until they fall onto the second conveying belt; when the cylinder is turned on, the first motor rotates to drive the target sampled cigarette sticks to the feeding port of the comprehensive cigarette stick detection device, so as to realize the transportation of the target sampled cigarette sticks from the cigarette stick sampling drum to the comprehensive cigarette stick detection device; Wherein, the distance between the shaft and the first conveying belt is smaller than the diameter of the target sampled cigarette sticks, and the flap is not connected to the first connecting plate and the second connecting plate; Before saving the comprehensive quality detection data and the online quality detection data to the preset data table, it further includes: querying the cigarette stick production serial number corresponding to the cigarette stick with the largest production serial number among the cigarette sticks with the sampling valve status of 1 in the online database to obtain the largest sampled cigarette stick and the corresponding largest production serial number; judging whether the target sampled cigarette stick is the largest sampled cigarette stick according to the largest production serial number and the corresponding production time. If not, querying the cigarette stick with the largest detection serial number and the corresponding detection serial number in the comprehensive database to obtain the largest detected cigarette stick and the corresponding largest detection serial number; judging whether the target sampled cigarette stick is the largest detected cigarette stick according to the largest detection serial number and the corresponding detection time. If not, execute the step of saving the comprehensive quality detection data and the online quality detection data to the preset data table.
2. The cigarette rod quality data synchronization method according to claim 1, characterized in that Saving the comprehensive quality inspection data and the online quality inspection data into a preset data table includes: Extracting the comprehensive quality inspection data from the comprehensive database and extracting the online quality inspection data from the online database; Saving the comprehensive quality inspection data and the online quality inspection data into a preset data table according to the cigarette production serial number of the target sampled cigarette detected by the cigarette machine.
3. The cigarette rod quality data synchronization method according to claim 2, characterized in that It further includes: Connecting the comprehensive database storing the comprehensive quality inspection data and the online database storing the online quality inspection data by using a computer programming language.
4. A cigarette rod quality data synchronization device, characterized in that, It includes: A cigarette sampling module, configured to sample the cigarettes to be synchronized by using a cigarette machine to obtain target sampled cigarettes; A quality data acquisition module, configured to obtain the quality data of the target sampled cigarettes detected by an online sensor from an online database to obtain online quality inspection data; A cigarette transmission module, configured to convey the target sampled cigarettes to a cigarette comprehensive inspection device through a pre-created cigarette conveying device; A cigarette inspection module, configured to inspect the target sampled cigarettes through the cigarette comprehensive inspection device to obtain comprehensive inspection data; A quality data query module, configured to query the quality data in the comprehensive inspection data from the comprehensive database to obtain comprehensive quality inspection data; A data saving module, configured to save the comprehensive quality inspection data and the online quality inspection data into a preset data table; The cigarette conveying device includes a shaft, a first connecting plate, a second connecting plate, a first conveying belt, a second conveying belt, a flap, a sampling box bent plate, a first motor, a second motor, a cylinder, and a fixed bracket; The process of conveying the target sampled cigarettes by the cigarette conveying device includes: when the cigarette machine samples, the output signal of the sampling valve is 1, and the target sampled cigarettes fall from the drum onto the first connecting plate of the cigarette conveying device and are clamped between the first conveying belt and the first connecting plate; when the target sampled cigarettes fall onto the first connecting plate, the second motor starts and drives the shaft to rotate, thereby driving the first conveying belt to rotate. When the first conveying belt rotates, it drives the target sampled cigarettes to move downward; after passing through the flap, the target sampled cigarettes fall from the first connecting plate onto the sampling box bent plate and finally fall into the cigarette machine sampling box; when the target sampled cigarettes need to be sent to the cigarette comprehensive inspection device, the cylinder is turned on so that the flap connects the first conveying belt and the second connecting plate, and the sampled cigarettes roll along the first conveying belt, the flap, and the second connecting plate and finally fall onto the second conveying belt; when the cylinder is turned on, the first motor rotates to drive the target sampled cigarettes to the feeding port of the cigarette comprehensive inspection device, so as to realize the conveyance of the target sampled cigarettes from the cigarette sampling drum to the cigarette comprehensive inspection device; Wherein, the distance between the shaft and the first conveying belt is smaller than the diameter of the target sampled cigarettes, and the flap is not connected to the first connecting plate and the second connecting plate; The device is further configured to query the cigarette production sequence number corresponding to the cigarette with the largest production sequence number among the cigarettes with the sampling valve status of 1 in the online database, so as to obtain the largest sampled cigarette and the corresponding largest production sequence number; determine whether the target sampled cigarette is the largest sampled cigarette according to the largest production sequence number and the corresponding production time, if not, query the cigarette with the largest detection sequence number and the corresponding detection sequence number in the comprehensive database, so as to obtain the largest detected cigarette and the corresponding largest detection sequence number; determine whether the target sampled cigarette is the largest detected cigarette according to the largest detection sequence number and the corresponding detection time, if not, execute the step of saving the comprehensive quality detection data and the online quality detection data into a preset data table.
5. An electronic device, characterized in that, It includes a processor and a memory; wherein, when the processor executes the computer program stored in the memory, the cigarette quality data synchronization method according to any one of claims 1 to 3 is implemented.
6. A computer-readable storage medium, characterized in that, It is used to store a computer program; wherein, when the computer program is executed by a processor, the cigarette quality data synchronization method according to any one of claims 1 to 3 is implemented.
Citation Information
Patent Citations
Roll-packing unit quality detection device management system and method thereof
CN112208824A