CN110826651A - Two-dimensional code automatic generation printing method and device, computer device and readable storage medium - Google Patents

Two-dimensional code automatic generation printing method and device, computer device and readable storage medium Download PDF

Info

Publication number
CN110826651A
CN110826651A CN201810901039.9A CN201810901039A CN110826651A CN 110826651 A CN110826651 A CN 110826651A CN 201810901039 A CN201810901039 A CN 201810901039A CN 110826651 A CN110826651 A CN 110826651A
Authority
CN
China
Prior art keywords
dimensional code
request
printing
equipment
production
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.)
Pending
Application number
CN201810901039.9A
Other languages
Chinese (zh)
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.)
Shenzhen Tuobang Software Technology Co Ltd
Shenzhen Topband Co Ltd
Original Assignee
Shenzhen Tuobang Software Technology Co Ltd
Shenzhen Topband 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 Shenzhen Tuobang Software Technology Co Ltd, Shenzhen Topband Co Ltd filed Critical Shenzhen Tuobang Software Technology Co Ltd
Priority to CN201810901039.9A priority Critical patent/CN110826651A/en
Publication of CN110826651A publication Critical patent/CN110826651A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K15/00Arrangements for producing a permanent visual presentation of the output data, e.g. computer output printers
    • G06K15/02Arrangements for producing a permanent visual presentation of the output data, e.g. computer output printers using printers
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K19/00Record carriers for use with machines and with at least a part designed to carry digital markings
    • G06K19/06Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code
    • G06K19/06009Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code with optically detectable marking
    • G06K19/06037Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code with optically detectable marking multi-dimensional coding

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Accessory Devices And Overall Control Thereof (AREA)

Abstract

The invention is suitable for the technical field of printing, and provides a method for automatically generating and printing a two-dimensional code in production, which comprises the following steps: receiving a service request of the equipment information; acquiring equipment information according to the service request; sending a two-dimensional code generation request of equipment information to a server; receiving a two-dimensional code generation request; generating a two-dimensional code according to the two-dimensional code generation request; a printing request to the two-dimension code of the printer; and printing the two-dimensional code according to the printing request. According to the method for automatically generating and printing the two-dimensional code in production, the server receives the equipment information and automatically generates the two-dimensional code corresponding to the equipment and calls the printer to print the two-dimensional code of the equipment in the whole two-dimensional code printing process, so that the intellectualization and automation of two-dimensional code printing are realized, and the production efficiency is improved; meanwhile, after the equipment is produced, the corresponding two-dimensional code is printed through a request without manual operation, so that the two-dimensional code can be accurately corresponding to the corresponding equipment, and the error rate is reduced.

Description

Two-dimensional code automatic generation printing method and device, computer device and readable storage medium
Technical Field
The invention belongs to the technical field of printing, and particularly relates to a method and a device for automatically generating and printing a two-dimensional code in production, a computer device and a computer readable storage medium.
Background
With the development of the internet, the two-dimensional codes are applied more and more widely in various industries, for example, in order to quickly know the relevant information of product equipment, corresponding two-dimensional codes can be set on the equipment, and the relevant information of the product equipment, such as information of model, price and the like, can be known in time by scanning the corresponding two-dimensional codes. Therefore, how to set corresponding different two-dimensional codes for different devices is a problem to be solved in production operation.
In the prior art, if a device needs to print a corresponding two-dimensional code, device information is usually collected by a scanning device, then two-dimensional code information corresponding to the device is generated at a client, and then an operator calls a printer to print the corresponding two-dimensional code. However, in the above scheme, since the operations of the scanning device and the printer calling are all completed manually by the operator, the operation is complicated, and the production efficiency is low; meanwhile, due to the fact that the two-dimensional codes are printed manually, the two-dimensional codes cannot accurately correspond to corresponding equipment after being printed, and the error rate is high.
Disclosure of Invention
The invention provides a method for automatically generating and printing a two-dimensional code in production, and aims to solve the problems that in the prior art, the operation of a scanning device and the operation of calling a printer are manually completed by operators, so the operation is more complicated, and the production efficiency is low; meanwhile, due to the fact that the two-dimensional codes are printed manually, the two-dimensional codes cannot accurately correspond to corresponding equipment after being printed, and the error rate is high.
The invention is realized in such a way that a two-dimensional code automatic generation printing method in production comprises the following steps:
receiving a service request of the equipment information;
acquiring the equipment information according to the service request;
sending a two-dimensional code generation request of the equipment information to a server;
receiving the two-dimension code generation request;
generating a two-dimensional code according to the two-dimensional code generation request;
sending a printing request of the two-dimensional code to a printer;
and printing the two-dimensional code according to the printing request.
The invention also provides a device for automatically generating and printing the two-dimension code in production, which comprises:
a first request receiving unit configured to receive a service request for acquiring device information;
the equipment information acquisition unit is used for acquiring the equipment information according to the service request;
the first request sending unit is used for sending a two-dimensional code generation request of the equipment information to a server;
a second request receiving unit, configured to receive the two-dimensional code generation request;
the two-dimension code generating unit is used for generating a two-dimension code according to the two-dimension code generating request;
the second request sending unit is used for sending a printing request of the two-dimensional code to a printer;
and the two-dimension code printing unit is used for printing the two-dimension code according to the printing request.
The embodiment of the invention also provides a computer device, which comprises a processor, wherein the processor is used for realizing the steps of the method for automatically generating and printing the two-dimensional code in production when executing the computer program stored in the memory.
The invention also provides a computer storage medium, wherein the computer storage medium is stored with a printing control program and a printing server program, and the printing control program and the printing server program realize the steps of the automatic generating and printing method of the two-dimension code in production when being executed by a processor.
The method for automatically generating and printing the two-dimension code in production provided by the embodiment of the invention comprises the steps of receiving a service request of equipment information; acquiring the equipment information according to the service request; sending a two-dimensional code generation request of the equipment information to a server; receiving the two-dimension code generation request; generating a two-dimensional code according to the two-dimensional code generation request; sending a printing request of the two-dimensional code to a printer; and printing the two-dimensional code according to the printing request. The equipment information is acquired through the service request for acquiring the equipment information, the two-dimensional code generation request is sent to the server, so that the server calls the printer to print the corresponding two-dimensional code, and once the server receives the equipment information, the two-dimensional code corresponding to the equipment is automatically generated and the printer is called to print the two-dimensional code of the equipment in the whole two-dimensional code printing process, so that the intellectualization and automation of the two-dimensional code printing are realized, and the production efficiency is improved; meanwhile, after the equipment is produced, the corresponding two-dimensional codes are printed through requests, each equipment corresponds to one printing request, and each printing request corresponds to one printing operation, so that the two-dimensional codes can be accurately corresponding to the corresponding equipment, and the error rate is reduced.
Drawings
FIG. 1 is a network environment diagram of a method for automatically generating and printing two-dimensional codes in production according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart of a method for automatically generating and printing a two-dimensional code in production according to an embodiment of the present invention;
FIG. 3 is a schematic flow chart of another method for automatically generating and printing two-dimensional codes in production according to an embodiment of the present invention;
FIG. 4 is a block diagram of an apparatus for automatically generating and printing two-dimensional codes in production according to an embodiment of the present invention;
fig. 5 is a block diagram of another automatic two-dimensional code generating and printing apparatus in production according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The method for automatically generating and printing the two-dimension code in production provided by the embodiment of the invention comprises the steps of receiving a service request of equipment information; acquiring the equipment information according to the service request; sending a two-dimensional code generation request of the equipment information to a server; receiving the two-dimension code generation request; generating a two-dimensional code according to the two-dimensional code generation request; sending a printing request of the two-dimensional code to a printer; and printing the two-dimensional code according to the printing request. The equipment information is acquired through the service request for acquiring the equipment information, the two-dimensional code generation request is sent to the server, so that the server calls the printer to print the corresponding two-dimensional code, and once the server receives the equipment information, the two-dimensional code corresponding to the equipment is automatically generated and the printer is called to print the two-dimensional code of the equipment in the whole two-dimensional code printing process, so that the intellectualization and automation of the two-dimensional code printing are realized, and the production efficiency is improved; meanwhile, after the equipment is produced, the corresponding two-dimensional codes are printed through requests, each equipment corresponds to one printing request, and each printing request corresponds to one printing operation, so that the two-dimensional codes can be accurately corresponding to the corresponding equipment, and the error rate is reduced.
Referring to fig. 1, a network environment diagram of a method for automatically generating and printing a two-dimensional code in production according to an embodiment of the present invention is shown, and for convenience of description, only a part related to the embodiment of the present invention is shown.
In the embodiment of the invention, a card reader reads a device information generating request triggered by an inspector through a card, a password and a key, generates a corresponding service request for acquiring device information, and sends the service request to a single chip microcomputer, and the single chip microcomputer acquires the corresponding device information according to the service request; then, the communication module sends a two-dimensional code generation request of the equipment information to a server; the server receives the two-dimension code generation request; generating a two-dimensional code according to a two-dimensional code generation request so as to send a printing request of the two-dimensional code to a printer; and the printer prints the two-dimensional code corresponding to the equipment according to the printing request.
Fig. 2 is a schematic flow chart of a method for automatically generating and printing a two-dimensional code in production according to the present invention, and for convenience of description, only the parts related to the embodiment of the present invention are shown.
The method for automatically generating and printing the two-dimension code in production in the embodiment of the invention comprises the following steps:
s11, receiving a service request of the equipment information;
in an embodiment of the invention, the device may be a door lock.
In the embodiment of the invention, the card reader arranged in the equipment receives the service request for acquiring the equipment information so as to realize the triggering operation of quickly reading the acquired equipment information recorded by the inspector.
S12, acquiring the equipment information according to the service request;
in the embodiment of the present invention, the device information includes: device number, ccid (USB Chip/Smart card interface Devices-USB, Chip Smart card interface device), imei (International Mobile equipment identity).
As a preferred embodiment of the present invention, the equipment information may further include numbers of different examiners corresponding to different equipments. For example, if corresponding examiners are configured for different pieces of equipment, the numbers of the examiners of the pieces of equipment may be set to "examiner No. 1", "examiner No. 2", and "examiner No. N", respectively.
In the embodiment of the invention, the equipment information can be obtained through the single chip microcomputer, and in specific application, after the door lock is powered on, the single chip microcomputer in the door lock can obtain ccid and imei information of the door lock from a communication module of the door lock and store the ccid and imei information into a cache of the single chip microcomputer of the door lock. When the checker swipes the card or inputs a specific key or a password, the door lock singlechip reads the special instructions, and if the card is swiped, the card number is read and is used as the serial number of the producer. The single chip judges that the special instructions are instructions for printing the two-dimensional code, and the single chip of the door lock reads the serial number of the single chip as the serial number information of the equipment.
S13, sending a two-dimensional code generation request of the equipment information to a server;
in the embodiment of the present invention, the server may be a cloud server, specifically, an ari cloud server, a Baidu cloud server, or a 360 cloud server, and is specifically set as required, which is not limited.
In the embodiment of the invention, a two-dimensional code generation request of equipment information is sent to a server through a communication module, wherein the communication module can be a wireless communication module, and the wireless communication module can be a 2G/3G/4G communication module; the two-dimensional code generation module can also be a wired communication module for sending a two-dimensional code generation request of the equipment information to a server.
S14, receiving the two-dimension code generation request;
s15, generating a two-dimensional code according to the two-dimensional code generation request;
in the embodiment of the invention, after the server receives the two-dimension code request of the equipment information, the two-dimension code corresponding to the equipment is automatically generated, manual operation is not needed in the whole process, the operation is convenient and fast, and the production efficiency is greatly improved.
In the embodiment of the invention, the modes of the server accessing the two-dimensional code generation request comprise access modes such as TCP, UDP, HTTP, HTTPS, COAP, MQTT and the like, wherein the working principles of different access modes are as follows:
when the server is accessed to the two-dimensional code generation request through the TCP, the server and the cloud end establish long link, communication is reliable in the mode, data packets cannot be lost, and the communication safety degree is high.
When the server is accessed to the two-dimensional code generation request through the UDP, the server establishes communication with the cloud end through the UDP, and at the moment, a concept of link does not exist, so that the communication mode is unreliable, and the possibility of data packet loss exists.
When the server accesses the two-dimension code to generate the request through HTTP, the mode is a network protocol which is most widely applied on the Internet, and is a client and server side request and response standard (TCP) which is used for transmitting the hypertext from the WWW server to the local browser, so that the browser can be more efficient, and the network transmission is reduced.
When the server accesses the two-dimensional code through the HTTPS to generate the request, the HTTPS is an HTTP channel which takes safety as a target, namely a safety version of the HTTP, namely an SSL layer is added under the HTTP, and the safety basis of the HTTPS is the SSL, so that the SSL is needed for encrypting detailed contents.
When the server accesses the two-dimensional code generation request through the COAP, the COAP is a network-oriented protocol, the characteristics similar to those of the COAP are adopted, and the core content is resource abstraction, REST interaction, an extensible head option and the like. To overcome the disadvantages of HTTP for a limited environment, COAP allows for both optimization of datagram length and for providing reliable communication. In one aspect, COAP provides URI, REST-like methods such as GET, POST, PUT, and DELETE, and header options that can be independently defined to improve scalability. On the other hand, COAP is based on UDP protocol, and in order to compensate for the unreliability of UDP transmission, COAP defines a transaction mechanism with a retransmission mechanism.
When the server accesses the two-dimensional code generation request through the MQTT, the MQTT is a lightweight protocol based on a publish/subscribe (publish/subscribe) mode, the protocol is constructed on a TCP/IP (transmission control protocol/internet protocol), and the MQTT has the greatest advantage that real-time and reliable message service can be provided for connecting remote equipment with few codes and limited bandwidth. As an instant messaging protocol with low cost and low bandwidth occupation, the method has wide application in the aspects of Internet of things, small-sized equipment, mobile application and the like.
S16, sending a printing request of the two-dimensional code to a printer;
in the embodiment of the invention, after the server automatically generates the two-dimensional code corresponding to the equipment, the printer is automatically called to print the two-dimensional code of the equipment, manual operation is not needed in the whole process, the operation is convenient and fast, and the production efficiency is greatly improved.
And S17, printing the two-dimensional code according to the printing request.
In the embodiment of the present invention, the printer prints the two-dimensional code corresponding to the device according to the received print request, where the printer may be a local printer or a network printer, and is specifically set as needed without limitation.
Referring to fig. 3, a schematic flow chart of another method for automatically generating and printing a two-dimensional code in production according to an embodiment of the present invention is shown, which differs from the schematic flow chart of the method for automatically generating and printing a two-dimensional code in production shown in fig. 2 only in that the method further includes:
and S21, triggering and generating the equipment information request through the card, the password and the key.
In the embodiment of the present invention, specifically, in the production operation, the checker triggers the request for generating the door lock information through the card, the password, and the key, which specifically includes the following steps:
when an inspector triggers a door lock information generation request through a card, a card reader reads a card number corresponding to the card and takes the card number as the serial number of the inspector, different equipment is preset in the system and corresponds to different inspector serial numbers, therefore, when the inspector triggers the card reader through the card representing the personal serial number, the single chip microcomputer judges that the special instructions are instructions for printing two-dimensional codes, and the single chip microcomputer of the door lock reads the serial number of the single chip microcomputer as the serial number information of the equipment so as to enter the subsequent operation.
When an inspector triggers a request for generating equipment information through a self-set specific password, such as a specific number, different equipment is correspondingly provided with different passwords, so that when the inspector inputs the password corresponding to the specific equipment, the single chip microcomputer judges that the special instruction is an instruction for printing a two-dimensional code, and the single chip microcomputer of the door lock reads the number of the single chip microcomputer as the number information of the equipment so as to enter subsequent operation.
When an inspector triggers and generates an equipment information request by pressing one or a plurality of specific keys on specific equipment, because the equipment information of different equipment is different, when the equipment information request is started by pressing one or a plurality of specific keys on the specific equipment, the single chip microcomputer judges that the special instructions are instructions for printing the two-dimensional code, and the single chip microcomputer of the door lock reads the number of the single chip microcomputer as the number information of the equipment so as to enter the subsequent operation.
According to the method for automatically generating and printing the two-dimensional code in production, the equipment information is obtained through the service request for obtaining the equipment information, the two-dimensional code generation request is sent to the server, so that the server calls the printer to print the corresponding two-dimensional code, and once the server receives the equipment information in the whole two-dimensional code printing process, the two-dimensional code corresponding to the equipment is automatically generated and the printer is called to print the two-dimensional code of the equipment, so that the intellectualization and automation of two-dimensional code printing are realized, and the production efficiency is improved; meanwhile, the two-dimensional code is automatically printed in the whole process, manual processing is not needed, the two-dimensional code can be accurately corresponding to corresponding equipment, and the error rate is reduced.
Fig. 4 is a block diagram of an in-production two-dimensional code automatic generation printing apparatus 100 in an embodiment of the present invention, including a first request receiving unit 11, configured to receive a service request for acquiring device information; a device information obtaining unit 12, configured to obtain the device information according to the service request; a first request sending unit 13, configured to send a two-dimensional code generation request of the device information to a server; a second request receiving unit 14, configured to receive the two-dimensional code generation request; a two-dimensional code generation unit 15, configured to generate a two-dimensional code according to the two-dimensional code generation request; a second request sending unit 16, configured to send a print request of the two-dimensional code to a printer; and the two-dimensional code printing unit 17 is configured to print the two-dimensional code according to the print request.
In an embodiment of the invention, the device may be a door lock.
In the embodiment of the invention, the card reader arranged in the equipment receives the service request for acquiring the equipment information so as to realize the triggering operation of quickly reading the acquired equipment information recorded by the inspector.
In the embodiment of the present invention, the device information includes: device number, ccid (USB Chip/Smart card interface Devices-USB, Chip Smart card interface device), imei (International Mobile equipment identity).
As a preferred embodiment of the present invention, the equipment information may further include numbers of different examiners corresponding to different equipments. For example, if corresponding examiners are configured for different pieces of equipment, the numbers of the examiners of the pieces of equipment may be set to "examiner No. 1", "examiner No. 2", and "examiner No. N", respectively.
In the embodiment of the invention, the equipment information can be obtained through the single chip microcomputer, and in specific application, after the door lock is powered on, the single chip microcomputer in the door lock can obtain ccid and imei information of the door lock from a communication module of the door lock and store the ccid and imei information into a cache of the single chip microcomputer of the door lock. When the checker swipes the card or inputs a specific key or a password, the door lock singlechip reads the special instructions, and if the card is swiped, the card number is read and is used as the serial number of the producer. The single chip judges that the special instructions are instructions for printing the two-dimensional code, and the single chip of the door lock reads the serial number of the single chip as the serial number information of the equipment.
In the embodiment of the present invention, the server may be a cloud server, specifically, an ari cloud server, a Baidu cloud server, or a 360 cloud server, and is specifically set as required, which is not limited. In the embodiment of the invention, a two-dimensional code generation request of equipment information is sent to a server through a communication module, wherein the communication module can be a wireless communication module, and the wireless communication module can be a 2G/3G/4G communication module; the two-dimensional code generation module can also be a wired communication module for sending a two-dimensional code generation request of the equipment information to a server.
In the embodiment of the invention, after the server receives the two-dimension code request of the equipment information, the two-dimension code corresponding to the equipment is automatically generated, manual operation is not needed in the whole process, the operation is convenient and fast, and the production efficiency is greatly improved.
In the embodiment of the invention, the modes of the server accessing the two-dimensional code generation request comprise access modes such as TCP, UDP, HTTP, HTTPS, COAP, MQTT and the like, wherein the working principles of different access modes are as follows:
when the server is accessed to the two-dimensional code generation request through the TCP, the server and the cloud end establish long link, communication is reliable in the mode, data packets cannot be lost, and the communication safety degree is high.
When the server is accessed to the two-dimensional code generation request through the UDP, the server establishes communication with the cloud end through the UDP, and at the moment, a concept of link does not exist, so that the communication mode is unreliable, and the possibility of data packet loss exists.
When the server accesses the two-dimension code to generate the request through HTTP, the mode is a network protocol which is most widely applied on the Internet, and is a client and server side request and response standard (TCP) which is used for transmitting the hypertext from the WWW server to the local browser, so that the browser can be more efficient, and the network transmission is reduced.
When the server accesses the two-dimensional code through the HTTPS to generate the request, the HTTPS is an HTTP channel which takes safety as a target, namely a safety version of the HTTP, namely an SSL layer is added under the HTTP, and the safety basis of the HTTPS is the SSL, so that the SSL is needed for encrypting detailed contents.
When the server accesses the two-dimensional code generation request through the COAP, the COAP is a network-oriented protocol, the characteristics similar to those of the COAP are adopted, and the core content is resource abstraction, REST interaction, an extensible head option and the like. To overcome the disadvantages of HTTP for a limited environment, COAP allows for both optimization of datagram length and for providing reliable communication. In one aspect, COAP provides URI, REST-like methods such as GET, POST, PUT, and DELETE, and header options that can be independently defined to improve scalability. On the other hand, COAP is based on UDP protocol, and in order to compensate for the unreliability of UDP transmission, COAP defines a transaction mechanism with a retransmission mechanism.
When the server accesses the two-dimensional code generation request through the MQTT, the MQTT is a lightweight protocol based on a publish/subscribe (publish/subscribe) mode, the protocol is constructed on a TCP/IP (transmission control protocol/internet protocol), and the MQTT has the greatest advantage that real-time and reliable message service can be provided for connecting remote equipment with few codes and limited bandwidth. As an instant messaging protocol with low cost and low bandwidth occupation, the method has wide application in the aspects of Internet of things, small-sized equipment, mobile application and the like.
In the embodiment of the invention, after the server automatically generates the two-dimensional code corresponding to the equipment, the printer is automatically called to print the two-dimensional code of the equipment, manual operation is not needed in the whole process, the operation is convenient and fast, and the production efficiency is greatly improved.
In the embodiment of the present invention, the printer prints the two-dimensional code corresponding to the device according to the received print request, where the printer may be a local printer or a network printer, and is specifically set as needed without limitation.
Fig. 5 shows a block diagram of another two-dimensional code automatic generation printing apparatus 200 in production according to an embodiment of the present invention, which differs from the block diagram of the two-dimensional code automatic generation printing apparatus 100 in production shown in fig. 4 only in that the apparatus further includes: and the device information request generating unit 21 is used for generating a device information request through triggering of a card, a password and a key.
In the embodiment of the present invention, specifically, in the production operation, the checker triggers the request for generating the door lock information through the card, the password, and the key, which specifically includes the following steps:
when an inspector triggers a door lock information generation request through a card, a card reader reads a card number corresponding to the card and takes the card number as the serial number of the inspector, different equipment is preset in the system and corresponds to different inspector serial numbers, therefore, when the inspector triggers the card reader through the card representing the personal serial number, the single chip microcomputer judges that the special instructions are instructions for printing two-dimensional codes, and the single chip microcomputer of the door lock reads the serial number of the single chip microcomputer as the serial number information of the equipment so as to enter the subsequent operation.
When an inspector triggers a request for generating equipment information through a self-set specific password, such as a specific number, different equipment is correspondingly provided with different passwords, so that when the inspector inputs the password corresponding to the specific equipment, the single chip microcomputer judges that the special instruction is an instruction for printing a two-dimensional code, and the single chip microcomputer of the door lock reads the number of the single chip microcomputer as the number information of the equipment so as to enter subsequent operation.
When an inspector triggers and generates an equipment information request by pressing one or a plurality of specific keys on specific equipment, because the equipment information of different equipment is different, when the equipment information request is started by pressing one or a plurality of specific keys on the specific equipment, the single chip microcomputer judges that the special instructions are instructions for printing the two-dimensional code, and the single chip microcomputer of the door lock reads the number of the single chip microcomputer as the number information of the equipment so as to enter the subsequent operation.
According to the device for automatically generating and printing the two-dimensional code in production, provided by the embodiment of the invention, the device information is obtained through the service request for obtaining the device information, and the two-dimensional code generation request is sent to the server so that the server calls the printer to print the corresponding two-dimensional code; meanwhile, after the equipment is produced, the corresponding two-dimensional codes are printed through requests, each equipment corresponds to one printing request, and each printing request corresponds to one printing operation, so that the two-dimensional codes can be accurately corresponding to the corresponding equipment, and the error rate is reduced.
The embodiment of the present invention provides a computer apparatus, which includes a processor, and the processor is configured to implement the steps of the method for automatically generating and printing a two-dimensional code in production provided by the above-mentioned method embodiments when executing a computer program stored in a memory.
The embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the method for automatically generating and printing a two-dimensional code in production provided in the above-mentioned method embodiments.
Illustratively, a computer program can be partitioned into one or more modules, which are stored in memory and executed by a processor to implement the present invention. One or more of the modules may be a sequence of computer program instruction segments for describing the execution of a computer program in a computer device that is capable of performing certain functions. For example, the computer program may be divided into the steps of the in-production two-dimensional code automatic generation printing method provided by the above-described respective method embodiments.
Those skilled in the art will appreciate that the above description of a computer apparatus is by way of example only and is not intended to be limiting of computer apparatus, and that the apparatus may include more or less components than those described, or some of the components may be combined, or different components may be included, such as input output devices, network access devices, buses, etc.
The Processor may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. The general purpose processor may be a microprocessor or the processor may be any conventional processor or the like which is the control center for the computer device and which connects the various parts of the overall computer device using various interfaces and lines.
The memory may be used to store the computer programs and/or modules, and the processor may implement various functions of the computer device by running or executing the computer programs and/or modules stored in the memory and invoking data stored in the memory. The memory may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. In addition, the memory may include high speed random access memory, and may also include non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), at least one magnetic disk storage device, a Flash memory device, or other volatile solid state storage device.
The modules/units integrated by the computer device may be stored in a computer-readable storage medium if they are implemented in the form of software functional units and sold or used as separate products. Based on such understanding, all or part of the flow of the method according to the embodiments of the present invention may also be implemented by a computer program, which may be stored in a computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method embodiments may be implemented. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, electrical signals, software distribution medium, and the like.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents and improvements made within the spirit and principle of the present invention are intended to be included within the scope of the present invention.

Claims (10)

1. A method for automatically generating and printing two-dimension codes in production is characterized by comprising the following steps:
receiving a service request of the equipment information;
acquiring the equipment information according to the service request;
sending a two-dimensional code generation request of the equipment information to a server;
receiving the two-dimension code generation request;
generating a two-dimensional code according to the two-dimensional code generation request;
sending a printing request of the two-dimensional code to a printer;
and printing the two-dimensional code according to the printing request.
2. The in-production two-dimensional code automatic generation printing method according to claim 1, characterized by further comprising: and triggering and generating the equipment information request through a card, a password and a key.
3. The in-production two-dimensional code automatic generation printing method according to claim 1, wherein the device information includes: device number, ccid, imei.
4. The in-production two-dimensional code automatic generation printing method according to claim 1, characterized by further comprising: and sending a two-dimensional code generation request of the equipment information to a server through a wireless communication module or a wired communication module.
5. The method for automatically generating and printing the in-production two-dimensional code as claimed in claim 1, wherein the printer can be a local printer or a network printer.
6. The method for automatically generating and printing the two-dimension code in production according to claim 1, wherein the server provides access modes such as TCP, UDP, HTTP, HTTPS, COAP, MQTT and the like.
7. The utility model provides a two-dimensional code automatic generation printing device in production which characterized in that, the device includes:
a first request receiving unit for receiving a service request of the device information;
the equipment information acquisition unit is used for acquiring the equipment information according to the service request;
the first request sending unit is used for sending a two-dimensional code generation request of the equipment information to a server; a second request receiving unit, configured to receive the two-dimensional code generation request;
the two-dimension code generating unit is used for generating a two-dimension code according to the two-dimension code generating request;
the second request sending unit is used for sending a printing request of the two-dimensional code to a printer;
and the two-dimension code printing unit is used for printing the two-dimension code according to the printing request.
8. The in-production two-dimensional code automatic generation printing device according to claim 7, characterized in that the device further comprises: and the equipment information request generating unit is used for generating the equipment information request through triggering of the card, the password and the key.
9. A computer arrangement, characterized in that the computer arrangement comprises a processor for implementing the steps of the method for the automatic generation and printing of two-dimensional codes in production according to any one of claims 1-5 when executing a computer program stored in a memory.
10. A computer storage medium, characterized in that the computer storage medium has stored thereon a print control program and a print server program, which when executed by a processor, implement the steps of the in-production two-dimensional code automatic generation printing method according to any one of claims 1 to 6.
CN201810901039.9A 2018-08-09 2018-08-09 Two-dimensional code automatic generation printing method and device, computer device and readable storage medium Pending CN110826651A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810901039.9A CN110826651A (en) 2018-08-09 2018-08-09 Two-dimensional code automatic generation printing method and device, computer device and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810901039.9A CN110826651A (en) 2018-08-09 2018-08-09 Two-dimensional code automatic generation printing method and device, computer device and readable storage medium

Publications (1)

Publication Number Publication Date
CN110826651A true CN110826651A (en) 2020-02-21

Family

ID=69540812

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810901039.9A Pending CN110826651A (en) 2018-08-09 2018-08-09 Two-dimensional code automatic generation printing method and device, computer device and readable storage medium

Country Status (1)

Country Link
CN (1) CN110826651A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103150584A (en) * 2013-01-30 2013-06-12 广东电网公司电力调度控制中心 Communication resource motion processing method and system
CN106327208A (en) * 2016-08-12 2017-01-11 佛山市顺德区震德精密机械有限公司 Product quality tracing system and method for injection molding machine
CN106961680A (en) * 2017-03-28 2017-07-18 上海与德科技有限公司 A kind of method and device for showing mobile equipment identity identification information
CN107817958A (en) * 2017-11-09 2018-03-20 厦门盈趣科技股份有限公司 Apparatus bound method, apparatus and printing device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103150584A (en) * 2013-01-30 2013-06-12 广东电网公司电力调度控制中心 Communication resource motion processing method and system
CN106327208A (en) * 2016-08-12 2017-01-11 佛山市顺德区震德精密机械有限公司 Product quality tracing system and method for injection molding machine
CN106961680A (en) * 2017-03-28 2017-07-18 上海与德科技有限公司 A kind of method and device for showing mobile equipment identity identification information
CN107817958A (en) * 2017-11-09 2018-03-20 厦门盈趣科技股份有限公司 Apparatus bound method, apparatus and printing device

Similar Documents

Publication Publication Date Title
US10057734B2 (en) System and method for transmitting and receiving media messages
US8813214B1 (en) Method and system for providing secure peer-to-peer file transfers
CN105718225A (en) Cloud printing service system and use method thereof
US20240036774A1 (en) Printing method and apparatus, and electronic device
JP2007026427A (en) Information management method using managing symbol and information management server
CN103166681A (en) Information transmission method and system in short-distance scene
CN101005485A (en) Method and system for compression coding information resource address
CN113760824B (en) Scanning file acquisition method, computer device and computer readable storage medium
WO2015039589A1 (en) User identity authorization system and authorization method based on bar codes
JP2004334453A (en) Printing system and printer for use in system
CN113015165A (en) Internet of things platform device access method, device and system
CN112685248A (en) Intelligent network card monitoring log obtaining method and device, electronic equipment and storage medium
CN104378435A (en) Method for transmitting file between browser of computing device and mobile terminal
CN104394208A (en) File transmission method and server
CN111124861A (en) Recording method of webpage data, recording device of webpage data and readable storage medium
CN109542867B (en) Distributed data acquisition method and device
TWI678096B (en) File processing system and method for exchanging data by graphic code
US10133884B2 (en) Electronic and paper combined data submission, printing, and retrieval method and its system
CN108512889B (en) Application response pushing method based on HTTP and proxy server
CN110826651A (en) Two-dimensional code automatic generation printing method and device, computer device and readable storage medium
CN101778117B (en) Network storing and processing method, device and wireless terminal
CN111698287A (en) Cloud mobile phone active application acquisition method, system and storage medium
WO2017049971A1 (en) Packet transmission method and gateway
CN100458765C (en) Data process apparatus, terminal device and data process system
CN102077517A (en) Adapter for synchronizing data over different networks

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