Certificate making method, certificate making system, computer storage medium and electronic equipment
The certificate production task is encapsulated and sent to the certificate production equipment through the equipment management server, which solves the problems of communication complexity and inefficiency of traditional certificate production equipment, and realizes a certificate production system that simplifies operations and improves efficiency.
Patent Information
- Application Number
- CN202411855971.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-16
- Publication Date
- 2025-03-25
AI Technical Summary
Traditional certificate production equipment relies on proprietary hardware interfaces or complex communication procedures, resulting in cumbersome and inefficient issuance of certificate production tasks.
The data frames of the received certificate production task are encapsulated and processed through the device management server, and sent to the certificate production equipment through the data transmission protocol. The certificate production equipment processes it based on the type of the encapsulated data frame, extracts certificate information, certificate production templates and certificate production requirements, and conducts certificate production.
It simplifies the operation of document production, improves the efficiency of document production, and reduces the complexity of communication between equipment.
Smart Images

Figure CN119692325A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a certificate production method, a certificate production system, a computer storage medium and an electronic device. Background Art
[0002] As conference activities become more diversified and open, the demand for conference badge production is growing significantly. Traditional badge production equipment, such as self-service card machines or card printers, mostly rely on proprietary hardware interfaces or complex communication protocols.
[0003] In the related art, the issuance of certificate production tasks often requires the installation of specific software on a local computing device and is transmitted to the certificate production device through a series of cumbersome intermediate steps, resulting in complicated certificate production operations and low efficiency in certificate production. Summary of the invention
[0004] In view of this, the embodiments of the present application provide a certificate production method, a certificate production system, a computer storage medium and an electronic device to solve or alleviate the problems in the related art that the certificate production operation is relatively complicated and the efficiency of certificate production is low.
[0005] According to a first aspect of an embodiment of the present application, a certificate production method is provided, the method comprising: encapsulating and processing a data frame of a received certificate production task by a device management server to obtain an encapsulated data frame, and sending the encapsulated data frame to a certificate production device through a data transmission protocol; processing the encapsulated data frame by the certificate production device based on the type of the encapsulated data frame to obtain certificate information, a certificate production template and certificate production requirements in the encapsulated data frame; searching for a corresponding template file by the certificate production device based on the certificate production template, filling the certificate information into the template file, and after adjusting the template file based on the certificate production requirements, producing a target certificate including the certificate information.
[0006] In some embodiments of the present application, the data frame of the received certificate production task is encapsulated to obtain an encapsulated data frame, including: when the data frame of the received certificate production task is a text data frame, encoding the text data in the data frame into character data, and determining the character data as the frame payload to obtain the encapsulated data frame; when the data frame of the received certificate production task is a binary data frame, encoding the binary data into character data;
[0007] The [HZTC-HXJKJD241020][HS2411339CCN] binary data frame is directly encapsulated to obtain an encapsulated data frame.
[0008] In some embodiments of the present application, the encapsulated data frame is processed based on the type of the encapsulated data frame to obtain the certificate information, certificate template and certificate requirements in the encapsulated data frame, including: treating the encapsulated data frame as a character data frame, decoding the character data in the character data frame to obtain text data, and querying the text data to obtain the certificate information, certificate template and certificate requirements; or treating the encapsulated data frame as a binary data frame, and querying the binary data frame to obtain the certificate information, certificate template and certificate requirements.
[0009] In some embodiments of the present application, the certificate production method also includes: the device management server encrypts the encapsulated data frame based on the encryption key in the encryption decryption algorithm to obtain an encrypted encapsulated data frame; the device management server sends the encrypted encapsulated data frame to the certificate production device.
[0010] In some embodiments of the present application, the encapsulated data frame is processed based on the type of the encapsulated data frame to obtain the certificate information, certificate template and certificate requirements in the encapsulated data frame, including: decrypting the encrypted encapsulated data frame based on the decryption key in the encryption and decryption algorithm to obtain the decrypted encapsulated data frame; determining that the decrypted encapsulated data frame is a character data frame based on the operation code of the decrypted encapsulated data frame, and decoding the character data in the character data frame to obtain text data; querying and obtaining the certificate information, certificate template and certificate requirements from the text data; determining that the encapsulated data frame is a binary data frame based on the operation code of the decrypted encapsulated data frame, and querying and obtaining the certificate information, certificate template and certificate requirements from the binary data frame.
[0011] In some embodiments of the present application, the certificate production method also includes: the device management server sends a detection frame to the certificate production device at a preset time interval; the certificate production device returns a response frame to the device management server after receiving the detection frame; the device management server updates the communication connection between the device management server and the certificate production device after receiving the response frame, and confirms that the communication connection is in a normal connection state.
[0012] In some embodiments of the present application, the certificate production method also includes: the device management server determines whether a transmission anomaly occurs when data is transmitted with the certificate production device through a data transmission protocol, wherein the transmission anomaly is a network connection interruption or a data transmission protocol error; when a transmission anomaly occurs, the device management server generates a connection closing frame, and sends the connection closing frame to the certificate production device that has not detected the transmission anomaly, so that the certificate production device responds to the connection closing frame to close the communication connection.
[0013] [HZTC-HXJKJD241020][HS2411339CCN]
[0014] According to a second aspect of an embodiment of the present application, a certificate production system is provided, the system comprising: a device management server, for encapsulating and processing a data frame received for a certificate production task, obtaining an encapsulated data frame, and sending the encapsulated data frame to a certificate production device via a data transmission protocol; a certificate production device, for processing the encapsulated data frame based on the type of the encapsulated data frame, obtaining certificate information, a certificate production template and certificate production requirements in the encapsulated data frame, searching for a corresponding template file based on the certificate production template, filling the certificate information into the template file, and producing a target certificate including the certificate information after adjusting the template file based on the certificate production requirements.
[0015] According to the third aspect of the embodiments of the present application, there is provided an electronic device, comprising: a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus; the memory is used to store at least one executable instruction, and the executable instruction enables the processor to execute operations corresponding to the device management server or the certificate production device in the certificate production method of any of the above embodiments.
[0016] According to a fourth aspect of the embodiments of the present application, a computer storage medium is provided, on which a computer program is stored, and when the program is executed by a processor, a certificate production method as in any of the above embodiments is implemented.
[0017] According to the certificate production method, certificate production system, computer storage medium and electronic device provided in the embodiments of the present application, after the staff inputs the certificate production task on the web page interface of the management device server and clicks the send button, the encapsulated data frame can be automatically sent to the certificate production device through the data transmission protocol through the device management server, so that the certificate production device can search for the corresponding template file based on the certificate production template in the encapsulated data frame, fill the certificate information into the template file, and after adjusting the template file based on the certificate production requirements, produce the target certificate including the certificate information, thereby simplifying the certificate production operation and improving the efficiency of certificate production. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the embodiments of the present application. For ordinary technicians in this field, other drawings can also be obtained based on these drawings.
[0019] [HZTC-HXJKJD241020][HS2411339CCN]
[0020] Figure 1 A schematic diagram of a process for producing a certificate according to an embodiment of the present application;
[0021] Figure 2 A schematic diagram of the interaction between a device management server and a certificate production device according to an embodiment of the present application;
[0022] Figure 3 A schematic diagram of the structure of a certificate production system according to an embodiment of the present application;
[0023] Figure 4 It is a schematic diagram of the structure of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0024] In order to enable those skilled in the art to better understand the technical solutions in the embodiments of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the embodiments of the present application should fall within the scope of protection of the embodiments of the present application.
[0025] The specific implementation of the embodiments of the present application is further explained below in combination with the embodiments of the present application and the accompanying drawings.
[0026] Figure 1 The figure is a flowchart of a method for producing a certificate according to an embodiment of the present application.
[0027] like Figure 1 As shown, the certificate making method includes:
[0028] S11: The device management server encapsulates the received data frame of the certificate production task to obtain an encapsulated data frame, and sends the encapsulated data frame to the certificate production device through a data transmission protocol.
[0029] Specifically, the device management server refers to the B / S (Browser / Server) server, which refers to the server system in the network architecture that is responsible for processing requests sent by the browser (client) and returning corresponding results. It is the core part of the B / S architecture and is responsible for executing business logic, data processing, and data storage. The data transmission protocol refers to the WebSocket protocol (a protocol for full-duplex communication over a single TCP (Transmission Control Protocol). The device management server and the certificate production device are connected through WebSocket technology to achieve efficient two-way communication connections.
[0030] The WebSocket protocol allows full-duplex communication on a single TCP connection, capable of real-time transmission of data and instructions. Compared with the traditional one-way request-response mode of the HTTP protocol, the WebSocket protocol allows the device management server to actively push data to the client of the document production device, while the document production device
[0031] [HZTC-HXJKJD241020][HS2411339CCN]The client of the device can also send data to the device management server at any time, and this link can remain open for a long time, thereby achieving efficient two-way communication. Among them, a module that supports WebSocket communication is deployed on the client of the certificate production device. This module can receive the certificate production task instructions from the B / S server of the device management server in real time, and promptly feedback the status information of the certificate production device to the B / S server.
[0032] That is to say, after the device management server establishes a connection with the client of the certificate production device, the data required for certificate production can be transmitted bidirectionally between the client and the device management server. When the device management server needs to send the certificate production task to the certificate production device, it can use its own frame format to transmit the data required for certificate production through the WebSocket protocol. The frame is the basic unit of data transmission and contains various attributes of the data, such as text data, binary data, and the length of the data. The format of the data frame has a fixed header part (i.e., the frame header) and other necessary information (i.e., the frame payload, which includes the type and length of the data).
[0033] In some embodiments, the data frame of the received certificate production task is encapsulated to obtain an encapsulated data frame, including: when the data frame of the received certificate production task is a text data frame, encoding the text data in the data frame into character data, and determining the character data as the frame load to obtain an encapsulated data frame; when the data frame of the received certificate production task is a binary data frame, directly encapsulating the binary data frame to obtain an encapsulated data frame.
[0034] It can be understood that WebSocket can transmit text data and binary data. Therefore, when a certificate with personalized information needs to be printed, the device management server will act as the sender of the certificate production task and send a detailed certificate production task data frame to the certificate production device connected to it through the WebSocket protocol to produce the certificate. The data frame includes but is not limited to data such as certificate type, certificate template, personalized information, quantity, parameter requirements, etc.
[0035] Exemplarily, when the data frame sent by the device management server to the certificate production device is a text data frame, each character in the text data of the text data frame needs to be converted into the corresponding UTF-8 (UTF-8 is a widely used character encoding that can represent characters in multiple languages) encoded byte sequence. For example, the Chinese character "surname" is represented as E5 9D D3 (three bytes) in UTF-8 encoding, and the Chinese character "name" is represented as E5 80 BD in UTF-8 encoding.
[0036] [HZTC-HXJKJD241020][HS2411339CCN]
[0037] Therefore, the text data in the data frame is encoded into character data, and the character data is determined as the frame payload (the frame payload contains the actual data to be transmitted), obtaining the encapsulated data frame for sending to the certificate production device. And the encapsulated data frame is identified by a specific opcode. This opcode is the data in the frame header. For example, the opcode 0x1 indicates that the data in the encapsulated data frame is character data.
[0038] Furthermore, for binary data (such as pictures), the data itself does not require additional encoding conversion because it is already in binary format. These binary data are directly encapsulated into the binary data frame of WebSocket. And the encapsulated data frame is also identified by a specific opcode. For example, the opcode 0x2 indicates that the data in the encapsulated data frame is binary data. In this way, the data required for making certificates is flexibly transmitted through the data transmission protocol.
[0039] S12: The certificate production device processes the encapsulated data frame based on the type of the encapsulated data frame to obtain the certificate information, the certificate production template, and the certificate production requirements in the encapsulated data frame.
[0040] In some embodiments, processing the encapsulated data frame based on the type of the encapsulated data frame to obtain the certificate information, the certificate production template, and the certificate production requirements in the encapsulated data frame includes: regarding the encapsulated data frame as a text data frame, decoding the character data in the text data frame to obtain the text data, and querying the certificate information, the certificate production template, and the certificate production requirements from the text data; or, regarding the encapsulated data frame as a binary data frame and querying the certificate information, the certificate production template, and the certificate production requirements from the binary data frame.
[0041] That is to say, after the receiving task instruction unit in the client of the certificate making device receives the encapsulated data frame, the processing task unit in the client identifies the encapsulated data frame as a character data frame through a specific operation code (opcode) (such as the operation code is 0x1 indicating that the data in the encapsulated data frame is character data), and parses the character data according to the UTF-8 encoding rules, and restores it to the original text data, thereby obtaining the certificate information, certificate template and certificate requirements in the text data.
[0042] After receiving the encapsulated data frame in the client of the certificate production device and identifying the encapsulated data frame as a binary data frame through a specific operation code (such as the operation code 0x2 indicates that the data in the encapsulated data frame is binary data), it can be directly processed in the binary data mode, such as saving it as an image file, or performing other binary data processing operations.
[0043] [HZTC-HXJKJD241020][HS2411339CCN] and obtain the certificate information, certificate template and certificate requirements in the text data.
[0044] S13: searching for a corresponding template file based on the certificate making template through the certificate making device, filling the certificate information into the template file, and after adjusting the template file based on the certificate making requirements, making a target certificate including the certificate information.
[0045] For example, the process of making a certificate according to the certificate information, certificate template and certificate requirements usually involves the collaborative work of multiple steps and components. First, the receiving task instruction unit of the certificate making device receives the encapsulated data frame sent from the device management server through a communication interface (such as a network, a serial port, etc.).
[0046] Then the processing task unit of the certificate production equipment processes the encapsulated data frame, extracts the certificate information (such as name, photo, certificate number, etc.), certificate template (such as certificate layout, style, etc.) and certificate requirements (such as printing quality, paper type, anti-counterfeiting technology, etc.), and searches for the corresponding template file in the internal database according to the parsed certificate template, loads it into the memory, fills the parsed certificate information into the specified position in the certificate template, and adjusts the various parameters of the certificate production equipment according to the certificate requirements, such as printing quality, paper type, printing speed, etc., and finally produces a certificate that meets the requirements.
[0047] It should be noted that when the certificate-making device receives a certificate-making task, it immediately starts the certificate-making process and continuously feeds back progress information to the server through the feedback status information unit during the certificate-making process, so that the management personnel can check the certificate-making progress at any time on the management device server, make task adjustments and equipment management, and realize centralized management and scheduling.
[0048] In this way, after the staff inputs the certificate production task on the web interface of the management device server and clicks the send button, the encapsulated data frame can be automatically sent to the certificate production device through the data transmission protocol through the device management server, so that the certificate production device can search for the corresponding template file based on the certificate production template in the encapsulated data frame, and fill the certificate information into the template file. After adjusting the template file based on the certificate production requirements, the target certificate including the certificate information is produced, thereby simplifying the certificate production operation and improving the efficiency of certificate production.
[0049] In some embodiments, the certificate production method further includes: the device management server encrypts the encapsulated data frame based on the encryption key in the encryption algorithm to obtain the encrypted encapsulated data frame;
[0050] [HZTC-HXJKJD241020][HS2411339CCN] The standby management server sends the encrypted encapsulated data frame to the certificate production device.
[0051] Specifically, the certificate production device and the management device server agree on an encryption algorithm (such as AES (Advanced Encryption Standard, a widely used symmetric key encryption protocol), RSA (an asymmetric encryption algorithm), etc.) and a key before or when the WebSocket connection is established. The WebSocket protocol defines the format of the data frame, including the frame header, extended data, application data, and mask, etc. The encapsulated data frame can be encrypted in the application data part (i.e., the frame payload). When the management device server sends the encapsulated data frame, the encryption algorithm (such as AES) and the encryption key are used to encrypt the encapsulated data frame, and then the encrypted encapsulated data frame is sent to the certificate production device.
[0052] Furthermore, in some embodiments, the encapsulated data frame is processed based on the type of the encapsulated data frame to obtain the certificate information, certificate template and certificate requirements in the encapsulated data frame, including:
[0053] The encrypted encapsulated data frame is decrypted based on the decryption key in the encryption and decryption algorithm to obtain a decrypted encapsulated data frame; based on the operation code of the decrypted encapsulated data frame, the decrypted encapsulated data frame is determined to be a character data frame, and the character data in the character data frame is decoded to obtain text data; the certificate information, certificate template and certificate requirements are queried from the text data; based on the operation code of the decrypted encapsulated data frame, the encapsulated data frame is determined to be a binary data frame, and the certificate information, certificate template and certificate requirements are queried from the binary data frame.
[0054] That is to say, after receiving the encrypted encapsulated data frame, the certificate production device first parses the frame header, determines the type and length of the encapsulated data frame, and uses the same encryption algorithm (such as AES) and decryption key service to decrypt the application data part to obtain the decrypted encapsulated data frame.
[0055] Then, the processing task unit in the client of the certificate making device identifies the encapsulated data frame as a character data frame through a specific operation code (opcode) (such as the operation code is 0x1 indicating that the data in the encapsulated data frame is character data), and parses the character data according to the UTF-8 encoding rules, restores it to the original text data, and finally obtains the certificate information, certificate template and certificate requirements in the text data.
[0056] Or, after identifying the encapsulated data frame as a binary data frame through a specific operation code (opcode) (e.g., the operation code is 0x2, indicating that the data in the encapsulated data frame is binary data), it can be directly processed in the binary data mode, such as saving it as an image file, or performing other operations.
[0057] [HZTC-HXJKJD241020][HS2411339CCN]Binary data processing operations are performed to finally obtain the certificate information, certificate template and certificate requirements in the text data.
[0058] In this way, the use of encryption technology to encrypt the transmitted data can ensure the security and stability of communication.
[0059] In some embodiments, the certificate production method also includes: the device management server sends a detection frame to the certificate production device at a preset time interval; the certificate production device returns a response frame to the device management server after receiving the detection frame; the device management server updates the communication connection between the device management server and the certificate production device after receiving the response frame, and confirms that the communication connection is in a normal connection state.
[0060] Specifically, the detection frame refers to the ping frame in the ping-pong mechanism, which is a control frame actively sent by the device management server to detect the activity of the connection between the device management server and the certificate production device. The device management server sends ping frames to the client of the certificate production device at a certain time interval as a detection signal of the connection status. The ping frame can contain some application data, but this data is usually used for specific diagnostic or debugging purposes rather than for transmitting actual business data.
[0061] The response frame refers to the pong frame in the ping-pong mechanism. The pong frame is a response to the ping frame and is returned to the device management server by the client of the document production device immediately after receiving the ping frame. The sending of the pong frame indicates that the document production device has successfully received the ping frame, and the connection between the device management server and the document production device is still valid and the two-way communication is unimpeded. Similar to the ping frame, the pong frame can also contain some application data, but this data is also mainly used for specific diagnostic or debugging purposes.
[0062] For example, Figure 2 The diagram is a schematic diagram of the interaction between a device management server and a certificate production device according to an embodiment of the present application.
[0063] like Figure 2 As shown, the device management server sends an encapsulated data frame including a certificate template (binary data frame), text information (text data frame) and photo information (binary data frame) to the certificate making device. The certificate making device processes the encapsulated data frame based on the type of the encapsulated data frame, obtains the certificate information, certificate template and certificate requirements in the encapsulated data frame, searches for the corresponding template file based on the certificate template, fills the certificate information into the template file, and adjusts the template based on the certificate requirements.
[0064] [HZTC-HXJKJD241020][HS2411339CCN] file, after making the target certificate including the certificate information, feedback information on whether the certificate making is successful is fed back to the device management server, and during the certificate making process, the device management server sends ping frames to the client of the certificate making device at a certain time interval as a detection signal of the connection status. After receiving the ping frame, the client of the certificate making device immediately returns it to the device management server, indicating that the certificate making device has successfully received the ping frame.
[0065] In this way, the connection between the device management server and the certificate production device can be detected in real time through the detection frame and the response frame, ensuring the smooth progress of the certificate production task.
[0066] In some embodiments, the certificate production method also includes: the device management server determines whether a transmission anomaly occurs when data is transmitted with the certificate production device through a data transmission protocol, wherein the transmission anomaly is a network connection interruption or a data transmission protocol error; when a transmission anomaly occurs, the device management server generates a connection closing frame, and sends the connection closing frame to the certificate production device that has not detected the transmission anomaly, so that the certificate production device responds to the connection closing frame to close the communication connection.
[0067] In this way, an error handling mechanism is set up to deal with abnormal situations such as network failures. If the device management server determines that an error occurs during the communication between the device management server and the certificate production device, such as a network interruption or a protocol error, the device management server can send a connection close frame to the certificate production device to gracefully close the connection. This connection close frame contains a reason code for closing the connection, which makes it easier for both parties to understand the reason for closing the connection, so as to deal with abnormal situations such as network failures in a timely manner.
[0068] It should be noted that the certificate production device can also determine whether an error occurs during the communication process between the device management server and the certificate production device, such as a network interruption or a protocol error. When an error occurs, the certificate production device can send a close connection frame to the device management server to gracefully close the connection. This close connection frame includes a reason code for closing the connection, which makes it easier for both parties to understand the reason for closing the connection, thereby responding to abnormal situations such as network failures in a timely manner.
[0069] The certificate production method of this embodiment can be executed by any appropriate electronic device with data processing capabilities, including but not limited to: a server, a mobile terminal (such as a mobile phone, a PAD, etc.) and a PC, etc.
[0070] Figure 3 It is a structural diagram of a certificate production system according to an embodiment of the present application.
[0071] like Figure 3 As shown, the certificate production system 300 can execute Figure 1 The certificate making method of the present invention comprises a certificate making system 300 including: a device management server 301 and a certificate making device 302, the device management server 301
[0072] [HZTC-HXJKJD241020][HS2411339CCN]The server 301 is used to encapsulate and process the data frame of the received certificate production task to obtain an encapsulated data frame, and send the encapsulated data frame to the certificate production device 302 through the data transmission protocol; the certificate production device 302 is used to process the encapsulated data frame based on the type of the encapsulated data frame, obtain the certificate information, certificate production template and certificate production requirements in the encapsulated data frame, and search for the corresponding template file based on the certificate production template, and fill the certificate information into the template file, and after adjusting the template file based on the certificate production requirements, produce the target certificate including the certificate information.
[0073] It can be understood that in a distributed certificate production scenario, certificate production devices in multiple different locations are connected to the management device server through the Internet. When there is an urgent certificate production task, the management device server can quickly assign the task to the appropriate certificate production device to achieve efficient collaborative work.
[0074] In some embodiments of the present application, the device management server 301 is specifically used to: when the data frame of the received certificate production task is a text data frame, encode the text data in the data frame into character data, and determine the character data as the frame payload to obtain an encapsulated data frame; when the data frame of the received certificate production task is a binary data frame, directly encapsulate the binary data frame to obtain an encapsulated data frame.
[0075] In some embodiments of the present application, the certificate production device 302 is specifically used to: use the encapsulated data frame as a character data frame, decode the character data in the character data frame to obtain text data, and query the certificate information, certificate template and certificate requirements from the text data; or use the encapsulated data frame as a binary data frame, and query the certificate information, certificate template and certificate requirements from the binary data frame.
[0076] In some embodiments of the present application, the device management server 301 is also used to: encrypt the encapsulated data frame based on the encryption key in the encryption decryption algorithm to obtain an encrypted encapsulated data frame; the device management server 301 sends the encrypted encapsulated data frame to the certificate production device 302.
[0077] In some embodiments of the present application, the certificate making device 302 is specifically used to: decrypt the encrypted encapsulated data frame based on the decryption key in the encryption and decryption algorithm to obtain the decrypted encapsulated data frame; determine that the decrypted encapsulated data frame is a character data frame based on the operation code of the decrypted encapsulated data frame, and decode the character data in the character data frame to obtain text data; query and obtain certificate information, certificate template and certificate requirements from the text data; based on the operation code of the decrypted encapsulated data frame,
[0078] [HZTC-HXJKJD241020][HS2411339CCN] determines that the encapsulated data frame is a binary data frame, and obtains the certificate information, certificate template and certificate requirements from the binary data frame.
[0079] In some embodiments of the present application, the device management server 301 is also used to send a detection frame to the certificate production device 302 at a preset time interval; the certificate production device 302 is also used to return a response frame to the device management server 301 after receiving the detection frame; the device management server 301 is also used to update the communication connection between the device management server 301 and the certificate production device 302 after receiving the response frame, and confirm that the communication connection is in a normal connection state.
[0080] In some embodiments of the present application, the device management server 301 is also used to determine whether a transmission anomaly occurs when data is transmitted with the certificate production device 302 through a data transmission protocol, wherein the transmission anomaly is a network connection interruption or a data transmission protocol error; when a transmission anomaly occurs, the device management server 301 generates a connection closing frame and sends the connection closing frame to the certificate production device 302 that has not detected the transmission anomaly, so that the certificate production device 302 responds to the connection closing frame to close the communication connection.
[0081] In addition, the technical solutions of the above-mentioned embodiments of the present application can be combined with each other and are not limited here.
[0082] According to the certificate production system of the embodiment of the present application, after the staff inputs the certificate production task on the web interface of the management device server and clicks the send button, the encapsulated data frame can be automatically sent to the certificate production device through the data transmission protocol through the device management server, so that the certificate production device can search for the corresponding template file based on the certificate production template in the encapsulated data frame, fill the certificate information into the template file, and after adjusting the template file based on the certificate production requirements, produce the target certificate including the certificate information, thereby simplifying the certificate production operation and improving the efficiency of certificate production.
[0083] The certificate making system 300 of this embodiment is used to implement the corresponding certificate making methods in the aforementioned multiple method embodiments, and has the beneficial effects of the corresponding method embodiments, which will not be described in detail here. In addition, the functional implementation of each module in the certificate making system 300 of this embodiment can refer to the description of the corresponding parts in the aforementioned method embodiments, which will not be described in detail here.
[0084] Figure 4 This is a structural block diagram of an electronic device according to an embodiment of the present application. The specific embodiment of the present application does not limit the specific implementation of the electronic device.
[0085] like Figure 4 As shown, the electronic device 400 may include: a processor 401, a memory 402, a communication interface 403 and a communication bus 404. The processor 401, the memory 402 and the communication interface 403 communicate via
[0086] [HZTC-HXJKJD241020][HS2411339CCN] The bus 404 completes the communication between each other; the memory 402 is used to store at least one executable instruction, and the executable instruction enables the processor 401 to execute the operation corresponding to the device management server or the certificate production device in the certificate production method of any of the above embodiments.
[0087] The processor 401 may be a central processing unit (CPU), or an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present application. The one or more processors included in the smart device may be processors of the same type, such as one or more CPUs; or processors of different types, such as one or more CPUs and one or more ASICs.
[0088] The memory 402 is used to store programs, and may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.
[0089] According to the electronic device of the embodiment of the present application, after the staff inputs the certificate production task on the web page interface of the management device server and clicks the send button, the encapsulated data frame can be automatically sent to the certificate production device through the data transmission protocol through the device management server, so that the certificate production device can search for the corresponding template file based on the certificate production template in the encapsulated data frame, fill the certificate information into the template file, and after adjusting the template file based on the certificate production requirements, produce the target certificate including the certificate information, thereby simplifying the certificate production operation and improving the efficiency of certificate production.
[0090] An embodiment of the present application also provides a computer storage medium on which a computer program is stored. When the program is executed by a processor, the certificate production method of any of the above embodiments is implemented.
[0091] According to the computer storage medium of the embodiment of the present application, after the staff inputs the certificate production task on the web page interface of the management device server and clicks the send button, the encapsulated data frame can be automatically sent to the certificate production device through the device management server through the data transmission protocol, so that the certificate production device can search for the corresponding template file based on the certificate production template in the encapsulated data frame, fill the certificate information into the template file, and after adjusting the template file based on the certificate production requirements, produce the target certificate including the certificate information, thereby simplifying the certificate production operation and improving the efficiency of certificate production.
[0092] It should be pointed out that, according to the needs of implementation, the various components / steps described in the embodiments of the present application can be split into more components / steps, or two or more components / steps or partial operations of components / steps can be combined into new components / steps to achieve the purpose of the embodiments of the present application.
[0093] [HZTC-HXJKJD241020][HS2411339CCN]
[0094] The above-mentioned method according to the embodiment of the present application can be implemented in hardware, firmware, or implemented as software or computer code that can be stored in a recording medium (such as a CD ROM, RAM, floppy disk, hard disk or magneto-optical disk), or implemented as computer code originally stored in a remote recording medium or a non-temporary machine-readable medium downloaded through a network and to be stored in a local recording medium, so that the method described herein can be stored in such software processing on a recording medium using a general-purpose computer, a dedicated processor or programmable or dedicated hardware (such as an ASIC or FPGA). It can be understood that a computer, a processor, a microprocessor controller or programmable hardware includes a storage component (e.g., RAM, ROM, flash memory, etc.) that can store or receive software or computer code, and when the software or computer code is accessed and executed by a computer, a processor or hardware, the document production method described herein is implemented. In addition, when a general-purpose computer accesses the code for implementing the document production method shown herein, the execution of the code converts the general-purpose computer into a dedicated computer for executing the document production method shown herein.
[0095] Those of ordinary skill in the art will appreciate that the units and method steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the embodiments of the present application.
[0096] The above implementation methods are only used to illustrate the embodiments of the present application, and are not intended to limit the embodiments of the present application. Ordinary technicians in the relevant technical field can make various changes and modifications without departing from the spirit and scope of the embodiments of the present application. Therefore, all equivalent technical solutions also belong to the scope of the embodiments of the present application, and the scope of patent protection of the embodiments of the present application should be defined by the claims. The systems, devices or modules described in the above embodiments can be implemented by computer chips or entities, or by products with certain functions.
Claims
1. A method for producing a certificate, characterized in that: The method comprises: The device management server encapsulates the received data frame of the certificate production task to obtain an encapsulated data frame, and sends the encapsulated data frame to the certificate production device through a data transmission protocol; Processing the encapsulated data frame based on the type of the encapsulated data frame by the certificate making device to obtain certificate information, certificate making template and certificate making requirements in the encapsulated data frame; The certificate making device searches for a corresponding template file based on the certificate making template, fills the certificate information into the template file, and after adjusting the template file based on the certificate making requirements, makes a target certificate including the certificate information.
2. The method for producing a certificate according to claim 1, characterized in that: The received data frame of the certificate production task is encapsulated to obtain an encapsulated data frame, including: When the received data frame of the certificate production task is a text data frame, encoding the text data in the data frame into character data, and determining the character data as a frame payload to obtain the encapsulated data frame; When the received data frame of the certificate production task is a binary data frame, the binary data frame is directly encapsulated to obtain the encapsulated data frame.
3. The method for producing a certificate according to claim 2, characterized in that: Processing the encapsulated data frame based on the type of the encapsulated data frame to obtain the certificate information, certificate template and certificate requirements in the encapsulated data frame includes: The encapsulated data frame is used as a character data frame, the character data in the character data frame is decoded to obtain the text data, and the certificate information, the certificate template and the certificate requirements are obtained by querying from the text data; Alternatively, the encapsulated data frame is used as a binary data frame, and the certificate information, the certificate production template and the certificate production requirements are obtained by querying the binary data frame.
4. The method for producing a certificate according to claim 2, characterized in that: The method further comprises: The device management server encrypts the encapsulated data frame based on the encryption key in the encryption decryption algorithm to obtain an encrypted encapsulated data frame; [HZTC-HXJKJD241020][HS2411339CCN]The device management server sends the encrypted encapsulated data frame to the certificate production device.
5. The method for producing a certificate according to claim 4, characterized in that: Processing the encapsulated data frame based on the type of the encapsulated data frame to obtain the certificate information, certificate template and certificate requirements in the encapsulated data frame includes: Decrypting the encrypted encapsulated data frame based on the decryption key in the encryption / decryption algorithm to obtain a decrypted encapsulated data frame; Based on the operation code of the decrypted encapsulated data frame, determining that the decrypted encapsulated data frame is a character data frame, and decoding the character data in the character data frame to obtain the text data; Query and obtain certificate information, certificate template and certificate requirements from the text data; Based on the operation code of the decrypted encapsulated data frame, it is determined that the encapsulated data frame is a binary data frame, and the certificate information, the certificate production template and the certificate production requirements are obtained by querying from the binary data frame.
6. The method for producing a certificate according to claim 1, characterized in that: The method further comprises: The device management server sends a detection frame to the certificate production device at a preset time interval; The certificate production device returns a response frame to the device management server after receiving the detection frame; After receiving the response frame, the device management server updates the communication connection between the device management server and the certificate making device, and confirms that the communication connection is in a normal connection state.
7. The method for producing a certificate according to claim 1, characterized in that: The method further comprises: The device management server determines whether a transmission anomaly occurs when data is transmitted with the certificate production device through a data transmission protocol, wherein the transmission anomaly is a network connection interruption or an error in the data transmission protocol; When a transmission anomaly occurs, the device management server generates a connection closing frame and sends the connection closing frame to the certificate making device that does not detect the transmission anomaly, so that the certificate making device closes the communication connection in response to the connection closing frame.
8. A certificate production system, characterized in that: include: [HZTC-HXJKJD241020][HS2411339CCN] The device management server is used to encapsulate the received data frame of the certificate production task to obtain the encapsulated data frame, and send the encapsulated data frame to the certificate production device through the data transmission protocol; A certificate making device is used to process the encapsulated data frame based on the type of the encapsulated data frame, obtain the certificate information, certificate template and certificate requirements in the encapsulated data frame, and search for the corresponding template file based on the certificate template, and fill the certificate information into the template file, and after adjusting the template file based on the certificate requirements, make a target certificate including the certificate information.
9. An electronic device, characterized in that: include: A processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus; The memory is used to store at least one executable instruction, and the executable instruction enables the processor to execute operations corresponding to the device management server or the certificate production device in the certificate production method according to any one of claims 1 to 7.
10. A computer storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the certificate production method as described in any one of claims 1 to 7 is implemented.