CN111873641A - Portable printer - Google Patents

Portable printer Download PDF

Info

Publication number
CN111873641A
CN111873641A CN202010616442.4A CN202010616442A CN111873641A CN 111873641 A CN111873641 A CN 111873641A CN 202010616442 A CN202010616442 A CN 202010616442A CN 111873641 A CN111873641 A CN 111873641A
Authority
CN
China
Prior art keywords
photoelectric
printing
printing medium
pair
paper
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.)
Pending
Application number
CN202010616442.4A
Other languages
Chinese (zh)
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.)
Xiamen Hanyin Electronic Technology Co Ltd
Original Assignee
Xiamen Hanyin Electronic 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 Xiamen Hanyin Electronic Technology Co Ltd filed Critical Xiamen Hanyin Electronic Technology Co Ltd
Priority to CN202010616442.4A priority Critical patent/CN111873641A/en
Publication of CN111873641A publication Critical patent/CN111873641A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B41PRINTING; LINING MACHINES; TYPEWRITERS; STAMPS
    • B41JTYPEWRITERS; SELECTIVE PRINTING MECHANISMS, i.e. MECHANISMS PRINTING OTHERWISE THAN FROM A FORME; CORRECTION OF TYPOGRAPHICAL ERRORS
    • B41J3/00Typewriters or selective printing or marking mechanisms characterised by the purpose for which they are constructed
    • B41J3/36Typewriters or selective printing or marking mechanisms characterised by the purpose for which they are constructed for portability, i.e. hand-held printers or laptop printers
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B41PRINTING; LINING MACHINES; TYPEWRITERS; STAMPS
    • B41JTYPEWRITERS; SELECTIVE PRINTING MECHANISMS, i.e. MECHANISMS PRINTING OTHERWISE THAN FROM A FORME; CORRECTION OF TYPOGRAPHICAL ERRORS
    • B41J11/00Devices or arrangements  of selective printing mechanisms, e.g. ink-jet printers or thermal printers, for supporting or handling copy material in sheet or web form
    • B41J11/006Means for preventing paper jams or for facilitating their removal
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B41PRINTING; LINING MACHINES; TYPEWRITERS; STAMPS
    • B41JTYPEWRITERS; SELECTIVE PRINTING MECHANISMS, i.e. MECHANISMS PRINTING OTHERWISE THAN FROM A FORME; CORRECTION OF TYPOGRAPHICAL ERRORS
    • B41J11/00Devices or arrangements  of selective printing mechanisms, e.g. ink-jet printers or thermal printers, for supporting or handling copy material in sheet or web form
    • B41J11/0095Detecting means for copy material, e.g. for detecting or sensing presence of copy material or its leading or trailing end
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B41PRINTING; LINING MACHINES; TYPEWRITERS; STAMPS
    • B41JTYPEWRITERS; SELECTIVE PRINTING MECHANISMS, i.e. MECHANISMS PRINTING OTHERWISE THAN FROM A FORME; CORRECTION OF TYPOGRAPHICAL ERRORS
    • B41J13/00Devices or arrangements of selective printing mechanisms, e.g. ink-jet printers or thermal printers, specially adapted for supporting or handling copy material in short lengths, e.g. sheets
    • B41J13/0072Handling wide cut sheets, e.g. using means for enabling or facilitating the conveyance of wide sheets
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B41PRINTING; LINING MACHINES; TYPEWRITERS; STAMPS
    • B41JTYPEWRITERS; SELECTIVE PRINTING MECHANISMS, i.e. MECHANISMS PRINTING OTHERWISE THAN FROM A FORME; CORRECTION OF TYPOGRAPHICAL ERRORS
    • B41J2/00Typewriters or selective printing mechanisms characterised by the printing or marking process for which they are designed
    • B41J2/315Typewriters or selective printing mechanisms characterised by the printing or marking process for which they are designed characterised by selective application of heat to a heat sensitive printing or impression-transfer material
    • B41J2/32Typewriters or selective printing mechanisms characterised by the printing or marking process for which they are designed characterised by selective application of heat to a heat sensitive printing or impression-transfer material using thermal heads
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B41PRINTING; LINING MACHINES; TYPEWRITERS; STAMPS
    • B41JTYPEWRITERS; SELECTIVE PRINTING MECHANISMS, i.e. MECHANISMS PRINTING OTHERWISE THAN FROM A FORME; CORRECTION OF TYPOGRAPHICAL ERRORS
    • B41J29/00Details of, or accessories for, typewriters or selective printing mechanisms not otherwise provided for
    • B41J29/38Drives, motors, controls or automatic cut-off devices for the entire printing mechanism

Landscapes

  • Handling Of Sheets (AREA)

Abstract

The invention provides a portable printer, which comprises a controller, an upper shell cover and a lower shell, wherein when the upper shell cover is connected with the lower shell, a printing channel, a paper inlet and a paper outlet are formed on the matching surface of the upper shell cover and the lower shell, and printing positions are arranged in the printing channel; the printing channel is provided with a first photovoltaic group on one side of the printing position and a second photovoltaic group on the other side, and the controller is used for: acquiring level signals detected by a first photoelectric pair, a second photoelectric pair, a third photoelectric pair and a fourth photoelectric pair; judging whether a printing medium exists in the printing channel and the inclined state of the printing medium according to the level signals detected by the two photoelectric pairs of the first photoelectric group; when the printing channel is judged to have the printing medium which is not inclined, controlling to feed paper; judging whether the printing medium is correctly loaded into the printing channel; when it is judged that the printing medium is correctly loaded into the printing path, the printing operation is performed. The invention can ensure that the printing medium is not obviously inclined during printing.

Description

Portable printer
Technical Field
The invention relates to the field of printers, in particular to a portable printer.
Background
The portable printer is popular among people because of its advantages of being lightweight, compact, and easy to carry. Portable printers are widely used in work, study and life of people.
The prior portable printer usually forms a paper storage bin inside, then places a printing medium in the paper storage bin, and when the printing is needed, moves the printing medium into a printing channel from the paper storage bin to realize the printing while feeding paper.
However, this paper feeding method is limited by the volume of the portable printer itself, and it is often impossible to print a large-sized paper, such as a typical a4 paper, which is difficult to print with the portable printer of this structure.
201822237523.4 discloses a printer, which prints large size paper by manually feeding paper into a paper feeding port, but because the printer relies on manual feeding, it is difficult to ensure that the paper is not inclined when feeding paper, and the inclination of the paper affects the final printing effect.
Disclosure of Invention
In view of the above, an object of the embodiments of the present invention is to provide a portable printer, which can ensure that the printing medium is not inclined significantly during printing.
The embodiment of the invention provides a portable printer which comprises a controller, an upper shell cover and a lower shell, wherein the upper shell cover and the lower shell can be connected in an opening and closing mode, a printing channel, a paper inlet and a paper outlet are formed in the matching surface of the upper shell cover and the lower shell when the upper shell cover and the lower shell are connected, the paper inlet and the paper outlet are located on the two sides of the printing channel, and a printing position is arranged in the printing channel; the printing channel is characterized in that a first photoelectric group is arranged on one side, close to a paper inlet, of the printing position, the first photoelectric group comprises a first photoelectric pair and a second photoelectric pair, a second photoelectric group is arranged on the other side, close to a paper outlet, of the printing position, the second photoelectric group comprises a third photoelectric pair and a fourth photoelectric pair, the controller is electrically connected with the first photoelectric pair, the second photoelectric pair, the third photoelectric pair and the fourth photoelectric pair, and the controller is configured to execute executable codes inside the controller to realize the following steps:
acquiring level signals detected by a first photoelectric pair, a second photoelectric pair, a third photoelectric pair and a fourth photoelectric pair;
judging whether a printing medium exists in the printing channel and the inclined state of the printing medium according to the level signals detected by the two photoelectric pairs of the first photoelectric group;
when the printing medium which is not inclined exists in the printing channel is judged according to the first photoelectric group, controlling the printing medium to feed in the printing channel;
judging whether the printing medium is correctly loaded into the printing channel according to the level signals detected by the two photoelectric pairs of the second photoelectric group;
and when the printing medium is judged to be correctly loaded into the printing channel according to the second photoelectric group, executing the printing operation on the printing medium.
Preferably, still include step motor and drive mechanism, print the position including being located the upper cover on the paper feed rubber roll and being located the printer head on the casing down, the paper feed rubber roll with print the relative setting of head, step motor pass through drive mechanism with the transmission of paper feed rubber roll is connected, the controller with print the head and step motor electrical connection.
Preferably, each photoelectric pair comprises a transmitting tube and a receiving tube which are arranged oppositely, the transmitting tube and the receiving tube are both electrically connected with the controller, and the controller acquires the level signal of the corresponding photoelectric pair through the receiving tube.
Preferably, the launch tube and the receiving tube are located on the same side of the printing channel; or the transmitting pipe and the receiving pipe are positioned on two opposite sides of the printing channel.
Preferably, the determining whether the printing medium exists in the printing channel and the tilt state of the printing medium according to the level signals detected by the two photoelectric pairs of the first photoelectric group specifically includes:
judging whether a printing medium enters a printing channel or not according to the change of level signals of two photoelectric pairs of the first photoelectric group;
if the level signals of the two photoelectric pairs of the first photoelectric group do not change obviously, judging that no printing medium enters the printing channel;
if the level signal of one of the photoelectric pairs obviously changes, judging that a printing medium enters the printing channel;
judging whether the level signal of the other photoelectric pair changes obviously within a preset first time;
if yes, judging that the printing medium is not inclined in the printing channel;
if not, the printing medium is judged to be inclined in the printing channel.
Preferably, the determining whether the printing medium is correctly loaded into the printing channel according to the level signals detected by the two photoelectric pairs of the second photoelectric group specifically includes:
judging whether a printing medium reaches a paper loading position where the second photoelectric group is located according to the change of level signals of two photoelectric pairs of the second photoelectric group;
if the level signals of the two photoelectric pairs of the second photoelectric group do not change obviously, judging that no printing medium reaches the paper loading position;
if the level signal of one of the photoelectric pairs obviously changes, judging that the printing medium reaches the paper loading position;
judging whether the level signal of the other photoelectric pair is obviously changed within a preset second time;
if yes, judging that the printing medium is correctly loaded into the printing channel;
if not, judging that the printing medium is not correctly loaded into the printing channel, and sending a prompt of refilling paper.
Preferably, the method further comprises the following steps:
acquiring a paper feeding distance of the printing medium in a printing channel;
and when the paper feeding distance is larger than the distance between the first photoelectric group and the second photoelectric group, if the fact that the printing medium reaches the paper loading position is not detected, a paper jam prompt is sent.
Preferably, after the printing operation on the printing medium is executed when it is judged that the printing medium is correctly loaded into the printing channel according to the second photocell, the method further comprises:
judging whether the printing medium leaves a detection range of the first photoelectric group or not according to the change of the level signals of the two photoelectric pairs of the first photoelectric group;
when the printing medium is judged to leave the detection range of the first photoelectric group, controlling the printing head to stop printing, and controlling the paper feeding rubber roller to rotate reversely, so that the printing medium is fed along the direction of the paper outlet pointing to the paper inlet;
judging whether the printing medium leaves a detection range of the second photoelectric group according to the change of the level signals of the two photoelectric pairs of the second photoelectric group;
and when the printing medium is judged to leave the detection range of the second photoelectric group, judging that paper returning is finished, and controlling the paper feeding rubber roller to stop paper returning.
Preferably, the first photovoltaic pair is parallel to the second photovoltaic pair; the third photovoltaic pair is parallel to the fourth photovoltaic pair.
Preferably, the first photoelectric pair and the second photoelectric pair are respectively positioned on two sides of the upper shell which are relatively far away; the third photoelectric pair and the fourth photoelectric pair are respectively positioned on two sides of the upper shell which are relatively far away.
In the embodiment, the first photoelectric group and the second photoelectric group are respectively arranged on two sides of the printing position, so that the inclination judgment and the paper jam detection of the printing medium in the paper loading process of the two paper loaders are realized, the inclination degree of the printing medium is ensured within a receivable range during printing, and the final printing quality is ensured.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.
Fig. 1 is a schematic structural diagram of a portable printer according to an embodiment of the present invention after a cover is opened.
Fig. 2 is a schematic structural diagram of a portable printer according to an embodiment of the present invention after the cover is closed.
Fig. 3 is another schematic structural diagram of the portable printer according to the embodiment of the present invention after the cover is closed.
Fig. 4 is a schematic diagram of a hardware structure of the portable printer according to the embodiment of the present invention.
Fig. 5 is a schematic workflow diagram of a portable printer according to an embodiment 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. The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present invention without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures. Meanwhile, in the description of the present invention, the terms "first", "second", and the like are used only for distinguishing the description, and are not to be construed as indicating or implying relative importance.
Referring to fig. 1 and 2, an embodiment of the present invention provides a portable printer, including a controller 10, an upper housing cover 20, and a lower housing 30, where the upper housing cover 20 and the lower housing 30 are connected in an openable and closable manner, and a printing channel, a paper inlet 31 and a paper outlet 32 located at two sides of the printing channel are formed on a matching surface of the upper housing cover 20 and the lower housing 30 when the upper housing cover 20 and the lower housing 30 are joined, and a printing position is disposed in the printing channel; and the printing channel is in one side of the printing position close to the paper inlet 31 is provided with a first photoelectric group, the first photoelectric group comprises a first photoelectric pair 41 and a second photoelectric pair 42, the other side of the printing position close to the paper outlet 32 is provided with a second photoelectric group, the second photoelectric group comprises a third photoelectric pair 43 and a fourth photoelectric pair 44, and the controller 10 is electrically connected with the first photoelectric pair 41, the second photoelectric pair 42, the third photoelectric pair 43 and the fourth photoelectric pair 44.
In this embodiment, generally, the portable printer further includes a step motor and a transmission mechanism, the printing position includes a paper feed rubber roller 11 located on the upper housing cover 20 and a print head 33 located on the lower housing 30, the paper feed rubber roller 11 and the print head 33 are arranged oppositely, the step motor is in transmission connection with the paper feed rubber roller 11 through the transmission mechanism, and the controller 10 is in electrical connection with the print head 33 and the step motor.
When printing, a user manually puts a printing medium into the printing channel through the paper inlet 31, the paper feeding rubber roller 11 is driven by the stepping motor to continuously rotate, so that the printing medium in the printing channel is driven to feed paper, and meanwhile, the printing head reproduces the content to be printed on the printing medium through selective heating.
In this embodiment, since the user manually inserts the printing medium, it is important to ensure that the printing medium is not inclined to ensure the final printing effect. To this end, the controller 10 is configured to detect a problem of the inclination of the printing medium by executing executable code therein to implement the steps of:
s101, level signals detected by the first, second, third, and fourth photoelectric pairs 41, 42, 43, and 44 are acquired.
S102, judging whether the printing medium exists in the printing channel and the inclined state of the printing medium according to the level signals detected by the two photoelectric pairs of the first photoelectric group.
In this embodiment, each of the photo-electric pairs includes a transmitting tube and a receiving tube disposed opposite to each other, the transmitting tube and the receiving tube are electrically connected to the controller 10, and the controller 10 can obtain the level signal of the corresponding photo-electric pair through the receiving tube.
The transmitting tube and the receiving tube can be located on the same side of the printing channel, and can also be located on two opposite sides of the printing channel. For convenience of description, the present embodiment is described by taking the example that the emitting tube and the receiving tube may be located on the same side of the printing channel, but the present invention is not limited thereto.
In this embodiment, when the photo-electric pair is in an operating state, the transmitting tube emits light (usually infrared light), and at this time, if there is no printing medium in the printing channel, the light emitted by the transmitting tube will irradiate to the other side of the printing channel and undergo diffuse reflection, so that only a small portion of the reflected light will be received by the receiving tube, in which case the level signal correspondingly generated by the receiving tube will be small or even zero. If the printing medium is in the printing channel, because the printing medium is generally white paper and has larger reflectivity, a larger part of reflected light is received by the receiving tubes, and in this case, the level signals correspondingly generated by the receiving tubes are larger, so that whether the printing medium passes below the receiving tubes can be judged according to the change condition of the level signals of each receiving tube.
In this embodiment, for step S102, it specifically includes:
first, whether a printing medium enters the printing path is determined based on a change in level signals of two photoelectric pairs of the first photoelectric group.
As described above, if the level signals of both the photoelectric pairs of the first photoelectric group do not significantly change, it is determined that no printing medium enters the printing passage; if the level signal of one of the photoelectric pairs changes obviously (for example, the level signal changes to be larger than a preset threshold), the printing medium enters the printing channel.
Then, whether the level signal of the other photoelectric pair has obvious change in the preset first time is judged.
In this embodiment, it is apparent that if the printing medium enters the printing path at an oblique angle, one of the pair of photo-electric elements will detect one end of the printing medium first, and after a predetermined time has elapsed, the other photo-electric element will detect the other end of the printing medium. If the time difference detected by the two is within the first time, it indicates that the printing medium is not inclined approximately, and if the time difference exceeds the first time, it indicates that the inclination angle of the printing medium is larger and the printing medium is placed askew, the controller 10 will remind the user to place the printing medium again. The controller 10 may remind the user in the form of an indicator light, or may remind the user in the form of voice, which is not limited in the present invention.
It should be noted that, in this embodiment, the first time may be set according to actual conditions, wherein if the first photo-pair and the second photo-pair are parallel, the first time may be set to be relatively shorter, and if the first photo-pair and the second photo-pair are not parallel, the first time needs to be further extended according to the distance between the first photo-pair and the second photo-pair in the moving direction of the printing medium.
S103, when the printing medium which is not inclined exists in the printing channel is judged according to the first photoelectric group, the printing medium is controlled to be fed in the printing channel.
In this embodiment, if it is determined that there is a non-inclined printing medium in the printing path, the controller controls the feed roller 11 to rotate in the first direction, so that the printing medium is fed in a direction in which the paper inlet 31 is directed to the paper outlet 32.
And S104, judging whether the printing medium is correctly loaded into the printing channel according to the level signals detected by the two photoelectric pairs of the second photoelectric group.
In this embodiment, the paper head of the printing medium is initially located at the front side of the printing position, and after the paper is fed, the paper head of the printing medium reaches the position of the second photovoltaic array (i.e., the paper loading position) at the rear side of the printing position. After the paper head of the printing medium reaches the rear side of the printing position, whether the paper head is inclined or not needs to be judged again.
Similarly, if the level signals of both the photoelectric pairs of the second photoelectric group located on the rear side of the printing position do not significantly change, it is determined that no printing medium has reached the paper feed position.
The paper feeding position is not reached by the printing medium, one is that the printing medium is not fed to the paper feeding position, and the other is that the printing medium is jammed and cannot reach the paper feeding position. When the determination is made, the controller 10 obtains a paper feeding distance of the printing medium in the printing channel; if the paper feeding distance is larger than the distance between the first photoelectric group and the second photoelectric group does not detect the printing medium, sending a paper jam prompt, otherwise, controlling the paper feeding rubber roller 11 to continue paper feeding.
In this embodiment, if the level signal of one of the photoelectric pairs in the second photoelectric group changes significantly, it is determined that the end with the printing medium reaches the paper loading position; then judging whether the level signal of the other photoelectric pair is obviously changed within a preset second time so as to judge whether the other end of the printing medium reaches the paper loading position, and if so, judging that the printing medium is correctly loaded into the printing channel; otherwise, judging that the printing medium is not correctly loaded into the printing channel, and sending a prompt of refilling paper.
It should be noted that, in this embodiment, the second time may be set according to actual conditions, wherein if the third photoelectric pair and the fourth photoelectric pair are parallel, the second time may be set to be relatively shorter, and if the third photoelectric pair and the fourth photoelectric pair are not parallel, the second time may need to be further extended according to the distance between the third photoelectric pair and the fourth photoelectric pair in the moving direction of the printing medium.
And S104, when the printing medium is judged to be correctly loaded into the printing channel according to the second photoelectric group, executing the printing operation on the printing medium.
In this embodiment, after determining that the printing medium is correctly loaded into the printing channel, the controller 10 controls the print head 33 to operate and the paper feed roller 11 to feed paper, so as to perform the operation of printing while feeding paper. Wherein the paper head of the printing medium will extend from the paper outlet 32.
In summary, the portable printer provided by this embodiment, by respectively setting the first photoelectric group and the second photoelectric group on the two sides of the printing position, realizes the inclination judgment and the jam detection of the printing medium in the two paper loading processes, thereby ensuring that the inclination degree of the printing medium is within the acceptable range during printing, and ensuring the final printing quality.
On the basis of the above embodiment, in a preferred embodiment of the present invention, after step S104, the method further includes:
and judging whether the printing medium leaves a detection range of the first photoelectric group according to the change of the level signals of the two photoelectric pairs of the first photoelectric group.
And when the printing medium is judged to leave the detection range of the first photoelectric group, controlling the printing head to stop printing, and controlling the paper feeding rubber roller to rotate reversely, so that the printing medium is fed along the direction of the paper outlet pointing to the paper inlet.
And judging whether the printing medium leaves the detection range of the second photoelectric group according to the change of the level signals of the two photoelectric pairs of the second photoelectric group.
And when the printing medium is judged to leave the detection range of the second photoelectric group, judging that paper returning is finished, and controlling the paper feeding rubber roller to stop paper returning.
During the printing process, the paper feeding rubber roller 11 continuously feeds paper, and the printing head 33 continuously prints, so that after a certain time, the printing medium integrally leaves the detection range of the first photoelectric group, that is, the level signal detected by the first photoelectric group becomes small again. At this time, the printing of the printing medium is completed, and the operation of the printing head 33 is stopped.
Because the user is located at one side of the paper inlet 31, the user can conveniently take the printed printing medium, and after printing is finished, the paper feeding rubber roller 11 is controlled to rotate reversely, so that the printing medium is fed along the direction of the paper outlet pointing to the paper inlet, and is moved out of the paper inlet 31.
In the moving-out process, if the two photoelectric pairs of the second photoelectric group judge that the printing medium leaves the detection range, the paper returning is judged to be finished, and the paper feeding rubber roller 11 is controlled to stop the paper returning. At this time, the user can take the printed printing medium from the paper inlet 31.
This embodiment can control the paper stripping position and the paper stripping distance of printing medium through the judgement of first photoelectric group and second photoelectric group to the printing medium position, guarantees that the user can take the printing medium who prints from going into paper mouth 31, and user experience is good.
On the basis of the above embodiment, in a preferred embodiment of the present invention, the first photoelectric pair 41 and the second photoelectric pair 42 are respectively located on two sides of the upper housing 20 that are relatively far away; the third photoelectric pair 43 and the fourth photoelectric pair 44 are respectively located on two sides of the upper housing 20 that are relatively far away.
If the first photo-electric pair 41 is closer to the second photo-electric pair 42 or the third photo-electric pair 43 is closer to the fourth photo-electric pair 44, the two adjacent positions of the printing medium are detected, and the corresponding distance difference is smaller, so that the requirement on the detection accuracy is higher, whereas if the first photo-electric pair 41 is relatively far away from the second photo-electric pair 42 or the third photo-electric pair 43 is relatively far away from the fourth photo-electric pair 44, and the corresponding distance difference is larger, the requirement on the detection accuracy is lower.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method can be implemented in other ways. The apparatus and method embodiments described above are illustrative only, as the flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, the functional modules in the embodiments of the present invention may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, an electronic device, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes. It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A portable printer comprises a controller, an upper shell cover and a lower shell, wherein the upper shell cover and the lower shell are connected in an opening and closing mode, a printing channel, a paper inlet and a paper outlet are formed in the matching surface of the upper shell cover and the lower shell when the upper shell cover and the lower shell are connected, the paper inlet and the paper outlet are located on the two sides of the printing channel, and a printing position is arranged in the printing channel; the printing channel is characterized in that a first photoelectric group is arranged on one side, close to a paper inlet, of the printing position, the first photoelectric group comprises a first photoelectric pair and a second photoelectric pair, a second photoelectric group is arranged on the other side, close to a paper outlet, of the printing position, the second photoelectric group comprises a third photoelectric pair and a fourth photoelectric pair, the controller is electrically connected with the first photoelectric pair, the second photoelectric pair, the third photoelectric pair and the fourth photoelectric pair, and the controller is configured to execute executable codes inside the controller to realize the following steps:
acquiring level signals detected by a first photoelectric pair, a second photoelectric pair, a third photoelectric pair and a fourth photoelectric pair;
judging whether a printing medium exists in the printing channel and the inclined state of the printing medium according to the level signals detected by the two photoelectric pairs of the first photoelectric group;
when the printing medium which is not inclined exists in the printing channel is judged according to the first photoelectric group, controlling the printing medium to feed in the printing channel;
judging whether the printing medium is correctly loaded into the printing channel according to the level signals detected by the two photoelectric pairs of the second photoelectric group;
and when the printing medium is judged to be correctly loaded into the printing channel according to the second photoelectric group, executing the printing operation on the printing medium.
2. The portable printer according to claim 1, further comprising a stepping motor and a transmission mechanism, wherein the printing position comprises a paper feed roller on the upper housing cover and a printing head on the lower housing, the paper feed roller is disposed opposite to the printing head, the stepping motor is in transmission connection with the paper feed roller through the transmission mechanism, and the controller is electrically connected with the printing head and the stepping motor.
3. The portable printer according to claim 1, wherein each photo-electric pair comprises a transmitting tube and a receiving tube disposed opposite to each other, the transmitting tube and the receiving tube are electrically connected to the controller, and the controller obtains the level signal of the corresponding photo-electric pair through the receiving tube.
4. The portable printer of claim 3, wherein said launch tube is located on the same side of said printing channel as said receiving tube; or the transmitting pipe and the receiving pipe are positioned on two opposite sides of the printing channel.
5. The portable printer according to claim 1, wherein the determining whether the printing medium exists in the printing channel and the tilt state of the printing medium according to the level signals detected by the two photoelectric pairs of the first photoelectric group specifically includes:
judging whether a printing medium enters a printing channel or not according to the change of level signals of two photoelectric pairs of the first photoelectric group;
if the level signals of the two photoelectric pairs of the first photoelectric group do not change obviously, judging that no printing medium enters the printing channel;
if the level signal of one of the photoelectric pairs obviously changes, judging that a printing medium enters the printing channel;
judging whether the level signal of the other photoelectric pair changes obviously within a preset first time;
if yes, judging that the printing medium is not inclined in the printing channel;
if not, the printing medium is judged to be inclined in the printing channel.
6. The portable printer according to claim 1, wherein the determining whether the printing medium is correctly loaded into the printing channel according to the level signals detected by the two photoelectric pairs of the second photoelectric group comprises:
judging whether a printing medium reaches a paper loading position where the second photoelectric group is located according to the change of level signals of two photoelectric pairs of the second photoelectric group;
if the level signals of the two photoelectric pairs of the second photoelectric group do not change obviously, judging that no printing medium reaches the paper loading position;
if the level signal of one of the photoelectric pairs obviously changes, judging that one end of the printing medium reaches the paper loading position;
judging whether the level signal of the other photoelectric pair is obviously changed within a preset second time;
if yes, judging that the printing medium is correctly loaded into the printing channel;
if not, judging that the printing medium is not correctly loaded into the printing channel, and sending a prompt of refilling paper.
7. The portable printer according to claim 6, further comprising:
acquiring a paper feeding distance of the printing medium in a printing channel;
and when the paper feeding distance is larger than the distance between the first photoelectric group and the second photoelectric group, if the fact that the printing medium reaches the paper loading position is not detected, a paper jam prompt is sent.
8. The portable printer according to claim 2, further comprising, after performing a printing operation on the printing medium when it is judged from the second photocell that the printing medium is properly loaded into the printing passage:
judging whether the printing medium leaves a detection range of the first photoelectric group or not according to the change of the level signals of the two photoelectric pairs of the first photoelectric group;
when the printing medium is judged to leave the detection range of the first photoelectric group, controlling the printing head to stop printing, and controlling the paper feeding rubber roller to rotate reversely, so that the printing medium is fed along the direction of the paper outlet pointing to the paper inlet;
judging whether the printing medium leaves a detection range of the second photoelectric group according to the change of the level signals of the two photoelectric pairs of the second photoelectric group;
and when the printing medium is judged to leave the detection range of the second photoelectric group, judging that paper returning is finished, and controlling the paper feeding rubber roller to stop paper returning.
9. The portable printer of any one of claims 1 to 8, wherein said first opto-electronic pair is parallel to said second opto-electronic pair; the third photovoltaic pair is parallel to the fourth photovoltaic pair.
10. The portable printer according to any one of claims 1 to 8, wherein the first photoelectric pair and the second photoelectric pair are respectively located on two sides of the upper housing that are relatively far away; the third photoelectric pair and the fourth photoelectric pair are respectively positioned on two sides of the upper shell which are relatively far away.
CN202010616442.4A 2020-06-30 2020-06-30 Portable printer Pending CN111873641A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010616442.4A CN111873641A (en) 2020-06-30 2020-06-30 Portable printer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010616442.4A CN111873641A (en) 2020-06-30 2020-06-30 Portable printer

Publications (1)

Publication Number Publication Date
CN111873641A true CN111873641A (en) 2020-11-03

Family

ID=73157417

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010616442.4A Pending CN111873641A (en) 2020-06-30 2020-06-30 Portable printer

Country Status (1)

Country Link
CN (1) CN111873641A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113386471A (en) * 2021-08-04 2021-09-14 深圳亿瓦创新科技有限公司 Printing system based on portable printer and expansion piece and control method
CN113601982A (en) * 2021-08-20 2021-11-05 珠海纳思达莱曼科技有限公司 Image forming apparatus

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101143527A (en) * 2006-08-23 2008-03-19 佳能株式会社 Printing device and transfer control method
CN103042829A (en) * 2013-01-15 2013-04-17 新会江裕信息产业有限公司 Front-in front-out ink-jet printing equipment
CN105313493A (en) * 2014-07-24 2016-02-10 山东新北洋信息技术股份有限公司 Thermo-sensitive paper conveying method of thermal printer and thermal printer
CN106476453A (en) * 2015-08-25 2017-03-08 山东新北洋信息技术股份有限公司 A kind of control method of printer and printer
CN108790429A (en) * 2018-05-04 2018-11-13 厦门爱印科技有限公司 A kind of Intelligent label printer and its Method of printing
CN209851831U (en) * 2018-12-28 2019-12-27 厦门汉印电子技术有限公司 Printer and printing method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101143527A (en) * 2006-08-23 2008-03-19 佳能株式会社 Printing device and transfer control method
CN103042829A (en) * 2013-01-15 2013-04-17 新会江裕信息产业有限公司 Front-in front-out ink-jet printing equipment
CN105313493A (en) * 2014-07-24 2016-02-10 山东新北洋信息技术股份有限公司 Thermo-sensitive paper conveying method of thermal printer and thermal printer
CN106476453A (en) * 2015-08-25 2017-03-08 山东新北洋信息技术股份有限公司 A kind of control method of printer and printer
CN108790429A (en) * 2018-05-04 2018-11-13 厦门爱印科技有限公司 A kind of Intelligent label printer and its Method of printing
CN209851831U (en) * 2018-12-28 2019-12-27 厦门汉印电子技术有限公司 Printer and printing method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
黄智伟: "《全国大学生电子设计竞赛ARM嵌入式系统应用设计与实践(第2版)》", 30 September 2016, 北京航空航天大学出版社 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113386471A (en) * 2021-08-04 2021-09-14 深圳亿瓦创新科技有限公司 Printing system based on portable printer and expansion piece and control method
CN113601982A (en) * 2021-08-20 2021-11-05 珠海纳思达莱曼科技有限公司 Image forming apparatus

Similar Documents

Publication Publication Date Title
CN111873641A (en) Portable printer
JP2007182265A (en) Sheet carrying device
JP2010221603A (en) Printing apparatus
JP4345700B2 (en) Image recording device
CN108608748B (en) Printing apparatus, control method, and non-transitory storage medium
WO2017032257A1 (en) Method for controlling printer and printer
US9725262B2 (en) Recording apparatus
US20170120631A1 (en) Medium detection mechanism, medium detection method, and printing apparatus
JP2003246129A (en) Printer, computer program, computer system and printing method
US7360854B2 (en) Ink jet recording apparatus
JP2008155482A (en) Image printer and control method
JP2018149717A (en) Printer, control method and program
JP2021066549A (en) Document conveyance apparatus and document reading apparatus
JP2007130933A (en) Sheet feeder
JP2003285935A (en) Recording device
US5076719A (en) Printing apparatus having automatic loading function to avoid print medium corner snagging
US20050068360A1 (en) Image-forming device in which media is manually inserted and remains stationary during image formation
JP2018149718A (en) Printer, control method and program
JP6981792B2 (en) Printer and its control method
US8608155B2 (en) Printing apparatus and printing method
JP2007062366A (en) Recording apparatus, method of transporting recording medium, and liquid ejecting apparatus
JPWO2020054198A1 (en) Image forming device
JP2020121534A (en) Printer
JP7439447B2 (en) Document transport device and document reading device
JP2012091929A (en) Printer

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20201103

RJ01 Rejection of invention patent application after publication