CN108256601B - RFID label printing method, printing method and device of label printer and label printer - Google Patents

RFID label printing method, printing method and device of label printer and label printer Download PDF

Info

Publication number
CN108256601B
CN108256601B CN201810033685.8A CN201810033685A CN108256601B CN 108256601 B CN108256601 B CN 108256601B CN 201810033685 A CN201810033685 A CN 201810033685A CN 108256601 B CN108256601 B CN 108256601B
Authority
CN
China
Prior art keywords
printed
label paper
read
write area
label
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810033685.8A
Other languages
Chinese (zh)
Other versions
CN108256601A (en
Inventor
庞静
周昌伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Chongqing Wewin Technology Co ltd
Original Assignee
Chongqing Wewin Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Chongqing Wewin Technology Co ltd filed Critical Chongqing Wewin Technology Co ltd
Priority to CN201810033685.8A priority Critical patent/CN108256601B/en
Publication of CN108256601A publication Critical patent/CN108256601A/en
Application granted granted Critical
Publication of CN108256601B publication Critical patent/CN108256601B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K17/00Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K1/00Methods or arrangements for marking the record carrier in digital fashion
    • G06K1/12Methods or arrangements for marking the record carrier in digital fashion otherwise than by punching
    • G06K1/128Methods or arrangements for marking the record carrier in digital fashion otherwise than by punching by electric registration, e.g. electrolytic, spark erosion

Abstract

The invention discloses an RFID label printing method, a printing method and a device of a label printer and the label printer, wherein the RFID label printing method comprises the following steps: the method comprises the steps of obtaining the height of each to-be-printed label paper in each roll of label paper, the distance between two adjacent to-be-printed label papers and the area length of a read-write area of an RFID reader-writer in advance; obtaining a read-write area of each label paper to be printed according to the height of the label paper to be printed, the distance between two adjacent label paper to be printed and the area length of the read-write area of the RFID reader-writer, wherein the distance from the end position of the read-write area of each label paper to be printed to the start position of the read-write area of the label paper to be printed is less than the area length of the read-write area of the RFID reader-writer; judging whether the read-write area of the label paper to be printed completely falls into the read-write area of the RFID reader; and if so, writing the invisible data into the current label paper to be printed.

Description

RFID label printing method, printing method and device of label printer and label printer
Technical Field
The invention relates to an RFID label printing method, an RFID label printing device and a label printer.
Background
The label printer is a printer which is not required to be connected with a computer, is provided with an input keyboard or intelligent touch screen operation, is internally provided with certain fonts, word banks and a considerable number of label template formats, and can be used for directly inputting, editing and typesetting label contents according to the needs of a user through a machine body liquid crystal screen or APP software and then directly printing and outputting labels. The printing mode of the current label printer includes visible data printing and invisible data printing (for example, RFID label printing), where the visible data printing is to embody characters and/or graphics on label paper, the invisible data printing is to set an RFID antenna on each label paper, and an RFID reader is set on an output path of the label paper of the printer to read and write invisible data on each label paper in a one-to-one correspondence manner.
Conventional RFID label printing includes the following two ways:
firstly, visible data is printed and then invisible data is written, in this way, an RFID reader-writer is required to be arranged in front of a printing head (namely, close to the direction of a label paper outlet), and the following steps are carried out:
s100, when the label paper is fed to the position of the printing head, printing visible data of the label paper;
s102, after printing is finished, enabling the current label paper to move to an RFID reader-writer so that the RFID reader-writer writes invisible data into the label paper;
and S104, after the printing of the current label paper is finished, moving the next label paper to the position of the printing head to print the visible data of the next label paper, and repeating the steps until the end.
In the first mode, the invisible data is printed after the visible data is printed for each label paper, and the method has the advantages that: when the RFID reader reads and writes the label paper, the label paper damaged by a certain RFID antenna can be immediately identified, so that a user can know the label paper which is not successfully read and written. The disadvantages are that: 1. if the height of the label paper is smaller than the distance between the printing head and the reader-writer, the next label paper passes over the printing head when the RFID reader-writer reads and writes the current label paper, and if the visible data needs to be printed to the next label paper, the next label paper needs to be returned to the position of the printing head after the previous label paper is read and written; 2. if the height of the label paper is greater than the distance between the printing head and the reader-writer, after the visible data of the label paper with a higher height is printed, the RFID antenna on the label paper with a higher height may already pass over the RFID reader-writer, and therefore, the label paper with a higher height also needs to be retracted to enable the RFID reader-writer to write invisible data into the label paper with a higher height.
Secondly, writing invisible data and then printing visible data, wherein the RFID reader-writer needs to be arranged behind the printing head (far away from the label paper outlet direction), and the steps are as follows:
s200, when the label paper reaches the RFID reader-writer, the RFID reader-writer writes corresponding invisible data into the label paper;
s202, the label paper continues to advance to the position of a printing head, and the printing head prints visible data into the label paper;
and S204, after the printing of the current label paper is finished, moving the next label to the position of the RFID reader-writer, and repeating the steps until the end.
In the second mode, the invisible data is printed firstly and then the visible data is printed for each label paper. The advantages are that: the printing speed is high and the efficiency is high. The disadvantages are that: since the invisible data is written into the label paper firstly, and then the label paper after successful reading and writing is subjected to visible printing, when visible printing is performed, the pressure of the rubber roller and before printing can cause damage to the RFID chip of the label, and further a user can not identify the damaged label paper.
Disclosure of Invention
Aiming at the defects of the prior art, the technical problems to be solved by the invention are as follows: provided are an RFID label printing method, an RFID label printing device, and a label printer, which improve printing efficiency.
In order to solve the technical problems, the invention adopts a technical scheme that: there is provided an RFID tag printing method of a tag printer for writing invisible data on a tag paper by an RFID reader provided on the tag printer, the RFID tag printing method including the steps of:
the method comprises the steps of obtaining the height of each to-be-printed label paper in each roll of label paper, the distance between two adjacent to-be-printed label papers and the area length of a reading and writing area of an RFID reader-writer in advance;
obtaining a read-write area of each label paper to be printed according to the height of the label paper to be printed, the distance between two adjacent label paper to be printed and the area length of the read-write area of the RFID reader-writer, wherein the area length of the read-write area is smaller than the area length of the read-write area of the RFID reader-writer, the starting position of the read-write area of each label paper to be printed is close to the front end of the label paper to be printed, the ending position of the read-write area of each label paper to be printed is close to the rear end of the label paper to be printed, and the distance from the ending position of the read-write area of each label paper to be printed to the starting position of the read-write area of the label paper to be printed is smaller than the area length of the read-;
judging whether the read-write area of the label paper to be printed completely falls into the read-write area of the RFID reader;
and when the read-write area of the label paper to be printed completely falls into the read-write area of the RFID reader-writer, writing the invisible data into the current label paper to be printed.
Further, in the step of writing invisible data into the current label paper to be printed, the following substeps are included:
writing invisible data B corresponding to the label paper to be printed into the label paper to be printed;
reading invisible data A written in the label paper to be printed;
matching and comparing the read invisible data A with the stored invisible data B corresponding to the label paper to be printed to judge whether the invisible data A written in the label paper to be printed is the same as the stored corresponding invisible data B;
if the two are the same, the writing is regarded as successful;
if not, the procedure goes to the write substep.
Further, in the step of writing invisible data into the current label paper to be printed, the method further includes:
judging whether the read-write area has a part exceeding the read-write area of the RFID reader-writer;
and if the read-write area is judged to have a part exceeding the read-write area of the RFID reader-writer, stopping writing.
In order to solve the technical problem, the invention adopts another technical scheme that: the printing method of the label printer comprises visible data printing and invisible data printing, wherein the visible data are printed on label paper to be printed through a printing unit of the label printer, the invisible data are written on the label paper printed with the visible data through an RFID reader-writer arranged on the label printer and positioned in front of the printing unit, and the printing method comprises the following steps:
the method comprises the steps of obtaining the height of each to-be-printed label paper in each roll of label paper, the distance between two adjacent to-be-printed label papers and the area length of a reading and writing area of an RFID reader-writer in advance;
obtaining a read-write area of each label paper to be printed according to the height of the label paper to be printed, the distance between two adjacent label paper to be printed and the area length of the read-write area of the RFID reader-writer, wherein the area length of the read-write area is smaller than the area length of the read-write area of the RFID reader-writer, the starting position of the read-write area of each label paper to be printed is close to the front end of the label paper to be printed, the ending position of the read-write area of each label paper to be printed is close to the rear end of the label paper to be printed, and the distance from the ending position of the read-write area of each label paper to be printed to the starting position of the read-write area of the label paper to be printed is smaller than the area length of the read-;
controlling the label paper to be printed to sequentially advance to the position of a printing unit from head to tail so that the printing unit sequentially prints visible data on the corresponding label paper to be printed;
controlling the label paper printed with the visible data to sequentially advance towards the RFID reader from head to tail;
judging that the read-write area of the label paper printed with the visible data at present completely falls into the read-write area read-written by the RFID reader;
and when the read-write area of the label paper printed with the visible data completely falls into the read-write area of the RFID reader, writing the invisible data into the label paper printed with the visible data, so that the RFID reader sequentially writes the invisible data into the corresponding label paper printed with the visible data.
Further, in the step of writing invisible data to the label paper currently printed with visible data, the following substeps are included:
writing invisible data B corresponding to the label paper to be printed into the label paper printed with visible data currently;
reading invisible data A written in the label paper printed with visible data currently;
matching and comparing the read invisible data A with the stored invisible data B corresponding to the label paper printed with the visible data currently to judge whether the invisible data A written into the label paper printed with the visible data currently is the same as the stored corresponding invisible data B;
if the invisible data A in the label paper printed with the visible data at present is judged to be the same as the stored corresponding invisible data B, the writing is considered to be successful;
and if the invisible data A in the label paper printed with the visible data at present is judged to be different from the stored corresponding invisible data B, the substep of writing the invisible data B corresponding to the label paper to be printed into the label paper printed with the visible data at present is carried out.
Further, after the step of determining that the invisible data in the label paper printed with the visible data at present is different from the stored corresponding invisible data, the method further includes:
judging whether the read-write area of the label paper printed with the visible data is far away from the read-write area capable of being read and written by the RFID reader;
if the read-write area of the label paper printed with the visible data is far away from the read-write area of the RFID reader-writer capable of being read-written by the RFID reader-writer; controlling the label paper printed with the visible data to retreat to the position of the printing unit;
controlling the printing unit to print an error identification into the label currently printed with the visible data.
Further, after printing the error identifier into the label currently printed with the visible data, the method further comprises the following substeps:
and controlling the label paper written with the error identification to advance towards the outlet direction and pass over the RFID reader-writer.
In order to solve the technical problem, the invention adopts another technical scheme that: there is provided an RFID label printing apparatus of a label printer, including:
the third acquisition module is used for acquiring the height of each to-be-printed label paper in each roll of label paper, the distance between two adjacent to-be-printed label papers and the area length of a read-write area of the RFID reader-writer in advance;
a third calculation module, configured to obtain a read-write area of each to-be-printed label paper according to the height of the to-be-printed label paper, a distance between two adjacent to-be-printed label papers, and an area length of a read-write area of the RFID reader, where the area length of the read-write area is smaller than the area length of the read-write area of the RFID reader, a starting position of the read-write area of each to-be-printed label paper is close to a front end of the to-be-printed label paper, an ending position of the read-write area of each to-be-printed label paper is close to a rear end of the to-be-printed label paper, and a distance between the ending position of the read-write area of each to-be-printed label paper and the starting position of the read-write area of the to-;
the fourth judging module is used for judging whether the read-write area of the label paper to be printed completely falls into the read-write area read and written by the RFID reader;
and the third RFID reading and writing module is used for writing invisible data into the current label paper to be printed when the read-write area of the label paper to be printed is judged to completely fall into the read-write area of the RFID reader-writer.
In order to solve the technical problem, the invention adopts another technical scheme that: there is provided a printing apparatus of a label printer, comprising:
the fourth acquisition module is used for acquiring the height of each to-be-printed label paper in each roll of label paper, the distance between two adjacent to-be-printed label papers and the area length of a read-write area of the RFID reader-writer in advance;
a fourth calculation module, configured to obtain a read-write area of each to-be-printed label paper according to the height of the to-be-printed label paper, a distance between two adjacent to-be-printed label papers, and an area length of a read-write area of the RFID reader, where the area length of the read-write area is smaller than the area length of the read-write area of the RFID reader, a starting position of the read-write area of each to-be-printed label paper is close to a front end of the to-be-printed label paper, an ending position of the read-write area of each to-be-printed label paper is close to a rear end of the to-be-printed label paper, and a distance between the ending position of the read-write area of each to-be-printed label paper and the starting position of the read-write area of the to;
the first control module is used for controlling the label paper to be printed to sequentially advance to the printing unit from head to tail so that the printing unit sequentially prints visible data on the corresponding label paper to be printed;
the third control module is used for controlling the label paper printed with the visible data to sequentially move forward towards the RFID reader from head to tail;
a fifth judging module, configured to judge whether a read-write area of the label paper currently printed with the visible data reaches a read-write area that is sufficient for being read and written by the RFID reader;
and the fourth RFID reading and writing module is used for writing invisible data into the label paper printed with the visible data when the read-write area of the label paper printed with the visible data reaches the read-write area of the RFID reader, so that the RFID reader sequentially writes the invisible data into the corresponding label paper printed with the visible data.
In order to solve the technical problem, the invention adopts another technical scheme that: there is provided a label printer comprising:
a printer body;
the printing unit is arranged on the printer body;
the RFID reader-writer is arranged on the printer body and positioned in front of the printing unit;
the label paper driving unit is used for driving the label paper to be printed to move forwards or backwards;
the paper measuring unit is used for measuring the height of each to-be-printed label paper in each roll of label paper installed in the printer body, the distance between two adjacent to-be-printed label paper and the area length of a read-write area of the RFID reader-writer;
the processing unit is used for obtaining a read-write area of each label paper to be printed according to the height of the label paper to be printed, the distance between two adjacent label paper to be printed and the area length of the read-write area of the RFID reader-writer, wherein the area length of the read-write area is smaller than the area length of the read-write area of the RFID reader-writer, the starting position of the read-write area of each label paper to be printed is close to the front end of the label paper to be printed, the ending position of the read-write area of each label paper to be printed is close to the rear end of the label paper to be printed, and the distance from the ending position of the read-write area of each label paper to be printed to the starting position of the read-write area of the label paper to be printed is smaller than the area length of the;
the storage unit is used for storing visible data and invisible data corresponding to each to-be-printed label paper in each roll of label paper and storing the read-write area;
the control unit is used for controlling the label paper driving unit so that the label paper driving unit to be printed drives the label paper to be printed to move forwards, continuously move forwards and backwards; the control unit is further used for controlling the printing unit to print the corresponding visible data on the label paper to be printed when the label paper to be printed reaches the position of the printing unit, so that the printing unit can sequentially print the visible data on the corresponding label paper to be printed; the control unit is further used for writing the invisible data into the label paper printed with the visible data when the read-write area of the label paper printed with the visible data reaches the read-write area of the RFID reader, so that the RFID reader sequentially writes the invisible data into the corresponding label paper printed with the visible data.
The RFID label printing method, the printing method and the printing device of the label printer and the label printer are suitable for printing labels with small label height and small distance between the read-write areas of two adjacent labels.
Drawings
Fig. 1 is a flowchart of a first embodiment of an RFID label printing method of a label printer of the present invention.
Fig. 2 is a schematic view of a label sheet in the RFID label printing method of the present invention.
Fig. 3 is a flow chart of a first embodiment of a printing method of the label printer of the present invention.
Fig. 4 is a block diagram of a first embodiment of an RFID label printing apparatus of the label printer of the present invention.
Fig. 5 is a block diagram of a first embodiment of a printing apparatus of the label printer of the present invention.
Fig. 6 is a flowchart of a second embodiment of an RFID label printing method of the label printer of the present invention.
Fig. 7 is a schematic view of a label sheet in a second embodiment of an RFID label printing method of a label printer according to the present invention.
Fig. 8 is a flow chart of a second embodiment of a printing method of the label printer of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, fig. 1 is a flowchart of a first embodiment of a method for printing an RFID label in a label printer according to the present invention. The method for printing the RFID tag (i.e., the RFID electronic tag, also called invisible data) of the tag printer according to this embodiment is used to write invisible data on the tag paper by using an RFID reader/writer provided on the tag printer, and includes the following steps:
s301, acquiring the height of each to-be-printed label paper in each roll of label paper, the distance between two adjacent to-be-printed label paper and the area length L3 of the read-write area of the RFID reader-writer in advance;
each roll of label paper comprises a plurality of label paper with equal length which are pasted on the bottom film at equal intervals.
The height of each piece of label paper to be printed and the distance between two adjacent pieces of label paper to be printed are obtained by detecting the height of the first piece of label paper to be printed and the distance between the first piece of label paper to be printed and the second piece of label paper to be printed.
The height of the first piece of label paper is obtained by the following steps:
because the label paper sensor for detecting the label paper is arranged at the corresponding position (generally, the bottom of the printing head) of the printing head of the label printer, when the height of the first label paper to be printed and the distance between the first label paper to be printed and the second label paper to be printed need to be measured, the stepping motor can drive the label paper to be printed to advance through the paper measuring function button arranged on the label printer. The method comprises the steps that when a first piece of label paper is detected for the first time by a label paper sensor, a first signal (the signal comprises first time for detecting the first piece of label paper to be printed for the first time) is sent to a control unit, the control unit receives the signal to obtain time for detecting the first piece of label paper to be printed for the first time by the label paper sensor, when the first piece of label paper is detected for the last time by the label paper sensor, a second signal (the second time for detecting the first piece of label paper to be printed for the last time when the current paper is detected) is sent to the control unit, and the height of the first piece of label paper to be printed can be obtained through the time period from the first time to the second time, the step number of a stepping motor and the step length. Because the label paper on the same roll of label paper is equal in length, the height of each label paper to be printed can be known as long as the height of the first label paper to be printed is obtained.
The distance between two adjacent label papers to be printed is obtained by the following method:
when the label paper sensor detects a second piece of label paper to be printed for the first time, a third signal (including third time for detecting the second piece of label paper to be printed for the first time) is sent to the control unit, the control unit controls the second signal, the third signal, the step number and the step length of the stepping motor to calculate the distance between the first piece of label paper to be printed and the second piece of label paper to be printed, and the distance between every two adjacent pieces of label paper to be printed on the same roll of label paper is equal, so that the distance between every two adjacent pieces of label paper to be printed can be known as long as the distance between the first piece of label paper to be printed and the second piece of label paper to be printed is obtained.
When the read-write area of the RFID reader-writer is circular, the area length L3 is the read-write diameter of the circular read-write area (see fig. 2), and when the read-write area is rectangular, the area length L is the length L of the rectangular read-write area (see fig. 7). In this embodiment, the RFID reader is a circular read-write area.
S302, obtaining a read-write area R of each label paper to be printed (see fig. 2 for the read-write area R) according to the height of the label paper to be printed, the distance between two adjacent label papers to be printed, and the area length L3 of the read-write area of the RFID reader, wherein the start position SL of the read-write area R of each label paper to be printed is close to the front end of the label paper to be printed, the end position ZL is close to the rear end of the label paper to be printed, and the distance R1 from the end position ZL of the read-write area R of each label paper to be printed to the start position of the read-write area R of the label paper to be printed is greater than the area length L3 of the read-write area of the RFID reader;
the read-write area R mainly functions to control the earliest read-write time and the latest read-write time of the RFID reader for reading and writing the current label paper to be printed, when the start position SL of the read-write area R of the current label paper to be printed reaches the read-write area that can be read and written by the RFID reader, the RFID reader is controlled to start reading and writing the current label paper to be printed, and when the end position ZL of the read-write area R of the current label paper to be printed reaches the position of the RFID reader (i.e., the position of the read-write area), the RFID reader is controlled to stop the read-write action on the current label paper, so as to prevent the RFID reader from wrongly writing the invisible data corresponding to the current label paper onto the next label paper to be printed or wrongly writing the previous label paper on which the invisible data has been written. Since the invisible data corresponding to each label paper is different in general, when the same invisible data is written into two label papers, the problems of statistical disorder and repeated data writing will occur, and therefore, the design of the read-write area R can solve the problems of repeated data writing into the label paper and data disorder in the scheme of simultaneously performing visible data and invisible data.
S303, judging whether the read-write area R of the label paper to be printed reaches a read-write area which can be read and written by an RFID reader;
in this step, it means whether the start position SL of the read/write region R reaches a position or a range where the RFID reader/writer can read and write. Whether the initial position SL of the read-write area R reaches the read-write range of the RFID reader can be judged by the number of steps and the step length of the stepping motor, the area length L3 of the read-write area of the RFID reader, or a sensor can be provided at the farthest read-write distance position of the RFID reader corresponding to the label paper direction to detect whether the initial position of the read-write area R reaches the read-write range of the RFID reader.
S304, when the read-write area R of the label paper to be printed reaches the read-write area of the RFID reader, the invisible data is written into the current label paper to be printed. When the starting position SL of the read-write area R of the label paper to be printed reaches the read-write area of the RFID reader-writer, the RFID reader-writer is triggered to write invisible data corresponding to the label paper to be printed into the RFID reader-writer.
The method comprises the following substeps:
s3041, writing invisible data B corresponding to the label paper to be printed into the label paper to be printed, wherein the invisible data written into the label paper to be printed is marked as invisible data A;
and the RFID reader-writer writes invisible data corresponding to the current label paper to be printed into the current label paper to be printed.
S3043, reading the invisible data A written in the label paper to be printed in the previous step;
and after the RFID reader-writer writes, reading the currently written invisible data. The scheme further includes a situation that the RFID reader-writer cannot write when the RFID antenna of the current label paper to be printed is damaged, and the read data may be empty or inconsistent when the RFID reader-writer cannot write.
S3045, matching and comparing the read invisible data a with the stored invisible data B corresponding to the label paper to be printed, so as to determine whether the invisible data a written in the label paper to be printed is the same as the stored corresponding invisible data B; the invisible data B may be stored in a storage module in the RFID reader, may also be stored in a certain storage unit of the label printer, or may be stored in a certain database, etc.
In this step, when empty, they can be judged to be different when compared with the stored invisible data.
S3047, if the data is the same, the writing is determined to be successful;
and S3049, if the difference is not the same, turning to the step S3041.
The embodiment of the invention can be applied to the field of label printing for printing visible data and invisible data, and can also be applied to the field of label printing for printing invisible data only. When applied to the field of printing both visible data and invisible data, the RFID reader/writer needs to be disposed on the label printer at a position in front of the printing unit for writing the invisible data onto the label paper on which the visible data is printed. When the visible data and the invisible data are printed, the invisible data printing step can be that after the visible data are printed, after the visible data are printed on the label paper to be printed in sequence, the label paper to be printed is sent to the RFID reader-writer position in sequence, and the invisible data are printed on the label paper sent to the position and printed with the visible data in sequence according to the mode, so that the visible data and the invisible data are printed sequentially and simultaneously. Through the read-write area R, the invisible data can be wrongly written into the previous piece of label paper with the invisible data written therein or wrongly written into the next piece of label paper with the visible data printed thereon by the RFID reader-writer in a simultaneous printing mode, and the data accuracy during simultaneous printing is ensured.
Referring to fig. 3, fig. 3 is a flowchart of a first embodiment of a printing method of a label printer according to the present invention. The printing method of the label printer of the embodiment includes visible data printing and invisible data printing, the visible data is printed on the label paper to be printed through a printing unit of the label printer, the invisible data is written on the label paper printed with the visible data through an RFID reader-writer arranged on the label printer and located in front of the printing unit, and the printing method includes:
s401, acquiring the height of each to-be-printed label paper in each roll of label paper, the distance between two adjacent to-be-printed label paper and the area length L3 of a read-write area of the RFID reader-writer in advance;
the manner of obtaining the height of each label paper to be printed, the distance between two adjacent label papers to be printed, and the area length L3 of the read-write area of the RFID reader-writer can be described with reference to the above embodiments, and can also be obtained by manual input, which is not described in detail herein.
S402, obtaining a read-write area R of each label paper to be printed according to the height of the label paper to be printed, the distance between two adjacent label paper to be printed and the area length L3 of the read-write area of the RFID reader-writer, wherein the starting position SL of the read-write area R of each label paper to be printed is close to the front end of the label paper to be printed, the ending position ZL of the read-write area R of each label paper to be printed is close to the rear end of the label paper to be printed, and the distance R1 from the ending position ZL of the read-write area R of each label paper to be printed to the starting position of the read-write area R of the label paper to be printed is greater than the area length L3 of the read-write area of the RFID reader;
s403, controlling the label paper to be printed to sequentially advance to the position of a printing unit from head to tail so that the printing unit sequentially prints visible data on the corresponding label paper to be printed;
because treat that print the tag paper all is installing in the printer spool of book, then through step motor drive beat printer paper and advance to the export direction in proper order, the in-process that advances to the export direction is in proper order through beating printer head position department, the sensor that beats printer head position department detects treat print the tag paper, then will with treat that the visible data of printing the tag paper one-to-one prints on corresponding treat printing the tag paper, thereby makes to beat printer head and print visible data in proper order on the corresponding treat printing the tag paper. The whole printing process is continuous until each label paper to be printed of the whole roll of label paper to be printed is printed with visible data.
S404, controlling the label paper printed with the visible data to sequentially advance towards the RFID reader from head to tail;
the label paper to be printed is driven by the stepping motor to move forwards from head to tail, so that the label paper printed with the visible data is driven by the stepping motor to move forwards to the position of the RFID reader-writer in sequence while the visible data is printed at the position of the printing unit in sequence, so that the label paper printed with the visible data is written with invisible data by the RFID reader-writer in sequence and then is sent to an outlet.
S405, judging whether the read-write area R of the label paper printed with the visible data reaches a read-write area which can be read and written by the RFID reader;
in this step, it means whether the start position SL of the read/write region R reaches a position or a range where the RFID reader/writer can read and write. When the label paper printed with the visible data advances after the visible data is printed, the step number and the step length of the stepping motor, the position of the RFID reader, the area length L3 of the read-write area or the read-write range are recorded to judge whether the initial position SL of the read-write area R reaches the read-write range of the RFID reader, or a sensor is arranged at the farthest read-write distance position of the RFID reader corresponding to the label paper direction to detect whether the initial position of the read-write area R reaches the read-write range of the RFID reader.
And S406, when the read-write area R of the label paper printed with the visible data reaches the read-write area, writing the invisible data into the label paper printed with the visible data, so that the RFID reader-writer sequentially writes the invisible data into the corresponding label paper printed with the visible data.
In this step, when the start position SL of the read-write area R of the label paper to be printed reaches the read-write area, the RFID reader is triggered to write invisible data corresponding to the label paper to be printed therein.
Preferably, the present step may further comprise the following sub-steps:
s4061, writing invisible data B corresponding to the label paper to be printed into the label paper printed with visible data currently;
and the RFID reader-writer writes invisible data corresponding to the current label paper to be printed into the current label paper to be printed.
In this step, the RFID antenna of the label paper on which the visible data is currently printed may be damaged by the roller shaft, and when such a situation is reproduced, the RFID reader/writer cannot write the corresponding invisible data into the label paper on which the visible data is currently printed. When the situation occurs, the RFID reader can generate an unreadable label, and in the subsequent steps, the unreadable label is matched and compared with the stored invisible data corresponding to the unreadable label to determine whether the unreadable label is consistent with the stored invisible data, and if the unreadable label is inconsistent with the stored invisible data, the step S4061 is returned, or an error signal is directly generated to the control unit of the label printer, so that the control unit controls the label paper printed with the visible data to retreat to the printing unit, and the printing unit prints the error label.
In other embodiments, if the RFID antenna is damaged and the RFID reader cannot write the corresponding invisible data, the RFID reader may directly feed back an unwritten signal to the control unit, and the control unit directly controls the current label paper printed with visible data to return to the printing unit after receiving the unwritten signal, so that the printing unit prints an error mark on the label paper.
S4062, reading invisible data A written into the label paper printed with the visible data currently;
s4063, matching and comparing the read invisible data A with stored invisible data B corresponding to the label paper printed with the visible data currently to judge whether the invisible data A written into the label paper printed with the visible data currently is the same as the stored corresponding invisible data B;
s4064, if the invisible data A in the label paper printed with the visible data at present is judged to be the same as the stored corresponding invisible data B, the writing is regarded as successful;
s4065, if the invisible data A in the label paper printed with the visible data at present is judged to be different from the stored corresponding invisible data B, turning to the S4061 substep;
further, in some embodiments, after the step of determining that the invisible data in the label paper currently printed with the visible data is different from the stored corresponding invisible data, the method further includes:
s4066, judging whether the read-write area R of the label paper printed with the visible data at present is far away from a read-write area capable of being read and written by an RFID reader;
in this step, it is determined whether the end position SL of the read-write area R of the label paper printed with the visible data is proceeding forward so as not to be read by the RFID reader.
S4067, if the read-write area R of the label paper printed with the visible data at present is far away from the read-write area capable of being read and written by the RFID reader; controlling the label paper printed with the visible data to retreat to the position of the printing unit;
s4068, controlling the printing unit to print the error identification to the label printed with the visible data currently;
s4069, controlling the label paper written with the error identification to advance towards the outlet direction and cross the RFID reader-writer;
in this step, the crossing of the RFID reader/writer means: and controlling the RFID reader-writer not to perform reading and writing actions on the label paper on which the error identification is written at present although the label paper on which the error identification is written at present passes through the RFID reader-writer. When the next piece of label paper printed with visible data of the label paper written with the error identification currently reaches the RFID reader, the RFID reader is controlled to continue to read and write the reached label paper printed with the error identification again (i.e., the step S4061 is continued again).
S406a, if it is determined that the read-write area R of the label paper on which the visible data is currently printed is still located in the read-write area that can be read and written by the RFID reader, the process proceeds to the substep S4061.
Compared with the mode that visible data and invisible data of each current label paper to be printed are printed completely and then the visible data and the invisible data of the next label paper to be printed can be printed, the printing method can enable each roll of label printing paper to sequentially reach the position of the printing unit to print the visible data in the advancing process of each label paper to be printed, sequentially reach the position of the RFID reader to sequentially print the invisible data after the visible data is printed, and achieve parallel printing processing of the visible data and the invisible data. After the invisible data is written in, the next piece of label paper does not need to be moved to the position of the printing unit again to print the visible data, so that the printing efficiency is greatly improved, the printing time is saved, the forward and reverse rotation times of the driving motor are reduced, and the service life of the driving motor is prolonged. In addition, the earliest and latest reading and writing time of the RFID reader-writer for each label paper is triggered through the read-write area R, so that the invisible data is effectively prevented from being wrongly written into the previous label paper and the next label paper. No matter short label or long label, the condition that the position is adjusted by paper withdrawal caused by mismatching of the RFID read-write area and the write-in area R of invisible data of the label to be read-written or mismatching of the printing initial position of the next label to be printed and the position of the printing head can not occur in the continuous paper conveying process, the time is saved, and the printing efficiency is improved.
Referring to fig. 4, fig. 4 is a block diagram of a first embodiment of an RFID label printing apparatus of a label printer according to the present invention. The RFID label printing apparatus of the label printer of the present embodiment includes:
the first acquisition module is used for acquiring the height of each to-be-printed label paper in each roll of label paper, the distance between two adjacent to-be-printed label paper and the area length L3 of the read-write area of the RFID reader-writer in advance;
a first calculating module, configured to obtain a read-write area R of each label paper to be printed according to the height of the label paper to be printed, a distance between two adjacent label papers to be printed, and an area length L3 of a read-write area of the RFID reader, where a start position SL of the read-write area R of each label paper to be printed is close to a front end of the label paper to be printed, an end position ZL of the read-write area R of each label paper to be printed is close to a rear end of the label paper to be printed, and a distance R1 between the end position of the read-write area R of each label paper to be printed and the start position of the read-write area R of the label paper to be printed is greater than an area length L3 of the read-write area of the RFID reader;
the first judgment module is used for judging whether the read-write area R of the label paper to be printed reaches a read-write area which can be read and written by an RFID reader;
and the first RFID reading and writing module is used for writing the invisible data into the current label paper to be printed when the read-write area R of the label paper to be printed reaches the read-write area of the RFID reader-writer.
The functional principle implemented by each functional module of the RFID label printing apparatus of this embodiment may be described with reference to the above RFID label printing method embodiment, and is not described in detail here.
In this embodiment, the first RFID read-write module further includes:
the first writing submodule is used for writing the invisible data B corresponding to the label paper to be printed into the label paper to be printed;
the first reading submodule is used for reading the invisible data A written in the label paper to be printed;
the first comparison judging module is used for matching and comparing the read invisible data A with the stored invisible data B corresponding to the label paper to be printed so as to judge whether the invisible data A written in the label paper to be printed is the same as the stored corresponding invisible data B;
the first write-in success determining module is used for determining that the write-in is successful when the first comparison and judgment module judges that the written invisible data is the same as the stored corresponding invisible data; and if the first write-in submodule is different from the second write-in submodule, triggering the first write-in submodule to write again.
Referring to fig. 5, fig. 5 is a block diagram of a printing apparatus of a label printer according to a first embodiment of the present invention. The printing device of the label printer of the embodiment comprises:
the second obtaining module is used for obtaining the height of each to-be-printed label paper in each roll of label paper, the distance between two adjacent to-be-printed label paper and the area length L3 of the read-write area of the RFID reader-writer in advance;
a second calculating module, configured to obtain a read-write area R of each label paper to be printed according to the height of the label paper to be printed, a distance between two adjacent label papers to be printed, and an area length L3 of a read-write area of the RFID reader, where a start position SL of the read-write area R of each label paper to be printed is close to a front end of the label paper to be printed, an end position ZL of the read-write area R of each label paper to be printed is close to a rear end of the label paper to be printed, and a distance R1 between the end position of the read-write area R of each label paper to be printed and the start position of the read-write area R of the label paper to be printed is greater than an area length L3 of the read-write area of the RFID reader;
the first control module is used for controlling the label paper to be printed to sequentially advance to the printing unit from head to tail so that the printing unit sequentially prints visible data on the corresponding label paper to be printed;
the second control module is used for controlling the label paper printed with the visible data to sequentially move forward towards the RFID reader from head to tail;
the second judgment module is used for judging whether the read-write area R of the label paper printed with the visible data reaches the read-write area which can be read and written by the RFID reader;
and the second RFID reading and writing module is used for writing the invisible data into the label paper printed with the visible data when the read-write area R of the label paper printed with the visible data reaches the read-write area of the RFID reader, so that the RFID reader sequentially writes the invisible data into the corresponding label paper printed with the visible data.
In this embodiment, the second RFID read-write module may include the following sub-modules:
the second writing submodule is used for writing the invisible data B corresponding to the label paper to be printed into the label paper printed with the visible data currently;
the second reading submodule is used for reading the invisible data A written into the label paper printed with the visible data currently;
the second comparison judgment sub-module is used for matching and comparing the read invisible data A with the stored invisible data B corresponding to the label paper printed with the visible data currently so as to judge whether the invisible data A written into the label paper printed with the visible data currently is the same as the stored corresponding invisible data B;
the second writing success determining submodule is used for determining that the writing is successful when the second comparison judging submodule judges that the invisible data in the label paper printed with the visible data at present is the same as the stored corresponding invisible data; and if not, triggering a second writing submodule.
Further, the printing apparatus of the present embodiment further includes:
a third judging module, configured to, when the second comparison judging sub-module judges that the invisible data in the tag paper currently printed with the visible data is different from the stored corresponding invisible data, judge whether the read-write area R of the tag paper currently printed with the visible data is far away from the read-write area that can be read and written by the RFID reader;
the third control module is used for controlling the label paper printed with the visible data to retreat to the position of the printing unit when the third judgment module judges whether the read-write area R is far away from the read-write area which can be read and written by the RFID reader;
the fourth control module is used for controlling the printing unit to print the error identification to the label printed with the visible data currently;
the fifth control module is used for controlling the label paper written with the error identification to advance towards the outlet direction and cross the RFID reader-writer;
the second writing sub-module is further configured to, when the third determining module determines that the read-write area R of the label paper currently printed with the visible data is still located in the read-write area that can be read and written by the RFID reader, rewrite the corresponding invisible data into the label paper currently printed with the visible data.
The invention also discloses a label printer, comprising:
a printer body;
the printing unit is arranged on the printer body;
the RFID reader-writer is arranged on the printer body and positioned in front of the printing unit;
the label paper driving unit is used for driving the label paper to be printed to move forwards or backwards;
the paper measuring unit is used for measuring the height of each to-be-printed label paper in each roll of label paper installed in the printer body, the distance between two adjacent to-be-printed label paper and the area length L3 of the read-write area of the RFID reader-writer;
a processing unit, configured to obtain a read-write area R of each to-be-printed label paper according to the height of the to-be-printed label paper, a distance between two adjacent to-be-printed label papers, and an area length L3 of a read-write area of the RFID reader, where a start position SL of the read-write area R of each to-be-printed label paper is close to a front end of the to-be-printed label paper, an end position ZL of the read-write area R of each to-be-printed label paper is close to a rear end of the to-be-printed label paper, and a distance R1 between the end position ZL of the read-write area R of each to-be-printed label paper and the start position of the read-write area R of the next to-be-printed label;
the storage unit is used for storing visible data and invisible data corresponding to each to-be-printed label paper in each roll of label paper and storing the read-write area R;
the control unit is used for controlling the label paper driving unit so that the label paper driving unit to be printed drives the label paper to be printed to move forwards, continuously move forwards and backwards; the control unit is further used for controlling the printing unit to print the corresponding visible data on the label paper to be printed when the label paper to be printed reaches the position of the printing unit, so that the printing unit can sequentially print the visible data on the corresponding label paper to be printed; the control unit is further configured to write the invisible data into the label paper on which the visible data is currently printed when the read-write area R of the label paper on which the visible data is printed reaches the read-write area of the RFID reader, so that the RFID reader sequentially writes the invisible data into the corresponding label paper on which the visible data is printed.
Compared with the traditional technology, the label printer, the printing device and the RFID label printing device have the advantages that the printing efficiency is greatly improved, the printing time is shortened, the accuracy of data printed to label paper is ensured, the condition of error writing is avoided, the marks which cannot be written into the label paper are effectively marked on the corresponding label paper, a user can see the label paper at a glance, and the user can conveniently identify invalid labels.
Referring to fig. 6, fig. 6 is a flowchart of another second embodiment of the method for printing an RFID label of a label printer according to the present invention. The RFID label printing method of the label printer comprises the following steps:
s501, acquiring the height of each to-be-printed label paper in each roll of label paper, the distance between two adjacent to-be-printed label papers and the area length L of a read-write area of the RFID reader-writer in advance;
s502, obtaining a read-write area of each label paper to be printed according to the height of the label paper to be printed, the distance between two adjacent label paper to be printed and the area length L of the read-write area of the RFID reader-writer, wherein the area length L1 of the read-write area is smaller than the area length L of the read-write area of the RFID reader-writer, the starting position of the read-write area of each label paper to be printed is close to the front end of the label paper to be printed, the ending position of the read-write area of each label paper to be printed is close to the rear end of the label paper to be printed, and the distance L2 between the ending position of the read-write area of each label paper to be printed and the starting position of the read-write area of the label paper to be printed is smaller than the area length L of the read-;
s503, judging whether the read-write area of the label paper to be printed completely falls into the read-write area of the RFID reader-writer;
s504, when the read-write area of the label paper to be printed is judged to completely fall into the read-write area of the RFID reader, the invisible data is written into the current label paper to be printed.
The label printing method of the present embodiment is different from the label printing method of the first embodiment of the RFID label printing method described above in that:
firstly, the present embodiment directly obtains the area length L of the RFID read-write area, where the area length L is the read-write diameter of the circular read-write area when the RFID read-write area is circular, and the area length L is the length L of the rectangular read-write area when the read-write area is rectangular. In this embodiment, the RFID reader is a rectangular read-write area, the RFID reader is arranged along the label printing direction, and the length L direction is the same as the paper discharge direction of the label paper (see fig. 7).
Second, a length L1 (also referred to as a height, in the same direction as the height of the label paper) of the read-write area in the embodiment is smaller than the length L of the read-write area of the RFID reader, and a distance L2 between an end position of the read-write area of each label paper to be printed and a start position of the read-write area of the label paper to be printed is smaller than the length L of the read-write area of the RFID reader.
Thirdly, in the step of judging in S503, judging whether the read-write area of the label paper to be printed completely falls into the read-write area of the RFID reader-writer.
And fourthly, only when the read-write area completely falls into the read-write area of the RFID reader-writer, the invisible data is written into the read-write area of the current label paper.
Except for the above four differences, the printing method of the label printer of the present embodiment is the same as or similar to that of the above embodiments, and therefore, the description thereof is omitted.
Compared with the first embodiment of the RFID label printing method, the method and the device for printing the RFID label avoid the problems of wrong writing, writing errors and the like caused by the fact that two adjacent labels enter the reading and writing area of the RFID reader-writer due to the fact that the label height is small.
Referring to fig. 8, fig. 8 is a flowchart of a printing method of a label printer according to a second embodiment of the present invention. The printing method of the label printer of the embodiment includes visible data printing and invisible data printing, the visible data is printed on the label paper to be printed through a printing unit of the label printer, the invisible data is written on the label paper printed with the visible data through an RFID reader-writer arranged on the label printer and located in front of the printing unit, and the printing method includes:
s601, acquiring the height of each to-be-printed label paper in each roll of label paper, the distance between two adjacent to-be-printed label papers and the area length L of a read-write area of the RFID reader-writer in advance;
s602, obtaining a read-write area of each label paper to be printed according to the height of the label paper to be printed, the distance between two adjacent label paper to be printed and the area length L of the read-write area of the RFID reader-writer, wherein the area length L1 of the read-write area is smaller than the area length L of the read-write area of the RFID reader-writer, the starting position of the read-write area of each label paper to be printed is close to the front end of the label paper to be printed, the ending position of the read-write area of each label paper to be printed is close to the rear end of the label paper to be printed, and the distance between the ending position of the read-write area of each label paper to be printed and the starting position of the read-write area of the label paper to be printed is smaller than the area length L1 of the read-;
s603, controlling the label paper to be printed to sequentially advance to the position of the printing unit from head to tail so that the printing unit sequentially prints visible data on the corresponding label paper to be printed;
s604, controlling the label paper printed with the visible data to sequentially advance towards the RFID reader from head to tail;
s605, judging that the read-write area of the label paper printed with the visible data at present completely falls into the read-write area read-written by the RFID reader;
and S606, when the read-write area of the label paper printed with the visible data completely falls into the read-write area of the RFID reader-writer, writing the invisible data into the label paper printed with the visible data, so that the RFID reader-writer sequentially writes the invisible data into the corresponding label paper printed with the visible data.
Similar to the above-described second embodiment of the RFID label printing method, the printing method of the label printer of the present embodiment is different from the printing method of the label printer of the above-described first embodiment in that:
firstly, the present embodiment directly obtains the area length L of the RFID read-write area, where the area length L is the read-write diameter of the circular read-write area when the RFID read-write area is circular, and the area length L is the length L of the rectangular read-write area when the read-write area is rectangular. In this embodiment, the RFID reader is a rectangular read-write area, the RFID reader is arranged along the label printing direction, and the length L direction is the same as the paper discharge direction of the label paper (see fig. 7).
Second, a length L1 (also referred to as a height, in the same direction as the height of the label paper) of the read-write area in the embodiment is smaller than the length L of the read-write area of the RFID reader, and a distance L2 between an end position of the read-write area of each label paper to be printed and a start position of the read-write area of the label paper to be printed is smaller than the length L of the read-write area of the RFID reader.
Thirdly, in the step of judging in S605, whether the read-write area of the label paper to be printed completely falls into the read-write area of the RFID reader.
And fourthly, only when the read-write area completely falls into the read-write area of the RFID reader-writer, the invisible data is written into the read-write area of the current label paper.
The invention also discloses an RFID label printing apparatus of a label printer of another embodiment, the label printing apparatus of this embodiment includes:
the third acquisition module is used for acquiring the height of each to-be-printed label paper in each roll of label paper, the distance between two adjacent to-be-printed label papers and the area length L of the read-write area of the RFID reader-writer in advance;
a third calculating module, configured to obtain a read-write area of each to-be-printed label paper according to the height of the to-be-printed label paper, a distance between two adjacent to-be-printed label papers, and an area length L of a read-write area of the RFID reader, where the area length L1 of the read-write area is smaller than the area length L of the read-write area of the RFID reader, a starting position of the read-write area of each to-be-printed label paper is close to a front end of the to-be-printed label paper, an ending position of the read-write area of each to-be-printed label paper is close to a rear end of the to-be-printed label paper, and a distance between the ending position of the read-write area of each to-be-printed label paper and the starting position of the read-write area of the next to-;
the fourth judging module is used for judging whether the read-write area of the label paper to be printed completely falls into the read-write area read and written by the RFID reader;
and the third RFID reading and writing module is used for writing the invisible data into the current label paper to be printed when the read-write area of the label paper to be printed is judged to completely fall into the read-write area of the RFID reader-writer.
The invention also discloses a printing device of a label printer of another embodiment, the label printing device of this embodiment comprises:
the fourth acquisition module is used for acquiring the height of each to-be-printed label paper in each roll of label paper, the distance between two adjacent to-be-printed label papers and the area length L of the read-write area of the RFID reader-writer in advance;
a fourth calculating module, configured to obtain a read-write area of each to-be-printed label paper according to the height of the to-be-printed label paper, a distance between two adjacent to-be-printed label papers, and an area length L of a read-write area of the RFID reader, where the area length L1 of the read-write area is smaller than the area length L of the read-write area of the RFID reader, a starting position of the read-write area of each to-be-printed label paper is close to a front end of the to-be-printed label paper, an ending position of the read-write area of each to-be-printed label paper is close to a rear end of the to-be-printed label paper, and a distance between the ending position of the read-write area of each to-be-printed label paper and the starting position of the read-write area of the subsequent to;
the first control module is used for controlling the label paper to be printed to sequentially advance to the printing unit from head to tail so that the printing unit sequentially prints visible data on the corresponding label paper to be printed;
the third control module is used for controlling the label paper printed with the visible data to sequentially move forward towards the RFID reader from head to tail;
a fifth judging module, configured to judge whether a read-write area of the label paper currently printed with the visible data reaches a read-write area that is sufficient for being read and written by the RFID reader;
and the fourth RFID reading and writing module is used for writing the invisible data into the label paper printed with the visible data when the read-write area of the label paper printed with the visible data reaches the read-write area of the RFID reader, so that the RFID reader sequentially writes the invisible data into the corresponding label paper printed with the visible data.
The present invention also discloses a label printer of another embodiment, including:
a printer body;
the printing unit is arranged on the printer body;
the RFID reader-writer is arranged on the printer body and positioned in front of the printing unit;
the label paper driving unit is used for driving the label paper to be printed to move forwards or backwards;
the paper measuring unit is used for measuring the height of each to-be-printed label paper in each roll of label paper installed in the printer body, the distance between two adjacent to-be-printed label paper and the area length L of a read-write area of the RFID reader-writer;
the processing unit is used for obtaining a read-write area of each label paper to be printed according to the height of the label paper to be printed, the distance between two adjacent label paper to be printed and the area length L of the read-write area of the RFID reader-writer, wherein the area length L1 of the read-write area is smaller than the area length L of the read-write area of the RFID reader-writer, the starting position of the read-write area of each label paper to be printed is close to the front end of the label paper to be printed, the ending position of the read-write area of each label paper to be printed is close to the rear end of the label paper to be printed, and the distance between the ending position of the read-write area of each label paper to be printed and the starting position of the read-write area of the label paper to be printed is smaller than the area length L of the;
the storage unit is used for storing visible data and invisible data corresponding to each to-be-printed label paper in each roll of label paper and storing the read-write area;
the control unit is used for controlling the label paper driving unit so that the label paper driving unit to be printed drives the label paper to be printed to move forwards, continuously move forwards and backwards; the control unit is further used for controlling the printing unit to print the corresponding visible data on the label paper to be printed when the label paper to be printed reaches the position of the printing unit, so that the printing unit can sequentially print the visible data on the corresponding label paper to be printed; the control unit is further used for writing the invisible data into the label paper printed with the visible data when the read-write area of the label paper printed with the visible data reaches the read-write area of the RFID reader, so that the RFID reader sequentially writes the invisible data into the corresponding label paper printed with the visible data.
The above description is only an embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. An RFID tag printing method of a tag printer for writing invisible data on a tag paper by an RFID reader/writer provided on the tag printer, the RFID tag printing method comprising the steps of:
the method comprises the steps of obtaining the height of each to-be-printed label paper in each roll of label paper, the distance between two adjacent to-be-printed label papers and the area length of a reading and writing area of an RFID reader-writer in advance;
obtaining a read-write area of each label paper to be printed according to the height of the label paper to be printed, the distance between two adjacent label paper to be printed and the area length of the read-write area of the RFID reader-writer, wherein the area length of the read-write area is smaller than the area length of the read-write area of the RFID reader-writer, the starting position of the read-write area of each label paper to be printed is close to the front end of the label paper to be printed, the ending position of the read-write area of each label paper to be printed is close to the rear end of the label paper to be printed, and the distance from the ending position of the read-write area of each label paper to be printed to the starting position of the read-write area of the label paper to be printed is smaller than the area length of the read-;
judging whether the read-write area of the label paper to be printed completely falls into the read-write area of the RFID reader;
and when the read-write area of the label paper to be printed completely falls into the read-write area of the RFID reader-writer, writing the invisible data into the current label paper to be printed.
2. The RFID label printing method of a label printer according to claim 1, wherein in the step of writing invisible data to the current label paper to be printed, the substep of:
writing invisible data B corresponding to the label paper to be printed into the label paper to be printed;
reading invisible data A written in the label paper to be printed;
matching and comparing the read invisible data A with the stored invisible data B corresponding to the label paper to be printed to judge whether the invisible data A written in the label paper to be printed is the same as the stored corresponding invisible data B;
if the two are the same, the writing is regarded as successful;
if not, the procedure goes to the write substep.
3. The RFID label printing method of a label printer according to claim 2, wherein in the step of writing invisible data to the current label paper to be printed, further comprising:
judging whether the read-write area has a part exceeding the read-write area of the RFID reader-writer;
and if the read-write area is judged to have a part exceeding the read-write area of the RFID reader-writer, stopping writing.
4. A printing method of a label printer comprises visible data printing and invisible data printing, wherein the visible data are printed on label paper to be printed through a printing unit of the label printer, the invisible data are written on the label paper printed with the visible data through an RFID reader-writer arranged on the label printer and positioned in front of the printing unit, and the printing method comprises the following steps:
the method comprises the steps of obtaining the height of each to-be-printed label paper in each roll of label paper, the distance between two adjacent to-be-printed label papers and the area length of a reading and writing area of an RFID reader-writer in advance;
obtaining a read-write area of each label paper to be printed according to the height of the label paper to be printed, the distance between two adjacent label paper to be printed and the area length of the read-write area of the RFID reader-writer, wherein the area length of the read-write area is smaller than the area length of the read-write area of the RFID reader-writer, the starting position of the read-write area of each label paper to be printed is close to the front end of the label paper to be printed, the ending position of the read-write area of each label paper to be printed is close to the rear end of the label paper to be printed, and the distance from the ending position of the read-write area of each label paper to be printed to the starting position of the read-write area of the label paper to be printed is smaller than the area length of the read-;
controlling the label paper to be printed to sequentially advance to the position of a printing unit from head to tail so that the printing unit sequentially prints visible data on the corresponding label paper to be printed;
controlling the label paper printed with the visible data to sequentially advance towards the RFID reader from head to tail;
judging that the read-write area of the label paper printed with the visible data at present completely falls into the read-write area read-written by the RFID reader;
and when the read-write area of the label paper printed with the visible data completely falls into the read-write area of the RFID reader, writing the invisible data into the label paper printed with the visible data, so that the RFID reader sequentially writes the invisible data into the corresponding label paper printed with the visible data.
5. A printing method for a label printer according to claim 4, wherein in the step of writing invisible data to the label paper currently printed with visible data, the substep of:
writing invisible data B corresponding to the label paper to be printed into the label paper printed with visible data currently;
reading invisible data A written in the label paper printed with visible data currently;
matching and comparing the read invisible data A with the stored invisible data B corresponding to the label paper printed with the visible data currently to judge whether the invisible data A written into the label paper printed with the visible data currently is the same as the stored corresponding invisible data B;
if the invisible data A in the label paper printed with the visible data at present is judged to be the same as the stored corresponding invisible data B, the writing is considered to be successful;
and if the invisible data A in the label paper printed with the visible data at present is judged to be different from the stored corresponding invisible data B, the substep of writing the invisible data B corresponding to the label paper to be printed into the label paper printed with the visible data at present is carried out.
6. The printing method of a label printer according to claim 5, further comprising, after the step of determining that the invisible data in the label paper currently printed with the visible data is not identical to the stored corresponding invisible data:
judging whether the read-write area of the label paper printed with the visible data is far away from the read-write area capable of being read and written by the RFID reader;
if the read-write area of the label paper printed with the visible data is far away from the read-write area of the RFID reader-writer capable of being read-written by the RFID reader-writer; controlling the label paper printed with the visible data to retreat to the position of the printing unit;
controlling the printing unit to print an error identification into the label currently printed with the visible data.
7. A method of printing by a label printer as claimed in claim 6, including the sub-steps, after printing the misidentification into the label currently printed with visible data, of:
and controlling the label paper written with the error identification to advance towards the outlet direction and pass over the RFID reader-writer.
8. An RFID label printing apparatus of a label printer, comprising:
the third acquisition module is used for acquiring the height of each to-be-printed label paper in each roll of label paper, the distance between two adjacent to-be-printed label papers and the area length of a read-write area of the RFID reader-writer in advance;
a third calculation module, configured to obtain a read-write area of each to-be-printed label paper according to the height of the to-be-printed label paper, a distance between two adjacent to-be-printed label papers, and an area length of a read-write area of the RFID reader, where the area length of the read-write area is smaller than the area length of the read-write area of the RFID reader, a starting position of the read-write area of each to-be-printed label paper is close to a front end of the to-be-printed label paper, an ending position of the read-write area of each to-be-printed label paper is close to a rear end of the to-be-printed label paper, and a distance between the ending position of the read-write area of each to-be-printed label paper and the starting position of the read-write area of the to-;
the fourth judging module is used for judging whether the read-write area of the label paper to be printed completely falls into the read-write area read and written by the RFID reader;
and the third RFID reading and writing module is used for writing invisible data into the current label paper to be printed when the read-write area of the label paper to be printed is judged to completely fall into the read-write area of the RFID reader-writer.
9. A printing apparatus of a label printer, comprising:
the fourth acquisition module is used for acquiring the height of each to-be-printed label paper in each roll of label paper, the distance between two adjacent to-be-printed label papers and the area length of a read-write area of the RFID reader-writer in advance;
a fourth calculation module, configured to obtain a read-write area of each to-be-printed label paper according to the height of the to-be-printed label paper, a distance between two adjacent to-be-printed label papers, and an area length of a read-write area of the RFID reader, where the area length of the read-write area is smaller than the area length of the read-write area of the RFID reader, a starting position of the read-write area of each to-be-printed label paper is close to a front end of the to-be-printed label paper, an ending position of the read-write area of each to-be-printed label paper is close to a rear end of the to-be-printed label paper, and a distance between the ending position of the read-write area of each to-be-printed label paper and the starting position of the read-write area of the to;
the first control module is used for controlling the label paper to be printed to sequentially advance to the printing unit from head to tail so that the printing unit sequentially prints visible data on the corresponding label paper to be printed;
the third control module is used for controlling the label paper printed with the visible data to sequentially move forward towards the RFID reader from head to tail;
a fifth judging module, configured to judge whether a read-write area of the label paper currently printed with the visible data reaches a read-write area that is sufficient for being read and written by the RFID reader;
and the fourth RFID reading and writing module is used for writing invisible data into the label paper printed with the visible data when the read-write area of the label paper printed with the visible data reaches the read-write area of the RFID reader, so that the RFID reader sequentially writes the invisible data into the corresponding label paper printed with the visible data.
10. A label printer comprising:
a printer body;
the printing unit is arranged on the printer body;
the RFID reader-writer is arranged on the printer body and positioned in front of the printing unit;
the label paper driving unit is used for driving the label paper to be printed to move forwards or backwards;
the paper measuring unit is used for measuring the height of each to-be-printed label paper in each roll of label paper installed in the printer body, the distance between two adjacent to-be-printed label paper and the area length of a read-write area of the RFID reader-writer;
the processing unit is used for obtaining a read-write area of each label paper to be printed according to the height of the label paper to be printed, the distance between two adjacent label paper to be printed and the area length of the read-write area of the RFID reader-writer, wherein the area length of the read-write area is smaller than the area length of the read-write area of the RFID reader-writer, the starting position of the read-write area of each label paper to be printed is close to the front end of the label paper to be printed, the ending position of the read-write area of each label paper to be printed is close to the rear end of the label paper to be printed, and the distance from the ending position of the read-write area of each label paper to be printed to the starting position of the read-write area of the label paper to be printed is smaller than the area length of the;
the storage unit is used for storing visible data and invisible data corresponding to each to-be-printed label paper in each roll of label paper and storing the read-write area;
the control unit is used for controlling the label paper driving unit so that the label paper driving unit to be printed drives the label paper to be printed to move forwards, continuously move forwards and backwards; the control unit is further used for controlling the printing unit to print the corresponding visible data on the label paper to be printed when the label paper to be printed reaches the position of the printing unit, so that the printing unit can sequentially print the visible data on the corresponding label paper to be printed; the control unit is further used for writing the invisible data into the label paper printed with the visible data when the read-write area of the label paper printed with the visible data reaches the read-write area of the RFID reader, so that the RFID reader sequentially writes the invisible data into the corresponding label paper printed with the visible data.
CN201810033685.8A 2018-01-15 2018-01-15 RFID label printing method, printing method and device of label printer and label printer Active CN108256601B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810033685.8A CN108256601B (en) 2018-01-15 2018-01-15 RFID label printing method, printing method and device of label printer and label printer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810033685.8A CN108256601B (en) 2018-01-15 2018-01-15 RFID label printing method, printing method and device of label printer and label printer

Publications (2)

Publication Number Publication Date
CN108256601A CN108256601A (en) 2018-07-06
CN108256601B true CN108256601B (en) 2020-11-06

Family

ID=62727166

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810033685.8A Active CN108256601B (en) 2018-01-15 2018-01-15 RFID label printing method, printing method and device of label printer and label printer

Country Status (1)

Country Link
CN (1) CN108256601B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109809225A (en) * 2018-12-29 2019-05-28 航天信息股份有限公司 Label initialization system and method

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1818931A (en) * 2004-12-27 2006-08-16 东芝泰格有限公司 Method for measuring optimum feed amount to RFID antenna and printer having RFID read/write function
EP2085913A1 (en) * 2008-02-01 2009-08-05 Brother Kogyo Kabushiki Kaisha Apparatus for communicating with RFID tag, apparatus for producing RFID labels and label image management system
CN101863168A (en) * 2006-09-22 2010-10-20 东芝泰格有限公司 RFID-label issuing apparatus

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1818931A (en) * 2004-12-27 2006-08-16 东芝泰格有限公司 Method for measuring optimum feed amount to RFID antenna and printer having RFID read/write function
CN101863168A (en) * 2006-09-22 2010-10-20 东芝泰格有限公司 RFID-label issuing apparatus
EP2085913A1 (en) * 2008-02-01 2009-08-05 Brother Kogyo Kabushiki Kaisha Apparatus for communicating with RFID tag, apparatus for producing RFID labels and label image management system

Also Published As

Publication number Publication date
CN108256601A (en) 2018-07-06

Similar Documents

Publication Publication Date Title
CN108256600B (en) RFID label printing method, printing method and device of label printer and label printer
JP2006116886A (en) Printer
CN108256601B (en) RFID label printing method, printing method and device of label printer and label printer
RU2321900C2 (en) System and method for determination of label state in roll of spare labels
JP4149867B2 (en) Printer and its control method
CN108229617B (en) The RFID label tag Method of printing and label machine of label machine
JP6094651B2 (en) Print media
GB1153768A (en) Data Processing Machines
JP3357119B2 (en) Label printing method in label printer
JP2013151115A (en) Recording device, control device, method for controlling recording device and program
JP5825251B2 (en) Printing device
US9180685B1 (en) Printer apparatus
JP2004058362A (en) Recorder
EP0414604B1 (en) Magnetic stripe reading apparatus for passbook
JP2004058337A (en) Printer
JP2013071414A (en) Medium treatment apparatus, method for controlling the same, and program
JP2899456B2 (en) Label printer
US9370953B1 (en) Printer apparatus
US20210387825A1 (en) Magnetic ink reading device and printer
JP2900049B2 (en) Card processing device with printing function
JP6146079B2 (en) Image processing apparatus and dot missing detection method of image processing apparatus
JP2703968B2 (en) Automatic passbook entry device
JP2008114375A (en) Printer and its control method
KR20230131158A (en) Printing paper for performing printing according to printing paper type determined by recogniging bar pattern
JP2014188691A (en) Image processing apparatus and dot blank detection method of the same

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant