CN110874195A - Printing language identification method and device, electronic equipment and storage medium - Google Patents

Printing language identification method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN110874195A
CN110874195A CN201811404451.6A CN201811404451A CN110874195A CN 110874195 A CN110874195 A CN 110874195A CN 201811404451 A CN201811404451 A CN 201811404451A CN 110874195 A CN110874195 A CN 110874195A
Authority
CN
China
Prior art keywords
printing
data
target
print
language
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201811404451.6A
Other languages
Chinese (zh)
Other versions
CN110874195B (en
Inventor
陈震东
黄显澍
王小丰
肖新光
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Harbin Antian Science And Technology Group Co ltd
Original Assignee
Harbin Antian Science And Technology Group Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Harbin Antian Science And Technology Group Co ltd filed Critical Harbin Antian Science And Technology Group Co ltd
Priority to CN201811404451.6A priority Critical patent/CN110874195B/en
Publication of CN110874195A publication Critical patent/CN110874195A/en
Application granted granted Critical
Publication of CN110874195B publication Critical patent/CN110874195B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1202Dedicated interfaces to print systems specifically adapted to achieve a particular effect
    • G06F3/1203Improving or facilitating administration, e.g. print management
    • G06F3/1209Improving or facilitating administration, e.g. print management resulting in adapted or bridged legacy communication protocols, e.g. emulation, protocol extension
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1278Dedicated interfaces to print systems specifically adapted to adopt a particular infrastructure
    • G06F3/1285Remote printer device, e.g. being remote from client or server
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/26Special purpose or proprietary protocols or architectures
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Accessory Devices And Overall Control Thereof (AREA)

Abstract

The embodiment of the invention discloses a printing language identification method and device, electronic equipment and a storage medium, relates to the technical field of information security, and can identify a printing language used by printing equipment through printing data transmitted to the printing equipment, so that the identification of the printing language is more universal. The method comprises the following steps: when executing printing operation, acquiring printing data transmitted to target printing equipment; and determining the printing language used by the target printing device according to the acquired printing data. The invention can be used in the information security of printing equipment.

Description

Printing language identification method and device, electronic equipment and storage medium
Technical Field
The invention relates to the technical field of network security, in particular to a printing language identification method, a printing language identification device, electronic equipment and a storage medium.
Background
The printing equipment is the office equipment which is most widely used at present and is the necessary printing equipment for enterprises and even families. In general, a printing apparatus may be connected to one terminal apparatus through a network cable, or may be connected to a switch or a server so as to be connected to a plurality of terminal apparatuses through a network.
The printing apparatus is a network-connected apparatus, and its security problem is not negligible. However, in the field of security of printing devices, printing languages have not been valued and applied. Due to different printing languages, the functions are different, the amount of information carried is different, and the safety is different. Therefore, different printing languages are of great significance for the checking and protection of information security of the printing apparatus.
At present, except that the printing language can be known from the file name of a few driver software or the printing device list after the driver is installed, the printing language of most network printing devices is only known by the manufacturer of the device, and no other way is used for obtaining the printing language information.
Disclosure of Invention
In view of the above, embodiments of the present invention provide a method, an apparatus, an electronic device, and a storage medium for identifying a printing language used by a printing device through print data transmitted to the printing device, so that the identification of the printing language is more versatile.
In a first aspect, an embodiment of the present invention provides a printing language identification method, including: when executing printing operation, acquiring printing data transmitted to target printing equipment; and determining the printing language used by the target printing device according to the acquired printing data.
Optionally, the acquiring the print data transmitted to the target printing device includes at least one of: acquiring the printing data from a network cable connecting a terminal and the target printing equipment; acquiring the printing data from a mirror image interface of a switch connecting a terminal and the target printing equipment; and acquiring the printing data from the inside of the terminal connected with the target printing equipment.
Optionally, the determining, according to the acquired print data, a print language used by the target printing device includes: filtering the acquired printing data according to a preset protocol rule and an address rule to obtain at least one first data stream; retrieving a first preset field in the first data stream to find a target data stream from the first data stream; locating a data section describing a print language in the target data stream; retrieving a second preset field in the data field to determine a print language used by the target printing device.
Optionally, the Protocol rule includes a TCP (Transmission Control Protocol), and the address rule includes a network address and a preset port number of the target printing device.
Optionally, the print data is organized in a data structure according to a print language used by the target printing device.
In a second aspect, an embodiment of the present invention provides a print language recognition apparatus, including: an acquisition unit configured to acquire print data transmitted to a target printing apparatus when a printing operation is performed; a determination unit configured to determine a printing language used by the target printing apparatus based on the print data acquired by the acquisition unit.
Optionally, the obtaining unit includes at least one of: the first acquisition module is used for acquiring the printing data from a network cable connecting a terminal and the target printing equipment; the second acquisition module is used for acquiring the printing data from a mirror image interface of a switch connecting the terminal and the target printing equipment; and the third acquisition module is used for acquiring the printing data from the inside of the terminal connected with the target printing equipment.
Optionally, the determining unit includes: the filtering module is used for filtering the acquired printing data according to a preset protocol rule and an address rule to obtain at least one first data stream; a retrieval module, configured to retrieve a first preset field in the first data stream to find a target data stream from the first data stream; a positioning module for positioning a data section describing a print language in the target data stream; a determination module to retrieve a second preset field in the data field to determine a print language used by the target printing device.
Optionally, the protocol rule includes a TCP protocol, and the address rule includes a network address and a preset port number of the target printing device.
Optionally, the print data is organized in a data structure according to a print language used by the target printing device.
In a third aspect, an embodiment of the present invention further provides an electronic device, including: the device comprises a shell, a processor, a memory, a circuit board and a power circuit, wherein the circuit board is arranged in a space enclosed by the shell, and the processor and the memory are arranged on the circuit board; a power supply circuit for supplying power to each circuit or device of the electronic apparatus; the memory is used for storing executable program codes; the processor executes a program corresponding to the executable program code by reading the executable program code stored in the memory, for executing any one of the printing language identification methods provided by the embodiments of the present invention.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium storing one or more programs, which are executable by one or more processors to implement any one of the print language identification methods provided by the embodiments of the present invention.
According to the printing language identification method, the printing language identification device, the electronic equipment and the storage medium, the printing data transmitted to the target printing equipment can be acquired when the printing operation is executed, and the printing language used by the target printing equipment is determined according to the printing data, so that the printing data can be acquired when the printing data formed by the printed file is transmitted to the printing equipment and the printing language used by the printing equipment can be acquired as long as the printing equipment can execute the operation of printing the file without depending on related information provided by a drive manufacturer, and therefore, the application scene of printing language identification is effectively expanded, and the identification of the printing language is more universal.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a flow chart of a print language identification method provided by an embodiment of the present invention;
FIG. 2 is a detailed flowchart of a print language identification method according to an embodiment of the present invention;
FIG. 3 is a schematic structural diagram of a print language recognition apparatus according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
Embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
It should be understood that the described embodiments are only some embodiments of the invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In a first aspect, embodiments of the present invention provide a printing language identification method, which can identify a printing language used by a printing device through printing data transmitted to the printing device, thereby making identification of the printing language more versatile.
As shown in fig. 1, a print language identification method provided by an embodiment of the present invention may include:
s11, when executing printing operation, obtaining the printing data transmitted to the target printing device;
in the printing application, the terminal can send the file to be printed to the target printing device in a specific data format, and the target printing device can execute corresponding printing operation after receiving the file to obtain the printed file. In order to realize data transmission, the terminal and the target printing device need to establish communication connection. Optionally, in the embodiment of the present invention, the printing device may be connected to one terminal device through a network cable, or may be connected to a switch or a server, so as to be connected to a plurality of terminal devices through a network. When the print data is transmitted based on these connection modes, the print data can be acquired at any position on the print data transmission link.
When the terminal transmits printing data to the printing equipment, the terminal and the printing equipment need to communicate by using a mutually understood language, therefore, a driver of the printing equipment can be installed on the terminal, when the printing is needed, a file to be printed can be driven by the driver, and is output from the terminal to a link and transmitted to the printing equipment in a specific format, and the grammatical rule of the specific format is the printing language.
Optionally, in order not to affect the normal printing operation of the file, the print data acquired in this step may be data copied from one link, and the print data may be normally transmitted to the printing device to complete the printing operation.
S12, determining the printing language used by the target printing device according to the acquired printing data.
In this step, after the print data is acquired, the print data may be analyzed, and the corresponding print language may be identified according to characteristics such as information carried in the print data or an organization structure of the print data.
The method for identifying the printing language provided by the embodiment of the invention can acquire the printing data transmitted to the target printing equipment when executing the printing operation, and determine the printing language used by the target printing equipment according to the printing data, so that the printing data can be acquired when the printing data formed by the printed file is transmitted to the printing equipment and the printing language used by the printing equipment can be obtained as long as the printing equipment can execute the operation of printing the file without depending on the related information provided by a drive manufacturer, thereby effectively expanding the application scene of the printing language identification and enabling the identification of the printing language to have universality.
In step S11, the print data transmitted to the target printing device may be acquired in various ways. Optionally, in an embodiment of the present invention, if the terminal and the target printing device are directly connected through a network cable, the print data may be acquired from the network cable connecting the terminal and the target printing device; for example, the print language recognition device may be serially connected to a link between the terminal and the target printing apparatus, and print data is input from one end of the print language recognition device, output from the other end, and entered into the target printing apparatus.
In another embodiment of the present invention, if the terminal is connected to the target printing apparatus through the switch, the print data may be acquired from a mirror interface of the switch connecting the terminal and the target printing apparatus; for example, the print language recognition apparatus may be accessed to a mirror interface of a switch, and print data transmitted from the terminal to the target printing device may be acquired from the mirror interface.
Further, the print data may be acquired from inside a terminal connected to the target printing apparatus, and for example, a print language identification device may be provided in the terminal, so that it is possible to identify what print language is used by the target printing apparatus that performs the printing operation while performing the printing of the document.
After acquiring the print data transmitted to the target printing apparatus, the print language used by the target printing device may be determined from the acquired print data in step S12.
Specifically, in one embodiment of the present invention, determining a printing language used by a target printing device from acquired printing data may include:
filtering the acquired printing data according to a preset protocol rule and an address rule to obtain at least one first data stream;
retrieving a first preset field in the first data stream to find a target data stream from the first data stream;
locating a data section describing a print language in the target data stream;
retrieving a second preset field in the data field to determine a print language used by the target printing device.
Since other data may be transmitted on the link where the print data is transmitted to the target printing device, the data on the link may be filtered, and the data that meets the preset protocol rule and address rule may be retained and the data that does not meet the rule may be discarded. Alternatively, the preset protocol rule and the address rule may be various, as long as the preset protocol rule and the preset address rule correspond to the target printing device, and the embodiment of the present invention does not limit this. As an example, in one embodiment of the present invention, the protocol rule may include a TCP protocol, and the address rule may include a network address of the target printing device and a preset port number, where the preset port number may be, for example, 9100 port or 515 port, etc.
After filtering, one or more first data streams may be obtained, where each first data stream may include a plurality of data packets. Each data packet encapsulates print data, control information, status information, and the like in a predetermined format. In one embodiment of the invention, the protocol to which the print data is subjected is the TCP protocol, and thus the first data stream resulting from the filtering is a TCP stream. In other embodiments of the present invention, if the print data complies with other protocols, the first data stream may also be other streams, which is not limited by the embodiments of the present invention.
Among these first data streams obtained, some are for recording data itself to be printed and some are for recording control information or status information. The format in which these print data are used is dependent on the print language, i.e. the print data are organized in a data structure according to the print language used by the target printing device. In order to obtain the relevant information of the printing language, in an embodiment of the present invention, the corresponding printing language can be obtained according to the structural features by analyzing the organization structure of the printing data.
Optionally, in another embodiment of the present invention, the used printing language may also be known according to control information or status information in the data stream. Specifically, a first preset field may be retrieved from the first data stream to find a target data stream from the first data stream, where the target data stream is a data stream in which the relevant information of the printing language is located, and the first preset field may be a character for identifying an attribute of the data stream.
For example, if N TCP data streams are obtained after filtering, each TCP data stream is parsed. If the word of "% -12345X @ PJL" can be found, that is, the data stream is printed, the stream is stored, and if the keyword is not found, the searching in the next TCP data stream is continued until the query of all data streams is finished.
After the target data stream is found, a data section describing the printing language can be further positioned in the target data stream; for example, for the obtained target data stream, the data segment describing the printing language can be located from the beginning of the data stream to "%% end defaults", then the data of the data stream from the beginning to "%% end defaults" is extracted, and the extracted data is saved.
Having located the data field, a second predetermined field may be retrieved in the data field to determine the print language used by the target printing device. Wherein the second preset field is a character identifying a printing language. For example, in an embodiment of the present invention, a row in which the second preset field "@ PJL entry" is located may be extracted from the located data segment, and the above-mentioned character string in the row is followed by "@ PJL entry" @ POSTSCRIPT ", that is, the printing LANGUAGE of the current printing.
Specifically, the correspondence between the second preset field and the printing language includes:
the ' @ PJL ENTER LANGUAGE ═ POSTSCRIPT ', POSTSCRIPT ' is obtained after extraction, and the printing LANGUAGE is PS LANGUAGE;
"@ PJL ENTER flag ═ PCL", which was obtained after extraction, indicating that the printing LANGUAGE was PCL 5;
"@ PJL ENTER flag ═ PCIXL", and "PCIXL" is obtained after extraction, indicating that the print LANGUAGE is PCL 6.
The printing language identification method provided by the embodiment of the present invention is explained in detail by specific embodiments below.
As shown in fig. 2, a print language identification method provided by an embodiment of the present invention may include:
s201, when the printing operation is executed, all the flow data of the link where the target printing device is located are obtained.
Optionally, the print document may be in any format such as Word, PDF, text document, etc., and all print data may be converted into data organized according to different print language formats when being driven to the link by printing, and accordingly, all flow data related to the printing device may be obtained from the link;
s202, carrying out primary filtering on the obtained flow data to obtain a data packet of a preset data transmission port of the target printing equipment.
Optionally, the obtained data packet specifically includes a data packet whose filtering obtained protocol is TCP, target IP is a printing device, and data port is 9100 or 515. If the data still exist after the filtering, storing the filtered data packet, otherwise, prompting that the printing data is invalid, and ending.
S203, further analyzing the filtered data packets to obtain a plurality of TCP data streams;
and S204, analyzing each TCP data stream. If the word "% -12345X @ PJL" can be found, the word is the target data stream for printing, and the target data stream is saved. If the keyword is not found, the searching in the next TCP data stream is continued until the query of all data streams is finished.
S205, for the obtained target data stream, locating the data section describing the printing language from the beginning of the data stream to the "%% EndDefaults", extracting the data section from the beginning to the "%% EndDefaults", and storing the data section.
S206, extract the row of "@ PJL ENTER flag" in the located data segment, and the printing LANGUAGE of this printing is the "@ PJL ENTER flag" following the character string in this row.
In a second aspect, embodiments of the present invention further provide a print language identification apparatus, which can identify a print language used by a printing device through print data transmitted to the printing device, thereby making identification of the print language more versatile.
As shown in fig. 3, a print language identification apparatus according to an embodiment of the present invention includes:
an acquisition unit 31 for acquiring print data transmitted to a target printing apparatus when a printing operation is performed;
a determination unit 32 configured to determine a printing language used by the target printing apparatus based on the print data acquired by the acquisition unit.
The device for identifying the printing language provided by the embodiment of the invention can acquire the printing data transmitted to the target printing equipment when executing the printing operation, and determine the printing language used by the target printing equipment according to the printing data, so that the device does not need to rely on relevant information provided by a drive manufacturer, and can acquire the printing data and know the printing language used by the printing equipment when the printing data formed by the printed file is transmitted to the printing equipment as long as the printing equipment can execute the operation of printing the file, thereby effectively expanding the application scene of the identification of the printing language and ensuring that the identification of the printing language has more universality.
Optionally, the obtaining unit 31 may include at least one of the following:
the first acquisition module is used for acquiring the printing data from a network cable connecting a terminal and the target printing equipment;
the second acquisition module is used for acquiring the printing data from a mirror image interface of a switch connecting the terminal and the target printing equipment;
and the third acquisition module is used for acquiring the printing data from the inside of the terminal connected with the target printing equipment.
Optionally, the determining unit 32 may include:
the filtering module is used for filtering the acquired printing data according to a preset protocol rule and an address rule to obtain at least one first data stream;
a retrieval module, configured to retrieve a first preset field in the first data stream to find a target data stream from the first data stream;
a positioning module for positioning a data section describing a print language in the target data stream;
a determination module to retrieve a second preset field in the data field to determine a print language used by the target printing device.
Optionally, the protocol rule includes a TCP protocol, and the address rule includes a network address and a preset port number of the target printing device.
Optionally, the print data is organized in a data structure according to a print language used by the target printing device.
In a third aspect, embodiments of the present invention provide an electronic device capable of identifying a print language used by a printing device by print data transmitted to the printing device, thereby making identification of the print language more versatile.
As shown in fig. 4, an electronic device provided in an embodiment of the present invention may include: the device comprises a shell 41, a processor 42, a memory 43, a circuit board 44 and a power circuit 45, wherein the circuit board 44 is arranged inside a space enclosed by the shell 41, and the processor 42 and the memory 43 are arranged on the circuit board 44; a power supply circuit 45 for supplying power to each circuit or device of the electronic apparatus; the memory 43 is used for storing executable program code; the processor 42 executes a program corresponding to the executable program code by reading the executable program code stored in the memory 43, for executing the printing language identification method described in any of the foregoing embodiments.
For specific execution processes of the above steps by the processor 42 and further steps executed by the processor 42 by running the executable program code, reference may be made to the description of the foregoing embodiments, which are not described herein again.
The electronic device exists in a variety of forms, including but not limited to:
(1) a mobile communication device: such devices are characterized by mobile communications capabilities and are primarily targeted at providing voice, data communications. Such terminals include: smart phones (e.g., iphones), multimedia phones, functional phones, and low-end phones, among others.
(2) Ultra mobile personal computer device: the equipment belongs to the category of personal computers, has calculation and processing functions and generally has the characteristic of mobile internet access. Such terminals include: PDA, MID, and UMPC devices, etc., such as ipads.
(3) A portable entertainment device: such devices can display and play multimedia content. This type of device comprises: audio, video players (e.g., ipods), handheld game consoles, electronic books, and smart toys and portable car navigation devices.
(4) A server: the device for providing the computing service comprises a processor, a hard disk, a memory, a system bus and the like, and the server is similar to a general computer architecture, but has higher requirements on processing capacity, stability, reliability, safety, expandability, manageability and the like because of the need of providing high-reliability service.
(5) And other electronic equipment with data interaction function.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, where one or more programs are stored, and the one or more programs can be executed by one or more processors to implement any one of the print language identification methods provided in the foregoing embodiments, so that corresponding technical effects can also be achieved, which have been described in detail above and are not described herein again.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. The term "comprising", without further limitation, means that the element so defined is not excluded from the group consisting of additional identical elements in the process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments.
In particular, as for the apparatus embodiment, since it is substantially similar to the method embodiment, the description is relatively simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
For convenience of description, the above devices are described separately in terms of functional division into various units/modules. Of course, the functionality of the units/modules may be implemented in one or more software and/or hardware implementations of the invention.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
The above description is only for the specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present invention are included in the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (12)

1. A print language identification method, comprising:
when executing printing operation, acquiring printing data transmitted to target printing equipment;
and determining the printing language used by the target printing device according to the acquired printing data.
2. The method of claim 1, wherein obtaining print data for transmission to a target printing device comprises at least one of:
acquiring the printing data from a network cable connecting a terminal and the target printing equipment;
acquiring the printing data from a mirror image interface of a switch connecting a terminal and the target printing equipment;
and acquiring the printing data from the inside of the terminal connected with the target printing equipment.
3. The method of claim 1, wherein determining a print language used by the target printing device from the acquired print data comprises:
filtering the acquired printing data according to a preset protocol rule and an address rule to obtain at least one first data stream;
retrieving a first preset field in the first data stream to find a target data stream from the first data stream;
locating a data section describing a print language in the target data stream;
retrieving a second preset field in the data field to determine a print language used by the target printing device.
4. The method according to claim 3, wherein the protocol rule comprises a Transmission Control Protocol (TCP), and the address rule comprises a network address and a preset port number of the target printing device.
5. The method of any of claims 1 to 4, wherein the print data is organized in a data structure according to a print language used by the target printing device.
6. A print language recognition apparatus, comprising:
an acquisition unit configured to acquire print data transmitted to a target printing apparatus when a printing operation is performed;
a determination unit configured to determine a printing language used by the target printing apparatus based on the print data acquired by the acquisition unit.
7. The apparatus of claim 6, wherein the obtaining unit comprises at least one of:
the first acquisition module is used for acquiring the printing data from a network cable connecting a terminal and the target printing equipment;
the second acquisition module is used for acquiring the printing data from a mirror image interface of a switch connecting the terminal and the target printing equipment;
and the third acquisition module is used for acquiring the printing data from the inside of the terminal connected with the target printing equipment.
8. The apparatus of claim 6, wherein the determining unit comprises:
the filtering module is used for filtering the acquired printing data according to a preset protocol rule and an address rule to obtain at least one first data stream;
a retrieval module, configured to retrieve a first preset field in the first data stream to find a target data stream from the first data stream;
a positioning module for positioning a data section describing a print language in the target data stream;
a determination module to retrieve a second preset field in the data field to determine a print language used by the target printing device.
9. The apparatus of claim 8, wherein the protocol rule comprises a Transmission Control Protocol (TCP), and wherein the address rule comprises a network address and a preset port number of the target printing device.
10. The apparatus of any of claims 6 to 9, wherein the print data is organized in a data structure according to a print language used by the target printing device.
11. An electronic device, characterized in that the electronic device comprises: the device comprises a shell, a processor, a memory, a circuit board and a power circuit, wherein the circuit board is arranged in a space enclosed by the shell, and the processor and the memory are arranged on the circuit board; a power supply circuit for supplying power to each circuit or device of the electronic apparatus; the memory is used for storing executable program codes; the processor executes a program corresponding to the executable program code by reading the executable program code stored in the memory, for executing the printing language identification method of any one of the preceding claims 1 to 5.
12. A computer-readable storage medium, characterized in that the computer-readable storage medium stores one or more programs which are executable by one or more processors to implement the print language identification method of any one of the preceding claims 1 to 5.
CN201811404451.6A 2018-11-22 2018-11-22 Printing language identification method, device, electronic equipment and storage medium Active CN110874195B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811404451.6A CN110874195B (en) 2018-11-22 2018-11-22 Printing language identification method, device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811404451.6A CN110874195B (en) 2018-11-22 2018-11-22 Printing language identification method, device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110874195A true CN110874195A (en) 2020-03-10
CN110874195B CN110874195B (en) 2023-07-28

Family

ID=69716333

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811404451.6A Active CN110874195B (en) 2018-11-22 2018-11-22 Printing language identification method, device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110874195B (en)

Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030065499A1 (en) * 2001-10-03 2003-04-03 Carter Bryan Keith System and methods for language translation printing
JP2003345571A (en) * 2002-05-22 2003-12-05 Canon Inc Information processor and information processing method, and printer and printing method
US20040122913A1 (en) * 2002-10-14 2004-06-24 Thinprint Gmbh Method and design for data output/file output in communication networks, as well as a relevant computer program product and relevant computer readable storage medium
CN1869917A (en) * 2005-05-23 2006-11-29 夏普株式会社 Print control program, method of controlling printing apparatus and print control unit
CN101178640A (en) * 2006-11-07 2008-05-14 三星电子株式会社 Image forming apparatus and method of preventing printing error from being generated
US20090316183A1 (en) * 2008-06-23 2009-12-24 Ke Wei Performance Of A Locked Print Architecture
CN102693109A (en) * 2012-05-24 2012-09-26 深圳市开立科技有限公司 Method and device for printing
CN103823644A (en) * 2012-11-16 2014-05-28 株式会社理光 Print processing apparatus and method
EP2950199A1 (en) * 2014-05-28 2015-12-02 Cortado AG Printing method, assembly for realising the printing method and a corresponding computer program and a corresponding computer readable storage medium
CN105869635A (en) * 2016-03-14 2016-08-17 江苏时间环三维科技有限公司 Speech recognition method and system
CN107632797A (en) * 2017-08-14 2018-01-26 深圳赛飞百步印社科技有限公司 The method and device of self-help print
CN107888566A (en) * 2017-10-18 2018-04-06 西安艾润物联网技术服务有限责任公司 Method, intelligent terminal, system and the storage medium of self-help print file
CN107908377A (en) * 2017-11-16 2018-04-13 理光图像技术(上海)有限公司 The analytic method of font coding information and its device and application in print language
CN108388409A (en) * 2018-02-07 2018-08-10 中国平安人寿保险股份有限公司 Print request processing method, device, computer equipment and storage medium
CN108536399A (en) * 2017-03-01 2018-09-14 大数据奥尼尔公司 Automatic printing language detection algorithm
CN108572805A (en) * 2018-03-20 2018-09-25 北京明朝万达科技股份有限公司 Document printing method and system

Patent Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030065499A1 (en) * 2001-10-03 2003-04-03 Carter Bryan Keith System and methods for language translation printing
JP2003345571A (en) * 2002-05-22 2003-12-05 Canon Inc Information processor and information processing method, and printer and printing method
US20040122913A1 (en) * 2002-10-14 2004-06-24 Thinprint Gmbh Method and design for data output/file output in communication networks, as well as a relevant computer program product and relevant computer readable storage medium
CN1869917A (en) * 2005-05-23 2006-11-29 夏普株式会社 Print control program, method of controlling printing apparatus and print control unit
CN101178640A (en) * 2006-11-07 2008-05-14 三星电子株式会社 Image forming apparatus and method of preventing printing error from being generated
US20090316183A1 (en) * 2008-06-23 2009-12-24 Ke Wei Performance Of A Locked Print Architecture
CN102693109A (en) * 2012-05-24 2012-09-26 深圳市开立科技有限公司 Method and device for printing
CN103823644A (en) * 2012-11-16 2014-05-28 株式会社理光 Print processing apparatus and method
EP2950199A1 (en) * 2014-05-28 2015-12-02 Cortado AG Printing method, assembly for realising the printing method and a corresponding computer program and a corresponding computer readable storage medium
CN105869635A (en) * 2016-03-14 2016-08-17 江苏时间环三维科技有限公司 Speech recognition method and system
CN108536399A (en) * 2017-03-01 2018-09-14 大数据奥尼尔公司 Automatic printing language detection algorithm
CN107632797A (en) * 2017-08-14 2018-01-26 深圳赛飞百步印社科技有限公司 The method and device of self-help print
CN107888566A (en) * 2017-10-18 2018-04-06 西安艾润物联网技术服务有限责任公司 Method, intelligent terminal, system and the storage medium of self-help print file
CN107908377A (en) * 2017-11-16 2018-04-13 理光图像技术(上海)有限公司 The analytic method of font coding information and its device and application in print language
CN108388409A (en) * 2018-02-07 2018-08-10 中国平安人寿保险股份有限公司 Print request processing method, device, computer equipment and storage medium
CN108572805A (en) * 2018-03-20 2018-09-25 北京明朝万达科技股份有限公司 Document printing method and system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
王奕森;沈建京;林键;董卫宇;: "面向网络打印机的脆弱性分析", 计算机应用与软件, vol. 35, no. 04, pages 303 - 309 *

Also Published As

Publication number Publication date
CN110874195B (en) 2023-07-28

Similar Documents

Publication Publication Date Title
CN109167750B (en) Data packet transmission method and device, electronic equipment and storage medium
CN108875757B (en) Information auditing method, server and system
CN109587252A (en) Loading method, device, electronic equipment and the storage medium of operator parameter
WO2015165412A1 (en) Method for modifying webpage and apparatus for modifying webpage
CN105809471B (en) Method and device for acquiring user attribute and electronic equipment
CN106534268B (en) Data sharing method and device
CN114553784A (en) Current limiting processing method and device
CN111881094A (en) Method, device, terminal and storage medium for extracting key information in log
CN108427701B (en) Method for identifying help information based on operation page and application server
US11556604B2 (en) Electronic device and search keyword processing method thereof
CN112749258A (en) Data searching method and device, electronic equipment and storage medium
CN110858132B (en) Configuration security detection method and device for printing equipment
CN110858248B (en) Information security detection method and device for printing equipment
CN110874195B (en) Printing language identification method, device, electronic equipment and storage medium
CN109344052B (en) Interface automation test method and device and electronic equipment
CN114338102B (en) Security detection method, security detection device, electronic equipment and storage medium
CN115795544A (en) File security attribute storage method and related device
CN113220949B (en) Construction method and device of private data identification system
CN109005469A (en) A kind of conversion method of message format, device, storage medium and android terminal
CN112351420B (en) Networking identity creation method and equipment of terminal equipment and readable storage medium
CN112036132A (en) Document header and footer editing method and device and electronic equipment
CN108881151B (en) Joint-point-free determination method and device and electronic equipment
CN111782291A (en) Test page starting method and device
KR101040357B1 (en) Navigation System of Ship
CN108733814B (en) Search engine preloading method and device, storage medium and terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 150028 building 7, innovation and entrepreneurship square, science and technology innovation city, Harbin high tech Industrial Development Zone, Harbin, Heilongjiang Province (No. 838, Shikun Road)

Applicant after: Antan Technology Group Co.,Ltd.

Address before: 150028 building 7, innovation and entrepreneurship square, science and technology innovation city, Harbin high tech Industrial Development Zone, Harbin, Heilongjiang Province (No. 838, Shikun Road)

Applicant before: Harbin Antian Science and Technology Group Co.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant