Data processing method and device of cigarette detection instrument, electronic equipment and medium

By establishing communication between cigarette testing instruments and industrial computers and automatically collecting and analyzing test data, the problem of low data acquisition efficiency caused by the dispersion of cigarette testing instruments is solved, and the test efficiency and product quality are improved.

CN116187368BActive Publication Date: 2025-10-21CHINA TOBACCO GUANGDONG IND
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310137995.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-02-20
Publication Date
2025-10-21
Estimated Expiration
2043-02-20

AI Technical Summary

Technical Problem

Cigarette testing instruments are scattered in different locations, and test data needs to be recorded and entered manually, resulting in low efficiency in acquiring test data and wasting time and effort.

Method used

The communication between the cigarette detection instrument and the industrial computer is established through a preset communication method, the target detection instrument identifier corresponding to the data to be processed is determined, and the data is converted into the target data format for analysis and processing, thereby realizing automatic data collection and analysis.

Benefits of technology

It improves testing efficiency, reduces the labor intensity of inspectors, facilitates the later analysis of test data, and helps improve product quality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116187368B_ABST
    Figure CN116187368B_ABST
Patent Text Reader

Abstract

Embodiments of the present application disclose a data processing method and device for a cigarette detection instrument, electronic equipment and a medium. The method comprises: establishing communication between at least one cigarette detection instrument and an industrial computer based on a preset communication mode; on the basis of establishing the communication connection, if the industrial computer detects the to-be-processed data sent by the at least one cigarette detection instrument, determining a target detection instrument identifier corresponding to the to-be-processed data, and calling a target data format corresponding to the target detection instrument identifier; converting the to-be-processed data into target data matching the target data format, and analyzing and processing the target data to obtain a corresponding analysis result. The technical solution of the present application solves the problem of low efficiency of manually obtaining cigarette detection instrument data, realizes automatic acquisition of data collected by a cigarette instrument, and improves detection efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data processing, and in particular to a data processing method, device, electronic equipment and medium for a cigarette detection instrument. Background Art

[0002] Instruments used to test certain physical indicators of cigarette products are standalone devices with a single function, measuring only a specific physical indicator. These instruments are dispersed across multiple locations, and test data is typically recorded and entered manually into factory data systems. Given the large number of samples tested daily, and the single person typically responsible for offline physical indicator inspection, testing and data collection are time-consuming and labor-intensive. Consequently, the low efficiency of data acquisition from cigarette testing instruments is a pressing issue that needs to be addressed. Summary of the Invention

[0003] The present invention provides a data processing method, device, electronic equipment and medium for a cigarette detection instrument, so as to realize the collection and processing of data from different cigarette detection instruments, obtain corresponding analysis results, and improve detection efficiency and data collection efficiency.

[0004] According to one aspect of the present invention, a data processing method for a cigarette detection instrument is provided, comprising:

[0005] Establishing communication between at least one cigarette inspection instrument and the industrial computer based on a preset communication method; wherein the at least one cigarette inspection instrument includes at least one of a barcode quality inspection instrument, a sample weighing electronic balance, an end-of-line cigarette drop amount measuring instrument, and a cigarette dust content measuring instrument;

[0006] Upon establishing the communication connection, if the industrial computer detects data to be processed sent by at least one of the cigarette inspection instruments, it determines the target inspection instrument identifier corresponding to the data to be processed and retrieves the target data format corresponding to the target inspection instrument identifier;

[0007] The data to be processed is converted into target data that matches the target data format, and the target data is analyzed and processed to obtain corresponding analysis results.

[0008] According to another aspect of the present invention, there is provided a data processing device for a cigarette detection instrument, characterized by comprising:

[0009] a communication establishment module, configured to establish communication between at least one cigarette inspection instrument and the industrial computer based on a preset communication method; wherein the at least one cigarette inspection instrument includes at least one of a barcode quality inspection instrument, a sample weighing electronic balance, an end-of-line tobacco residue measuring instrument, and a cigarette dust content measuring instrument;

[0010] a data detection module configured to, upon establishing a communication connection, determine, when the industrial computer detects data to be processed sent by at least one of the cigarette detection instruments, an identifier of a target detection instrument corresponding to the data to be processed, and retrieve a target data format corresponding to the identifier of the target detection instrument;

[0011] The data conversion module is used to convert the data to be processed into target data that matches the target data format, and analyze and process the target data to obtain corresponding analysis results.

[0012] According to another aspect of the present invention, an electronic device is provided, comprising:

[0013] at least one processor; and

[0014] a memory communicatively connected to the at least one processor; wherein,

[0015] The memory stores a computer program executable by the at least one processor. The computer program is executed by the at least one processor so that the at least one processor can execute the data processing method of the cigarette detection instrument according to any embodiment of the present invention.

[0016] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions for enabling a processor to implement the data processing method of the cigarette detection instrument according to any embodiment of the present invention when executed.

[0017] The technical solution of an embodiment of the present invention establishes communication between at least one cigarette testing instrument and an industrial computer based on a preset communication method. Upon establishing the communication connection, if the industrial computer detects data to be processed sent by at least one cigarette testing instrument, it determines the target testing instrument identifier corresponding to the data to be processed and retrieves the target data format corresponding to the target testing instrument identifier. The data to be processed is converted into target data that matches the target data format, and the target data is analyzed and processed to obtain corresponding analysis results. The technical solution of the present invention solves the problem of low efficiency in manually acquiring data from cigarette testing instruments, realizes automatic acquisition of data collected by cigarette testing instruments, improves testing efficiency, reduces the labor intensity of inspectors, facilitates subsequent analysis of test data, and contributes to improved product quality.

[0018] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present invention, nor is it intended to limit the scope of the present invention. Other features of the present invention will become readily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0020] Figure 1 This is a flow chart of a data processing method for a cigarette detection instrument provided in Example 1 of the present invention;

[0021] Figure 2 This is a flow chart of a data processing method for a cigarette detection instrument provided in the second embodiment of the present invention;

[0022] Figure 3 A schematic diagram of a wired communication method provided in the second embodiment of the present invention;

[0023] Figure 4 A schematic diagram of a wireless communication method provided in the second embodiment of the present invention;

[0024] Figure 5 A schematic structural diagram of a data processing device of a cigarette testing instrument provided in a third embodiment of the present invention;

[0025] Figure 6 This is a structural diagram of an electronic device provided in Example 4 of the present invention. DETAILED DESCRIPTION

[0026] In order to enable those skilled in the art to better understand the solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the embodiments described are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts should fall within the scope of protection of the present invention.

[0027] It should be noted that the terms "first", "second", etc. in the description and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that the numbers used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0028] Example 1

[0029] Figure 1 This is a flow chart of a data processing method for a cigarette detection instrument provided in the first embodiment of the present invention. This embodiment is applicable to the case of acquiring and processing data collected by a cigarette detection instrument. The method can be executed by a data processing device of the cigarette detection instrument. The device can be implemented in the form of hardware and / or software. The device can be configured in an electronic device, for example, an industrial computer. Figure 1 As shown, the method includes:

[0030] S110 : Establishing communication between at least one cigarette testing instrument and an industrial computer based on a preset communication method.

[0031] Among them, the preset communication method refers to the communication method pre-set by the developer according to the needs. At least one cigarette detection instrument includes at least one of a barcode quality detection instrument, a sample weighing electronic balance, an end-of-line cigarette drop amount meter, and a cigarette dust content meter. The industrial computer can be understood as an industrial control computer.

[0032] Specifically, a communication method can be designed based on the characteristics of cigarette testing instruments and industrial computers. This communication method establishes communication between at least one cigarette testing instrument and the industrial computer, thereby enabling data exchange between the two. Cigarette testing instruments primarily test cigarette production indicators. For example, during cigarette production, sample weighing electronic balances measure the weight of cigarettes and obtain weight values ​​to control the weight of the cigarettes.

[0033] On the basis of the above technical solution, the communication between at least one cigarette detection instrument and the industrial computer is established based on a preset communication method, including: establishing wired communication between at least one cigarette detection instrument and the industrial computer through a preset communication interface; and establishing wireless communication between at least one cigarette detection instrument and the industrial computer through a wireless collector.

[0034] The preset communication interfaces include: a universal serial bus (USB) interface, a network cable interface, and / or a D-type data interface; the wireless data collector includes: a Bluetooth module, a wireless network communication module, and / or a fifth-generation mobile communication module. To facilitate the acquisition of data detected by the cigarette testing instrument and reduce the workload of manual data entry, wired communication can be established between the cigarette testing instrument and the industrial computer via the preset communication interfaces, or wireless communication can be established between the cigarette testing instrument and the industrial computer via the wireless data collector.

[0035] In actual applications, wired communication mainly involves different types of communication interfaces on industrial computers. Cigarette testing instruments can be connected to the communication interface of the industrial computer through communication cables according to the applicable communication method. For example, the communication method supported by barcode quality testing instruments is the network cable interface. The other end of the network cable connected to the barcode quality testing instrument can be connected to the network cable interface of the industrial computer. The interface of the industrial computer can meet the communication needs of different cigarette testing instruments. In other words, cigarette testing instruments with various communication methods can be connected to the industrial computer to realize data transmission. The advantage of this is that users do not need to go to the location of the cigarette testing instrument and manually enter the test data. The data can be obtained directly through the industrial computer. The wired communication method can also ensure the stability of data transmission.

[0036] In addition, wireless communication can be established between the cigarette detection instrument and the industrial computer. The wireless collector mainly includes a Bluetooth module, a wireless network communication module and / or a fifth-generation mobile communication module. Data is transmitted in the form of electromagnetic waves as the medium. It is not restricted by space and can establish communication with more cigarette detection instruments.

[0037] S120. Upon establishing the communication connection, if the industrial computer detects data to be processed sent by at least one of the cigarette inspection instruments, it determines the target inspection instrument identifier corresponding to the data to be processed and retrieves the target data format corresponding to the target inspection instrument identifier.

[0038] Among them, the data to be processed can be understood as data detected by the cigarette testing instrument, such as the end-point tobacco drop data, cigarette dust content data, etc. in the cigarette production process, or some data used for quality control in cigarette production; the target detection instrument identifier can be the device identifier of the cigarette testing instrument that is currently sending the data to be processed. The identifier of the target detection instrument is used to distinguish different cigarette testing instruments. The target data format mainly refers to the storage format of the data, for example, the target data format is a table or text. Specifically, on the basis of establishing a communication connection, if the industrial computer detects that a cigarette testing instrument has sent data to be processed, it can determine the corresponding target detection instrument identifier through the data to be detected and retrieve the target data format corresponding to the identifier.

[0039] Optionally, the industrial computer is installed with acquisition software, and the industrial computer detects the data to be processed sent by at least one of the cigarette detection instruments, including: based on the acquisition software, sequentially detecting whether the data to be processed exists at each of the preset communication interfaces.

[0040] The acquisition software can be software or a small program installed on an industrial computer. The acquisition software can check each communication interface at a predetermined interval or in a predetermined order to determine whether there is data to be processed. It is understood that after the cigarette inspection instrument collects data to be processed, it will send the data to a predetermined communication interface, of which there may be multiple. Based on this, the acquisition software can be controlled to check each predetermined interface of the industrial computer to determine whether there is data to be processed.

[0041] For example, the cycle is set to 2 seconds, and each preset communication interface is detected every 2 seconds. Each preset communication interface can also be marked with a serial number from small to large, and each preset communication interface is detected according to the serial number to ensure that the data to be processed is detected in real time.

[0042] Optionally, the wireless collector includes a first collector and a second collector, and the industrial computer detects the data to be processed sent by at least one of the cigarette detection instruments, including: detecting whether the data to be processed exists in the second collector based on the first collector; if so, obtaining the data to be processed through wireless communication between the first collector and the second collector.

[0043] The first collector is connected to the industrial computer, and the second collector is connected to the cigarette detection instrument. After the cigarette detection instrument collects the data to be processed, the cigarette detection instrument sends the data to be processed to the second collector corresponding to the cigarette detection instrument.

[0044] It can be understood that each cigarette detection instrument has a corresponding second collector connected to it. When the cigarette detection instrument collects the data to be processed, the data to be processed is first sent to and stored in the corresponding second collector; accordingly, the first collector connected to the industrial computer can poll each second collector to determine which second collector stores the data to be processed, establish wireless communication with that second collector, and read the data to be processed on the second collector to the industrial computer.

[0045] On the basis of the above, the determination of the target detection instrument identifier corresponding to the data to be processed and the retrieval of the target data format corresponding to the target detection instrument identifier include: analyzing the cigarette instrument identifier field in the data to be processed through the acquisition software to obtain the cigarette detection instrument identifier corresponding to the data to be processed, and determining the cigarette instrument identifier as the target detection instrument identifier; based on the target detection instrument identifier, searching the mapping relationship table for a preset data format that matches the target detection instrument identifier, and determining the preset data format as the target data format.

[0046] The mapping relationship table is a pre-established table, and stores the corresponding relationship between each cigarette testing instrument identifier and a preset data format.

[0047] Specifically, after acquiring the data to be processed, the acquisition software can analyze the cigarette instrument identification field in the data to determine the cigarette testing instrument identification corresponding to the data to be processed, using this as the target testing instrument identification. The mapping table then searches for the preset data format corresponding to this identification and uses this as the target processing data format. For example, if the target testing instrument identification is 1, the target data format found in the mapping table is the preset data format corresponding to identification 1.

[0048] On the basis of the above, before determining the target detection instrument identifier corresponding to the data to be processed and retrieving the target data format corresponding to the target detection instrument identifier, it includes: pre-establishing a mapping relationship table between the identifier of the cigarette detection instrument and the preset data format, and storing the mapping relationship table in the industrial computer.

[0049] In this embodiment, in order to facilitate the distinction of data processing formats corresponding to different cigarette detection instruments, the mapping relationship between the identification of the cigarette detection instrument and the preset data format can be stored in a table, for example, instrument 1 corresponds to data format A, and instrument 2 corresponds to data format B.

[0050] S130: Convert the data to be processed into target data that matches the target data format, and analyze and process the target data to obtain corresponding analysis results.

[0051] The target data refers to the target data obtained by format conversion of the data to be processed, and the analysis result refers to the analysis result of the target data.

[0052] In practical applications, the format of the data to be processed is mainly related to cigarette testing instruments and is not suitable for statistical analysis. Therefore, it is necessary to convert the format of the data to be processed into target data that matches the target data format in order to analyze the product quality of cigarette production based on the target data and obtain analysis results.

[0053] Optionally, the converting of the data to be processed into target data that matches the target data format, and analyzing and processing the target data to obtain corresponding analysis results, includes: processing the data to be processed by the processing software to convert the format of the data to be processed into target data that matches the target data format, and sending the target data to the cigarette production data system; and obtaining cigarette analysis results based on the analysis of the target data by the cigarette production data system.

[0054] Among them, the cigarette production data system mainly stores data related to cigarette production. The target data can be stored in the cigarette production data system. Through the analysis of the cigarette data system, the corresponding cigarette analysis results can be obtained, that is, to determine whether the various quality indicators in the cigarettes are met, and to control the production quality.

[0055] The technical solution of an embodiment of the present invention establishes communication between at least one cigarette testing instrument and an industrial computer based on a preset communication method. Upon establishing the communication connection, if the industrial computer detects data to be processed sent by at least one cigarette testing instrument, it determines the target testing instrument identifier corresponding to the data to be processed and retrieves the target data format corresponding to the target testing instrument identifier. The data to be processed is converted into target data that matches the target data format, and the target data is analyzed and processed to obtain corresponding analysis results. The technical solution of the present invention solves the problem of low efficiency in manually acquiring data from cigarette testing instruments, realizes automatic acquisition of data collected by cigarette testing instruments, improves testing efficiency, reduces the labor intensity of inspectors, facilitates subsequent analysis of test data, and contributes to improved product quality.

[0056] Example 2

[0057] Figure 2 This is a flow chart of a data processing method for a cigarette detection instrument provided in the second embodiment of the present invention. This embodiment is a preferred embodiment among the above embodiments. Figure 2 As shown, the method includes:

[0058] The test results of the test instrument with general communication function are collected to an industrial computer by wired or wireless communication. Figure 3 , wireless communication methods can be found in Figure 4 .

[0059] The industrial computer is installed with self-written software to organize the collected data into a data format that conforms to the factory data system, making it easier for the factory data system to read the data.

[0060] The industrial computer is equipped with multiple communication ports, such as USB, RJ45, and DB9 serial ports. Depending on the communication interface type provided by the testing instrument, these ports are connected to the corresponding ports on the industrial computer via communication cables. The connectors and signal lines of the communication cables are defined according to the wiring diagram provided with the testing instrument. The wired connection diagram shows four testing instruments connected to the industrial computer via communication cables, with data collected using the computer's internal data acquisition software. A wireless connection involves connecting a wireless data collector to the communication ports on the testing instruments and the industrial computer. The computer's internal data acquisition software then polls and reads data from each instrument port and collects it into the industrial computer.

[0061] Data collection process: When a testing instrument completes a test, the results can be sent to the communication port by manually pressing the send function button on the instrument. The electrical signal from the communication port is connected to the communication port of the industrial computer. The communication port of the industrial computer receives the result information. The collection software monitors the information from the port and reads it into the industrial computer memory. The software combines this information into a specific data format and stores it in a text file. This information includes but is not limited to the measurement result, sample name, tester, time, instrument number, and number of tests. The factory data system periodically imports this specific data format text from the industrial computer to generate reports for each testing instrument.

[0062] The wireless method is similar in process. The difference is that when the industrial computer reads the communication port information of the detection instrument, it is not point-to-point. Instead, it monitors the wireless communication port of the detection instrument for data transmission through polling, establishes a wireless connection with the port, and then communicates point-to-point.

[0063] In order to improve inspection efficiency and reduce the labor intensity of inspectors, facilitate the subsequent analysis of inspection data, and help improve product quality, this patent provides an automatic data acquisition system.

[0064] The technical solution of an embodiment of the present invention establishes communication between at least one cigarette testing instrument and an industrial computer based on a preset communication method. Upon establishing the communication connection, if the industrial computer detects data to be processed sent by at least one cigarette testing instrument, it determines the target testing instrument identifier corresponding to the data to be processed and retrieves the target data format corresponding to the target testing instrument identifier. The data to be processed is converted into target data that matches the target data format, and the target data is analyzed and processed to obtain corresponding analysis results. The technical solution of the present invention solves the problem of low efficiency in manually acquiring data from cigarette testing instruments, realizes automatic acquisition of data collected by cigarette testing instruments, improves testing efficiency, reduces the labor intensity of inspectors, facilitates subsequent analysis of test data, and contributes to improved product quality.

[0065] Example 3

[0066] Figure 5 This is a schematic diagram of the structure of a data processing device of a cigarette detection instrument provided in the third embodiment of the present invention. Figure 3 As shown, the device includes:

[0067] The communication establishment module 310 is configured to establish communication between at least one cigarette inspection instrument and the industrial computer based on a preset communication method; wherein the at least one cigarette inspection instrument includes at least one of a barcode quality inspection instrument, a sample weighing electronic balance, an end-of-line cigarette drop amount measuring instrument, and a cigarette dust content measuring instrument;

[0068] The data detection module 320 is configured to, upon establishing a communication connection, determine the target detection instrument identifier corresponding to the data to be processed and retrieve the target data format corresponding to the target detection instrument identifier when the industrial computer detects data to be processed sent by at least one of the cigarette detection instruments;

[0069] The data conversion module 330 is used to convert the data to be processed into target data that matches the target data format, and analyze and process the target data to obtain corresponding analysis results.

[0070] The technical solution of an embodiment of the present invention establishes communication between at least one cigarette testing instrument and an industrial computer based on a preset communication method. Upon establishing the communication connection, if the industrial computer detects data to be processed sent by at least one cigarette testing instrument, it determines the target testing instrument identifier corresponding to the data to be processed and retrieves the target data format corresponding to the target testing instrument identifier. The data to be processed is converted into target data that matches the target data format, and the target data is analyzed and processed to obtain corresponding analysis results. The technical solution of the present invention solves the problem of low efficiency in manually acquiring data from cigarette testing instruments, realizes automatic acquisition of data collected by cigarette testing instruments, improves testing efficiency, reduces the labor intensity of inspectors, facilitates subsequent analysis of test data, and contributes to improved product quality.

[0071] Optionally, the communication establishing module 310 includes:

[0072] a wired establishing module, configured to establish wired communication between at least one of the cigarette testing instruments and the industrial computer via a preset communication interface;

[0073] A wireless establishing module, configured to establish wireless communication between at least one of the cigarette detection instruments and the industrial computer via a wireless collector;

[0074] The preset communication interface includes: a universal serial bus interface, a network cable interface and / or a D-type data interface, and the wireless collector includes: a Bluetooth module, a wireless network communication module and / or a fifth-generation mobile communication module.

[0075] Optionally, the industrial computer is installed with acquisition software, and the data detection module 320 includes:

[0076] The first data detection module is used to detect in sequence whether the data to be processed exists at each of the preset communication interfaces based on the acquisition software.

[0077] Optionally, the wireless collector includes a first collector and a second collector, and the data detection module 320 further includes:

[0078] A second data detection module is used to detect whether the data to be processed exists in the second collector based on the first collector;

[0079] If so, obtaining the data to be processed through wireless communication between the first collector and the second collector;

[0080] The first collector is connected to the industrial computer, and the second collector is connected to the cigarette detection instrument. After the cigarette detection instrument collects the data to be processed, the cigarette detection instrument sends the data to be processed to the second collector corresponding to the cigarette detection instrument.

[0081] Optionally, the data processing device of the cigarette testing instrument further includes:

[0082] A mapping relationship establishment module is used to pre-establish a mapping relationship table between the identification of the cigarette detection instrument and the preset data format before determining the target detection instrument identification corresponding to the data to be processed and retrieving the target data format corresponding to the target detection instrument identification, and store the mapping relationship table in the industrial computer.

[0083] Optionally, the data detection module 320 includes:

[0084] an identification determination module, configured to analyze the cigarette instrument identification field in the data to be processed by the acquisition software to obtain the cigarette testing instrument identification corresponding to the data to be processed, and determine the cigarette instrument identification as the target testing instrument identification;

[0085] The format conversion module is configured to search the mapping relationship table for a preset data format that matches the target detection instrument identifier based on the target detection instrument identifier, and determine the preset data format as the target data format.

[0086] Optionally, the data conversion module 330 is specifically configured to:

[0087] Processing the data to be processed by the processing software to convert the format of the data to be processed into target data that matches the target data format, and sending the target data to the cigarette production data system;

[0088] The target data is analyzed based on the cigarette production data system to obtain cigarette analysis results.

[0089] The data processing device of the cigarette testing instrument provided in the embodiment of the present invention can execute the data processing method of the cigarette testing instrument provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.

[0090] Example 4

[0091] Figure 6 A schematic diagram of the structure of an electronic device provided for embodiment four of the present invention. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.

[0092] like Figure 6 As shown, the electronic device 10 includes at least one processor 11 and a memory, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., which is communicatively connected to the at least one processor 11. The memory stores a computer program that can be executed by the at least one processor. The processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 into the random access memory (RAM) 13. Various programs and data required for the operation of the electronic device 10 can also be stored in the RAM 13. The processor 11, ROM 12, and RAM 13 are connected to each other via a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.

[0093] Multiple components in the electronic device 10 are connected to the I / O interface 15, including an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a magnetic disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices via a computer network such as the Internet and / or various telecommunication networks.

[0094] The processor 11 can be any general-purpose and / or specialized processing component with processing and computing capabilities. Examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various specialized artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any other suitable processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as the data processing method of the cigarette testing instrument.

[0095] In some embodiments, the data processing method for the cigarette testing instrument can be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program can be loaded and / or installed on the electronic device 10 via ROM 12 and / or communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the data processing method for the cigarette testing instrument described above can be performed. Alternatively, in other embodiments, processor 11 can be configured to execute the data processing method for the cigarette testing instrument by any other appropriate means (e.g., via firmware).

[0096] Various embodiments of the systems and techniques described herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), system-on-chip systems (SOCs), programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments can include being implemented in one or more computer programs that are executable and / or interpreted on a programmable system that includes at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0097] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when the computer program is executed by the processor, the functions / operations specified in the flowcharts and / or block diagrams are implemented. The computer program may be executed entirely on the machine, partially on the machine, as a stand-alone software package, partially on the machine and partially on a remote machine, or entirely on a remote machine or server.

[0098] In the context of the present invention, computer-readable storage media can be tangible media that can contain or store a computer program for use with an instruction execution system, device or equipment or used in combination with an instruction execution system, device or equipment. Computer-readable storage media can include but are not limited to electronic, magnetic, optical, electromagnetic, infrared or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, computer-readable storage media can be machine-readable signal media. More specific examples of machine-readable storage media can include electrical connections based on one or more lines, portable computer disks, hard disks, random access memories (RAM), read-only memories (ROM), erasable programmable read-only memories (EPROM or flash memory), optical fibers, portable compact disk read-only memories (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.

[0099] To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0100] The systems and techniques described herein can be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.

[0101] A computing system may include clients and servers. The clients and servers are typically remote from each other and typically interact via a communication network. This client-server relationship arises through computer programs running on the respective computers, creating a client-server relationship. The server may be a cloud server, also known as a cloud computing server or cloud host. This server is a hosting product within the cloud computing service ecosystem that addresses the management difficulties and limited scalability of traditional physical hosting and VPS services.

[0102] It should be understood that the various forms of the processes shown above can be used to reorder, add, or delete steps. For example, the steps described in the present invention can be performed in parallel, sequentially, or in a different order, as long as the desired results of the technical solution of the present invention can be achieved. This is not limited herein.

[0103] The above specific embodiments do not limit the scope of protection of the present invention. Those skilled in the art will appreciate that various modifications, combinations, sub-combinations, and substitutions may be made based on design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of the present invention are intended to be included within the scope of protection of the present invention.

Claims

1. A data processing method for a cigarette detection instrument, characterized in that: include: Establishing communication between at least one cigarette inspection instrument and an industrial computer based on a preset communication method; wherein the at least one cigarette inspection instrument includes at least one of a barcode quality inspection instrument, a sample weighing electronic balance, an end-of-line tobacco quantity measuring instrument, and a cigarette dust content measuring instrument; and the industrial computer is installed with acquisition software; Upon establishing the communication connection, if the industrial computer detects data to be processed sent by at least one of the cigarette inspection instruments, it determines the target inspection instrument identifier corresponding to the data to be processed and retrieves the target data format corresponding to the target inspection instrument identifier; Converting the data to be processed into target data that matches the target data format, and analyzing and processing the target data to obtain corresponding analysis results; Before determining the target detection instrument identifier corresponding to the data to be processed and retrieving the target data format corresponding to the target detection instrument identifier, the method includes: pre-establishing a mapping relationship table between the identifier of the cigarette detection instrument and a preset data format, and storing the mapping relationship table in the industrial computer; The determining of the target detection instrument identifier corresponding to the data to be processed and retrieving the target data format corresponding to the target detection instrument identifier includes: analyzing the cigarette instrument identifier field in the data to be processed by the acquisition software to obtain the cigarette detection instrument identifier corresponding to the data to be processed, and determining the cigarette instrument identifier as the target detection instrument identifier; based on the target detection instrument identifier, searching the mapping relationship table for a preset data format that matches the target detection instrument identifier, and determining the preset data format as the target data format.

2. The method according to claim 1, characterized in that The establishing of communication between at least one cigarette detection instrument and the industrial computer based on a preset communication method includes: Establishing wired communication between at least one of the cigarette testing instruments and the industrial computer via a preset communication interface; and / or, Establishing wireless communication between at least one of the cigarette detection instruments and the industrial computer through a wireless collector; The preset communication interface includes: a universal serial bus interface, a network cable interface and / or a D-type data interface, and the wireless collector includes: a Bluetooth module, a wireless network communication module and / or a fifth-generation mobile communication module.

3. The method according to claim 2, characterized in that The industrial computer detects data to be processed sent by at least one of the cigarette detection instruments, including: Based on the acquisition software, each of the preset communication interfaces is detected in turn to determine whether there is the data to be processed.

4. The method according to claim 2, characterized in that The wireless collector includes a first collector and a second collector. The industrial computer detects the data to be processed sent by at least one of the cigarette detection instruments, including: detecting, based on the first collector, whether the data to be processed exists in the second collector; If so, obtaining the data to be processed through wireless communication between the first collector and the second collector; The first collector is connected to the industrial computer, and the second collector is connected to the cigarette detection instrument. After the cigarette detection instrument collects the data to be processed, the cigarette detection instrument sends the data to be processed to the second collector corresponding to the cigarette detection instrument.

5. The method according to claim 1, wherein The converting the data to be processed into target data matching the target data format, and analyzing and processing the target data to obtain corresponding analysis results, includes: Processing the data to be processed by self-written software installed on an industrial computer to convert the format of the data to be processed into target data that matches the target data format, and sending the target data to a cigarette production data system; The target data is analyzed based on the cigarette production data system to obtain cigarette analysis results.

6. A data processing device for a cigarette testing instrument, characterized in that: include: a communication establishment module, configured to establish communication between at least one cigarette inspection instrument and an industrial computer based on a preset communication method; wherein the at least one cigarette inspection instrument includes at least one of a barcode quality inspection instrument, a sample weighing electronic balance, an end-of-line tobacco quantity measuring instrument, and a cigarette dust content measuring instrument; and the industrial computer is installed with acquisition software; a data detection module configured to, upon establishing a communication connection, determine, when the industrial computer detects data to be processed sent by at least one of the cigarette detection instruments, an identifier of a target detection instrument corresponding to the data to be processed, and retrieve a target data format corresponding to the identifier of the target detection instrument; A data conversion module, configured to convert the data to be processed into target data that matches the target data format, and analyze and process the target data to obtain corresponding analysis results; The data processing device of the cigarette detection instrument also includes: a mapping relationship establishment module, configured to pre-establish a mapping relationship table between the identification of the cigarette testing instrument and a preset data format before determining the target testing instrument identification corresponding to the data to be processed and retrieving the target data format corresponding to the target testing instrument identification, and to store the mapping relationship table in the industrial computer; The data detection module includes: an identification determination module, configured to analyze the cigarette instrument identification field in the data to be processed by the acquisition software to obtain the cigarette testing instrument identification corresponding to the data to be processed, and determine the cigarette instrument identification as the target testing instrument identification; The format conversion module is configured to search the mapping relationship table for a preset data format that matches the target detection instrument identifier based on the target detection instrument identifier, and determine the preset data format as the target data format.

7. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor. The computer program is executed by the at least one processor so that the at least one processor can execute the data processing method of the cigarette detection instrument according to any one of claims 1 to 5.

8. A computer-readable storage medium, characterized in that The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the data processing method of the cigarette detection instrument according to any one of claims 1 to 5 when executed.

Citation Information

Patent Citations

  • Automatic control system and method for cigarette rod weight

    CN105843190A

  • Cigarette order error correction method, device, system and equipment based on target detection

    CN115131723A