Printing data transmission method and printer integrated with SOC module

By integrating SOC modules and interface modules in the printer, and recording transmission status using DMA transmission mechanism and internal registers, the problem of low data transmission efficiency of printers is solved, and more efficient bus utilization and transmission accuracy is achieved.

CN118519932BActive Publication Date: 2024-11-22BEIJING CGPRINTECH TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410993771.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-24
Publication Date
2024-11-22
Estimated Expiration
2044-07-24

AI Technical Summary

Technical Problem

The data transmission methods of existing printers have problems such as long bus time, single function, and lack of status information, resulting in low data streaming efficiency.

Method used

The printer adopts an integrated SOC module, through the interface module, the printing data is read on the bus with the first preset bit width and stored in the cache, and then transmitted to the printing device based on the DMA transmission mechanism to reduce the The number of times the memory storage unit reads and writes, and records the transmission status through the internal register.

Benefits of technology

It effectively reduces the bus usage time during printing data transmission, improves data transmission efficiency, and ensures the accuracy and efficiency of the transmission process through real-time monitoring and verification mechanisms.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118519932B_ABST
    Figure CN118519932B_ABST
Patent Text Reader

Abstract

The present invention discloses a printing data transmission method and a printer integrated with a SOC module, the method comprising: a central processing unit obtaining a printing task sent by an external device, and processing the first printing data carried in the printing task to generate second printing data and then storing it in a memory storage unit; an interface module reading the second printing data from the memory storage unit through a bus according to a first preset bit width and storing it in a cache; the interface module transmitting the second printing data in the cache to a printing device according to a second preset bit width based on a DMA transmission mechanism, wherein the first preset bit width is greater than the second preset bit width. The present application utilizes an interface module to read the second printing data from the memory storage unit through a bus according to a larger bit width and store it in the cache, and transmit the second printing data in the cache to the printing device according to a smaller bit width, which can reduce the number of read and write times to the memory storage unit, reduce the bus occupancy time, and improve the overall efficiency of bus reading and writing.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of printers, and in particular to a printing data transmission method, a printer integrated with a SOC module, and a computer storage medium. Background Art

[0002] With the advancement of science and technology, printing devices, as an important tool for information transmission, have been widely used in various fields, and printers have become important equipment in the fields of office and study. However, for current printers, the current general DMA transmission method for printing data transmission has the disadvantages of long bus occupancy time, single function, and lack of status information in data stream transmission. Therefore, how to reduce the bus occupancy time during data stream transmission has become a technical problem that needs to be solved urgently. Summary of the invention

[0003] In view of this, the main purpose of the present invention is to provide a printing data transmission method, a printer integrated with a SOC module and a computer storage medium, aiming to reduce the bus occupation time of the printer's printing data transmission and improve the printing data transmission efficiency.

[0004] To achieve the above object, the technical solution of the present invention is achieved as follows:

[0005] An embodiment of the present invention provides a printing data transmission method, which is applied to a printer integrated with a SOC module, wherein the SOC module includes a central processing unit, and the printer includes an interface module. The method includes:

[0006] The central processor obtains a print task sent by an external device, processes the first print data carried in the print task, generates second print data, and stores the second print data in a memory storage unit;

[0007] The interface module reads the second print data from the memory storage unit through the bus according to the first preset bit width and stores the data in the cache;

[0008] The interface module transmits the second print data in the buffer to the printing device according to a second preset bit width based on a DMA transmission mechanism, wherein the first preset bit width is greater than the second preset bit width.

[0009] In a specific embodiment, the method further comprises:

[0010] The interface module monitors the amount of data in the cache in real time, and when it is detected that the amount of data in the cache is less than a preset threshold, continues to read the second print data from the memory storage unit through the bus according to the first preset bit width and stores it in the cache.

[0011] In a specific embodiment, before the interface module transmits the second print data in the buffer to the printing device according to the second preset bit width based on the DMA transmission mechanism, the method further includes:

[0012] The interface module converts the second print data of the first preset bit width into the second print data of the second preset bit width.

[0013] In a specific embodiment, after the interface module reads the second print data from the memory storage unit through the bus according to the first preset bit width, the method further includes:

[0014] Each verification channel in the interface module verifies the received second printing data using self-generated sequence data, and outputs an error signal of the corresponding channel if the verification fails.

[0015] In a specific embodiment, the interface module includes an internal register, and the method further includes:

[0016] The internal register is used to record the transmission status of the second printing data in the interface module.

[0017] In a specific embodiment, the interface module transmits the second print data in the buffer to the printing device according to the second preset bit width based on the DMA transmission mechanism, including:

[0018] The interface module determines a category of the second print data in the buffer, and transmits the second print data from a corresponding channel to a printing device according to a second preset bit width based on the category.

[0019] In a specific embodiment, the method further comprises:

[0020] When it is detected that the next printing task is not obtained within the first preset time after the central processing unit is started or within the first preset time after the previous printing task is completed, the central processing unit is shut down and controlled to enter a standby state.

[0021] In a specific embodiment, the method further comprises:

[0022] When it is detected that the next printing task is not obtained within the second preset time period after the central processing unit enters the standby state, the central processing unit is powered off, the current system data of the central processing unit is stored in the memory storage unit, and the memory storage unit is controlled to enter the self-refresh mode to prevent the system data from being lost.

[0023] To achieve the above object, an embodiment of the present invention further provides a printer integrated with a SOC module based on the above method, the printer comprising:

[0024] The SOC module includes a central processor, the central processor is used to obtain a print task sent by an external device, and process the first print data carried in the print task to generate second print data and then store it in a memory storage unit;

[0025] The interface module is used to read the second print data from the memory storage unit through the bus according to the first preset bit width and store it in the cache; and transmit the second print data in the cache to the printing device according to the second preset bit width based on the DMA transmission mechanism, wherein the first preset bit width is greater than the second preset bit width.

[0026] In a specific embodiment, the interface module includes:

[0027] The first monitoring module is used to monitor the amount of data in the cache in real time, and when it is detected that the amount of data in the cache is less than a preset threshold, continue to read the second print data from the memory storage unit through the bus according to the first preset bit width and store it in the cache.

[0028] In a specific embodiment, the interface module includes:

[0029] The conversion module is used to convert the second print data of the first preset bit width into the second print data of the second preset bit width.

[0030] In a specific embodiment, the interface module includes:

[0031] The verification module includes a plurality of verification channels, each of which verifies the received second printing data using self-generated sequence data, and outputs an error signal of the corresponding channel if the verification fails.

[0032] In a specific embodiment, the interface module includes:

[0033] The internal register is at least used to record the transmission status of the second printing data in the interface module.

[0034] In a specific embodiment, the interface module is further configured to determine a category of the second print data in the buffer, and transmit the second print data from a corresponding channel to a printing device according to a second preset bit width based on the category.

[0035] In a specific embodiment, the printer further comprises:

[0036] The second monitoring module is used to monitor whether the next printing task is obtained within the first preset time after the central processing unit is started or within the first preset time after the previous printing task is completed. If not, the central processing unit is shut down to put the central processing unit into a standby state.

[0037] In a specific embodiment, the second monitoring module is also used to monitor whether the next printing task is obtained within a second preset time period after the central processing unit enters the standby state. If not, the central processing unit is powered off, the current system data of the central processing unit is stored in the memory storage unit, and the memory storage unit is controlled to enter the self-refresh mode to prevent the system data from being lost.

[0038] To achieve the above objectives, an embodiment of the present invention further provides a computer storage medium, which stores one or more programs, and the one or more programs can be executed by one or more processors to enable the one or more processors to execute the print data transmission method as described above.

[0039] A printing data transmission method and a printer integrated with a SOC module provided in an embodiment of the present invention, by adding an interface module, and using the interface module to read the second printing data from the memory storage unit through a bus according to a first preset bit width and store it in a cache, and based on a DMA transmission mechanism, the second printing data in the cache is transmitted to a printing device according to a second preset bit width, wherein the first preset bit width is greater than the second preset bit width, reducing the number of read and write times for the memory storage unit, thereby reducing the bus occupancy time and improving the overall efficiency of bus reading and writing.

[0040] Furthermore, an internal register is added and used to record the transmission status of the second printing data in the interface module, thereby feeding back the status of each stage in the transmission. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] In order to more clearly illustrate the technical solutions in the embodiments of the present disclosure, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0042] Figure 1 An architectural diagram of a printing system provided for some embodiments of the present invention;

[0043] Figure 2 A flowchart of a printing data transmission method provided by some embodiments of the present invention;

[0044] Figure 3 A schematic diagram of a printer integrated with a SOC module provided in some embodiments of the present invention;

[0045] Figure 4 A technical framework diagram of an interface module provided for some embodiments of the present invention. DETAILED DESCRIPTION

[0046] In order to make the objectives, technical solutions and advantages of the present disclosure more clear, the embodiments of the present disclosure will be further described in detail below with reference to the accompanying drawings.

[0047] Embodiment 1

[0048] Figure 1 The architecture diagram of the printing system provided by some embodiments of the present invention is shown in FIG. Figure 1 As shown, the printing system generally includes an external device 101, a SOC module 102, an interface module 103 and a printing device 104, wherein the external device 101 can be a mobile phone, a computer, a USB device, etc. The external device 101 communicates with the SOC module 102 through a wired or wireless network or a USB interface, and the SOC module 102 and the interface module 103 are arranged on the printing device 104 and can communicate with the printing device 104. As an exemplary but not limiting description, the external device 101 is a computer, and the computer sends a printing task to the SOC module 102. The central processing unit (CPU) in the SOC module 102 processes the printing data carried in the printing task, and stores the processed data in the memory area of ​​the memory storage unit (DDR), notifies the interface module 103 to read the printing data stream from the memory storage unit (DDR), and outputs the VDO signal after passing through its internal module, so that the printing device 104 completes the printing and outputs, and obtains the printed product.

[0049] Figure 2 For a flow chart of a print data transmission method provided by some embodiments of the present invention, please refer to Figure 1 The embodiment of the present invention provides a printing data transmission method, which is applied to a printer integrated with a SOC module, wherein the SOC module includes a central processing unit, and the printer includes an interface module. The method includes the following steps:

[0050] S100: The central processor obtains a printing task sent by an external device, processes first printing data carried in the printing task, generates second printing data, and stores the second printing data in a memory storage unit.

[0051] In addition to the first print data, a print task usually also includes but is not limited to the following information: print settings and parameters, such as the number of copies, paper size, print quality, double-sided printing or single-sided printing, etc.; document format, such as PDF, Word, JPEG, etc.; print target, such as specifying the target device for the print task; priority identification, such as identifying the urgency or importance of the print task.

[0052] In some embodiments, the print task can be evenly divided based on the size of the data. For example, the task is split once a certain amount of data (a certain number of pages or a certain number of MB) is reached, and each split subtask contains an independent data block that can be processed separately. In this way, since the data volume of each subtask is roughly equal, the system can evenly allocate processing resources to each subtask, which not only makes the load balanced, but also makes task management simpler and more unified.

[0053] In other embodiments, the data volume is divided into blocks of different sizes according to the characteristics or requirements of the printing task. The early subtasks may have a smaller data volume, while the later subtasks may have a larger data volume, forming a stepped distribution. In this way, the subtasks with smaller data volumes can be processed first so as to quickly obtain partial printing results. For the subtasks with larger data volumes, more processing resources and time can be given to ensure printing quality and efficiency.

[0054] It should be noted that the printing data transmission method provided in the embodiment of the present application is applicable to a printer integrated with a SOC module, for example, a laser printer integrated with a SOC module. The following is an example of the present application scheme. A laser printer refers to a process in which a laser beam is irradiated onto a photosensitive drum during printing, thereby gradually printing out an image or text. Laser printing mainly includes the following steps: laser scanning, which refers to the laser scanning system generating a laser beam carrying character information through a laser head according to a laser driving signal processed by the SOC module; exposure and imaging, which refers to the laser beam irradiating a pre-charged photosensitive drum (toner) under the coordinated action of components such as an optical deflection modulator, a glyph generator, a high-frequency oscillator, a frequency synthesizer, and an acousto-optic modulator to form an electrostatic latent image; development, which refers to the electrostatic latent image on the photosensitive drum attracting toner to form a visible toner image; transfer, which refers to the toner image being transferred to ordinary paper under the action of the electric field of the transfer electrode. At this time, the paper will carry an opposite charge to the photosensitive drum, so that the toner is firmly adsorbed on the paper. Fixing means that the paper passes through the fuser, and the toner is heated and fixed to the paper to form the final printed image or text.

[0055] It should be noted that the main control parameters of laser printers are DPI (Dot Per Inch, print resolution) and print speed. DIP refers to the number of dots that can be printed per inch, and is the most important reference standard for judging the output effect and quality of laser printers. The higher the DPI value, the better the print effect; print speed is an important indicator to measure the output speed of laser printers, usually expressed in the number of pages per minute (PPM, Pages Per Minute) or the number of images per minute (IPM, Images Per Minute) that the printer can output. In addition, paper handling capabilities, such as paper input capacity or paper type support, and other functions, such as whether to support color printing, double-sided printing, network printing, automatic binding, etc. are also important control parameters of laser printers.

[0056] It should be noted that the SOC (System on Chip) module refers to a system-level chip module that integrates the core control functions of the printer, responsible for coordinating and managing the printer's printing tasks, data processing, communication interfaces, and interactive operations with users, etc. It can receive instructions from users or computers, and control the printer's print head, paper transport mechanism and other hardware components through internal processing logic to achieve document printing output.

[0057] It should be noted that a print task usually exists in the form of a data packet, which includes the content to be printed, the format and other related parameters. For example, it includes but is not limited to the printing of documents, the printing of images, the printing output in specific formats such as PDF, JPG, etc., black and white printing, color printing, or printing on paper of various sizes and materials. It is understandable that the printing task mainly depends on the specific needs of the user.

[0058] Here, the second print data refers to a series of instructions and data for guiding the printer to perform the printing operation, which are parsed and obtained by the central processor of the print task (including the first print data). The contents contained in the second print data are mainly determined by the print task, and specifically include but are not limited to the following contents: page layout and format information, such as the page size, margins, paper orientation (horizontal or vertical) and other settings of the printed document. These information guide the printer how to arrange the position of the printed content on the paper; text and image data, such as the data of the text, image or other graphic elements to be printed. These data are transmitted to the printer in a specific format and encoding method so that the printer can accurately restore the content of the original document; color and print quality settings, including the selection of print colors (such as black and white or color), print quality (such as resolution, print speed, etc.) settings. These information ensure that the printer can output high-quality print results according to user requirements; number of print copies and sorting. The control information also includes the number of print copies and the printing order specified by the user (such as single-sided or double-sided printing, sorting method of multi-page documents, etc.); other special instructions. Some complex print tasks may contain special printing instructions, such as printing watermarks, headers and footers, background patterns, etc. In short, the print control information is generated by the print task, parsing the print task required by the user into language information that the printer can use to perform the print operation.

[0059] In some specific embodiments, the second print data is transmitted to the corresponding printing components of the laser printer, for example, the second print data includes text including parameters such as font, size, and the number of copies to be printed, etc. The second print data is calculated by the central processor to arrange the layout of the text on the photosensitive drum, determine the starting and ending positions of each character, and the required amount of toner. In this way, after the second print data is transmitted to the photosensitive drum, the photosensitive drum starts to preheat and reaches a temperature suitable for printing. At the same time, the rotation speed and position are adjusted according to the control instruction to prepare for receiving the scanning of the laser beam; the second print data is transmitted to the laser head, and the laser beam scans the photosensitive drum according to the specified path and speed to form an electrostatic latent image corresponding to the text content; the second print data is transmitted to the toner cartridge, and the toner cartridge confirms the state and supply of the toner according to the font size and the print content; the second print data is transmitted to the paper conveying mechanism, confirms the number of sheets of paper in the paper input tray, the paper size, etc., and feeds the paper from the input tray into the printer to prepare for receiving the print content, and at the same time, ensures that after the first copy is printed, a new sheet of paper can be automatically fed in for printing the second copy. If the second printing data contains double-sided printing content, it is simultaneously confirmed whether the flipping function of the paper conveying mechanism is normal.

[0060] In some specific embodiments, the SOC module includes a central processing unit (CPU), a memory storage unit (DDR, Double Data Rate), an interface circuit, and a control logic circuit. The CPU receives a print task from an external device through the interface circuit, and analyzes and processes the first print data carried in the print task according to a preset program and logic, and stores the second print data in the memory storage unit after forming the second print data; the control logic circuit is responsible for coordinating and controlling the various components of the printer to implement the execution of the print operation.

[0061] S200: The interface module reads the second print data from the memory storage unit through the bus according to the first preset bit width and stores the data in the cache.

[0062] It is understandable that when a conventional printer is printing, it usually executes the print data of the current print task before requesting the memory storage unit of the SOC module to read and write the print data of the new print task, which results in frequent read and write requests to the memory storage unit of the SOC module, thereby occupying the bus for a long time, resulting in low bus read and write efficiency. In response to the above problem, in an embodiment of the present application, the printer is additionally provided with an interface module, which reads the second print data from the memory storage unit through the bus according to the first preset bit width, and stores the read second print data in the cache, and then transmits the second print data from the cache to the printing device in sequence according to the printing requirements.

[0063] It should be noted that the first preset bit width in the embodiment of the present application is greater than the bit width of data transmitted to the printing device. In this way, the interface module can meet the timing of printing during the printing process and minimize the number of read and write times for the memory storage unit (DDR).

[0064] It should be noted that the bus refers to the channel connecting various functional modules inside the printer. It runs through the entire printer system, and various components including the central processing unit and interface modules transmit and exchange data through the bus.

[0065] S300: The interface module transmits the second print data in the cache to the printing device according to a second preset bit width based on a DMA transmission mechanism, wherein the first preset bit width is greater than the second preset bit width.

[0066] It should be noted that the DMA transmission mechanism refers to the interface technology that allows external devices to exchange data directly with the system memory without going through the CPU. In this way, the data transmission speed depends on the working speed of the memory and peripherals. Usually the system bus is managed by the CPU. In the DMA mode, the lines connected to these buses by the CPU are in the third state (high impedance state), and the DMA controller takes over to control the number of bytes transferred, determine whether DMA is ended, and send a DMA end signal. Therefore, the DMA controller must have the following functions:

[0067] 1. It can send a system hold signal to the CPU and make a bus takeover request;

[0068] 2. When the CPU sends a signal to allow takeover, it is responsible for controlling the bus and entering DMA mode;

[0069] 3. Able to address the memory and modify the address pointer to realize reading and writing of the memory;

[0070] 4. It can determine the number of bytes transferred by this DMA and judge whether the DMA transfer is completed;

[0071] 5. Send a DMA end signal to restore the CPU to normal working state, etc.

[0072] It should be noted that the DMA transmission process is usually divided into three stages: preprocessing, data transmission and post-processing. In the preprocessing stage, the CPU completes some necessary preparations, including but not limited to executing several I / O instructions to test the status of the I / O device, setting the initial values ​​of the relevant registers of the DMA controller, setting the transmission direction, starting the relevant devices, etc. Then the CPU continues to execute the original program until the I / O device is ready to send data (input situation) or receive data (output situation). The I / O device sends a DMA request to the DMA controller, and the DMA controller sends a bus request (collectively referred to as DMA request) to the CPU to transmit data. Data transmission can be based on a single byte (or word) as the basic unit. For transmission in data blocks, the data input and output operations after DMA occupies the bus are implemented through loops. It should be pointed out that this loop is also implemented by the DMA controller (rather than by the CPU executing the program), that is, the data transmission stage is completely controlled by DMA (hardware). Post-processing refers to the DMA controller sending an interrupt request to the CPU, and the CPU executing the interrupt service program to perform DMA termination processing, including checking whether the data sent to the main memory is correct, testing whether there is an error during the transmission process (if an error occurs, it will be transferred to the diagnostic program) and deciding whether to continue using DMA to transfer other data blocks.

[0073] It should be noted that the second preset bit width refers to the bit width for transmitting data to the printing device. In the embodiment of the present application, the first preset bit width and the second preset bit width are not specifically limited. Under the premise that the second preset bit width is less than the first preset bit width, the user can set it according to the actual printing needs. Taking the printing of A4 (4960*7016) 600*600dpi at 40ppm as an example, assuming that the first preset bit width is 128bit and the second preset bit width is 32bit, the interface module transmits 4 128bits each time, and needs to access the memory storage unit 4960*7016 / 128 / 4=67967.5 times. If it is transmitted in the traditional way, it needs to access 4960*7016 / 128 / 4=271870 times. From the perspective of the entire SOC system, the bus read and write efficiency is greatly improved.

[0074] In some specific embodiments, the method further comprises:

[0075] The interface module monitors the amount of data in the cache in real time, and when it is detected that the amount of data in the cache is less than a preset threshold, continues to read the second print data from the memory storage unit through the bus according to the first preset bit width and stores it in the cache.

[0076] It should be noted that in the embodiment of the present application, the preset threshold is not specifically limited. Without violating the inventive concept of the present application, the user can set it according to the actual printing needs. For example, the preset threshold can be any value between 0 and the storage capacity of the cache (i.e., the size of the cache). In the embodiment of the present application, the interface module is also configured to monitor the amount of data in the cache in real time, and perform real-time monitoring through the amount of data in the cache. When it is detected that the amount of data in the cache is less than the preset threshold, the second print data is read from the memory storage unit through the bus according to the first preset bit width and stored in the cache. In this way, the print data in the memory storage unit (which may include data corresponding to multiple print tasks) can be stored in batches in the cache in advance, and then transmitted to the printing device in sequence for printing jobs, without having to request the print data of the next print task from the memory storage unit after the current print task is completed, thereby reducing the number of read and write requests to the memory storage unit and reducing the bus occupancy time.

[0077] In some specific embodiments, before the interface module transmits the second print data in the buffer to the printing device according to the second preset bit width based on the DMA transmission mechanism, the method further includes:

[0078] The interface module converts the second print data of the first preset bit width into the second print data of the second preset bit width.

[0079] It should be noted that, in the embodiment of the present application, since the bit width of the data requested by the interface module to the memory storage unit is different from the bit width of the data transmitted to the printing device, before the second print data in the cache is transmitted to the printing device according to the second preset bit width based on the DMA transmission mechanism, the second print data needs to be converted in bit width first, that is, the second print data needs to be converted from the first preset bit width to the second preset bit width first to facilitate the execution of subsequent steps.

[0080] In some specific embodiments, after the interface module reads the second print data from the memory storage unit through the bus according to the first preset bit width, the method further includes:

[0081] Each verification channel in the interface module verifies the received second printing data using self-generated sequence data, and outputs an error signal of the corresponding channel if the verification fails.

[0082] It should be noted that some specific data sequences need to be verified. In specific implementation, the self-generated sequence data and the received data (ie, the second printing data) can be used to perform a full verification, and if error data occurs, an error signal of the corresponding channel is output.

[0083] In some specific embodiments, the interface module includes an internal register, and the method further includes:

[0084] The internal register is used to record the transmission status of the second printing data in the interface module.

[0085] It should be noted that, in the process of executing the printing task, the interface module will record the transmission status of the second printing data of each printing task, so as to monitor the printing data transmission process, which greatly improves the execution efficiency of the printing task. The recording location can be the internal register of the interface module or the external memory, such as RAM, Flash memory or hard disk. The storage method can be in the form of a database or a file, depending on the system architecture and performance requirements.

[0086] In some specific embodiments, the interface module transmits the second print data in the buffer to the printing device according to the second preset bit width based on the DMA transmission mechanism, including:

[0087] The interface module determines a category of the second print data in the buffer, and transmits the second print data from a corresponding channel to a printing device according to a second preset bit width based on the category.

[0088] It is understandable that the categories of print data include but are not limited to characters, pictures, tables, etc., and the processing speed and resource requirements of different data types may be different; for example, the parsing speed of pictures is faster than that of text. By splitting the print task by data category and transmitting it to the printing device through the corresponding channel, more processing resources and time can be given to the subtasks with slower parsing speed to ensure printing quality and efficiency. At the same time, if there is a problem with the printing of a certain type of content, it can also be more easily located and solved. In addition, different data categories also require different processing methods and parameter settings when printing. By splitting the print task by data category, personalized print settings can be made according to the characteristics of each data category, thereby optimizing the print quality and effect. For example, for images, the color, resolution and print mode can be adjusted to obtain a clearer print effect; for text, the font, font size and layout can be adjusted to meet reading needs.

[0089] In some specific embodiments, the method further comprises:

[0090] When it is detected that the next printing task is not obtained within the first preset time after the central processing unit is started or within the first preset time after the previous printing task is completed, the central processing unit is shut down and controlled to enter a standby state.

[0091] In some specific embodiments, the method further comprises:

[0092] When it is detected that the next printing task is not obtained within the second preset time after the central processing unit is started, the central processing unit is powered off, the current system data of the central processing unit is stored in the memory storage unit, and the memory storage unit is controlled to enter a self-refresh mode to prevent the system data from being lost.

[0093] It should be noted that the CPU generally includes three working modes: working state, standby state and sleep state.

[0094] 1. Working status

[0095] After the SOC module is powered on, the central processor is in the startup state. At this time, if a print task is received, the central processor enters the working state. When the central processor is in the working state, after obtaining the print task sent by the external device, the first print data carried in the print task is processed to generate the second print data and then stored in the memory storage unit.

[0096] 2. Standby mode

[0097] After the last printing task is completed or within the first preset time after the CPU is started, if the next printing task is not detected, the CPU enters the standby state. Specifically, when the above conditions are met, the CPU is shut down, that is, the CPU is turned off, so that the CPU stops running and enters the standby state, that is, the entire printing device is in standby mode, thereby effectively reducing the overall power consumption.

[0098] In the standby state, if a task instruction is received, a reset instruction is sent to the central processor to restart the central processor, switch from the standby state to the working state, and make the printing device re-enter the working mode.

[0099] If the next printing task is obtained after the previous printing task is completed or within the first preset time after the CPU is started, the CPU is not shut down. At this time, the printing device is still in the working mode, and the CPU can be in the working state.

[0100] 3. Sleep state

[0101] After the central processing unit enters the standby state, if the next printing task is not received within the second preset time period, the central processing unit is powered off, the data of the central processing unit is stored in the memory storage unit, and the memory storage unit is controlled to enter the self-refresh mode.

[0102] It should be noted that, in the embodiment of the present application, the first preset time length and the second preset time length are not specifically limited. Without violating the inventive concept of the present application, the user can set them according to the actual printing needs. Exemplarily, the first preset time length is set to twenty minutes, and the second preset time length is set to ten minutes. Specifically, after the central processing unit is started or after receiving the print task, the controller sends a first timing command to the controller of the preset clock unit. When the controller receives the first timing command, the timer starts timing, and the timing cycle is twenty minutes. After the previous print task is completed twenty minutes or the central processing unit is started twenty minutes after the next print task is not obtained, the central processing unit is shut down and controlled to enter the standby state. At the same time, when the central processing unit is shut down and the central processing unit enters the standby state, a second timing command is sent to the controller of the clock unit. When the controller receives the second timing command, the timer starts timing, and the timing cycle is ten minutes. When the central processing unit enters the standby state and does not obtain the next print task ten minutes later, the central processing unit is powered off and enters the dormant state.

[0103] It should be noted that in the embodiment of the present application, the method further includes:

[0104] The printing device is pre-processed according to the second printing data to generate printing status information.

[0105] It should be noted that the pre-processing of the printing device may refer to the normal hardware status detection of the printing device, such as the print head, ink cartridge, paper conveying mechanism, etc., to ensure their working status.

[0106] It should be noted that the printing status information includes but is not limited to consumables information, such as paper status, ink / toner status, etc.; printing progress; print quality; working status information of each module of the printer, such as printer ambient temperature, fuser preheating temperature, laser control unit, printer main motor and other information.

[0107] In some embodiments, the printing status information is usually displayed to the user through the display screen of the printer, the printer software interface on the computer, or the dedicated printer management software. For example, the following printing status information is included:

[0108] 1. Paper status information: If "Paper is sufficient", it means that the amount of paper in the paper input tray is sufficient to complete the current printing task; if "Paper is insufficient", it means that the amount of paper in the paper input tray is insufficient to complete the current printing task and paper needs to be added; if "Paper is jammed", it means that the printer encounters an obstruction during the paper feeding process and the paper cannot pass normally, and the paper jam needs to be cleared.

[0109] 2. Toner / carbon powder information: If "Toner is sufficient", it means that the amount of toner in the toner cartridge is sufficient to complete the current printing task; if "Toner is insufficient", it means that the amount of toner in the toner cartridge is low and you need to prepare to replace the toner cartridge; if "Toner is exhausted", it means that the toner in the toner cartridge has been used up and you need to replace the toner cartridge immediately to continue printing.

[0110] 3. Print quality information: If the print quality is normal, it means that the printed document is clear and colorful, meeting the expected effect; if the print quality is poor, it means that the printed document is blurred or has uneven colors, and you may need to adjust the print settings or replace the consumables.

[0111] 4. Fault prompt, showing the fault code of the specific hardware, indicating that a hardware component inside the printer (such as power supply, sensor, motor, etc.) has failed and needs to be repaired or replaced.

[0112] It should be noted that possible failures of laser printers include but are not limited to: printer hardware failure, such as laser failure, scanning mirror failure, charging electrode failure, photosensitive drum failure, scraper failure, laser beam detector contamination or damage, magnetic roller abnormality, print head clogged, paper jam, ink cartridge / toner cartridge problem, sensor failure, etc.; software or driver problems, such as print driver errors, errors or conflicts in the print queue, incompatibility between the operating system and the printer, etc.; network connection problems. In a network printing environment, network delays, disconnections, or configuration errors may cause printing failures; incorrect print settings, such as selecting the wrong paper size, improper print quality settings, incorrect duplex printing settings, etc.; consumables problems, such as exhausted ink cartridges / toner cartridges, use of incompatible consumables, etc.

[0113] Exemplarily, if a component is detected to have failed, the SOC module can also respond immediately. Exemplarily, the SOC module will analyze the specific circumstances of the anomaly and make decisions based on preset rules and strategies. For example, if it is detected that the ink cartridge is low on ink, the SOC module may issue a warning signal and prompt the user to replace the ink cartridge. If the print head is detected to be clogged or faulty, try automatic cleaning or calibration operations to restore it to normal working state. If the anomaly cannot be resolved through automatic processing, the SOC module will promptly feedback the anomaly information to the user. In this way, the processing speed of the printer SOC module can be improved, and the various performance of the SOC module can be improved.

[0114] Here, the processing performed on the first print data carried in the print task may also be pre-print processing, where the pre-print processing generally refers to a series of preparations and settings performed before formal printing, including but not limited to document typesetting, format adjustment, font and size selection, and printing parameter settings, etc. Through pre-print processing, users can ensure that the printed document meets the expected effect, avoid wasting paper and ink, and improve printing efficiency.

[0115] It should be noted that the main difference between pre-printing and printing is that pre-printing is a series of preparations and settings before formal printing, and mainly focuses on document processing and parameter settings before printing. Printing, on the other hand, refers to the process of using a printer to convert electronic files or data content into paper output, and mainly focuses on the actual output, that is, converting the processed documents into physical paper form through the printer.

[0116] In this embodiment, the pre-printing process is performed to evaluate the execution performance of the printing task (eg, printing speed, consumables usage), including etc. According to the evaluation result, the second printing data can be optimized to improve the printing efficiency or save the cost.

[0117] Embodiment 2

[0118] Corresponding to the above-mentioned embodiment 1, the embodiment of the invention further provides a printer integrated with a SOC module, referring to Figure 3 As shown, the printer comprises:

[0119] The SOC module 10 includes a central processor 11, which is used to obtain a print task sent by an external device, and process the first print data carried in the print task to generate second print data and store the second print data in a memory storage unit 12;

[0120] The interface module 20 is used to read the second print data from the memory storage unit 12 through the bus according to the first preset bit width and store it in the buffer 30; and transmit the second print data in the buffer to the printing device according to the second preset bit width based on the DMA transmission mechanism, wherein the first preset bit width is greater than the second preset bit width;

[0121] The cache 30 is used to store the second printing data read by the interface module from the memory storage unit through the bus according to the first preset bit width.

[0122] In some specific embodiments, the interface module 20 includes:

[0123] The first monitoring module 21 is used for real-time monitoring of the amount of data in the cache, and when it is detected that the amount of data in the cache is less than a preset threshold, continues to read the second print data from the memory storage unit through the bus according to the first preset bit width and stores it in the cache.

[0124] In some specific embodiments, the interface module includes:

[0125] The conversion module 22 is configured to convert the second print data of the first preset bit width into the second print data of the second preset bit width.

[0126] In some specific embodiments, the interface module includes:

[0127] The verification module 23 includes a plurality of verification channels. Each of the verification channels verifies the received second printing data using self-generated sequence data. If the verification fails, an error signal of the corresponding channel is output.

[0128] In some specific embodiments, the interface module includes:

[0129] The internal register 24 is at least used to record the transmission status of the second printing data in the interface module.

[0130] In some specific embodiments, the interface module is further used to determine the category of the second print data in the cache, and transmit the second print data from a corresponding channel to a printing device according to a second preset bit width based on the category.

[0131] In some specific embodiments, the printer further comprises:

[0132] The second monitoring module 40 is used to monitor whether the next printing task is obtained within the first preset time after the central processing unit is started or within the first preset time after the previous printing task is completed. If not, the central processing unit is shut down to put the central processing unit into a standby state.

[0133] In some specific embodiments, the second monitoring module 40 is also used to monitor whether the next printing task is obtained within a second preset time period after the central processing unit enters the standby state. If not, the central processing unit is powered off, the current system data of the central processing unit is stored in the memory storage unit, and the memory storage unit is controlled to enter the self-refresh mode to prevent the system data from being lost.

[0134] It should be pointed out here that the description of the above printer item integrated with the SOC module is similar to the description of the above printing data transmission method item, and the description of the beneficial effects of the same method will not be repeated. For technical details not disclosed in the embodiment of the printer integrated with the SOC module of the embodiment of the present invention, please refer to the description of the embodiment of the printing data transmission method of the embodiment of the present invention, which will not be repeated here.

[0135] It should be noted that in the embodiments of the present application, the specific implementation of the SOC module is not limited. Without violating the inventive concept of the present application, any known SOC module that can be used for a printer can be used as the SOC module in the present application.

[0136] The following describes the interface module provided in the embodiment of the present application from the perspective of hardware implementation. Figure 4 As shown, the interface module 20 is composed of functional modules such as a first monitoring module (not shown), a conversion module 22, a reset module 25 and a DMA module 26, wherein the DMA module 26 is composed of modules such as an internal register 24, a DMA control module 27, a VDO functional module 28, and a VDO modulation module 29.

[0137] During specific implementation, the first monitoring module is used to monitor the amount of data in the cache in real time. The conversion module 22 is used to convert the data bit width from 32bit to 128bit to improve bus utilization. The verification module 23 verifies a specific data sequence, specifically using the self-generated sequence data and the received data to perform a full check. If erroneous data occurs, the error signal of the corresponding channel is output. The reset module 25 can be responsible for signal reset management in different clock domains through the my_sys_reset module, the proc_sys_reset_a module is responsible for bus AXI clock reset; the proc_sys_reset_v module is responsible for VDO-related clock reset.

[0138] The internal register 24 consists of the apb_slave_dma (RAM address area, control status register) and reg_vdma (configuration register) modules, which are used to manage the entire IP operation.

[0139] The DMA control module 27 includes a bus arbiter, a bus to 8-port, a ch(n)imp, a ch(n)_pp_imp and other modules.

[0140] The bus arbiter is designed with a state machine FSM. After power-on reset, the state is STATE_IDLE. After receiving the s00_arb_arvalid signal from the bus, it transfers to the state STATE_0A.

[0141] State STATE_0A unconditionally transitions to state STATE_0A1;

[0142] In state STATE_0A1, accept the condition s00_arb_arvalid & s00_axi_arready is true, and transfer to state STATE_0D;

[0143] In state STATE_0D, accept the condition s00_axi_rlast & s00_axi_rvalid & s00_axi_rready is true, and transfer to state STATE_0T;

[0144] In state STATE_0T, if condition s00_arb_arvalid is true, transfer to state STATE_0A; if condition s01_arb_arvalid is true, transfer to state STATE_1A; otherwise, keep waiting in state STATE_0T;

[0145] State STATE_1A unconditionally transitions to state STATE_1A1;

[0146] In state STATE_1A1, accept the condition s01_arb_arvalid & s01_axi_arready as true, and transfer to state STATE_1D;

[0147] In state STATE_1D, accept the condition s01_axi_rlast & s01_axi_rvalid & s01_axi_rready is true, and transfer to state STATE_1T;

[0148] In state STATE_1T, if the condition s00_arb_arvalid is true, the state is transferred to STATE_0A; if the condition s01_arb_arvalid is true, the state is transferred to STATE_1A; otherwise, the state is kept waiting in state STATE_1T.

[0149] The ch(n)imp module consists of the axi4_read_master module, the fifo_wrapper module, etc. It receives the data stream through the M_AXI interface according to the configuration signals (enable, image width / height, number of image blocks, image block address, etc.), and writes the data stream to the ch(n)_pp_imp module through the FIFO interface.

[0150] The ch(n)_pp_imp module is composed of the dma_pingpong module, my_debug_a module, my_debug_d module, etc. During operation, it receives the FIFO interface data stream, and the dma_pingpong module uses the FSM mechanism to process the data to RAM0 in ch(n)_FIFO0 / / / / RAM1 in ch(n)_FIFO1. my_debug_a and my_debug_d collect the read and write status, data and other signals of the FIFO to facilitate the analysis of the internal status.

[0151] The VDO functional module 28 is composed of bus_eng module, rear_imp module, mdl_vdo (model timing signal), dclkgen1 (vdo pixel clock generation module), vdo_reg module, etc. Among them, the bus_eng module is used to decompose the chx_vsync and chx_hsync signals input by the sensor and output them to the corresponding channels; the rear_imp module is composed of vdo_1ch_rear module, vdo_dclkgen module, vdo_sync module, etc., which realizes receiving data from the FIFO interface and outputting VDO under relevant conditions, wherein the data transmission FSM state machine inside the vdo_1ch_rear module is processed; the mdl_vdo module (model timing signal) is designed with 2 FSM state machines to simulate the engine interface signal timing to generate bus signals; the dclkgen1 module generates dclk clock signals based on reg_mm, sd_dly, hsync and other signals; the vdo_sync module selects one channel from the engine timing and model timing to output according to the sel_hs / vs signal.

[0152] The VDO modulation module 29 is used to modulate data; the module receives the parallel data and data validity of VDO, and obtains the LUT value in the memory according to the index ch(n)_modu_index relationship.

[0153] In some specific embodiments, the interface module also includes ch(n)_FIFO0 and ch(n)_FIFO1 modules for buffering data. The difference between the two is the depth difference. The FIFO module is designed with dual-port RAM, and the current write address and the current read address are compared to generate the empty and full signal judgment.

[0154] Embodiment 3

[0155] Corresponding to the above-mentioned embodiment 1, the present invention also provides a computer storage medium, which is a computer-readable storage medium storing one or more of the one or more programs that can be executed by one or more processors, so that the one or more processors execute the printing data transmission method as described in any one of the embodiments 1.

[0156] In some embodiments, the computer storage medium may include: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes.

[0157] It should be noted that the technical solutions described in the embodiments of the present invention can be combined arbitrarily without conflict.

[0158] The above description is only a preferred embodiment of the present invention and is not intended to limit the protection scope of the present invention.

Claims

1. A printing data transmission method, characterized in that: Applied to a printer integrated with a SOC module, the SOC module includes a central processing unit, the printer includes an interface module, and the method includes: The central processing unit obtains a print task sent by an external device, processes the first print data carried in the print task, generates second print data, and stores the second print data in a memory storage unit, wherein the print task divides the data volume into subtasks of different sizes according to its characteristics or requirements, and gives priority to processing the subtasks with smaller data volumes; The interface module reads the second print data from the memory storage unit through the bus according to the first preset bit width and stores the data in the cache, wherein the interface module monitors the amount of data in the cache in real time, and when it is detected that the amount of data in the cache is less than a preset threshold, the interface module continues to read the second print data from the memory storage unit through the bus according to the first preset bit width and stores the data in the cache; The interface module converts the second print data of the first preset bit width into the second print data of the second preset bit width; The interface module transmits the second print data in the buffer to the printing device according to a second preset bit width based on a DMA transmission mechanism, wherein the first preset bit width is greater than the second preset bit width.

2. The printing data transmission method according to claim 1, characterized in that: After the interface module reads the second print data from the memory storage unit through the bus according to the first preset bit width, the method further includes: Each verification channel in the interface module verifies the received second printing data using self-generated sequence data, and outputs an error signal of the corresponding channel if the verification fails.

3. The printing data transmission method according to claim 1, characterized in that: The interface module includes an internal register, and the method further includes: The internal register is used to record the transmission status of the second printing data in the interface module.

4. The printing data transmission method according to claim 1, characterized in that: The interface module transmits the second print data in the buffer to the printing device according to the second preset bit width based on the DMA transmission mechanism, including: The interface module determines a category of the second print data in the buffer, and transmits the second print data from a corresponding channel to a printing device according to a second preset bit width based on the category.

5. The printing data transmission method according to any one of claims 1 to 4, characterized in that: The method further comprises: When it is detected that the next printing task is not obtained within the first preset time after the central processing unit is started or within the first preset time after the previous printing task is completed, the central processing unit is shut down and controlled to enter a standby state.

6. The printing data transmission method according to claim 5, characterized in that: The method further comprises: When it is detected that the next printing task is not obtained within the second preset time period after the central processing unit enters the standby state, the central processing unit is powered off, the current system data of the central processing unit is stored in the memory storage unit, and the memory storage unit is controlled to enter the self-refresh mode to prevent the system data from being lost.

7. A printer integrated with a SOC module based on the method according to any one of claims 1 to 6, characterized in that: The printer comprises: The SOC module includes a central processing unit, wherein the central processing unit is used to obtain a printing task sent by an external device, and process the first printing data carried in the printing task to generate second printing data and store the second printing data in a memory storage unit, wherein the printing task divides the data volume into subtasks of different sizes according to its characteristics or requirements, and gives priority to processing the subtasks with smaller data volume; The interface module is used to read the second print data from the memory storage unit through the bus according to a first preset bit width and store it in a cache; convert the second print data of the first preset bit width into the second print data of the second preset bit width; monitor the amount of data in the cache in real time, and when it is detected that the amount of data in the cache is less than a preset threshold, continue to read the second print data from the memory storage unit through the bus according to the first preset bit width and store it in the cache; and transmit the second print data in the cache to a printing device according to the second preset bit width based on a DMA transmission mechanism, wherein the first preset bit width is greater than the second preset bit width; The cache is used to store the second print data read by the interface module from the memory storage unit through the bus according to the first preset bit width.

8. A computer storage medium, characterized in that: The computer storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to enable the one or more processors to execute the print data transmission method according to any one of claims 1 to 6.