Method, apparatus, device and medium for realizing printing of any resolution

By generating periodic reference signals and calculating inkjet cycles, the problem of not being able to achieve arbitrary resolution printing in existing technologies has been solved. This enables printing at any resolution without changing the grating or magnetic grating, making it more applicable and cheaper.

CN117507605BActive Publication Date: 2025-12-09GUANGZHOU SENYANG ELECTRONIC TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202311251045.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-09-25
Publication Date
2025-12-09
Estimated Expiration
2043-09-25

AI Technical Summary

Technical Problem

Current printing technology cannot achieve printing at arbitrary resolutions, requiring the replacement of gratings or magnetic gratings to adapt to different resolution requirements, which has significant limitations.

Method used

By generating a periodic reference signal through the scale of the measuring instrument, the ratio of the target resolution to the reference resolution is obtained, the inkjet cycle and the signal cycle are determined, and the printer is controlled to spray ink to achieve printing at any resolution.

Benefits of technology

It enables printing at any resolution without changing the raster or magnetic grating, making it more applicable and less expensive.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117507605B_ABST
    Figure CN117507605B_ABST
Patent Text Reader

Abstract

Embodiments of the present application disclose a method, device, equipment and medium for realizing printing of any resolution, and relate to the technical field of printing. The method comprises: generating a periodic reference signal based on a scale of a measuring instrument; obtaining a target resolution, determining a ratio of an inkjet period to a signal period of the reference signal based on the target resolution and a reference resolution of the measuring instrument; obtaining a time length of the signal period of the reference signal; determining the inkjet period based on the time length of the signal period and the ratio; and determining a starting point from the reference signal, and controlling the printer to repeatedly perform inkjetting based on the inkjet period from the starting point, so that printing of any resolution can be realized, and the method has wider applicability. Moreover, the method can be realized based on an original raster or magnetic raster of the printer, without the need to replace the raster or magnetic raster, and has lower cost.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the field of printing technology, and in particular to a method, device, equipment and medium for realizing printing of any resolution. BACKGROUND

[0002] The existing printing inkjet dot reference grating or scale of the magnetic grating is marked, and two A and B signals with a phase difference of 90 degrees are output by the decoder, and the inkjet is started at the rising or falling edge of the A signal or the B signal. According to the printing method of the prior art, the resolution of printing is an integer multiple of the resolution of the grating or the magnetic grating.

[0003] For example, for a grating of 180 DPI, only 180, 360, 540 and 720 resolutions can be printed, and 600 resolution cannot be printed, which has great limitations and cannot realize printing of any resolution. If other resolutions of images need to be printed, the corresponding grating or magnetic grating needs to be replaced. SUMMARY

[0004] The embodiments of the present application provide a method, device, equipment and medium for realizing printing of any resolution, and aim to solve the problem that printing of any resolution cannot be realized in the prior art.

[0005] In a first aspect, the embodiments of the present application provide a method for realizing printing of any resolution, which comprises:

[0006] generating a periodic reference signal based on the scale of a measuring instrument;

[0007] obtaining a target resolution, and determining a ratio of an inkjet period to a signal period of the reference signal based on the target resolution and a reference resolution of the measuring instrument;

[0008] obtaining a time length of the signal period of the reference signal;

[0009] determining the inkjet period based on the time length of the signal period and the ratio;

[0010] determining a starting point from the reference signal, and starting inkjet of a printer repeatedly based on the inkjet period from the starting point.

[0011] Further technical solutions are that the determination of the ratio of the inkjet period to the signal period of the reference signal based on the target resolution and the reference resolution of the measuring instrument comprises:

[0012] obtaining a quotient of the reciprocal of the target resolution and the reciprocal of the reference resolution as the ratio.

[0013] Further technical solutions are that the obtaining of the time length of the signal period of the reference signal comprises:

[0014] starting from a rising edge / falling edge of the reference signal, starting counting at a preset reference frequency, stopping counting until a next rising edge / falling edge of the reference signal, and obtaining a count value;

[0015] determining a signal period of the reference signal based on the count value and the reference frequency.

[0016] A further technical solution is that the determining the inkjet period based on the signal period and the ratio comprises:

[0017] obtaining a product of the signal period and the ratio as the inkjet period.

[0018] A further technical solution is that the determining the starting point from the reference signal comprises:

[0019] taking the rising edge / falling edge of the reference signal as the starting point.

[0020] A further technical solution is that the controlling the printer to repeatedly perform inkjet based on the inkjet period from the starting point comprises:

[0021] controlling the printer to start inkjet from the starting point, and then controlling the printer to perform inkjet once every inkjet period.

[0022] A further technical solution is that the measuring device comprises a grating and a magnetic grating.

[0023] In a second aspect, an apparatus for implementing printing of any resolution is also provided, which comprises units for executing the above method.

[0024] In a third aspect, a computer device is also provided, which comprises a memory and a processor, the memory stores a computer program, and the processor implements the above method when executing the computer program.

[0025] In a fourth aspect, a computer readable storage medium is also provided, which stores a computer program, and the computer program can implement the above method when executed by a processor.

[0026] The embodiment of the present application provides a method, device, equipment and medium for realizing printing of any resolution. The method comprises the following steps: generating a periodic reference signal based on the scale of a measuring instrument; obtaining a target resolution, determining the ratio of an ink jet period to the signal period of the reference signal based on the target resolution and the reference resolution of the measuring instrument; obtaining the time length of the signal period of the reference signal; determining the ink jet period based on the time length of the signal period and the ratio; determining a starting point from the reference signal, and starting from the starting point, controlling the printer to repeatedly perform ink jetting based on the ink jet period, so that printing of any resolution can be realized, and the applicability is wider. Moreover, the present scheme can be realized based on the original raster or magnetic raster of the printer, and the raster or magnetic raster does not need to be replaced, and the cost is lower. BRIEF DESCRIPTION OF DRAWINGS

[0027] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed in the embodiment description will be briefly introduced. Obviously, the drawings in the following description are some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative labor.

[0028] Figure 1 A flowchart of a method for realizing printing of any resolution provided by the embodiment of the present application is shown in the figure.

[0029] Figure 2 A schematic diagram of determining a landing point in a reference signal in the method for realizing printing of any resolution provided by the embodiment of the present application is shown in the figure.

[0030] Figure 3 A schematic block diagram of a device for realizing printing of any resolution provided by the embodiment of the present application is shown in the figure.

[0031] Figure 4 A schematic block diagram of a computer device provided by the embodiment of the present application is shown in the figure. DETAILED DESCRIPTION

[0032] The technical solutions in the embodiments of the present application will be described clearly and completely in combination with the drawings in the embodiments of the present application. Obviously, the described embodiments are some embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative labor are within the protection scope of the present application.

[0033] It should be understood that the terms "comprises" and "comprising" when used in this specification and accompanying claims, signify the presence of the stated features, integers, steps, operations, elements, and / or components but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and / or groups thereof.

[0034] It should also be understood that the terms used in the specification of the application herein are used for the purpose of describing particular embodiments only and are not intended to limit the application. As used in the specification and the appended claims of the application, the singular forms "a," "an" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.

[0035] It should further be understood that the term "and / or" as used in the specification of the application and the appended claims indicates any combination of one or more of the associated listed items and all possible combinations thereof.

[0036] As used in the specification and the appended claims of the application, the term "if' can be interpreted as meaning "when" or "once" or "in response to a determination" or "in response to a detection" depending on the context. Similarly, the phrase "if determined" or "if detected [the described condition or event]" can be interpreted as meaning "once determined" or "in response to a determination" or "once detected [the described condition or event]" or "in response to a detection [the described condition or event]" depending on the context.

[0037] Reference is made to Figure 1 , Figure 1 is a flowchart of a method for implementing printing of any resolution provided by an embodiment of the application. Through the method, printing of any resolution can be implemented, as shown in Figure 1 The method comprises the following steps S1-S5.

[0038] S1, generating a periodic reference signal based on the scale of a measuring instrument.

[0039] In a specific implementation, the measuring instrument comprises an optical grating and a magnetic grating. Those skilled in the art can use an optical grating or a magnetic grating as a measuring instrument according to actual conditions, and the application does not specifically limit this.

[0040] Specifically, a decoder generates a periodic reference signal based on the scale of the measuring instrument, and each scale corresponds to a period of the reference signal. The reference signal has a rising edge and a falling edge.

[0041] S2, obtaining a target resolution, and determining the ratio of an inkjet period to the signal period of the reference signal based on the target resolution and the reference resolution of the measuring instrument.

[0042] In a specific implementation, the target resolution is the resolution set by the user. It can be understood that the target resolution can be set by the user arbitrarily, and the present application does not make specific limitations.

[0043] The reference resolution of the measuring instrument is a parameter of the measuring instrument and is fixed. For example, in an embodiment, the reference resolution of the measuring instrument is 180 dpi.

[0044] Specifically, the ratio of the inkjet period to the signal period of the reference signal is determined based on the target resolution and the reference resolution of the measuring instrument, and specifically, how many raster (magnetic raster) points (one raster (magnetic raster) point corresponds to one scale) correspond to each image point (inkjet point) is calculated.

[0045] In an embodiment, the above step of "determining the ratio of the inkjet period to the signal period of the reference signal based on the target resolution and the reference resolution of the measuring instrument" specifically includes: obtaining the quotient of the reciprocal of the target resolution and the reciprocal of the reference resolution as the ratio.

[0046] In a specific embodiment, the resolution of the raster is 180 dpi, and when an image with a target resolution of 310 dpi needs to be printed, then each image point = (1 / 310) / (1 / 180) = 0.5806 raster points, that is, an image point is printed every 0.5806 raster periods. Therefore, the ratio of the inkjet period to the signal period of the reference signal is 0.5806.

[0047] S3, obtaining the time length of the signal period of the reference signal.

[0048] In a specific implementation, the time length of the signal period of the reference signal is measured in real time.

[0049] For example, in an embodiment, the above step of "obtaining the time length of the signal period of the reference signal" specifically includes: starting counting from the rising edge / falling edge of the reference signal at a preset reference frequency, stopping counting until the next rising edge / falling edge of the reference signal, and obtaining a count value; determining the time length of the signal period of the reference signal based on the count value and the reference frequency.

[0050] Specifically, the fpga (Field-Programmable Gate Array, Field-Programmable Gate Array) program of the printer starts counting from the rising edge of the reference signal at a reference frequency of 70 Mhz, stops counting until the next rising edge, and obtains a count value. The count value divided by the reference frequency is the time length of the signal period of the reference signal.

[0051] Or, counting from the falling edge of the reference signal to the next falling edge with a reference frequency of 70Mhz, a count value is obtained. The count value divided by the reference frequency is the length of the signal period of the reference signal.

[0052] Or, counting from the rising edge of the reference signal to the next falling edge with a reference frequency of 70Mhz, a count value is obtained (only half a period is counted). The count value divided by the reference frequency multiplied by 2 is the length of the signal period of the reference signal.

[0053] Or, counting from the falling edge of the reference signal to the next rising edge with a reference frequency of 70Mhz, a count value is obtained (only half a period is counted). The count value divided by the reference frequency multiplied by 2 is the length of the signal period of the reference signal.

[0054] S4, determining the inkjet period based on the length of the signal period and the ratio.

[0055] In specific implementation, the length of the inkjet period can be determined according to the length of the signal period and the ratio.

[0056] For example, in an embodiment, the step of “determining the inkjet period based on the length of the signal period and the ratio” specifically includes: obtaining the product of the length of the signal period and the ratio as the inkjet period.

[0057] S5, determining a starting point from the reference signal, and based on the inkjet period, controlling the printer to repeatedly perform inkjet starting from the starting point.

[0058] In specific implementation, a starting point of starting printing is determined from the reference signal, and then based on the inkjet period, the printer is controlled to repeatedly perform inkjet starting from the starting point, i.e. one inkjet point is printed every inkjet period. See Figure 2 The rising edge of the reference signal is taken as the starting point of starting printing, and each landing point (inkjet point) of the printer is determined, and printing is performed once at each landing point.

[0059] In an embodiment, the step of “determining a starting point from the reference signal” specifically includes: taking the rising edge / falling edge of the reference signal as the starting point. That is, the rising edge or the falling edge of the reference signal can be taken as the starting point of starting printing, which is not specifically limited by the present application.

[0060] In an embodiment, the step of "controlling the printer to repeatedly perform ink ejection based on the ink ejection period from the starting point" specifically comprises: controlling the printer to start ink ejection from the starting point, and then controlling the printer to perform ink ejection once, i.e. print one ink ejection dot, every time an ink ejection period elapses.

[0061] After that, each time a print job is started, the target resolution input by the user is received, the steps S1-S4 are repeated to determine the ink ejection period, the ink ejection period is sent to the fpga program of the printer, and then the step S5 is performed to realize printing at any resolution.

[0062] The technical scheme of the embodiment of the present application generates a periodic reference signal based on the scale of a measuring instrument; acquires a target resolution, determines the ratio of the ink ejection period to the signal period of the reference signal based on the target resolution and the reference resolution of the measuring instrument; acquires the time length of the signal period of the reference signal; determines the ink ejection period based on the time length of the signal period and the ratio; determines a starting point from the reference signal, and controls the printer to repeatedly perform ink ejection based on the ink ejection period from the starting point, so that printing at any resolution can be realized, and the applicability is wider. Moreover, the present scheme can be realized based on the original raster or magnetic raster of the printer, without the need to replace the raster or magnetic raster, and the cost is lower.

[0063] Referring to Figure 3 , Figure 3 is a schematic block diagram of an apparatus 20 for realizing printing at any resolution provided by the embodiment of the present application. Corresponding to the above method for realizing printing at any resolution, the present application further provides an apparatus 20 for realizing printing at any resolution. The apparatus 20 for realizing printing at any resolution comprises units for executing the above method for realizing printing at any resolution, and the apparatus 20 for realizing printing at any resolution can be configured in a desktop computer, a tablet computer, a laptop computer, or the like terminal. Specifically, the apparatus 20 for realizing printing at any resolution comprises:

[0064] a generating unit 21 configured to generate a periodic reference signal based on the scale of a measuring instrument;

[0065] a first determining unit 22 configured to acquire a target resolution, and determine the ratio of the ink ejection period to the signal period of the reference signal based on the target resolution and the reference resolution of the measuring instrument;

[0066] an acquiring unit 23 configured to acquire the time length of the signal period of the reference signal;

[0067] a second determining unit 24 configured to determine the ink ejection period based on the time length of the signal period and the ratio;

[0068] The control unit 25 is configured to determine a starting point from the reference signal, and to control the printer to repeatedly perform ink ejection based on the ink ejection period starting from the starting point.

[0069] In an embodiment, the determining the ratio of the ink ejection period to the signal period of the reference signal based on the target resolution and the reference resolution of the measuring device comprises:

[0070] obtaining a quotient of a reciprocal of the target resolution and a reciprocal of the reference resolution as the ratio.

[0071] In an embodiment, the obtaining the length of the signal period of the reference signal comprises:

[0072] starting counting from a rising edge / falling edge of the reference signal at a preset reference frequency, and stopping counting until a next rising edge / falling edge of the reference signal, to obtain a count value;

[0073] determining the length of the signal period of the reference signal based on the count value and the reference frequency.

[0074] In an embodiment, the determining the ink ejection period based on the length of the signal period and the ratio comprises:

[0075] obtaining a product of the length of the signal period and the ratio as the ink ejection period.

[0076] In an embodiment, the determining the starting point from the reference signal comprises:

[0077] taking the rising edge / falling edge of the reference signal as the starting point.

[0078] In an embodiment, the controlling the printer to repeatedly perform ink ejection based on the ink ejection period starting from the starting point comprises:

[0079] controlling the printer to start ink ejection from the starting point, and then controlling the printer to perform ink ejection once every ink ejection period.

[0080] In an embodiment, the measuring device comprises an optical grating and a magnetic grating.

[0081] It should be noted that the specific implementation process of the apparatus 20 and each unit for realizing the arbitrary resolution printing can be clearly understood by those skilled in the art, and can be referred to the corresponding description in the foregoing method embodiments. For the convenience and brevity of description, the details are not described herein.

[0082] The apparatus 20 for realizing the arbitrary resolution printing can be realized in the form of a computer program, which can run on a computer system such as a server, a personal computer, a laptop, a tablet computer, a terminal, a network device, a processor, or a Figure 4The computer device shown is running.

[0083] Please refer to Figure 4 , Figure 4 is a schematic block diagram of a computer device provided by an embodiment of the present application. The computer device 500 can be a terminal or a server, wherein the terminal can be a smart phone, a tablet computer, a notebook computer, a desktop computer, a personal digital assistant, a wearable device, or the like electronic device having a communication function. The server can be a standalone server or a server cluster composed of multiple servers.

[0084] The computer device 500 includes a processor 502, a memory, and a network interface 505 connected through a system bus 501, wherein the memory can include a non-volatile storage medium 503 and an internal memory 504.

[0085] The non-volatile storage medium 503 can store an operating system 5031 and a computer program 5032. The computer program 5032, when executed, can cause the processor 502 to perform a method for realizing printing at any resolution.

[0086] The processor 502 is configured to provide computing and control capabilities to support the operation of the entire computer device 500.

[0087] The internal memory 504 provides an environment for the execution of the computer program 5032 in the non-volatile storage medium 503, and the computer program 5032, when executed by the processor 502, can cause the processor 502 to perform a method for realizing printing at any resolution.

[0088] The network interface 505 is configured to perform network communication with other devices. Those skilled in the art can understand that the above structure is only a block diagram of part of the structure related to the scheme of the present application, and does not constitute a limitation on the computer device 500 to which the scheme of the present application is applied. The specific computer device 500 can include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0089] The processor 502 is configured to run the computer program 5032 stored in the memory to implement the steps of the method for realizing printing at any resolution provided by any of the above method embodiments.

[0090] It should be understood that, in the embodiments of the present application, the processor 502 can be a central processing unit (CPU), and can also be other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The general-purpose processor can be a microprocessor or any conventional processor.

[0091] Those skilled in the art can understand that all or part of the processes in the method of the above-mentioned embodiments can be completed by a computer program instructing related hardware. The computer program can be stored in a storage medium, which is a computer-readable storage medium. The computer program is executed by at least one processor in the computer system to implement the process steps of the above-mentioned method embodiments.

[0092] Therefore, the present application also provides a storage medium. The storage medium can be a computer-readable storage medium. The storage medium stores a computer program. The computer program is executed by a processor to make the processor execute the steps of the method for realizing printing of any resolution provided by any of the above-mentioned method embodiments.

[0093] The storage medium is an entity, non-transient storage medium, for example, a U disk, a mobile hard disk, a read-only memory (ROM), a magnetic disk or an optical disk, etc. Various entity storage media that can store program codes. The computer-readable storage medium can be non-volatile or volatile.

[0094] Those skilled in the art can realize that the units and algorithm steps of the examples described in combination with the embodiments disclosed herein can be realized in electronic hardware, computer software or a combination of both. In order to clearly illustrate the interchangeability of hardware and software, the components and steps of each example have been described in the above description in general terms. Whether the functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. The skilled person can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the present application.

[0095] In several embodiments provided by the present application, it should be understood that the disclosed apparatus and method can be implemented in other manners. For example, the described apparatus embodiments are merely schematic. For example, the division of the units is merely a logical function division. For example, a plurality of units or components can be combined or integrated into another system, or some features can be ignored or not executed. In this way, the actual division of the units can be different from the division in the embodiment.

[0096] The steps in the method embodiments of the present application can be adjusted, combined and deleted in sequence according to actual needs. The units in the apparatus embodiments of the present application can be combined, divided and deleted according to actual needs. In addition, each functional unit in each embodiment of the present application can be integrated in one processing unit, or each unit can exist physically, or two or more units can be integrated in one unit.

[0097] The integrated unit, if realized in the form of a software functional unit and sold or used as an independent product, can be stored in a storage medium. Based on such understanding, the technical solutions of the present application essentially or the part that contributes to the prior art, or the whole or part of the technical solutions can be embodied in the form of a software product. The computer software product is stored in a storage medium, and includes a plurality of instructions for causing a computer device (which can be a personal computer, a terminal, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present application.

[0098] In the above embodiments, the description of each embodiment has its own focus, and the parts not described in detail in a certain embodiment can be referred to the relevant description of other embodiments.

[0099] Obviously, those skilled in the art can make various modifications and variations to the present application without departing from the spirit and scope of the present application. Thus, these modifications and variations also belong to the scope of the claims of the present application and their equivalent technologies, and the present application is intended to include these modifications and variations.

[0100] The above description is merely specific embodiments of the present application, but the protection scope of the present application is not limited thereto. Any skilled person in the art can easily think of various equivalent modifications or replacements within the technical range disclosed by the present application, and these modifications or replacements should be covered in the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.

Claims

1. A method of enabling printing at an arbitrary resolution, characterized by, The method comprises: generating a periodic reference signal based on a scale of a measuring instrument; acquiring a target resolution, determining a ratio of an inkjet period to a signal period of the reference signal based on the target resolution and a reference resolution of the measuring instrument; acquiring a time length of the signal period of the reference signal; determining the inkjet period based on the time length of the signal period and the ratio; determining a starting point from the reference signal, and starting inkjetting of a printer based on the inkjet period from the starting point; wherein the determining the ratio of the inkjet period to the signal period of the reference signal based on the target resolution and the reference resolution of the measuring instrument comprises: acquiring a quotient of a reciprocal of the target resolution and a reciprocal of the reference resolution as the ratio; the acquiring the time length of the signal period of the reference signal comprises: starting counting from a rising edge / falling edge of the reference signal at a preset reference frequency, and stopping counting until a next rising edge / falling edge of the reference signal, to obtain a count value; determining the time length of the signal period of the reference signal based on the count value and the reference frequency; the determining the inkjet period based on the time length of the signal period and the ratio comprises: acquiring a product of the time length of the signal period and the ratio as the inkjet period.

2. The method of claim 1, wherein, the determining the starting point from the reference signal comprises: taking the rising edge / falling edge of the reference signal as the starting point.

3. The method of claim 1, wherein, the starting inkjetting of the printer based on the inkjet period from the starting point comprises: controlling the printer to start inkjetting from the starting point, and then controlling the printer to inkjet once every inkjet period.

4. The method of claim 1, wherein, The measuring instrument comprises an optical grating and a magnetic grating.

5. An apparatus for implementing printing of an arbitrary resolution, characterized by, The unit is used for executing the method according to any one of claims 1-4.

6. A computer device, comprising: The computer device comprises a memory and a processor, the memory stores a computer program, and the processor executes the computer program to implement the method according to any one of claims 1-4.

7. A computer readable storage medium characterized in that, The storage medium stores a computer program, and the computer program can implement the method according to any one of claims 1-4 when executed by a processor.

Citation Information

Patent Citations

  • Image precision self-adaptive printing method and device, equipment and storage medium

    CN114347650A