Portable printer control system based on smart phone chip

文档序号:1235212 发布日期:2020-09-11 浏览:14次 中文

阅读说明:本技术 一种基于智能手机芯片的便捷式打印机控制系统 (Portable printer control system based on smart phone chip ) 是由 席海强 于 2020-05-28 设计创作,主要内容包括:本发明涉及电子信息通信技术领域,具体为一种基于智能手机芯片的便捷式打印机控制系统,包括智能手机芯片和打印机,所述打印机上安装有加热头和走纸马达,所述智能手机芯片用于接收有效数据,所述有效数据包括打印命令、走纸命令和打印数据;所述加热头通过打印命令调整加热头的加热次数和加热时长;所述走纸马达通过走纸命令调整走纸加速度;所述打印机根据打印数据进行打印。该基于智能手机芯片的便捷式打印机控制系统,通过智能手机芯片独立控制打印机、加热头和走纸马达进行作业,提高智能手机芯片的性能利用率,使得打印设备便于携带和使用,在达到同等打印功能的情况下,极大节约了设备成本,便于使用。(The invention relates to the technical field of electronic information communication, in particular to a portable printer control system based on a smart phone chip, which comprises the smart phone chip and a printer, wherein a heating head and a paper feeding motor are installed on the printer; the heating head adjusts the heating times and the heating duration of the heating head through a printing command; the paper feeding motor adjusts the paper feeding acceleration through a paper feeding command; and the printer prints according to the printing data. This portable printer control system based on smart mobile phone chip carries out the operation through smart mobile phone chip independent control printer, heating head and paper feed motor, improves smart mobile phone chip's performance utilization for printing apparatus portable and use under reaching the condition of equal printing function, greatly practiced thrift equipment cost, convenient to use.)

1. The utility model provides a portable printer control system based on smart mobile phone chip, includes smart mobile phone chip and printer, install heating head and paper feed motor on the printer, its characterized in that:

the smart phone chip is used for receiving effective data, and the effective data comprises a printing command, a paper feeding command and printing data;

the heating head adjusts the heating times and the heating duration of the heating head through a printing command;

the paper feeding motor adjusts the paper feeding acceleration through a paper feeding command;

and the printer prints according to the printing data.

2. The portable printer control system based on smart phone chip of claim 1, characterized in that: the process of controlling the printer to print by the smart phone chip is as follows:

step 1: the smart phone chip detects whether the buffer space is empty, if so, step 2 is executed, and if not, whether the buffer space is empty is re-detected;

step 2: the smart phone chip detects whether valid data is received, if so, the step 3 is executed, and if not, whether valid data is received is re-detected;

and step 3: the smart phone chip detects whether the effective data is a printing command or a paper feeding command, if the effective data is the printing command, the step 4 is executed, and if the effective data is the paper feeding command, the paper feeding process is started;

and 4, step 4: the smart phone chip obtains the number of rows and columns of the printing data in the effective data and executes the step 5;

and 5: the smart phone chip detects whether printing paper exists in the printer or not and whether the heating head meets the heating temperature or not, if both conditions are met, the step 6 is executed, and if any one condition is not met, the detection is carried out again;

step 6: the smart phone chip processes a line of printing data according to the printing command, obtains printing information and executes the step 7;

and 7: the smart phone chip transmits the printing information to the printer;

and 8: the printer processes the rest printing data according to the printing information and controls the paper feeding motor to feed paper;

and step 9: and (3) detecting whether all the printing data are printed or not by the smart phone chip, if so, modifying the printing end flag bit, and if not, returning to the step 1.

3. The portable printer control system based on smart phone chip of claim 2, characterized in that: in step 3, the paper feeding process comprises the following steps:

step 31: the smart phone chip acquires the paper feeding line number in the paper feeding command;

step 32: the smart phone chip calculates the paper feeding acceleration of the paper feeding motor;

step 33: the smart phone chip drives a paper feeding motor to feed paper according to the paper feeding acceleration;

step 34: and the smart phone chip modifies the printing end flag bit.

4. The portable printer control system based on smart phone chip of claim 2, characterized in that: in step 8, the process flow of the printer for processing the remaining print data according to the print information comprises the following steps:

step 81: the smart phone chip detects whether the residual space of the storage buffer area is sufficient, if so, step 82 is executed, and if not, whether the residual space is sufficient is redetected;

step 82: the smart phone chip detects whether printing paper exists, if so, the step 83 is executed, and if not, whether printing paper exists is detected again;

step 83: the smart phone chip issues the print data and executes step 84;

step 84: the smart phone chip stores the printing data into a buffer area and adjusts the space size of the buffer area;

step 85: the smart phone chip detects whether the transmission of the printing data is finished; if yes, go to step 85, otherwise return to step 81;

step 86: the smart phone chip detects whether all the printing data are printed or not, if so, the step 86 is executed, and if not, whether the printing data are printed or not is detected again;

step 87: and when the printer is in standby for a period of time without any action, the printer is turned off.

5. The portable printer control system based on smart phone chip of claim 2, characterized in that: in step 6, the print information includes the number of heating times of the heating head, the heating time period, and the paper feed acceleration of the paper feed motor.

6. The portable printer control system based on smart phone chip of claim 4, characterized in that: in step 87, the standby time is 1 minute.

Technical Field

The invention relates to the technical field of electronic information communication, in particular to a portable printer control system based on a smart phone chip.

Background

At present, micro printers are widely used in instrumentation, supermarkets, convenience stores, postal services, banks, tobacco specializations, utility meters, mobile police systems, mobile government systems, and the like. Micro printers have played an increasingly important role in human life, and are more and more frequently appearing in the human visual field. With the increasing maturity of domestic micro-printing users, the requirements of the users on the micro-printing performance are continuously pursued to be perfect. Different industries have different requirements for micro-printing products. In addition, mobile payment has been comprehensively developed along with the progress of mobile networks in these years, and a portable mobile device integrating ordering, collection, printing and invoice functions, such as a police portable printer, a shopping mall hand-held POS, and the like, is also favored by users.

The micro printers commonly used in the market can be roughly divided into two types: one is single chip microcomputer control, print data is obtained from an intelligent device end through a data transmission interface (such as Bluetooth, WiFi and the like), and the single chip microcomputer drives a printer to print after obtaining the print data; another intelligent POS (Point of Sale) with a printer generates data to be printed when receiving cash and controls the printer to print. The payment equipment and the printing equipment are used as two independent equipment, so that the equipment cost is high, and the carrying and the use are inconvenient. Although the latter integrates printing and payment into the same device, the printing device is still controlled by a separate Micro Control Unit (MCU), on one hand, the cost of the device is increased, and on the other hand, the performance of the current smart phone chip is not fully used. In view of this, we propose a portable printer control system based on smart phone chip.

Disclosure of Invention

The invention aims to provide a portable printer control system based on a smart phone chip to solve the problems in the background technology.

In order to achieve the purpose, the invention provides the following technical scheme:

a portable printer control system based on a smart phone chip comprises the smart phone chip and a printer, wherein a heating head and a paper feeding motor are mounted on the printer, the smart phone chip is used for receiving effective data, and the effective data comprises a printing command, a paper feeding command and printing data;

the heating head adjusts the heating times and the heating duration of the heating head through a printing command;

the paper feeding motor adjusts the paper feeding acceleration through a paper feeding command;

and the printer prints according to the printing data.

Preferably, the process of controlling the printer to print by the smartphone chip is as follows:

step 1: the smart phone chip detects whether the buffer space is empty, if so, step 2 is executed, and if not, whether the buffer space is empty is re-detected;

step 2: the smart phone chip detects whether valid data is received, if so, the step 3 is executed, and if not, whether valid data is received is re-detected;

and step 3: the smart phone chip detects whether the effective data is a printing command or a paper feeding command, if the effective data is the printing command, the step 4 is executed, and if the effective data is the paper feeding command, the paper feeding process is started;

and 4, step 4: the smart phone chip obtains the number of rows and columns of the printing data in the effective data and executes the step 5;

and 5: the smart phone chip detects whether printing paper exists in the printer or not and whether the heating head meets the heating temperature or not, if both conditions are met, the step 6 is executed, and if any one condition is not met, the detection is carried out again;

step 6: the smart phone chip processes a line of printing data according to the printing command, obtains printing information and executes the step 7;

and 7: the smart phone chip transmits the printing information to the printer;

and 8: the printer processes the rest printing data according to the printing information and controls the paper feeding motor to feed paper;

and step 9: and (3) detecting whether all the printing data are printed or not by the smart phone chip, if so, modifying the printing end flag bit, and if not, returning to the step 1.

Preferably, in step 3, the paper feeding process includes the following steps:

step 31: the smart phone chip acquires the paper feeding line number in the paper feeding command;

step 32: the smart phone chip calculates the paper feeding acceleration of the paper feeding motor;

step 33: the smart phone chip drives a paper feeding motor to feed paper according to the paper feeding acceleration;

step 34: and the smart phone chip modifies the printing end flag bit.

Preferably, in step 8, the process flow of the printer performing the remaining print data according to the print information includes the following steps:

step 81: the smart phone chip detects whether the residual space of the storage buffer area is sufficient, if so, step 82 is executed, and if not, whether the residual space is sufficient is redetected;

step 82: the smart phone chip detects whether printing paper exists, if so, the step 83 is executed, and if not, whether printing paper exists is detected again;

step 83: the smart phone chip issues the print data and executes step 84;

step 84: the smart phone chip stores the printing data into a buffer area and adjusts the space size of the buffer area;

step 85: the smart phone chip detects whether the transmission of the printing data is finished; if yes, go to step 85, otherwise return to step 81;

step 86: the smart phone chip detects whether all the printing data are printed or not, if so, the step 86 is executed, and if not, whether the printing data are printed or not is detected again;

step 87: and when the printer is in standby for a period of time without any action, the printer is turned off.

Preferably, in step 6, the print information includes a number of times of heating the heating head, a heating time period, and a paper-feeding acceleration of the paper-feeding motor.

Preferably, in step 87, the standby time is 1 minute.

Compared with the prior art, the invention has the beneficial effects that: this portable printer control system based on smart mobile phone chip carries out the operation through smart mobile phone chip independent control printer, heating head and paper feed motor, improves smart mobile phone chip's performance utilization for printing apparatus portable and use under reaching the condition of equal printing function, greatly practiced thrift equipment cost, convenient to use.

Drawings

FIG. 1 is a block diagram of the overall structure of the present invention;

FIG. 2 is a flow chart of the smart phone chip executing a print command and a paper feed command in accordance with the present invention;

fig. 3 is a flowchart of the print data processing performed by the printer according to 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-3, a technical solution provided by the present invention is:

a portable printer control system based on a smart phone chip comprises the smart phone chip and a printer, wherein a heating head and a paper feeding motor are mounted on the printer, the smart phone chip is used for receiving effective data, and the effective data comprises a printing command, a paper feeding command and printing data; the heating times and the heating duration of the heating head are adjusted by the heating head through a printing command; the paper feeding motor adjusts the paper feeding acceleration through a paper feeding command; the printer prints according to print data, consequently, carries out the operation through smart mobile phone chip independent control printer, heating head and paper feed motor, improves smart mobile phone chip's performance utilization for printing apparatus portable and use under reaching the condition of equal printing function, greatly practiced thrift equipment cost, convenient to use.

In this embodiment, the process of printing by controlling the printer with the smart phone chip is as follows:

step 1: the smart phone chip detects whether the buffer space is empty, if so, step 2 is executed, and if not, whether the buffer space is empty is re-detected;

step 2: the smart phone chip detects whether valid data is received, if so, the step 3 is executed, and if not, whether valid data is received is re-detected;

and step 3: the smart phone chip detects whether the effective data is a printing command or a paper feeding command, if the effective data is the printing command, the step 4 is executed, and if the effective data is the paper feeding command, the paper feeding process is started;

and 4, step 4: the smart phone chip obtains the number of rows and columns of the printing data in the effective data and executes the step 5;

and 5: the smart phone chip detects whether printing paper exists in the printer or not and whether the heating head meets the heating temperature or not, if both conditions are met, the step 6 is executed, and if any one condition is not met, the detection is carried out again;

step 6: the smart phone chip processes a line of printing data according to the printing command, obtains printing information and executes the step 7;

and 7: the smart phone chip transmits the printing information to the printer;

and 8: the printer processes the rest printing data according to the printing information and controls the paper feeding motor to feed paper;

and step 9: and (3) detecting whether all the printing data are printed or not by the smart phone chip, if so, modifying the printing end flag bit, and if not, returning to the step 1.

Further, in step 3, the paper feeding process includes the following steps:

step 31: the smart phone chip acquires the paper feeding line number in the paper feeding command;

step 32: the smart phone chip calculates the paper feeding acceleration of the paper feeding motor;

step 33: the smart phone chip drives a paper feeding motor to feed paper according to the paper feeding acceleration;

step 34: and the smart phone chip modifies the printing end flag bit.

It should be noted that, in step 8, the process flow of the printer performing the remaining print data according to the print information includes the following steps:

step 81: the smart phone chip detects whether the residual space of the storage buffer area is sufficient, if so, step 82 is executed, and if not, whether the residual space is sufficient is redetected;

step 82: the smart phone chip detects whether printing paper exists, if so, the step 83 is executed, and if not, whether printing paper exists is detected again;

step 83: the smart phone chip issues the print data and executes step 84;

step 84: the smart phone chip stores the printing data into a buffer area and adjusts the space size of the buffer area;

step 85: the smart phone chip detects whether the transmission of the printing data is finished; if yes, go to step 85, otherwise return to step 81;

step 86: the smart phone chip detects whether all the printing data are printed or not, if so, the step 86 is executed, and if not, whether the printing data are printed or not is detected again;

step 87: when the printer is standby for 1 minute without any action, the printer is turned off.

Specifically, in step 6, the print information includes the number of times the heating head is heated, the heating time period, and the paper feed acceleration of the paper feed motor.

When the portable printer control system based on the smart phone chip is used, after the smart phone chip receives valid data, whether the valid data is a printing command or a paper feeding command is detected, if the valid data is the printing command, a printing job is executed, and if the valid data is the paper feeding command, a paper feeding process is entered, wherein when the printing job is carried out, the smart phone chip firstly obtains the number of rows and columns of the printing data in the valid data, detects whether printing paper exists in the printer, detects whether a heating head meets a heating temperature, preferentially selects one row of printing data if the two conditions are met, transmits the printing information to the printer, carries out a residual printing data processing process according to the printing information by the printer, controls a paper feeding motor to carry out paper feeding until all the printing data are printed, and independently controls the printer, the heating head and the paper feeding motor to carry out the job through the smart phone chip, the performance utilization rate of the smart phone chip is improved, so that the printing equipment is convenient to carry and use, the equipment cost is greatly saved under the condition of achieving the same printing function, and the smart phone chip is convenient to popularize and popularize.

The foregoing shows and describes the general principles, essential features, and advantages of the invention. It will be understood by those skilled in the art that the present invention is not limited to the embodiments described above, and the preferred embodiments of the present invention are described in the above embodiments and the description, and are not intended to limit the present invention. The scope of the invention is defined by the appended claims and equivalents thereof.

10页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种印章监管控制装置及防盗用印章

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类