A method for switching printing information of a code ink-jet printer through a GPIO port

The method of switching inkjet printer printing information through GPIO ports solves the problems of low efficiency and high error rate of manual switching when multiple production lines share inkjet printers, and realizes efficient and low-cost information switching, thus expanding the application of inkjet printers.

CN117021796BActive Publication Date: 2026-03-27YANTAI KESIHUI LOGO TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-09-07
Publication Date
2026-03-27

AI Technical Summary

Technical Problem

When existing inkjet printers are used on multiple production lines, manually switching printing information is inefficient and prone to errors, and older production line equipment cannot switch information via network or serial communication.

Method used

The method of switching inkjet printer printing information through GPIO ports involves using the inkjet printer's GPIO ports to switch information. The number of GPIO ports is set according to the amount of printing information content on the production line. The printing information is edited and connected to the production line equipment to achieve automatic information switching.

Benefits of technology

It improves the efficiency of printing information switching, reduces the error rate, meets diverse needs, does not require additional hardware costs, and expands the application scenarios of inkjet printers.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117021796B_ABST
    Figure CN117021796B_ABST
Patent Text Reader

Abstract

The present application relates to a kind of through GPIO mouth switching ink-jet printer printing information method, comprising the following steps: step one, open the information switching function of ink-jet printer GPIO mouth;Step two, set the quantity of GPIO mouth needing to switch information;Step three, respectively edit the information needing to be printed in each production line on ink-jet printer;Step four, corresponding GPIO mouth is connected to corresponding production line equipment, waits to print, wherein, the quantity of GPIO mouth needing to switch information is obtained according to the quantity of different production line printing information content.The present application provides the method for switching ink-jet printer printing information through GPIO mouth, can reasonably use the GPIO mouth of ink-jet printer, can be conveniently and quickly multiple production line multiple printing information switching, and can effectively improve printing information switching efficiency and not prone to error, satisfy the diversified needs of user.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of inkjet printer printing control, in particular to a method for switching inkjet printer printing information through a GPIO port. BACKGROUND

[0002] At present, with the increasing demand for personalized products, the application field of inkjet printers is also becoming wider. In actual printing operations, there are often cases where multiple production lines share one inkjet printer. The products of each production line arrive randomly, and if the printing content required by each production line is different, manual switching of the printing information is needed. However, manual switching of the printing information is too low in efficiency and prone to errors.

[0003] Most inkjet printers currently come with a serial port or a network port for communication with external production line equipment. Therefore, many solutions for switching printing information involve sending the file name of the information that each production line needs to print through the network or serial port. This solution is relatively complex and requires high requirements for production line equipment, which needs to have the ability to develop codes. However, some production line equipment is too old and cannot communicate through these interfaces.

[0004] Therefore, there is an urgent need for a method that can easily switch the printing information of an inkjet printer. SUMMARY

[0005] The present application aims to provide a method for switching the printing information of an inkjet printer through a GPIO port, which can solve the technical problems mentioned in the background.

[0006] To achieve the above-mentioned purpose, the present application provides the following technical solution: a method for switching the printing information of an inkjet printer through a GPIO port, comprising the following steps:

[0007] Step 1: Turn on the information switching function of the GPIO port of the inkjet printer.

[0008] Step 2: Set the number of GPIO ports that need to switch information.

[0009] As a preferred solution, the number of GPIO ports that need to switch information is determined according to the number of different printing information content of the production line.

[0010] As a preferred solution, the number of GPIO ports that need to switch information is determined according to the following method:

[0011] 2 n-1 <m≤2 n ,

[0012] Where m represents the number of different printing information content of the production line, and n represents the number of GPIO ports that need to switch information.

[0013] As a preferred scheme, the method for switching printing information of the inkjet printer through the GPIO port further comprises: step three, respectively editing information to be printed by each production line on the inkjet printer.

[0014] As a preferred scheme, in step three, when naming the file, the first letter of the file name is named as the serial number of the corresponding production line.

[0015] As a preferred scheme, the method for switching printing information of the inkjet printer through the GPIO port further comprises: step four, connecting the GPIO port to the corresponding production line equipment, and waiting for printing.

[0016] The application also provides an inkjet printer comprising a control board, wherein the control board comprises a memory and a processor, the memory stores a computer program executable by the processor, and the processor implements the method for switching printing information of the inkjet printer through the GPIO port according to any one of the above schemes when executing the computer program.

[0017] As a preferred scheme, the inkjet printer further comprises an ink path, a nozzle, a display screen and an interface board controlled by the control board, and the GPIO port is connected to external equipment or sensors through the interface board.

[0018] Compared with the prior art, the method for switching printing information of the inkjet printer through the GPIO port provided by the application can reasonably utilize the GPIO port of the inkjet printer, and can effectively improve the printing information switching efficiency and is not prone to errors, thereby meeting the diversified needs of users. BRIEF DESCRIPTION OF DRAWINGS

[0019] Figure 1 FIG. 1 is a flowchart of the method for switching printing information of the inkjet printer through the GPIO port in the embodiment of the application;

[0020] Figure 2 FIG. 2 is a hardware module block diagram of the inkjet printer in the embodiment of the application. DETAILED DESCRIPTION

[0021] The technical solutions in the embodiments of the application will be described clearly and completely below with reference to the drawings in the embodiments of the application. Obviously, the described embodiments are only part of the embodiments of the application, rather than all the embodiments of the application. Based on the embodiments in the application, all other embodiments obtained by those skilled in the art without creative work fall within the protection scope of the application.

[0022] In the description of the present application, it should be understood that the terms "center", "longitudinal", "transverse", "length", "width", "thickness", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer" and the like indicate the orientation or positional relationship based on the orientation or positional relationship shown in the drawings, and are only for the convenience of describing the present application and simplifying the description, and do not indicate or imply that the device or element referred to must have a particular orientation, be constructed and operated in a particular orientation, and therefore cannot be understood as a limitation of the present application.

[0023] The existing inkjet printer is equipped with multiple groups of GPIO ports when it is shipped, so that the user can communicate with the inkjet printer through these GPIO ports, such as switch printing, reset the counter, etc.

[0024] Referring to Figure 1 The embodiment discloses a method for switching printing information of an inkjet printer through GPIO ports, comprising the following steps:

[0025] Step 1: Turn on the information switching function of the GPIO port of the inkjet printer: set the function of the GPIO port as information switching in the software interface of the inkjet printer;

[0026] Step 2: Set the number of GPIO ports that need to switch information, which is determined according to the number of different printing information contents of the production line;

[0027] The calculation method is:

[0028] 2 n-1 <m≤2 n ,

[0029] Wherein, m represents the number of different printing information contents of the production line; n represents the number of GPIO ports that need to switch information.

[0030] In this embodiment, the number of different printing information contents of the production line is 8, that is, 8 production lines with different printing information contents share one inkjet printer, and the inkjet printer has a total of 4 GPIO ports for input, of which the default configuration is 2 GPIO ports for information switching and the other 2 GPIO ports for resetting the counter. The function of the GPIO port information switching is turned on through software, and the required number of GPIO ports is set. In this embodiment, m=8, so n=3, that is, the number of GPIO ports that need to switch information is set to 3, and the software will automatically switch one of the GPIO ports for counter reset function to information switching function.

[0031] Further, the software default configuration is to close the information switching function, and 2 of the 4 GPIO ports are used to reset the counter by default. If the printed information content contains two counters, the external control state of the two GPIO ports can reset the corresponding counter after the software collects it. Because the default information switching function is closed, the software will not respond to the change of the other two GPIO ports.

[0032] If 8 production lines share one inkjet printer, each production line has its own printing information content. Therefore, the information switching function of the GPIO port needs to be turned on first. Because it involves 8 different production lines of printing information, 3 GPIO ports are needed to distinguish the 8 printing information. However, only 2 GPIO ports are used for information switching by default. Therefore, the user needs to set the number of GPIO ports for information switching to 3 on the display screen interface. Then the software will switch one of the GPIO ports for counter reset function to information switching function. In this case, the state change of the GPIO port will not cause the counter to reset.

[0033] Step three, edit the information that each production line needs to print on the inkjet printer: according to the information content that 8 production lines need to print, edit the corresponding printing information on the display screen, and name the first letter of the file name as the corresponding production line number when naming the file, as shown in Table 1:

[0034] Table 1

[0035] GPIO0 GPIO1 GPIO2 value filename 0 0 0 0 0msg 0 0 1 1 1msg 0 1 0 2 2msg 0 1 1 3 3msg 1 0 0 4 4msg 1 0 1 5 5msg 1 1 0 6 6msg 1 1 1 7 7msg

[0036] Step four, connect the corresponding GPIO port to the corresponding production line equipment and wait for printing: connect the 3 information switching function GPIO ports of the inkjet printer to the corresponding production line equipment. When the corresponding production line equipment transports the product, it will set the GPIO port of the inkjet printer to the corresponding state in Table 1, such as 2msg. Therefore, the state of the 3 GPIO ports is 0, 1, 0. After the software detects the state change, it will automatically open and download the corresponding production line information, and print the corresponding information after detecting that the product is in place.

[0037] It can be understood that in other embodiments, if the user does not need the information switching function of the inkjet printer, but needs to reset the counter through the external GPIO port, the information switching function can be closed, and the default configuration can be used. Through the cooperation of software and hardware, the GPIO ports of the inkjet printer can be fully utilized to meet the different needs of different users.

[0038] In this embodiment, the development of the software can be realized by software developers according to the above description.

[0039] Figure 2 is a hardware module block diagram of the inkjet printer in the embodiment, including a control board, an ink path, a nozzle, a display screen and an interface board, wherein the control board is used for controlling and state monitoring of the ink path, the nozzle, the display screen, the interface board and other associated modules, and can include one or more of the following components: a memory, a processor and one or more computer programs, wherein the one or more computer programs can be stored in the memory and configured to be executed by the one or more processors, and the one or more computer programs are configured to execute the method of switching the printing information of the inkjet printer through the GPIO port.

[0040] Specifically, the control board controls the ink path to normally operate under the pressure specified by the user, is used for controlling the nozzle to normally print, the display screen is used for man-machine interaction, and the user sets parameters or edits information of the device through the display screen, the interface board reserves an interface to facilitate connection with an external device, communicates with the external device through the interface board, and the above-mentioned GPIO port is connected with the external device or a sensor through the interface board, if the GPIO port changes, the control board can monitor in time and switch information.

[0041] The inkjet printer and the method of printing information provided by the application can reasonably utilize the GPIO port of the inkjet printer, realize convenient and fast switching of multiple printing information of multiple production lines on the basis of the existing inkjet printer hardware by adjusting the information switching function of the GPIO port, is a new expansion of a communication channel, does not need to increase additional hardware, can effectively improve the printing information switching efficiency and is not prone to errors while reducing the cost, can meet the diversified needs of users, and also expands the application scenarios of the inkjet printer.

[0042] The basic principle, main features and advantages of the application are shown and described above. It should be understood by those skilled in the art that the application is not limited by the above embodiments, the above embodiments and descriptions in the specification are only preferred examples of the application, and are not used to limit the application, various changes and improvements of the application can be made without departing from the spirit and scope of the application, and these changes and improvements all fall within the scope of the claimed application. The scope of protection of the application is defined by the appended claims and their equivalents.

Claims

1. A method for switching printing information of a ink-jet printer through a GPIO port, a plurality of production lines share one ink-jet printer, each production line has its own printing information content, characterized in that, The method comprises the following steps: Step one, open the information switching function of the GPIO port of the inkjet printer; Step two, set the number of GPIO ports that need to switch information, wherein the number of GPIO ports that need to switch information is obtained according to the number of different production line printing information contents, and is obtained according to the following manner: 2 n-1 <m≤2 n , Wherein m represents the number of different production line printing information contents; n represents the number of GPIO ports that need to switch information; Step three, edit the information that each production line needs to print on the inkjet printer, wherein when naming the file, the first letter of the file name is named as the corresponding production line serial number; Step four, connect the GPIO port to the corresponding production line equipment and wait for printing: connect the information switching function GPIO port of the inkjet printer to the corresponding production line equipment, when the products of the corresponding production line are transported, the production line will set the state of the corresponding GPIO port of the inkjet printer, after detecting the change of these states, the corresponding production line information will be automatically opened and downloaded, and after detecting that the product is in place, the corresponding information is printed.

2. An inkjet printer characterized by comprising: It comprises a control board, the control board comprises a memory and a processor, the memory stores a computer program executable by the processor, and the processor implements the method of switching the printing information of the inkjet printer through the GPIO port according to claim 1 when executing the computer program.

3. The inkjet printer of claim 2, wherein It also comprises an ink path, a nozzle, a display screen and an interface board controlled by the control board, and the GPIO port is connected with external equipment or sensors through the interface board.

Citation Information

Patent Citations

  • Control system of double-nozzle small-character ink-jet printer

    CN114290807A

  • Code spraying machine for step motor production

    CN202006640U

  • I2C bus system

    CN216719084U

  • Multi-channel controller for triggering code spraying of different contents

    CN219555342U