Data interaction method and device, storage medium and electronic equipment

By splicing head data, printing parameters and tail data in the printing command data, the problem of data loss or sticking during data transmission in the printing equipment is solved, the accuracy of data analysis is improved, and the normal operation of the printing equipment is ensured.

CN119872091AActive Publication Date: 2025-04-25WUHAN JINGCHEN INTELLIGENT IDENTIFICATION TECH CO LTD
View PDF 13 Cites 0 Cited by

Patent Information

Application Number
CN202411954570.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-27
Publication Date
2025-04-25
Estimated Expiration
2044-12-27

AI Technical Summary

Technical Problem

In the printing device, data loss or data sticking may occur during data transmission, resulting in the printing device being unable to parse the printing instructions normally and failing to complete the user's printing work.

Method used

By splicing head data, printing parameters and tail data in the printing command data, the printing device analyzes and obtains printing parameters after detecting head data and tail data, thereby avoiding data sticking and improving the accuracy of data analysis.

Benefits of technology

It effectively avoids data sticking problems, improves the accuracy of data analysis, ensures the normal operation of the printing equipment, and can correctly complete the user's printing tasks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119872091A_ABST
    Figure CN119872091A_ABST
Patent Text Reader

Abstract

The invention provides a data interaction method and device, a storage medium and electronic device.The method is applied to the technical field of printers and comprises the steps that printing instruction data sent by terminal equipment is obtained, the printing instruction data is analyzed, and if head data and tail data exist in the printing instruction data, the printing instruction data is sent to the terminal equipment; if yes, analysis completion feedback information is sent to the terminal equipment, so that the terminal equipment displays the analysis completion feedback information, printing parameter data in the printing instruction data are obtained, and printing operation is conducted based on the printing parameter data. According to the method, by splicing the head data, the printing parameters and the tail data, the printing equipment analyzes and obtains the printing parameters after detecting the head data and the tail data, so that adhesion of the front data and the rear data is avoided, the accuracy of data analysis is improved, and normal work of the printing equipment is guaranteed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of printer technology, and more specifically, to a data interaction method, device, storage medium and electronic device in the field of printer technology. Background Art

[0002] Printing devices are commonly used devices in work and life scenarios, which can help people improve work efficiency and facilitate life. In the prior art, users can send printing instructions to printing devices through terminal devices to conveniently control the printing devices to perform printing operations. However, problems such as data loss and adhesion of front and back data may occur during data transmission, resulting in the printing device being unable to normally parse the printing instructions and unable to complete the user's printing work. It is necessary to provide a method to improve the parsing accuracy of the printing device. Summary of the invention

[0003] The embodiments of the present application provide a data interaction method, device, storage medium and electronic device. The method can splice the header data, printing parameters and tail data so that the printing device can parse and obtain the printing parameters after detecting the header data and tail data, thereby avoiding the stickiness of the front and back data, improving the accuracy of data analysis, and ensuring the normal operation of the printing device.

[0004] In a first aspect, an embodiment of the present application provides a data interaction method, which is applied to a printing device, and the method includes:

[0005] Acquire the printing instruction data sent by the terminal device, and parse and process the printing instruction data;

[0006] If the print instruction data contains header data and tail data, sending parsing completion feedback information to the terminal device, so that the terminal device displays the parsing completion feedback information;

[0007] Acquire printing parameter data in the printing instruction data;

[0008] A printing operation is performed based on the printing parameter data.

[0009] In a second aspect, an embodiment of the present application provides a data interaction device, the device comprising:

[0010] A parsing and processing unit, used for acquiring the printing instruction data sent by the terminal device, and parsing and processing the printing instruction data;

[0011] An information feedback unit, configured to send parsing completion feedback information to the terminal device if the print instruction data contains header data and tail data, so that the terminal device displays the parsing completion feedback information;

[0012] A parameter acquisition unit, used for acquiring printing parameter data in the printing instruction data;

[0013] A printing operation unit is used to perform a printing operation based on the printing parameter data.

[0014] In a third aspect, an embodiment of the present application provides a computer storage medium, wherein the computer storage medium stores a plurality of instructions, wherein the instructions are suitable for being loaded by a processor and executing the above-mentioned method steps.

[0015] In a fourth aspect, an embodiment of the present application provides an electronic device, which may include: a processor and a memory; wherein the memory stores a computer program, and the computer program is suitable for being loaded by the processor and executing the above-mentioned method steps.

[0016] In one or more embodiments of the present application, the printing instruction data sent by the terminal device is obtained, and the printing instruction data is parsed and processed. If the printing instruction data contains header data and tail data, parsing completion feedback information is sent to the terminal device, so that the terminal device displays the parsing completion feedback information, obtains the printing parameter data in the printing instruction data, and performs a printing operation based on the printing parameter data. By splicing the header data, printing parameters and tail data, the printing device parses and obtains the printing parameters after detecting the header data and tail data, thereby avoiding the sticking of the front and back data, improving the accuracy of data parsing, and ensuring the normal operation of the printing device. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0018] Figure 1 This is an example schematic diagram of a terminal device sending an instruction provided in an embodiment of the present application;

[0019] Figure 2 It is a flowchart of a data interaction method provided in an embodiment of the present application;

[0020] Figure 3 It is a flowchart of a parsing method provided in an embodiment of the present application;

[0021] Figure 4 It is a flow chart of a method for obtaining printing parameter data provided by an embodiment of the present application;

[0022] Figure 5 This is an example schematic diagram of obtaining byte length data and printing parameter data provided by an embodiment of the present application;

[0023] Figure 6 It is a flowchart of a verification process provided by an embodiment of the present application;

[0024] Figure 7 It is a structural schematic diagram of a data interaction device provided in an embodiment of the present application;

[0025] Figure 8 It is a structural schematic diagram of a data interaction device provided in an embodiment of the present application;

[0026] Fig. 9 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0027] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0028] Printing equipment refers to hardware equipment that can output electronic documents, images or other information to paper or other media. Printers are widely used in offices, homes and other environments. They can print electronic documents, photos, charts and other image materials into paper form. Wire number machines are also a kind of printing equipment, which can be called wire number printers or numbering machines. They are equipment used for wiring identification of electric control, power distribution equipment and integrated wiring projects. They can be used in power, telecommunications, steel, manufacturing and other application scenarios. Wire number machines can print characters on wire tubes to identify wires, cables, etc. Wire tubes can be made of polyvinyl chloride (PVC) casings, heat shrink tubes, self-adhesive labels and other materials. They are pipes used to protect wires and cables from external damage to ensure the safety of wires and extend the service life of wires. Marked wires and cables can clearly display the functions, uses, specifications and other information of teammates, which is convenient for staff to classify, identify and maintain. When a user wants to use a printing device to print, in addition to printing directly on the control panel of the printing device, he can also use the terminal device he holds to control the printing device to print. Please refer to Figure 1, an example schematic diagram of a terminal device sending instructions is provided for an embodiment of the present application. The terminal device may be an electronic device such as a mobile phone, tablet or wearable device held by a user. An application for controlling a printing device and implementing a data interaction method may be installed in the terminal device. The user may set printing parameter data in the application of the terminal device, and then the terminal device may generate printing instruction data based on the printing parameter data and send the instruction data to the printing device, wherein the printing parameter data may include relevant parameters when the printing device performs a printing operation, and the printing instruction data is used to instruct the printing device to perform a printing operation according to the printing parameter data.

[0029] However, during the data transmission process, problems such as data loss and adhesion of previous and next data may occur, which may cause the printing device to be unable to normally parse the printing instruction data and unable to complete the user's printing work. The embodiment of the present application provides a data interaction device. The data interaction method provided in the embodiment of the present application can be implemented by relying on a computer program and can be run on a data interaction device based on the von Neumann system. The computer program can be integrated into the application or run as an independent tool application. The data interaction device can be a printing device or a module or application in the printing device for implementing the data interaction method. The printing instruction data sent by the terminal device can be composed of header data, printing parameter data and tail data. The header data and tail data are respectively located at the start and end positions of the printing instruction data, and play a role in identifying and protecting the printing parameter data during the data transmission process. When the data interaction device detects that the printing device has received the printing instruction data, it can parse and process the printing instruction data. Only when the header data and tail data are detected at the same time, the data interaction device will determine that a complete printing instruction data has been received, and obtain the printing parameter data between the header data and the tail data, and then control the printing device to perform a printing operation based on the printing parameter data, thereby avoiding the stickiness of the previous and next data, improving the accuracy of data analysis, and ensuring the normal operation of the printing device.

[0030] The data interaction method provided by the present application is described in detail below with reference to specific embodiments.

[0031] See also Figure 2 A flow chart of a data interaction method is provided for an embodiment of the present application. Figure 2 As shown, the method of the embodiment of the present application may include the following steps S101-S104.

[0032] S101, obtaining printing instruction data sent by a terminal device, and parsing and processing the printing instruction data.

[0033] Specifically, when a user wants to use a printing device to perform a printing operation, the terminal device can be used to set the printing parameter data, and then the terminal device can generate printing instruction data based on the printing parameter data, and send the printing instruction data to the printing device. After the data interaction obtains the printing instruction data received by the terminal device, the printing instruction data can be parsed and processed. The parsing process can obtain the content in the printing instruction data. For example, the position and content of the header data and the tail data can be determined through the parsing process.

[0034] S102: If the print instruction data contains header data and tail data, then the parsing completion feedback information is sent to the terminal device, so that the terminal device displays the parsing completion feedback information.

[0035] Specifically, if it is determined through parsing that the print instruction data contains header data and tail data, it can be determined that a complete print instruction data has been obtained without being stuck to the previous and next data. The data interaction device can send parsing completion feedback information to the terminal device so that the terminal device displays the parsing completion feedback information. The parsing completion feedback information is used to inform the user that the printing device has received the complete print instruction data sent by the terminal device. The parsing completion feedback information can be displayed on the terminal device in the form of a pop-up window, a ringing ring, or a vibration. For example, the terminal device can pop up a window showing "The printing device has completed the parsing."

[0036] S103, obtaining printing parameter data in the printing instruction data.

[0037] Specifically, the data interaction device obtains the header data and the tail data through parsing and processing, and determines the positions of the header data and the tail data in the printing instruction data, and then can obtain the printing parameter data between the header data and the tail data.

[0038] S104, performing a printing operation based on the printing parameter data.

[0039] Specifically, the printing parameter data is the relevant parameters when the printing device performs a printing operation. The data interaction device can control the printing device to perform a printing operation based on the printing parameter data. For example, the printing parameter data can include the printing content desired by the user, and the printing device can print the print content on paper or other media.

[0040] In the embodiment of the present application, the printing instruction data sent by the terminal device is obtained, and the printing instruction data is parsed and processed. If the printing instruction data contains header data and tail data, parsing completion feedback information is sent to the terminal device, so that the terminal device displays the parsing completion feedback information, obtains the printing parameter data in the printing instruction data, and performs a printing operation based on the printing parameter data. By splicing the header data, printing parameters and tail data, the printing device parses and obtains the printing parameters after detecting the header data and tail data, thereby avoiding the sticking of the front and back data, improving the accuracy of data parsing, and ensuring the normal operation of the printing device.

[0041] The byte lengths of the header data and the tail data can be the first byte length and the second byte length respectively, and the data formats can be the header data format and the tail data format respectively. The first byte length, the second byte length, the header data format and the tail data format can be the initial settings of the data interaction device, and can also be pre-set by the user or staff. The terminal device can generate the header data according to the first byte length and the preset header data format, and the data interaction device can also parse the header data in the printing instruction data according to the first byte length and the preset header data format. Similarly, the terminal device can generate the tail data according to the second byte length and the preset tail data format, and the data interaction device can also parse the tail data in the printing instruction data according to the second byte length and the preset tail data format.

[0042] Please also see Figure 3 , a schematic diagram of a parsing process is provided for an embodiment of the present application, and step S101 may include the following steps:

[0043] S201, obtaining first data in the header of the printing instruction data based on the first byte length, and if the first data matches a preset header data format, determining the first data as header data.

[0044] Specifically, the data interaction device may obtain first data satisfying the first byte length from the header of the printing instruction data. If the first data matches a preset header data format, the first data may be determined as header data.

[0045] Optionally, the header data is located at the front of the transmission data, and is used to identify the beginning of the print instruction data, and may include control and management information. For example, the header data may include identification information, protocol type, etc. The identification information may be a source address, a destination address, etc., which may be used to determine the source and destination of the print instruction data. The protocol type may indicate the transmission protocol used by the print instruction data, such as the Transmission Control Protocol (TCP), the User Datagram Protocol (UDP), the Internet Protocol (IP), etc. The header data may also include a sequence number, which is used to control the order of the print instruction data. When the print instruction data needs to be split into multiple packets, the sequence number may instruct the printing device to reassemble the data in the correct order. The header data is mainly used for data packet routing, transmission control, etc., to ensure that the print instruction data can correctly reach the printing device.

[0046] S202, obtaining second data at the tail of the printing instruction data based on the second byte length, and if the second data matches a preset tail data format, determining the second data as tail data.

[0047] Specifically, the data interaction device may obtain the second data satisfying the second byte length from the tail of the printing instruction data, and if the second data matches a preset tail data format, the second data may be determined as the tail data.

[0048] Optionally, the tail data is located at the end of the data packet and can be used to mark the end of the print instruction data. For example, in the Point-to-Point Protocol (PPP), the tail data may include an end mark to indicate the end of a print instruction data. The PPP protocol is mainly used to establish, configure and test a data link connection between two network entities.

[0049] In the embodiment of the present application, first data is obtained at the head of the printing instruction data based on the first byte length, and if the first data matches the preset header data format, the first data is determined as the header data, and second data is obtained at the tail of the printing instruction data based on the second byte length, and if the second data matches the preset tail data format, the second data is determined as the tail data. By determining the header data and the tail data by the pre-set byte length and data format, the accuracy of obtaining the header data and the tail data is improved, and the printing instruction data is prevented from being erroneously received due to the tampering or omission of the header and tail data, and the accuracy of receiving and parsing the printing instruction data is improved.

[0050] In one embodiment of the present application, in order to further improve the accuracy of the data in the print instruction data, the terminal device can obtain the print parameter data input by the user, determine the byte length of the print parameter data, and generate byte length data according to the byte length of the print parameter data. It can be understood that the print instruction data generated by the terminal data is data after data conversion processing, so the byte length is the number of bytes of the print parameter data after data conversion processing, and the byte length data is the byte length after data conversion processing, wherein the data conversion processing can be binary data conversion processing. The terminal device can also add the byte length data to the print instruction data to facilitate the data interaction device to more accurately obtain the print parameter data. For example, the terminal device can splice the byte length data between the header data and the print parameter data.

[0051] Please also see Figure 4 , a schematic diagram of a process for obtaining printing parameter data is provided for an embodiment of the present application, and step S102 may include the following steps:

[0052] S301, obtaining byte length data spliced ​​after the header data.

[0053] Specifically, after the data interaction device determines that both header data and tail data exist in the print instruction data, that is, determines that a complete print instruction data has been obtained, the data interaction device can start to obtain the byte length data spliced ​​after the header data. The data interaction device can obtain the print parameter data in the print instruction data based on the byte length data, and the byte length of the print parameter data matches the byte length data.

[0054] Optionally, the data interaction device can obtain byte length data that meets the third byte length after the header data. The third byte length can be the initial setting of the data interaction device, or can be pre-set by the user or staff. The terminal device can generate byte length data based on the third byte length, which is convenient for the data interaction device to obtain accurate byte length data and also convenient for accurately obtaining subsequent printing parameter data.

[0055] S302, obtaining the byte length corresponding to the byte length data.

[0056] Specifically, since the printing instruction data is data after data conversion, for example, the printing instruction data may be binary data, the byte length data may also be binary data, and the data interaction device may obtain the corresponding byte length based on the binary byte length data.

[0057] S303, obtaining third data that meets the byte length after being spliced ​​with the byte length data, and determining the third data as the printing parameter data in the printing instruction data.

[0058] Specifically, the data interaction data may be obtained by splicing the byte length data and the third data satisfying the byte length, and the third data may be determined as the printing parameter data in the printing instruction data.

[0059] Please also see Figure 5 , an example schematic diagram of obtaining byte length data and printing parameter data is provided for an embodiment of the present application. If the data conversion processing is binary data conversion processing, and the third byte length is 10 bytes, the data interaction device can obtain the 10-byte byte length data spliced ​​after the header data. If the byte length data is "0111110100", the byte length corresponding to the byte length data is 500, indicating that the byte length of the printing parameter data is 500 bytes, and the data interaction device can obtain 500 bytes of printing parameter data after the byte length data.

[0060] In the embodiment of the present application, the byte length data spliced ​​after the header data is obtained, the byte length corresponding to the byte length data is obtained, and the third data spliced ​​after the byte length data that meets the byte length is obtained, and the third data is determined as the printing parameter data in the printing instruction data. The printing parameter data is quickly located through the byte length data, making the data structure clearer and improving the efficiency of data parsing.

[0061] In one embodiment of the present application, the data interaction may further include the following steps:

[0062] If the print instruction data contains header data and tail data, then the parsing completion prompt information is output, wherein the parsing completion prompt information includes light-on prompt information or vibration prompt information.

[0063] Specifically, in addition to sending parsing completion feedback information to the terminal device to remind the user on the terminal device that the complete printing instruction data has been received, the data interaction device can also remind the user on the printing device. If there is header data and tail data in the printing instruction data, the data interaction device can output parsing completion prompt information. The parsing completion prompt information can be output by the printing device and can include light prompt information or vibration prompt information.

[0064] Optionally, a lighting module can be installed on the printing device. If there are header data and tail data in the printing instruction data, the data interaction device can control the lighting module to output lighting prompt information. The lighting prompt information can be lighting according to a first preset lighting mode, wherein the first preset lighting mode can be pre-set by the user or staff. The first preset lighting mode may include lighting color, flashing interval, number of flashes, etc. For example, in the first preset lighting mode, the lighting color is green, the flashing interval is 0.5s, and the number of flashes is 3 times. If there are header data and tail data in the printing instruction data, the data interaction device can control the lighting module to flash the green light 3 times at an interval of 0.5s to prompt the user that the complete printing instruction data has been received.

[0065] Optionally, a vibration module can be installed on the printing device. If there are header data and tail data in the printing instruction data, the data interaction device can control the vibration module to output vibration prompt information. The vibration prompt information can be vibration according to a first preset vibration mode, wherein the first preset vibration mode can be pre-set by the user or staff, and the first preset vibration mode may include vibration frequency, vibration duration, etc.

[0066] In the embodiment of the present application, prompts are given by lighting up lights or vibrating, providing timely feedback to the user on the printing device side, reducing the user's misunderstanding of the printing device status, avoiding continuous observation of the device status and delaying other work processes, and improving the convenience of user operations.

[0067] In one embodiment of the present application, the data interaction may further include the following steps:

[0068] If the print instruction data does not contain both header data and tail data, parsing failure feedback information is sent to the terminal device so that the terminal device displays the parsing failure feedback information, and / or outputs parsing failure prompt information, and / or stops executing the printing operation.

[0069] Specifically, the parsing process may only obtain the header data, or only obtain the tail data, or obtain neither the header data nor the tail data, which means that the data in the print instruction data has been omitted or tampered with during the transmission process. Therefore, if the print instruction data does not contain both the header data and the tail data, a parsing failure feedback message is sent to the terminal device so that the terminal device displays the parsing failure feedback message. The parsing failure feedback message can be used to inform the user that the printing device has not correctly received the print instruction data, so that the user can resend the print instruction data or repair the terminal device and the printing device. The parsing failure feedback message can be displayed on the terminal device in the form of a pop-up window, a ringing sound, or a vibration. For example, the terminal device may pop up a window displaying "Printing device parsing failed."

[0070] In addition to sending parsing failure feedback information to the terminal device, the data interaction device can also output parsing failure prompt information on the printing device side, wherein the parsing failure prompt information may include light prompt information or vibration prompt information. If the header data and the tail data do not exist at the same time in the printing instruction data, the light prompt information may be lighting according to the second preset lighting mode, and the vibration prompt information may be vibrating according to the second preset vibration mode. For example, in the second preset lighting mode, the light color is red, the flashing interval is 0.5s, and the number of flashes is 3 times. If the header data and the tail data do not exist at the same time in the printing instruction data, the data interaction device can control the lighting module to flash the red light 3 times at an interval of 0.5s to prompt the user that the printing instruction data parsing failed.

[0071] The data interaction device can also control the printing device to stop the printing operation, so as to avoid the wrong printing operation when the data parsing fails, resulting in waste of printing materials. If the printing device is a wire numbering machine, since the wire numbering machine can not only print the wire tube, but also cut the wire tube, and move the wire tube for printing and cutting, the data interaction device can also stop the cutting and moving processing, so as to avoid the wrong printing, cutting and moving of the wire tube when the target specification is not suitable, thereby avoiding waste of wire tube.

[0072] In an embodiment of the present application, when it is detected that the printing instruction data is incomplete or erroneous, a prompt message is output to the user and the printing operation is stopped, ensuring that only correct and complete data is processed, thereby ensuring the accuracy of the printing operation and reducing the waste of printing materials. The prompt information improves the transparency of the operation, thereby improving the convenience of user operation.

[0073] After the data interaction device obtains the printing parameter data from the printing instruction data, it can perform a printing operation based on the printing parameter data. However, in order to avoid omission or tampering of the printing parameter data during the data transmission process, the terminal device can use a preset encryption method to encrypt the printing parameter data to obtain verification data, and then splice the verification data between the printing parameter data and the tail data, so that the data interaction device can obtain the verification data from the printing instruction data and verify the printing parameter data according to the verification data. Among them, the encryption method can be the initial setting of the data interaction device, or it can be pre-set by the user or staff, for example, it can be encrypted by a hash algorithm, and the printing parameter data is calculated by the hash algorithm to obtain a hash value, and the hash value is used as the verification data. In addition, the encryption method can also be Advanced Encryption Standard (AES), Data Encryption Standard (DES), etc.

[0074] Please also see Figure 6 , a schematic diagram of a verification process is provided for an embodiment of the present application, and step S104 may include the following steps:

[0075] S401, verifying the printing parameter data.

[0076] Specifically, after the data interaction device obtains the printing parameter data, it can verify the printing parameter data.

[0077] Optionally, after the data interaction device obtains the printing parameter data, it can obtain the verification data between the printing parameter data and the tail data. It can be understood that the printing parameter data and the tail data both have a fixed byte length, so the data between the printing parameter data and the tail data is the verification data. Then the data interaction device can encrypt the printing parameter data using a preset encryption method to obtain the target data. If the target data matches the verification data, it means that the printing parameter data has not been omitted or tampered with, and it can be determined that the printing parameter data has passed the verification process.

[0078] S402: If the printing parameter data passes the verification process, verification success feedback information is sent to the terminal device, so that the terminal device displays the verification success feedback information.

[0079] Specifically, if the printing parameter data passes the verification process, a verification success feedback information can be sent to the terminal device so that the terminal device displays the verification success feedback information. The verification success feedback information is used to inform the user that the printing device has successfully obtained the complete printing parameter data. The verification success feedback information can be displayed on the terminal device in the form of a pop-up window, a ring tone, or a vibration. For example, the terminal device can pop up a window displaying "Parameter data verification passed".

[0080] S403, performing a printing operation based on the printing parameter data.

[0081] Specifically, the printing parameter data is the relevant parameters when the printing device performs a printing operation. The data interaction device can control the printing device to perform a printing operation based on the printing parameter data. For example, the printing parameter data can include the printing content desired by the user, and the printing device can print the print content on paper or other media.

[0082] In the embodiment of the present application, the printing parameter data is verified, and if the printing parameter data passes the verification process, verification success feedback information is sent to the terminal device, so that the terminal device displays the verification success feedback information and performs a printing operation based on the printing parameter data. The verification process prevents printing errors, reduces printing failures and waste of printing materials caused by data problems, and further improves the transparency of operations and the convenience of user operations through verification success feedback.

[0083] In one embodiment of the present application, the data interaction may further include the following steps:

[0084] If the printing parameter data passes the verification process, a successful verification prompt message is output, wherein the successful verification prompt message includes a light prompt message or a vibration prompt message.

[0085] Specifically, in addition to sending verification success feedback information to the terminal device to remind the user on the terminal device that complete and accurate printing parameter data has been received, the data interaction device can also prompt the user on the printing device. If the printing parameter data passes the verification process, the data interaction device can output a verification success prompt message. The verification success prompt message can be output by the printing device and can include a light prompt message or a vibration prompt message.

[0086] Optionally, if the printing parameter data passes the verification process, the lighting module can be controlled to light up in a third preset lighting mode to output lighting prompt information, and / or the vibration module can be controlled to vibrate in a third preset vibration mode to output vibration prompt information.

[0087] In the embodiment of the present application, prompts are given by lighting up lights or vibrating, providing timely feedback to the user on the printing device side, reducing the user's misunderstanding of the printing device status, avoiding continuous observation of the device status and delaying other work processes, and improving the convenience of user operations.

[0088] In one embodiment of the present application, the data interaction may further include the following steps:

[0089] If the printing parameter data fails the verification process, verification failure feedback information is sent to the terminal device, so that the terminal device displays the verification failure feedback information, and / or outputs verification failure prompt information, and / or stops executing the printing operation.

[0090] Specifically, if the target data does not match the verification data, it means that the printing parameter data has been omitted or tampered with. It can be determined that the printing parameter data has not passed the verification process. The data interaction device can send verification failure feedback information to the terminal device, so that the terminal device displays the verification failure feedback information, which can be used to inform the user that the printing device has not received complete and correct printing parameter data, so that the user can resend the printing instruction data or repair the terminal device and the printing device. The verification failure feedback information can be displayed on the terminal device in the form of a pop-up window, a ringing sound, or a vibration. For example, the terminal device can pop up a window displaying "Print parameter verification failed".

[0091] In addition to sending verification failure feedback information to the terminal device, the data interaction device can also output verification failure prompt information on the printing device side, wherein the verification failure prompt information can include light prompt information or vibration prompt information. If the printing parameter data fails to pass the verification process, the light prompt information can be lighting according to the fourth preset lighting mode, and the vibration prompt information can be vibrating according to the fourth preset vibration mode. The first preset lighting mode, the second preset lighting mode, the third preset lighting mode and the fourth preset lighting mode can be different to distinguish them. Similarly, the first preset vibration mode, the second preset vibration mode, the third preset vibration mode and the fourth preset vibration mode can also be different.

[0092] The data interaction device can also control the printing device to stop the printing operation to avoid printing operation under the condition of wrong printing parameters, resulting in waste of printing materials. If the printing device is a wire numbering machine, since the wire numbering machine can not only print the wire tube, but also cut the wire tube and move the wire tube for printing and cutting, the data interaction device can also stop the cutting and moving processing to avoid printing, cutting and moving the wire tube incorrectly when the target specifications are not suitable, thereby avoiding waste of wire tube.

[0093] In an embodiment of the present application, when the printing parameter data verification fails, a prompt message is output to the user and the printing operation is stopped, ensuring that only correct and complete data is processed, thereby ensuring the accuracy of the printing operation and reducing the waste of printing materials. The prompt information improves the transparency of the operation, thereby improving the convenience of user operation.

[0094] The following will be combined with the attached Figure 7 -Attached Figure 8 , the data interaction device provided in the embodiment of the present application is introduced in detail. It should be noted that the attached Figure 7 -Attached Figure 8 The data interaction device in the present application is used to execute Figure 1-Figure 6 For the convenience of explanation, only the part related to the embodiment of the present application is shown. For the specific technical details not disclosed, please refer to the present application. Figure 1-Figure 6 The embodiment shown.

[0095] See also Figure 7 , which shows a schematic diagram of the structure of a data interaction device provided by an exemplary embodiment of the present application. The data interaction device can be implemented as all or part of the device through software, hardware or a combination of both. The device 1 includes a parsing processing unit 11, an information feedback unit 12, a parameter acquisition unit 13 and a printing operation unit 14.

[0096] The parsing and processing unit 11 is used to obtain the printing instruction data sent by the terminal device and parse and process the printing instruction data;

[0097] An information feedback unit 12, configured to send parsing completion feedback information to the terminal device if there are header data and tail data in the printing instruction data, so that the terminal device displays the parsing completion feedback information;

[0098] A parameter acquisition unit 13, used to acquire printing parameter data in the printing instruction data;

[0099] The printing operation unit 14 is used to perform a printing operation based on the printing parameter data.

[0100] In this embodiment, the printing instruction data sent by the terminal device is obtained, and the printing instruction data is parsed and processed. If the printing instruction data contains header data and tail data, parsing completion feedback information is sent to the terminal device, so that the terminal device displays the parsing completion feedback information, obtains the printing parameter data in the printing instruction data, and performs a printing operation based on the printing parameter data. By splicing the header data, printing parameters and tail data, the printing device parses and obtains the printing parameters after detecting the header data and tail data, thereby avoiding the sticking of the front and back data, improving the accuracy of data parsing, and ensuring the normal operation of the printing device.

[0101] See also Figure 8 , which shows a schematic diagram of the structure of a data interaction device provided by an exemplary embodiment of the present application. The data interaction device can be implemented as all or part of the device through software, hardware or a combination of both. The device 1 includes a parsing processing unit 11, an information feedback unit 12, a parsing completion prompt unit 15, a parsing failure prompt unit 16, a parameter acquisition unit 13, a verification data acquisition unit 17, a printing operation unit 14, a verification success prompt unit 18 and a verification failure prompt unit 19.

[0102] The parsing and processing unit 11 is used to obtain the printing instruction data sent by the terminal device and parse and process the printing instruction data;

[0103] Optionally, the parsing processing unit 11 is specifically used to obtain first data in the header of the printing instruction data based on the first byte length, and if the first data matches a preset header data format, determine the first data as header data;

[0104] The second data is acquired at the tail of the printing instruction data based on the second byte length, and if the second data matches a preset tail data format, the second data is determined as the tail data.

[0105] An information feedback unit 12, configured to send parsing completion feedback information to the terminal device if there are header data and tail data in the printing instruction data, so that the terminal device displays the parsing completion feedback information;

[0106] The parsing completion prompt unit 15 is used to output parsing completion prompt information if there are header data and tail data in the printing instruction data, wherein the parsing completion prompt information includes light prompt information or vibration prompt information.

[0107] The parsing failure prompting unit 16 is used to send parsing failure feedback information to the terminal device if the print instruction data does not contain both the header data and the tail data, so that the terminal device displays the parsing failure feedback information.

[0108] And / or, output parsing failure prompt information,

[0109] And / or, stop the printing operation.

[0110] A parameter acquisition unit 13, used to acquire printing parameter data in the printing instruction data;

[0111] Optionally, the parameter acquisition unit 13 is specifically used to acquire byte length data spliced ​​after the header data;

[0112] Based on the byte length data, print parameter data in the print instruction data is acquired, wherein the byte length of the print parameter data is the same as the byte length data.

[0113] Optionally, the parameter acquisition unit 13 is specifically used to obtain the byte length corresponding to the byte length data;

[0114] After being spliced ​​with the byte length data, third data satisfying the byte length is acquired, and the third data is determined as the printing parameter data in the printing instruction data.

[0115] A verification data acquisition unit 17, used to acquire verification data between the printing parameter data and the tail data;

[0116] The printing operation unit 14 is used to perform a printing operation based on the printing parameter data.

[0117] Optionally, the printing operation unit 14 is specifically used to perform verification processing on the printing parameter data;

[0118] If the printing parameter data passes the verification process, sending verification success feedback information to the terminal device, so that the terminal device displays the verification success feedback information;

[0119] A printing operation is performed based on the printing parameter data.

[0120] Optionally, the printing operation unit 14 is specifically used to encrypt the printing parameter data using a preset encryption method to obtain target data;

[0121] If the target data matches the verification data, it is determined that the printing parameter data passes the verification process.

[0122] The verification success prompt unit 18 is used to output a verification success prompt message if the printing parameter data passes the verification process, wherein the verification success prompt message includes a light prompt message or a vibration prompt message.

[0123] The verification failure prompt unit 19 is used to send verification failure feedback information to the terminal device if the printing parameter data fails to pass the verification process, so that the terminal device displays the verification failure feedback information.

[0124] And / or, output verification failure prompt information,

[0125] And / or, stop the printing operation.

[0126] In this embodiment, the print instruction data sent by the terminal device is obtained, and the first data is obtained at the head of the print instruction data based on the first byte length. If the first data matches the preset header data format, the first data is determined as the header data. The second data is obtained at the tail of the print instruction data based on the second byte length. If the second data matches the preset tail data format, the second data is determined as the tail data. The header data and the tail data are determined by the pre-set byte length and data format, which improves the accuracy of obtaining the header data and the tail data, avoids the erroneous reception of the print instruction data due to the tampering or omission of the header and tail data, and improves the accuracy of receiving and parsing the print instruction data. If the header data and the tail data exist in the print instruction data, the parsing completion feedback information is sent to the terminal device so that the terminal device displays the parsing completion feedback information, and prompts are given by lighting a light or vibrating, which provides timely feedback to the user on the printing device side, reduces the user's misunderstanding of the printing device status, avoids the continuous observation of the device status and delays other work processes, and improves the convenience of user operation. The byte length data spliced ​​after the header data is obtained, the byte length corresponding to the byte length data is obtained, the third data spliced ​​after the byte length data and meeting the byte length is obtained, and the third data is determined as the printing parameter data in the printing instruction data. The printing parameter data is quickly located through the byte length data, so that the data structure is clearer and the efficiency of data parsing is improved.

[0127] The printing parameter data is verified and processed. If the printing parameter data passes the verification process, verification success feedback information is sent to the terminal device, so that the terminal device displays the verification success feedback information and performs printing operations based on the printing parameter data. Printing errors are prevented through verification processing, and printing failures and waste of printing materials caused by data problems are reduced. The feedback of successful verification further improves the transparency of operations and the convenience of user operations, so that the printing device can parse and obtain printing parameters after detecting the header data and the tail data, thereby avoiding the sticking of the front and back data, improving the accuracy of data analysis, and ensuring the normal operation of the printing device. And when it is detected that the printing instruction data is incomplete or wrong, and the printing parameter data verification fails, a prompt message is output to the user and the printing operation is stopped to ensure that only correct and complete data is processed, ensuring the accuracy of the printing operation and reducing the waste of printing materials. The prompt message improves the transparency of operations, thereby improving the convenience of user operations.

[0128] It should be noted that the data interaction device provided in the above embodiment only uses the division of the above functional modules as an example when executing the data interaction method. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the data interaction device provided in the above embodiment and the data interaction method embodiment belong to the same concept, and the implementation process thereof is detailed in the method embodiment, which will not be repeated here.

[0129] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.

[0130] The present application also provides a computer storage medium, which can store multiple instructions, and the instructions are suitable for being loaded and executed by a processor as described above. Figure 1-Figure 6 The data interaction method of the embodiment shown in the figure can be specifically executed by referring to Figure 1-Figure 6 The specific description of the illustrated embodiment will not be repeated here.

[0131] The present application also provides a computer program product, which stores at least one instruction, and the at least one instruction is loaded and executed by the processor as described above. Figure 1-Figure 6 The data interaction method of the embodiment shown in the figure can be specifically executed by referring to Figure 1-Figure 6 The specific description of the illustrated embodiment will not be repeated here.

[0132] Please refer to Fig. 9, which shows a block diagram of the structure of an electronic device provided by an exemplary embodiment of the present application. The electronic device in the present application may include one or more of the following components: a processor 110, a memory 120, an input device 130, an output device 140, and a bus 150. The processor 110, the memory 120, the input device 130, and the output device 140 may be connected via the bus 150.

[0133] The processor 110 may include one or more processing cores. The processor 110 uses various interfaces and lines to connect various parts of the entire electronic device, and executes various functions and processes data of the terminal 100 by running or executing instructions, programs, code sets or instruction sets stored in the memory 120, and calling data stored in the memory 120. Optionally, the processor 110 can be implemented in at least one hardware form of digital signal processing (DSP), field-programmable gate array (FPGA), and programmable logic array (PLA). The processor 110 can integrate one or a combination of a central processing unit (CPU), a graphics processing unit (GPU), and a modem. Among them, the CPU mainly processes the operating system, user pages, and applications; the GPU is responsible for rendering and drawing display content; and the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 110, but may be implemented separately through a communication chip.

[0134] The memory 120 may include a random access memory (RAM) or a read-only memory (ROM). Optionally, the memory 120 includes a non-transitory computer-readable medium (Non-Transitory Computer-Readable Storage Medium). The memory 120 may be used to store instructions, programs, codes, code sets or instruction sets. The memory 120 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned various method embodiments, etc. The operating system may be an Android system, including a system deeply developed based on the Android system, an IOS system developed by Apple, including a system deeply developed based on the IOS system or other systems.

[0135] The memory 120 can be divided into an operating system space and a user space. The operating system runs in the operating system space, and native and third-party applications run in the user space. In order to ensure that different third-party applications can achieve good operating results, the operating system allocates corresponding system resources to different third-party applications. However, the requirements for system resources in different application scenarios in the same third-party application are also different. For example, in the local resource loading scenario, the third-party application has higher requirements for disk reading speed; in the animation rendering scenario, the third-party application has higher requirements for GPU performance. The operating system and third-party applications are independent of each other, and the operating system often cannot perceive the current application scenario of the third-party application in a timely manner, resulting in the operating system being unable to perform targeted system resource adaptation according to the specific application scenario of the third-party application.

[0136] In order for the operating system to distinguish the specific application scenarios of third-party applications, it is necessary to open up data communication between third-party applications and the operating system so that the operating system can obtain the current scenario information of third-party applications at any time, and then perform targeted system resource adaptation based on the current scenario.

[0137] The input device 130 is used to receive input commands or data, and includes but is not limited to a keyboard, a mouse, a camera, a microphone, or a touch device. The output device 140 is used to output commands or data, and includes but is not limited to a display device and a speaker. In one example, the input device 130 and the output device 140 can be combined, and the input device 130 and the output device 140 are touch screen displays.

[0138] The touch display screen can be designed as a full screen, a curved screen or a special-shaped screen. The touch display screen can also be designed as a combination of a full screen and a curved screen, or a combination of a special-shaped screen and a curved screen, which is not limited in the embodiments of the present application.

[0139] In addition, those skilled in the art will appreciate that the structure of the electronic device shown in the above drawings does not constitute a limitation on the electronic device, and the electronic device may include more or fewer components than shown, or combine certain components, or arrange the components differently. For example, the electronic device also includes a radio frequency circuit, an input unit, a sensor, an audio circuit, a wireless fidelity (WiFi) module, a power supply, a Bluetooth module and other components, which will not be described in detail here.

[0140] exist Fig. 9 In the electronic device shown, the processor 110 may be used to call the data interaction application stored in the memory 120, and specifically perform the following operations:

[0141] Acquire the printing instruction data sent by the terminal device, and parse and process the printing instruction data;

[0142] If the print instruction data contains header data and tail data, sending parsing completion feedback information to the terminal device, so that the terminal device displays the parsing completion feedback information;

[0143] Acquire printing parameter data in the printing instruction data;

[0144] A printing operation is performed based on the printing parameter data.

[0145] In one embodiment, when the processor 110 parses the printing instruction data, the processor 110 specifically performs the following operations:

[0146] acquiring first data in the header of the printing instruction data based on the first byte length, and determining the first data as header data if the first data matches a preset header data format;

[0147] The second data is acquired at the tail of the printing instruction data based on the second byte length, and if the second data matches a preset tail data format, the second data is determined as the tail data.

[0148] In one embodiment, when the processor 110 executes to obtain the printing parameter data in the printing instruction data, the processor 110 specifically performs the following operations:

[0149] Obtain byte length data spliced ​​after the header data;

[0150] Based on the byte length data, print parameter data in the print instruction data is acquired, wherein the byte length of the print parameter data is the same as the byte length data.

[0151] In one embodiment, when the processor 110 executes the byte length data to obtain the printing parameter data in the printing instruction data, the processor 110 specifically performs the following operations:

[0152] Obtain the byte length corresponding to the byte length data;

[0153] After being spliced ​​with the byte length data, third data satisfying the byte length is acquired, and the third data is determined as the printing parameter data in the printing instruction data.

[0154] In one embodiment, when executing the data interaction method, the processor 110 further performs the following operations:

[0155] If the print instruction data contains header data and tail data, then outputting a parsing completion prompt message, wherein the parsing completion prompt message includes a light-on prompt message or a vibration prompt message.

[0156] In one embodiment, when executing the data interaction method, the processor 110 further performs the following operations:

[0157] If the print instruction data does not contain both the header data and the tail data, then sending parsing failure feedback information to the terminal device so that the terminal device displays the parsing failure feedback information.

[0158] And / or, output parsing failure prompt information,

[0159] And / or, stop the printing operation.

[0160] In one embodiment, when the processor 110 performs a printing operation based on the printing parameter data, the processor 110 specifically performs the following operations:

[0161] Performing verification processing on the printing parameter data;

[0162] If the printing parameter data passes the verification process, sending verification success feedback information to the terminal device, so that the terminal device displays the verification success feedback information;

[0163] A printing operation is performed based on the printing parameter data.

[0164] In one embodiment, when executing the data interaction method, the processor 110 further performs the following operations:

[0165] If the printing parameter data passes the verification process, a verification success prompt message is output, wherein the verification success prompt message includes a light prompt message or a vibration prompt message.

[0166] In one embodiment, when executing the data interaction method, the processor 110 further performs the following operations:

[0167] If the printing parameter data fails the verification process, verification failure feedback information is sent to the terminal device, so that the terminal device displays the verification failure feedback information.

[0168] And / or, output verification failure prompt information,

[0169] And / or, stop the printing operation.

[0170] In one embodiment, when executing the data interaction method, the processor 110 further performs the following operations:

[0171] Acquire verification data between the printing parameter data and the tail data;

[0172] When performing the verification process on the printing parameter data, the following operations are specifically performed:

[0173] The printing parameter data is encrypted using a preset encryption method to obtain target data;

[0174] If the target data matches the verification data, it is determined that the printing parameter data passes the verification process.

[0175] In this embodiment, the print instruction data sent by the terminal device is obtained, and the first data is obtained at the head of the print instruction data based on the first byte length. If the first data matches the preset header data format, the first data is determined as the header data. The second data is obtained at the tail of the print instruction data based on the second byte length. If the second data matches the preset tail data format, the second data is determined as the tail data. The header data and the tail data are determined by the pre-set byte length and data format, which improves the accuracy of obtaining the header data and the tail data, avoids the erroneous reception of the print instruction data due to the tampering or omission of the header and tail data, and improves the accuracy of receiving and parsing the print instruction data. If the header data and the tail data exist in the print instruction data, the parsing completion feedback information is sent to the terminal device so that the terminal device displays the parsing completion feedback information, and prompts are given by lighting a light or vibrating, which provides timely feedback to the user on the printing device side, reduces the user's misunderstanding of the printing device status, avoids the continuous observation of the device status and delays other work processes, and improves the convenience of user operation. The byte length data spliced ​​after the header data is obtained, the byte length corresponding to the byte length data is obtained, the third data spliced ​​after the byte length data and meeting the byte length is obtained, and the third data is determined as the printing parameter data in the printing instruction data. The printing parameter data is quickly located through the byte length data, so that the data structure is clearer and the efficiency of data parsing is improved.

[0176] The printing parameter data is verified and processed. If the printing parameter data passes the verification process, verification success feedback information is sent to the terminal device, so that the terminal device displays the verification success feedback information and performs printing operations based on the printing parameter data. Printing errors are prevented through verification processing, and printing failures and waste of printing materials caused by data problems are reduced. The feedback of successful verification further improves the transparency of operations and the convenience of user operations, so that the printing device can parse and obtain printing parameters after detecting the header data and the tail data, thereby avoiding the sticking of the front and back data, improving the accuracy of data analysis, and ensuring the normal operation of the printing device. And when it is detected that the printing instruction data is incomplete or wrong, and the printing parameter data verification fails, a prompt message is output to the user and the printing operation is stopped to ensure that only correct and complete data is processed, ensuring the accuracy of the printing operation and reducing the waste of printing materials. The prompt message improves the transparency of operations, thereby improving the convenience of user operations.

[0177] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing related hardware through a computer program, and the program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The storage medium can be a disk, an optical disk, a read-only storage memory, or a random access memory, etc.

[0178] The above disclosure is only the preferred embodiment of the present application, which certainly cannot be used to limit the scope of rights of the present application. Therefore, equivalent changes made according to the claims of the present application are still within the scope covered by the present application.

[0179] It should be noted that the information (including but not limited to user device information, user personal information, etc.), data (including but not limited to data used for analysis, stored data, displayed data, etc.) and signals involved in the embodiments of this specification are all authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of relevant countries and regions. For example, the printing instruction data, printing parameter data, etc. involved in this specification are all obtained with full authorization.

Claims

1. A data interaction method, applied to a printing device, characterized in that: The method comprises: Acquire the printing instruction data sent by the terminal device, and parse and process the printing instruction data; If the print instruction data contains header data and tail data, sending parsing completion feedback information to the terminal device, so that the terminal device displays the parsing completion feedback information; Acquire printing parameter data in the printing instruction data; A printing operation is performed based on the printing parameter data.

2. The method according to claim 1, characterized in that The parsing and processing of the printing instruction data includes: acquiring first data in the header of the printing instruction data based on the first byte length, and determining the first data as header data if the first data matches a preset header data format; The second data is acquired at the tail of the printing instruction data based on the second byte length, and if the second data matches a preset tail data format, the second data is determined as the tail data.

3. The method according to claim 1, characterized in that The obtaining of the printing parameter data in the printing instruction data comprises: Obtain byte length data spliced ​​after the header data; Based on the byte length data, print parameter data in the print instruction data is acquired, wherein the byte length of the print parameter data is the same as the byte length data.

4. The method according to claim 3, characterized in that Based on the byte length data, obtaining the printing parameter data in the printing instruction data includes: Obtain the byte length corresponding to the byte length data; After being spliced ​​with the byte length data, third data satisfying the byte length is acquired, and the third data is determined as the printing parameter data in the printing instruction data.

5. The method according to claim 1, characterized in that: The method further comprises: If the print instruction data contains header data and tail data, then outputting a parsing completion prompt message, wherein the parsing completion prompt message includes a light-on prompt message or a vibration prompt message.

6. The method according to claim 1, characterized in that The method further comprises: If the print instruction data does not contain both the header data and the tail data, then sending parsing failure feedback information to the terminal device so that the terminal device displays the parsing failure feedback information. And / or, output parsing failure prompt information, And / or, stop the printing operation.

7. The method according to claim 3, characterized in that The performing a printing operation based on the printing parameter data comprises: Performing verification processing on the printing parameter data; If the printing parameter data passes the verification process, sending verification success feedback information to the terminal device, so that the terminal device displays the verification success feedback information; A printing operation is performed based on the printing parameter data.

8. The method according to claim 7, characterized in that The method further comprises: If the printing parameter data passes the verification process, a verification success prompt message is output, wherein the verification success prompt message includes a light prompt message or a vibration prompt message.

9. The method according to claim 7, characterized in that: The method further comprises: If the printing parameter data fails the verification process, verification failure feedback information is sent to the terminal device, so that the terminal device displays the verification failure feedback information. And / or, output verification failure prompt information, And / or, stop the printing operation.

10. The method according to claim 7, characterized in that The method further comprises: Acquire verification data between the printing parameter data and the tail data; The verifying process of the printing parameter data includes: The printing parameter data is encrypted using a preset encryption method to obtain target data; If the target data matches the verification data, it is determined that the printing parameter data passes the verification process.

11. A data interaction device, characterized in that: The device comprises: A parsing and processing unit, used for acquiring the printing instruction data sent by the terminal device, and parsing and processing the printing instruction data; An information feedback unit, configured to send parsing completion feedback information to the terminal device if the print instruction data contains header data and tail data, so that the terminal device displays the parsing completion feedback information; A parameter acquisition unit, used for acquiring printing parameter data in the printing instruction data; A printing operation unit is used to perform a printing operation based on the printing parameter data.

12. A computer storage medium, characterized in that: The computer storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor and executing the method steps according to any one of claims 1 to 10.

13. An electronic device, characterized in that: include: A processor and a memory; wherein the memory stores a computer program, and the computer program is suitable for being loaded by the processor and executing the method steps as claimed in any one of claims 1 to 10.

Citation Information

Patent Citations

  • Format expression-based information extraction method and device

    CN106407869A

  • Printing method, system and electronic device

    CN109254740A

  • Communication method and device, electronic equipment and storage medium

    CN110545376A

  • Printing data transmission method, terminal, printer and printing system

    CN110879693A

  • Printer instruction head and tail analysis method and device, equipment and storage medium

    CN112818087A