A control method for a printer with interactive function
By introducing a human-computer interaction module and a data analysis module into the printer to generate an identification code, combined with a reading and writing identification module and a data update module, the problems of insufficient functions and poor storage management of traditional printers are solved, and paperless office and printer operation efficiency are achieved. improvement.
Patent Information
- Application Number
- CN202410325346.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-21
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2044-03-21
AI Technical Summary
Traditional printers have limited functions and cannot meet the needs of smart homes. They also fail to effectively manage the storage space in the printer, affecting the printing environment and fluency.
Obtain client data through the human-computer interaction module, generate identification codes, and realize data storage and identification. The read-write identification module is used for data identification and reporting, and the data update module is combined with the management of storage space to ensure the recycling and effective deletion of data.
It realizes the plasticity and wide application of paperless office, improves the printer's operational fluency and storage space utilization, and ensures the efficient operation of the printer.
Smart Images

Figure CN117939026B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of printers, and in particular to a control method for a printer with an interactive function. Background Art
[0002] In the prior art, traditional printers usually only have printing functions, and some printers can accept remote printing. However, in the current wave of smart homes, the existing functions are far from meeting user needs. Users urgently need printers and related human-computer interactions to be more intelligent to meet the needs of education, office, publicity, etc.
[0003] As the printer's usage time and frequency increase, if the printer memory garbage is not cleaned up in a timely and effective manner, it will affect the printer's printing environment and printing process. Summary of the invention
[0004] The purpose of the present invention is to provide a control method for a printer with interactive functions, wherein the printer obtains input data sent by the client through a human-computer interaction module, processes the input data through a data analysis module, obtains an identification code corresponding to the input data, saves all input data through the identification code, and then uses a read-write identification module to identify the identification code of the target file, reads the input data corresponding to the identification code, and broadcasts the content of the input data, thereby realizing a recycling of input data, and realizing paperless office on the basis of the use effect of the printer. It has strong plasticity and a wide range of application scenarios, and is convenient for users to learn and use in multiple dimensions.
[0005] The purpose of the present invention can be achieved through the following technical solutions:
[0006] A control method for a printer with an interactive function comprises the following steps:
[0007] Receive input data sent by the client;
[0008] Processing the input data to generate an output unique identification code and a target file, the target file at least having the identification code, and printing the target file;
[0009] The identification code of the printed target file is identified, the input data corresponding to the identification code is read, and the content of the input data is broadcast.
[0010] As a further solution of the present invention: the input data includes graphic data and voice data.
[0011] As a further solution of the present invention: the target file also includes the graphic data in the input data.
[0012] As a further solution of the present invention: scanning the identification code of the target file to obtain voice data, and broadcasting the voice data.
[0013] As a further solution of the present invention: the acquisition of the voice data includes any one or more of the following:
[0014] When the client inputs data, the corresponding voice data is obtained synchronously with the graphic data;
[0015] Identify the text content of graphic data and convert it into voice data;
[0016] Identify the image information of graphic data and convert it into voice data.
[0017] As a further solution of the present invention: identifying the storage status of input data; obtaining the storage start time of the input data at the printer end, the storage data size, the number of times the identification code is called and the identification code call end time.
[0018] As a further solution of the present invention: the time difference between the storage start time and the current time is calculated to obtain the storage duration of the input data and mark it as SD1;
[0019] The difference between the end time of the identification code call and the start time of the identification code generation is calculated to obtain the recognition time difference from the generation of the identification code by the same input data to the last recognition of the identification code;
[0020] Then calculate the time difference between the end time of the identification code call and the current time to obtain the unrecognized time difference between the last recognition of the input data identification code and the current time;
[0021] The difference duration is obtained by calculating the ratio of the unrecognized time difference to the recognized time difference, and the difference duration of the input data is marked as SD2;
[0022] The storage data size of the input data and the number of times the identification code is called are marked as SD3 and SD4 respectively, and then the storage data size, the number of times the identification code is called, the storage time of the input data and the difference time of the input data are normalized and their values are taken;
[0023] By formula The input data is calculated and stored in the printer end as SCZ; wherein d1, d2, d3 and d4 are all preset proportional coefficients;
[0024] When the storage value SCZ of the input data at the printer end is equal to zero, an instruction to delete the input data is obtained, and the data deletion unit deletes the input data at the printer end.
[0025] As a further solution of the present invention: the processing speed of the input data is obtained, and the printing environment is identified based on the processing speed of the input data.
[0026] As a further solution of the present invention: the input data will be uploaded to the cloud, and when the identification code is read, the reading end will obtain the data from the cloud corresponding to the identification code and broadcast it.
[0027] A printer with interactive function is provided, which executes the control method of the printer with interactive function.
[0028] Beneficial effects of the present invention:
[0029] The printer end of the present invention obtains input data sent by the client through the human-computer interaction module, processes the input data through the data analysis module, obtains the identification code corresponding to the input data, saves all input data through the identification code, and then uses the read-write identification module to identify the identification code of the target file, reads the input data corresponding to the identification code, and broadcasts the content of the input data, thereby realizing the recycling of input data, realizing paperless office on the basis of the use effect of the printer, and having strong plasticity and wide application scenarios;
[0030] The present invention processes the storage start time, storage data size, identification code call times and identification code call end time of input data at the printer end through a data update module, that is, the storage start time is the time when the printer end receives the input data for the first time; the identification code generation start time is the time when the printer end generates the identification code according to the input data; the identification code call times is the sum of the number of times the printer end identifies the target file identification code; the identification code call end time is the last scanning time of the target file identification code by the printer end, and the storage value of the input data at the printer end is obtained through processing. When the storage value SCZ of the input data at the printer end is equal to zero, a deletion instruction of the input data is obtained, and the data deletion unit deletes the input data in the printer end, thereby effectively ensuring the storage space in the printer end to improve the running smoothness of the printer end;
[0031] The present invention uses a state recognition module to identify dynamic data on the printer side, that is, by processing the response speed of the human-computer interaction module, the analysis speed of the data analysis module and the reading speed of the read-write recognition module, the running speed of the printer side is obtained, and the running speed of the printer side is compared with a preset limit value of the running speed of the printer side to obtain the running state of the printer side, and a matching printing environment signal is generated based on the running state of the printer side, and the printing environment signal is sent to the client, so that the user can identify the state of the printer side. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] The present invention will be further described below in conjunction with the accompanying drawings.
[0033] Figure 1 It is a flow chart of the present invention.
[0034] Figure 2 It is a flowchart of the present invention. DETAILED DESCRIPTION
[0035] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention. Example
[0036] A control method for a printer with an interactive function, the method is applied to an application scenario of the printer, the method is executed by a control system of the printer, and specifically comprises the following steps:
[0037] Receive input data sent by the client;
[0038] Processing the input data to generate an output unique identification code and a target file, the target file at least having the identification code, and printing the target file;
[0039] Identify the identification code of the printed target file, read the input data corresponding to the identification code, and broadcast the content of the input data.
[0040] Specifically, some application scenarios in this embodiment are for educating children to recognize words and pictures. In this scenario (taking text as an example): the user inputs text on the client, and can choose to enter the voice corresponding to the text by himself, or the client can generate the voice corresponding to the text; the client or printer generates a target file containing a unique identification code based on the input text and voice, and the printer prints it, and the printed content includes the identification code and text; when the client or printer recognizes the identification code, it will play the voice corresponding to the identification code, so that children can establish a connection between voice and text, especially recognize the pronunciation corresponding to the text, and more especially some dialect pronunciations. In some cases, the printed content is only the identification code. When the identification code is recognized, the voice corresponding to the identification code is broadcast, and the user writes the text corresponding to the voice silently; in some cases, the voice is stored in the printer, client, or cloud when the user inputs, waiting for the user to retrieve it according to the identification code; it is also possible that the voice is not generated or stored when the user enters data, and the voice is generated in real time according to the text corresponding to the identification code when waiting for the voice to be played; in some cases, the identification code is generated by performing MD5 operation on the input data, and other information such as printer ID, client ID, timestamp, etc. can also be integrated into the MD5 operation to improve the uniqueness of the identification code, but in other cases, the identification code is the information in the QR code or RFID, which can be It is a unique link, such as a link with an MD5 code, which can output the data corresponding to the identification code through the cloud; in some cases, the identification code is a QR code, which is directly printed by the printer on the blank space of the paper. In other cases, when using RFID, special paper with RFID is required, and the identification code is written to the chip of the special paper simultaneously when printing; in some cases, the printer has an identification unit for reading the identification code, but in other cases, the identification code can be read by the user on the client or other reading devices; in some cases, the printer has a broadcasting unit, which is broadcast by the printer, but in other cases, it can be played by the client, or according to the scheduling of the smart home, it can be broadcast by devices such as smart speakers. Graphic data or picture data input in scenes such as image recognition can also be processed with reference to text scenes.
[0041] The printer has an identification unit, through which the identification code of the printed target file is scanned. In other embodiments, the printer also has a voice playing unit, and when the voice data corresponding to the identification code needs to be played, the voice playing unit plays it;
[0042] The input data includes graphic data and voice data.
[0043] The target file also includes the graphic and text data in the input data.
[0044] Among them, the identification code of the target file is scanned to obtain voice data, and the voice data is broadcasted.
[0045] The acquisition of voice data includes:
[0046] When the client inputs data, the corresponding voice data is obtained synchronously with the graphic data;
[0047] Identify the text content of graphic data and convert it into voice data;
[0048] Identify the image information of graphic data and convert it into voice data.
[0049] Further, the storage state of the input data is identified; the storage start time of the input data at the printer end, the storage data size, the number of times the identification code is called and the identification code call end time are obtained;
[0050] Specifically: calculate the time difference between the storage start time and the current time, obtain the storage duration of the input data and mark it as SD1;
[0051] The difference between the end time of the identification code call and the start time of the identification code generation is calculated to obtain the recognition time difference from the generation of the identification code by the same input data to the last recognition of the identification code;
[0052] Then calculate the time difference between the end time of the identification code call and the current time to obtain the unrecognized time difference between the last recognition of the input data identification code and the current time;
[0053] The difference duration is obtained by calculating the ratio of the unrecognized time difference to the recognized time difference, and the difference duration of the input data is marked as SD2;
[0054] The storage data size of the input data and the number of times the identification code is called are marked as SD3 and SD4 respectively, and then the storage data size, the number of times the identification code is called, the storage time of the input data and the difference time of the input data are normalized and their values are taken;
[0055] By formula The input data is calculated and stored in the printer end as SCZ; wherein d1, d2, d3 and d4 are all preset proportional coefficients;
[0056] When the storage value SCZ of the input data at the printer end is equal to zero, an instruction to delete the input data is obtained, and the data deletion unit deletes the input data at the printer end.
[0057] Furthermore, the processing speed of the input data is obtained, and the printing environment is identified based on the processing speed of the input data.
[0058] Furthermore, the input data will be uploaded to the cloud. When the identification code is read, the reader will obtain the data from the cloud corresponding to the identification code and broadcast it;
[0059] In some embodiments, the identification code may be read by a mobile communication device, and voice data may be optionally played from a printer or from a mobile communication device. Example
[0060] See also Figure 2 As shown, a control system of a printer with interactive function includes: a client and a printer end; the printer end includes a human-computer interaction module, a data analysis module, a read-write recognition module, a data update module and a status recognition module;
[0061] The input mode of the human-computer interaction module is touch screen input and voice input, and the touch screen input and voice input can be switched between each other. The client sends input data to the printer based on the human-computer interaction module;
[0062] The printer receives the input data transmitted by the client through the human-computer interaction module, and sends the received input data to the data analysis module;
[0063] The data analysis module processes the input data and generates an identification code corresponding to the input data. The data analysis module sends the obtained identification code to the printer for printing, and outputs a target file with the identification code.
[0064] The printer end also includes a read-write identification module, which is used to identify the identification code of the target file, read the input data corresponding to the identification code, and broadcast the content of the input data;
[0065] The data updating module is used to automatically delete the input data stored in the printer.
[0066] In the human-computer interaction module, touch screen input and voice input can be switched between each other;
[0067] The input data sent by the client to the printer via the human-computer interaction module includes graphic data and voice data.
[0068] Graphic data includes pictures, such as pictures of various animals such as elephants and monkeys. The client inputs the text corresponding to the content of the picture, and the human-computer interaction module recognizes the text corresponding to the content of the picture and converts it into corresponding voice data;
[0069] In a specific embodiment, the human-computer interaction module can also generate corresponding voice data according to the content information corresponding to the image body;
[0070] Furthermore, the printer side is connected to the intelligent terminal of the client side through the local area network, so that the intelligent terminal of the client side can send input data to the printer side;
[0071] In an embodiment of the present invention, a human-computer interaction module allocates and configures a corresponding recording device for a client to obtain corresponding voice data, and uses an audio capture algorithm in Python language to collect the voice data of the client. Specifically: an interface object is created according to the selected recording recognition, and directsound and DirectSoundCaptureCreate() methods are called to create an audio capture object. The parameter guid represents the recording recognition, which can be provided by the return value of directsound and DirectSoundCaptureEnumerate() functions, or can be set to None, indicating that the system default recording device is used. Then a buffer object is created for the interface, and sound capture is completed by the function of the buffer object, that is, PyIDir ectSoundCapture.CreateCapyureBuffer.Start() is called to start collecting the voice data emitted by the client. The trigger point of the function can be a corresponding trigger statement entered in advance.
[0072] The data analysis module includes a data acquisition unit and an information generation unit;
[0073] The data acquisition unit is used to collect input data received by the printer end and send the input data to the storage management unit and the information generation unit;
[0074] In this embodiment, the identification code takes a two-dimensional code as an example, and the information generation unit receives input data using a two-dimensional code generator to obtain a two-dimensional code corresponding to the input data.
[0075] The reading and writing recognition module includes a scanning recognition unit and a voice broadcast unit;
[0076] The scanning and identifying unit is used to scan and identify the identification code of the target file. In this embodiment, the identification code is a two-dimensional code. The scanning and identifying unit uses a two-dimensional code scanner to scan the two-dimensional code and convert the scanning result into text information, and send the text information to the voice broadcast unit;
[0077] The voice broadcast unit converts the received text information into voice data for broadcasting.
[0078] In a specific embodiment, the printer side can print according to the input data received by the data analysis module and the text recognized by the reading and writing recognition module.
[0079] The data updating module includes a storage management unit and a data deleting unit;
[0080] The storage management unit is used to store the input data of the printer end to form a storage data group of the input data;
[0081] The storage data group includes the storage start time of the input data at the printer end, the storage data size, the number of times the identification code is called and the identification code call end time;
[0082] The storage start time is the time when the printer first receives input data;
[0083] The identification code generation start time is the time when the printer generates the identification code according to the input data;
[0084] The number of times the identification code is called is the sum of the number of times the printer recognizes the identification code of the target file;
[0085] The identification code call end time is the time when the printer end scans the target file identification code for the last time;
[0086] The data deletion unit receives the storage data group transmitted by the storage management unit and performs data analysis on the storage data group, specifically:
[0087] Calculate the time difference between the storage start time on the printer side and the current time to obtain the storage duration of the input data and mark it as SD1;
[0088] The difference between the end time of the printer identification code call and the start time of the identification code generation is calculated to obtain the recognition time difference from the generation of the identification code to the last recognition of the identification code for the same input data, and then the time difference between the end time of the printer identification code call and the current time is calculated to obtain the unrecognized time difference between the last recognition of the input data identification code and the current time; the ratio of the unrecognized time difference to the recognition time difference is calculated to obtain the difference time length, and the difference time length of the input data is marked as SD2;
[0089] The storage data size of the input data at the printer end and the number of times the identification code is called are marked as SD3 and SD4 respectively, and then the storage data size, the number of times the identification code is called, the storage time of the input data and the difference time of the input data are normalized and their values are taken;
[0090] By formula The input data is calculated and stored in the printer end as SCZ; wherein d1, d2, d3 and d4 are all preset proportional coefficients;
[0091] There are m groups of historical data, each group of historical data includes the storage start time of the input data at the printer end, the storage data size, the number of times the identification code is called and the identification code call end time;
[0092] Specifically, the storage time SD1 of the input data, the difference time SD2 of the input data, the storage data size SD3 of the input data and the number of times the identification code is called SD4 of each group of historical data are obtained, and the storage time SD1 of the input data, the difference time SD2 of the input data, the storage data size SD3 of the input data and the number of times the identification code is called SD4 of the m groups of historical data are fitted using a linear model, and the storage time SD1 of the input data, the difference time SD2 of the input data, the storage data size SD3 of the input data and the number of times the identification code is called SD4 of the prepared historical data are brought into the selected fitting model for fitting, and the fitting coefficients are obtained to obtain the storage values SCZ of the m groups of input data at the printer end;
[0093] Then, according to the storage duration SD1 of the input data of the m groups, the difference duration SD2 of the input data, the storage data size SD3 of the input data, the number of times the identification code is called SD4, and the storage value SCZ of the input data corresponding to the m groups of historical data at the printer end, a model is built, that is, a calculation model of the storage value SCZ of the input data at the printer end of the present application is obtained;
[0094] When the storage value SCZ of the input data at the printer end is equal to zero, a deletion instruction of the input data is obtained, and the data deletion unit deletes the input data in the printer end;
[0095] Among them, in the above formula, the more times the printer side recognizes the target file identification code, the more times the input data is used, and the larger the storage value of the corresponding input data on the printer side; the longer the difference between the end time of the printer side identification code call and the start time of the identification code generation, the longer the time interval from the last time the input data was recognized to the current time or the shorter the time from the generation of the identification code to the last recognition of the input data, that is, the longer the time interval from the last time the input data was recognized to the current time, the lower the importance of the input data, and the shorter the time from the generation of the identification code to the last recognition of the identification code, the shorter the use time of the input data, and the smaller the storage value of the corresponding input data on the printer side; the larger the storage data of the input data on the printer side, the more memory the input data occupies in the printer side, and the smaller the storage value of the corresponding input data on the printer side.
[0096] It also includes a state recognition module, which is used to process the dynamic data of the printer end and complete the state recognition of the printer end;
[0097] Among them, the dynamic data on the printer side is the response speed of the human-computer interaction module, the analysis speed of the data analysis module and the reading speed of the read-write recognition module;
[0098] Among them, the response speed of the human-computer interaction module is the response speed of the printer end to receive the input data sent by the client; the analysis speed of the data analysis module is the ratio of the time for the printer end to receive the input data and obtain the target file identification code to the size of the input data; the reading speed of the reading and writing identification module is the ratio of the number of input data broadcast characters obtained by the printer end to identify the target file to the target file identification time.
[0099] Mark the response speed of the human-computer interaction module at the printer end as V1, mark the analysis speed of the data analysis module as V2, and mark the reading speed of the reading and writing identification module as V3.
[0100] Through the formula Obtain the operating speed Vi of the printer end, where α, β, and γ are preset proportionality coefficients.
[0101] Preset the limit values of the operating speed of the printer end as Vi1 and Vi2, where Vi1 < Vi2:
[0102] When Vi < Vi1, it indicates that the operating state of the printer end is poor, and a poor printing environment signal is generated.
[0103] When Vi1 < Vi < Vi2, it indicates that the operating state of the printer end is normal, and a good printing environment signal is generated.
[0104] When Vi > Vi2, it indicates that the operating state of the printer end is excellent, and an excellent printing environment signal is generated.
[0105] The state recognition module sends the obtained environment signal of the printer end to the client, and the client adjusts the working state of the printer according to the received different types of environment signals.
[0106] The adjustment of the working state of the printer includes, but is not limited to, repairing, maintaining, and manually deleting the memory of the printer end, etc.
[0107] One of the core points of the present invention is that the printer end obtains the input data sent by the client through the human-computer interaction module, processes the input data through the data analysis module to obtain the identification code corresponding to the input data, saves all the input data through the identification code, and then uses the reading and writing identification module to identify the identification code of the target file, read the input data corresponding to the identification code, and broadcast the content of the input data, so as to realize the recycling of an input data, achieve paperless office on the basis of the use effect of the printer, with strong plasticity and wide application scenarios.
[0108] One of the core points of the present invention is to process the storage start time, storage data size, identification code call times and identification code call end time of the input data at the printer end through the data update module, that is, the storage start time is the time when the printer end receives the input data for the first time; the identification code generation start time is the time when the printer end generates the identification code according to the input data; the identification code call times is the sum of the number of times the printer end identifies the target file identification code; the identification code call end time is the last scanning time of the target file identification code by the printer end, and the input data storage value at the printer end is obtained through processing. When the input data storage value SCZ at the printer end is equal to zero, the input data deletion instruction is obtained, and the data deletion unit deletes the input data in the printer end, thereby effectively ensuring the storage space in the printer end to improve the running smoothness of the printer end;
[0109] One of the core points of the present invention is to use a status recognition module to identify dynamic data on the printer side, that is, by processing the response speed of the human-computer interaction module, the analysis speed of the data analysis module and the reading speed of the read-write recognition module, the running speed of the printer side is obtained, and the running speed of the printer side is compared with the preset limit value of the running speed of the printer side to obtain the running status of the printer side, and a matching printing environment signal is generated based on the running status of the printer side, and the printing environment signal is sent to the client, so that the user can identify the status of the printer side.
[0110] The above is a detailed description of an embodiment of the present invention, but the content is only a preferred embodiment of the present invention and cannot be considered to limit the scope of implementation of the present invention. All equivalent changes and improvements made within the scope of the present invention should still fall within the scope of the patent coverage of the present invention.
Claims
1. A control method for a printer with interactive function, It is characterized in that The following steps are involved: Receive input data sent by the client; Processing the input data to generate an output unique identification code and a target file, the target file at least having the identification code, and printing the target file; Identify the identification code of the printed target file, read the input data corresponding to the identification code, and broadcast the content of the input data; Identify the storage status of input data; obtain the storage start time of the input data at the printer end, the storage data size, the number of times the identification code is called, and the identification code call end time; Calculate the time difference between the storage start time and the current time to obtain the storage duration of the input data and mark it as SD1; The difference between the end time of the identification code call and the start time of the identification code generation is calculated to obtain the recognition time difference from the generation of the identification code by the same input data to the last recognition of the identification code; Then calculate the time difference between the end time of the identification code call and the current time to obtain the unrecognized time difference between the last recognition of the input data identification code and the current time; The difference duration is obtained by calculating the ratio of the unrecognized time difference to the recognized time difference, and the difference duration of the input data is marked as SD2; The storage data size of the input data and the number of times the identification code is called are marked as SD3 and SD4 respectively, and then the storage data size, the number of times the identification code is called, the storage time of the input data and the difference time of the input data are normalized and their values are taken; By formula The input data is calculated and stored in the printer end as SCZ; wherein d1, d2, d3 and d4 are all preset proportional coefficients; When the storage value SCZ of the input data at the printer end is equal to zero, an instruction to delete the input data is obtained, and the data deletion unit deletes the input data at the printer end.
2. According to the control method of a printer with interactive function described in claim 1, It is characterized in that The input data includes graphic data and voice data.
3. According to the control method of a printer with interactive function described in claim 2, It is characterized in that The target file also includes the graphic and text data in the input data.
4. According to the control method of a printer with interactive function described in claim 2, It is characterized in that Scan the identification code of the target file to obtain voice data, and broadcast the voice data.
5. According to the control method of a printer with interactive function described in claim 2, It is characterized in that The acquisition of the voice data includes any one or more of the following: When the client inputs data, the corresponding voice data is obtained; Identify the text content of graphic data and convert it into voice data; Identify the image information of graphic data and convert it into voice data.
6. The control method of a printer with interactive function according to claim 1, It is characterized in that The processing speed of the input data is acquired, and the printing environment is identified based on the processing speed of the input data.
7. A method for controlling a printer with interactive functions as claimed in any one of claims 1 to 6, It is characterized in that The input data is uploaded to the cloud. When the identification code is read, the reader obtains the data from the cloud corresponding to the identification code and broadcasts it.
