A communication control method and apparatus, electronic device, and storage medium

CN117734333BActive Publication Date: 2026-10-27AISINO CORPORATION
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202311733477.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-12-15
Publication Date
2026-10-27
Estimated Expiration
2043-12-15

AI Technical Summary

Technical Problem

[0002]在盖章机业务中,采用自动盖章机实现自动化盖章较为普及,但是自动化盖章机仍需人员操作,当盖章的文件较多时,仍容易因人员操作而造成盖章错误,且人员操作的盖章耗时仍然较多

Benefits of technology

[0007]根据本申请实施例的第三方面,提供了一种电子设备,包括:处理器、通信接口、存储器和通信总线,处理器、存储器和通信接口通过通信总线完成相互间的通信。存储器用于存放至少一可执行指令,可执行指令使处理器执行如上述第一方面所述的通讯控制方法对应的操作。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117734333B_ABST
    Figure CN117734333B_ABST
Patent Text Reader

Abstract

Embodiments of the present application provide a communication control method and device, electronic equipment and storage medium, applied to a stamping machine. The method comprises: generating signaling based on a stamping machine signaling protocol, wherein the signaling based on the stamping machine signaling protocol comprises a signaling start code, a termination code, a service code, and a signaling category; determining a service function corresponding to the signaling according to the signaling, wherein the service function comprises handshaking, opening a box, stamping, returning a stamp, closing a box, and status query; and if the stamping machine satisfies an execution state of the service function corresponding to the signaling, executing the service function corresponding to the signaling. Embodiments of the present application realize communication interaction between a software subsystem and a hardware subsystem of the stamping machine, reduce the manpower occupied in the stamping process, and cover the conventional functions of the stamping machine service.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of stamping technology, and in particular to a communication control method, device, electronic device, storage medium, and computer program product. Background Technology

[0002] In the stamping machine business, the use of automatic stamping machines to achieve automated stamping is quite common. However, automatic stamping machines still require human operation. When there are many documents to be stamped, stamping errors can easily occur due to human operation, and human stamping is still time-consuming. The hardware and software communication protocols of typical automatic stamping machines are relatively simple and cannot support relatively intelligent and complex application scenarios.

[0003] Therefore, how to achieve intelligent stamping in various industries while reducing the human resources required has become a pressing technical problem that needs to be solved in the current technology landscape. Summary of the Invention

[0004] In view of the above, embodiments of this application provide a communication control method, apparatus, electronic device, storage medium, and computer program product to at least solve some of the above-mentioned problems.

[0005] According to a first aspect of the embodiments of this application, a communication control method is provided, applied to a stamping machine. The method includes: generating signaling based on a stamping machine signaling protocol, wherein the signaling based on the stamping machine signaling protocol includes: a signaling start code, a termination code, a service code, and a signaling category; determining a service function corresponding to the signaling based on the signaling, wherein the service function includes: handshake, opening a box, stamping, returning the stamp, closing the box, and status query; and executing the service function corresponding to the signaling if the stamping machine meets the execution status of the service function corresponding to the signaling.

[0006] According to a second aspect of the embodiments of this application, a communication control device is provided, applied to a stamping machine. The device includes: a signaling receiving module, configured to generate signaling based on a stamping machine signaling protocol, wherein the signaling based on the stamping machine signaling protocol includes: a signaling start code, a termination code, a service code, and a signaling category; a signaling determining module, configured to determine the service function corresponding to the signaling based on the signaling, wherein the service function includes: handshake, box opening, stamping, stamp return, box closing, and status query; and a service execution module, configured to execute the service function corresponding to the signaling when the stamping machine meets the execution status of the service function corresponding to the signaling.

[0007] According to a third aspect of the embodiments of this application, an electronic device is provided, including: a processor, a communication interface, a memory, and a communication bus, wherein the processor, the memory, and the communication interface communicate with each other through the communication bus. The memory is used to store at least one executable instruction, which causes the processor to perform an operation corresponding to the communication control method described in the first aspect above.

[0008] According to a fourth aspect of the embodiments of this application, a computer storage medium is provided, on which a computer program is stored, which, when executed by a processor, implements the communication control method as described in the first aspect above.

[0009] According to the above technical solution, the stamping machine determines the corresponding business function based on the signaling of the stamping machine signaling protocol. If the stamping machine meets the execution status of the business function corresponding to the signaling, then the business function corresponding to the signaling is executed. Since the signaling based on the stamping machine signaling protocol includes: signaling start code, termination code, business code, and signaling category, communication and interaction between the software subsystem and hardware subsystem of the stamping machine are realized, reducing the manpower required for the stamping process. The business functions corresponding to the signaling include: handshake, opening the box, stamping, returning the stamp, closing the box, and status query, thus covering the conventional functions of the stamping machine. Attached Figure Description

[0010] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0011] Figure 1 This is a schematic diagram of the structure of the stamping machine used in the communication control method provided in one embodiment of this application;

[0012] Figure 2 This is a flowchart of a communication control method provided in one embodiment of this application;

[0013] Figure 3 This is a schematic diagram of a communication control device provided in another embodiment of this application;

[0014] Figure 4 This is a schematic block diagram of an electronic device provided in another embodiment of this application. Detailed Implementation

[0015] To enable those skilled in the art to better understand the technical solutions in the embodiments of the present invention, the technical solutions in the embodiments of the present invention will be clearly and thoroughly described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art should fall within the protection scope of the present invention.

[0016] Reference is made to the accompanying drawings, which form part of the detailed description and illustrate exemplary embodiments. Furthermore, it should be understood that other embodiments may be utilized, and structural and / or logical changes may be made without departing from the scope of the claimed subject matter. It should also be noted that orientations and references (e.g., up, down, top, bottom, etc.) may be used merely to facilitate the description of features in the drawings. Therefore, the following detailed description is not to be construed in a limiting sense, and the scope of the claimed subject matter is defined only by the appended claims and their equivalents.

[0017] Numerous details are set forth in the following description. However, it will be apparent to those skilled in the art that the embodiments described herein can be practiced without these specific details. In some instances, well-known methods and apparatus are shown in block diagram form rather than in detail to avoid obscuring the embodiments described herein. Throughout this specification, references to “embodiment,” “one embodiment,” or “some embodiments” mean that a particular feature, structure, function, or characteristic described in connection with that embodiment is included in at least one embodiment herein. Therefore, the phrases “in an embodiment,” “in one embodiment,” or “some embodiments” appearing throughout this specification do not necessarily refer to the same embodiment. Furthermore, in one or more embodiments, particular features, structures, functions, or characteristics can be combined in any suitable manner. For example, a first embodiment can be combined with a second embodiment in any way that does not mutually exclude particular features, structures, functions, or characteristics associated with two embodiments.

[0018] As used in the description and appended claims, the singular forms “a (a, an)” and “the” are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will also be understood that the term “and / or” as used herein refers to and includes any and all possible combinations of one or more of the associated listed items.

[0019] The terms “coupling” and “connection”, along with their derivatives, are used herein to describe functional or structural relationships between components. It should be understood that these terms are not intended to be synonyms for each other. Rather, in certain embodiments, “connection” can be used to indicate that two or more elements are in direct physical, optical, or electrical contact with each other. “Coupling” can be used to indicate that two or more elements are in direct or indirect physical or electrical contact with each other (with other intermediary elements between them), and / or that two or more elements cooperate or interact with each other (e.g., as in a causal relationship).

[0020] As used herein, the terms “above,” “below,” “between,” and “on” refer to the relative position of a component or material with respect to other components or materials, where such physical relationships are noteworthy. For example, in the context of materials, a material positioned above or below another material may be in direct contact with it, or may have one or more intermediate materials. Furthermore, a material positioned between two materials may be in direct contact with both layers, or may have one or more intermediate layers. In contrast, a first material or material “on” a second material or material is in direct contact with that second material / material. Similar distinctions are made in the context of component assembly.

[0021] As described throughout this document and in the claims, a list of items connected by the terms “at least one of” or “one or more of” may mean any combination of the listed items. For example, the phrase “at least one of A, B, or C” may mean A; B; C; A and B; A and C; B and C; or A, B, and C.

[0022] The terms “circuit” or “module” can refer to one or more passive and / or active components arranged to cooperate with each other to provide a desired function. The term “signal” can refer to at least one current signal, voltage signal, or magnetic signal. The terms “substantially,” “close to,” “approximately,” “near,” and “about” generally refer to within + / -10% of the target value.

[0023] The specific implementation of the embodiments of the present invention will be further described below with reference to the accompanying drawings.

[0024] Communication control method

[0025] This application provides a communication control method, which will be described in detail below through multiple embodiments.

[0026] See Figure 1This communication control method is applied to a stamping machine, which includes a software subsystem and a hardware subsystem. The software subsystem includes: a system initialization module, a drag-and-drop policy and control module, a position calibration and correction module, an image display and retention module, and a first communication control module. The hardware subsystem includes hardware components such as the stamping cabinet, ticket tray, stamp, camera, power supply, and robotic arm.

[0027] The devices included in the software subsystem are described in detail below.

[0028] The system initialization device is used to automatically detect and identify the hardware components of the stamping machine, such as cameras and robotic arms.

[0029] Drag-and-drop simulation and control device to provide flexible and dynamic simulation of the stamping process—drag-and-drop addition, deletion, and stamp position movement, what you see is what you get.

[0030] Position calibration and correction device, used for visual and precise position calibration—determining the coordinates of the stamp center position, correcting the stamp center, etc.

[0031] The image display and retention device is used to provide high-definition visual images of the stamping process and to capture and retain images of stamped documents securely and traceably.

[0032] The communication control device is used to interact with the hardware subsystem through a communication protocol to control the operation of each hardware component of the stamping machine or to query the status of each hardware component.

[0033] The devices included in the hardware subsystem are described in detail below.

[0034] The hardware components, such as the stamping cabinet, ticket tray, stamp, camera, power supply, and robotic arm, are the same as those of general automated stamping machines, so they will not be described in detail here.

[0035] The stamping machine determines the business function corresponding to the signaling based on the signaling protocol of the stamping machine through the communication control device. If the stamping machine meets the execution state of the business function corresponding to the signaling, then the business function corresponding to the signaling is executed.

[0036] Figure 2 This is a flowchart of a communication control method according to an embodiment of this application. Figure 2 As shown, the communication control method includes the following steps:

[0037] Step S1: Generate signaling based on the stamping machine signaling protocol.

[0038] The signaling based on the stamping machine signaling protocol includes: signaling start code, termination code, service code, and signaling category.

[0039] Since the signaling based on the stamping machine signaling protocol includes: signaling start code, termination code, business code, and signaling category, the software subsystem and hardware subsystem of the stamping machine can communicate and interact, reducing the manpower required for the stamping process.

[0040] Step S2: Determine the service function corresponding to the signaling based on the signaling.

[0041] The business functions mentioned include: handshake, opening the box, stamping, returning the stamp, closing the box, and status query.

[0042] Since the signaling corresponds to business functions including handshake, box opening, stamping, stamp return, box closing, and status query, it covers the conventional functions of the stamping machine business.

[0043] Step S3: If the stamping machine meets the execution state of the business function corresponding to the signaling, then execute the business function corresponding to the signaling.

[0044] Specifically, if the hardware components of the stamping machine's hardware subsystem, such as the stamping cabinet, ticket tray, seal, camera, power supply, and robotic arm, meet the execution status of the business function corresponding to the signaling, then the business function corresponding to the signaling will be executed.

[0045] The above technical solution enables the stamping machine to generate signaling based on its signaling protocol. Since this signaling protocol includes a start code, a stop code, a service code, and a signaling category, it facilitates communication between external devices and the stamping machine, reducing the manpower required for the stamping process. The corresponding service functions include handshake, box opening, stamping, stamp return, box closing, and status query, thus covering the conventional functions of the stamping machine.

[0046] In some specific implementations of the embodiments of this application, the signaling based on the stamping machine signaling protocol also includes: a business data area and signaling padding code.

[0047] Specifically, a complete signaling message based on the stamping machine signaling protocol consists of 8 bytes.

[0048] The basic format of the signaling protocol (arranged in order and represented in hexadecimal) is shown in Table 1.

[0049] Table 1

[0050]

[0051]

[0052] Therefore, the present application embodiment realizes signaling extension through the service data area and signaling filling code in the signaling of the stamping machine signaling protocol. The communication control method based on the stamping machine in the present application embodiment is easier to extend and has high scalability.

[0053] In some specific implementations of the embodiments of this application, the stamping machine signaling protocol also includes error codes.

[0054] Specifically, the error code ERRNO is the error code of the stamping machine, represented by 1 byte.

[0055] For example, see Table 2.

[0056] Table 2

[0057] 01 Signaling protocol format error 02 Lateral sensor or motor failure 03 Upper and lower sensor or motor failure 04 Front or rear sensor or motor failure 05 incorrect seal number 06 The stamp box is not in place 06 Location coordinates incorrect 08 The stamping position is outside the range of the robotic arm. 09 The serial numbers to be stamped were not transmitted in order. 0A Transmitting stamped data without multiple stamps is invalid. 0B The number of stamps to be stamped is incorrect. 0C The data is ready; do not resend the stamped data. 0D The data is not ready and cannot be stamped.

[0058] In some specific implementations of the embodiments of this application, the stamping business function includes: single stamp mode and multi-stamp mode.

[0059] Step S3 also includes:

[0060] If the business function corresponding to the signaling is a stamping business function, determine whether the stamping business function is a single-stamp mode stamping business function or a multi-stamp mode stamping business function.

[0061] Therefore, the embodiments of this application support multiple application scenarios in single-seal mode and multi-seal mode, which can further solve the problem that the stamping machine of the embodiments of this application cannot be applied in complex application scenarios.

[0062] In some specific implementations of the embodiments of this application, step S3 further includes:

[0063] If the stamping service function is a multi-stamp stamping service function, determine whether the multi-stamp mode is a single-stamp multi-stamp mode or a multi-stamp multi-stamp mode.

[0064] Therefore, the embodiments of this application support more complex business scenarios such as one chapter with multiple covers and multiple chapters with multiple covers.

[0065] Step S3 also includes:

[0066] If the multi-seal mode is a multi-seal multi-cover mode, the signaling includes multiple sub-signalings, which include: a sub-signaling for preparing to cover multiple seals, a sub-signaling for sending official seal information when covering multiple seals, and a sub-signaling for sending official seal information when covering multiple seals.

[0067] This application embodiment uses multiple sub-signaling to better realize the stamping business in scenarios with multiple stamps and multiple seals, thereby ensuring the implementation of automatic stamping business in complex scenarios with multiple stamps and multiple seals.

[0068] The implementation of this application will be further explained below through specific application scenarios.

[0069] The signaling in the embodiments of this application is represented in hexadecimal.

[0070] If the business function corresponding to the signaling is: handshake, then the business function is that the software subsystem of the stamping machine performs a system self-test by handshaking with the hardware subsystem of the stamping machine, and automatically identifies various components including the serial port of the stamping machine.

[0071] Specifically, its signaling includes:

[0072] Business Code: 01

[0073] Request: AA+01+0A+FF+FF+FF+FF+BB

[0074] Successful return: AA+01+0B+01+FF+FF+FF+BB

[0075] Return (Failure): AA+01+0B+02+ERRNO+FF+FF+BB

[0076] The first byte AA of the signaling sequence indicates the start of a signaling sequence, and the last byte BB indicates the end of the signaling sequence. The second byte 01 indicates the service code, i.e., the handshake. The third byte 0A or 0B indicates the signaling type (request or response). In the response case, the fourth byte indicates whether the response was successful or failed, with 01 for success and 02 for failure. If the response is a failure, the fifth byte indicates the error code ERRNO. The FF bytes before the last byte BB can be used as padding.

[0077] If the business function corresponding to the signaling is: status query, then the business function is for the stamping machine to query the current status of the ticket box, whether it is in the open or closed state.

[0078] Specifically, its signaling includes:

[0079] Business Code: 02

[0080] Send: AA+02+0A+FF+FF+FF+FF+BB

[0081] Successful return: AA+02+0B+01+Data+FF+FF+BB

[0082] Return (Failure): AA+02+0B+02+ERRNO+FF+FF+BB

[0083] The second byte of the signaling, 02, represents the business code, i.e., the status query. If the signaling returns successfully, the fourth byte, 01, indicates a successful result, and the fifth byte, Data, indicates the ticket box status (00: ticket box is closed, 01: ticket box has opened).

[0084] If the business function corresponding to the signaling is: stamping and the stamping business function is single stamp mode, then the business function is for the software subsystem to drive the hardware subsystem robotic arm to stamp, which is used when only one official seal needs to be stamped in a single batch stamping process.

[0085] Specifically, its signaling includes:

[0086] Business Code: 03

[0087] Send: AA+03+0A+posX+posY+sealID+FF+BB

[0088] Successful return: AA+03+0B+01+FF+FF+FF+BB

[0089] Return (Failure): AA+03+0B+02+ERRNO+FF+FF+BB

[0090] In the signaling, posX and posY are the proportional coordinates of the seal center position in the horizontal and vertical directions relative to the origin, respectively, that is, the coordinate percentage of the seal center relative to the origin; sealID is the seal number used, with a value of 1, 2, 3, 4..., and its maximum value depends on the number of seal types supported by the hardware.

[0091] If the business function corresponding to the signaling is "stamping" and the stamping business function is in multi-stamp mode, then the business function is for the software subsystem to drive the hardware subsystem robotic arm to stamp, which is used when only multiple official seals need to be stamped in a single batch stamping process. Multi-stamp mode includes: single-stamp multiple-stamping mode and multi-stamp multiple-stamping mode. Among them, multi-stamp multiple-stamping mode is more complex and contains multiple sub-signalings.

[0092] The following section provides a detailed introduction to sub-signaling in the multi-chapter, multi-coverage mode.

[0093] If the business function corresponding to the sub-signaling is: prepare to affix multiple seals, then the business function is to prepare to affix multiple seals. The software subsystem sends a command to prepare to affix multiple seals, and after receiving the command, the hardware subsystem saves the number of seals to be affixed.

[0094] Specifically, its sub-signaling includes:

[0095] Business Code: 04

[0096] Send: AA+04+0A+N+FF+FF+FF+BB

[0097] Successful return: AA+04+0B+01+FF+FF+FF+BB

[0098] Return (Failure): AA+04+0B+02+ERRNO+FF+FF+BB

[0099] In the signaling message, N represents the number of items that need to be stamped with the official seal in this batch, and N is a positive integer greater than 2.

[0100] If the business function corresponding to the sub-signaling is to send the official seal information when multiple seals are to be affixed, then the business function is to send the coordinate data and seal numbers of the multiple seals to be affixed. The software subsystem sends a command to prepare to affix multiple seals. After the hardware subsystem receives the command, the software subsystem sends the official seal information when multiple seals are to be affixed, and the hardware subsystem saves the coordinate data and seal numbers to be affixed.

[0101] Specifically, its sub-signaling includes:

[0102] Business Code: 05

[0103] Send: AA+05+0A+order+posX+posY+sealID+BB

[0104] Successful return: AA+05+0B+01+order+FF+FF+BB

[0105] Return (Failure): AA+05+0B+02+ERRNO+order+FF+BB

[0106] Order represents the stamp data sequence number, ranging from 1 to N, and should be sent sequentially from 1 to N; posX and posY are the proportional coordinates of the stamp center position in the horizontal and vertical directions relative to the origin, that is, the percentage of the stamp center relative to the origin; sealID is the stamp number used, with values ​​of 1, 2, 3, 4..., and its maximum value depends on the number of stamp types supported by the hardware subsystem.

[0107] If the business function corresponding to the sub-signaling is: send the official seal information when multiple seals are affixed, then the business function is to start affixing multiple official seals. The software subsystem sends a command to affix multiple seals, the hardware subsystem receives the command, affixes the seals, and returns after all seals are affixed.

[0108] Specifically, its sub-signaling includes:

[0109] Business Code: 06

[0110] Send: AA+06+0A+N+FF+FF+FF+BB

[0111] Successful return: AA+06+0B+01+N+FF+FF+BB

[0112] Return (Failure): AA+06+0B+02+ERRNO+N+FF+BB

[0113] N represents the number of official seals required in this batch, and N is a positive integer greater than 2. It is the same as the number N sent in the "Prepare for Multiple Seals" command with business code 04.

[0114] If the corresponding business function of the signaling is: pop up the ticket box, then the business function is to pop up the ticket box.

[0115] Specifically, its signaling includes:

[0116] Business Code: 07

[0117] Send: AA+07+0A+FF+FF+FF+FF+BB

[0118] Successful return: AA+07+0B+01+FF+FF+FF+BB

[0119] Return (Failure): AA+07+0B+02+ERRNO+FF+FF+BB

[0120] If the corresponding business function of the signaling is "Return Seal," then the business function is to place the seal back onto the seal holder, i.e., return the seal. This is for the purpose of facilitating seal maintenance.

[0121] Specifically, its signaling includes:

[0122] Business Code: 08

[0123] Send: AA+08+0A+FF+FF+FF+FF+BB

[0124] Successful return: AA+08+0B+01+FF+FF+FF+BB

[0125] Return (Failure): AA+08+0B+02+ERRNO+FF+FF+BB

[0126] In summary, the stamping machine signaling protocol of this application covers commonly used functions of stamping machines, including handshake, unpacking, stamping (multi-stamp mode or single-stamp mode), stamp return, and status query. If other functions need to be added, such as internal testing, they can also be designed according to the signaling format. This application embodiment has high scalability and can be further designed with additional signaling as needed.

[0127] Communication control device

[0128] Figure 3 This is a schematic diagram of a communication control device provided in one embodiment of this application, as shown below. Figure 3As shown, the communication control device 300 may include: a signaling receiving module 302, a signaling determining module 304, and a service execution module 306.

[0129] The signaling receiving module 302 is used to generate signaling based on the stamping machine signaling protocol, wherein the signaling based on the stamping machine signaling protocol includes: signaling start code, termination code, service code, and signaling category.

[0130] The signaling determination module 304 is used to determine the business function corresponding to the signaling based on the signaling, wherein the business function includes: handshake, opening the box, stamping, returning the stamp, closing the box, and status query.

[0131] The business execution module 306 is used to execute the business function corresponding to the signaling when the stamping machine meets the execution state of the business function corresponding to the signaling.

[0132] According to the above technical solution, the stamping machine determines the corresponding business function based on the signaling of the stamping machine signaling protocol. If the stamping machine meets the execution status of the business function corresponding to the signaling, then the business function corresponding to the signaling is executed. Since the signaling based on the stamping machine signaling protocol includes: signaling start code, termination code, business code, and signaling category, communication and interaction between the software subsystem and hardware subsystem of the stamping machine are realized, reducing the manpower required for the stamping process. The business functions corresponding to the signaling include: handshake, opening the box, stamping, returning the stamp, closing the box, and status query, thus covering the conventional functions of the stamping machine.

[0133] electronic devices

[0134] Figure 4 This is a schematic block diagram of an electronic device provided in an embodiment of this application. Specific embodiments of this application do not limit the specific implementation of the electronic device. Figure 4 As shown, the electronic device 400 may include: a processor 602, a communications interface 404, a memory 406, and a communications bus 408. Wherein:

[0135] The processor 402, communication interface 404, and memory 406 communicate with each other via communication bus 408.

[0136] Communication interface 4604 is used to communicate with other electronic devices or servers.

[0137] The processor 402 is used to execute program 410, which can specifically execute the relevant steps in any of the aforementioned tax administration method embodiments.

[0138] Specifically, program 410 may include program code that includes computer operation instructions.

[0139] Processor 402 may be a CPU, an Application Specific Integrated Circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of this application. The smart device includes one or more processors, which 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.

[0140] Memory 406 is used to store program 410. Memory 406 may include high-speed RAM memory, and may also include non-volatile memory, such as at least one disk storage device.

[0141] Specifically, program 410 can be used to cause processor 402 to execute the communication control method in any of the foregoing embodiments.

[0142] The specific implementation of each step in procedure 410 can be found in the corresponding steps and units described in any of the aforementioned tax administration method embodiments, and will not be repeated here. Those skilled in the art will understand that, for the sake of convenience and brevity, the specific working processes of the devices and modules described above can be referred to the corresponding process descriptions in the aforementioned method embodiments, and will not be repeated here.

[0143] The above technical solution forwards multiple client access requests to the Baolande Web server, allowing the Baolande application server to receive these forwarded requests. The Baolande application server then calls the deployed OceanBase database to execute tax management applications, including at least one of the following: tax declaration application, input tax management application, and output tax management application. The OceanBase database operates in a cluster configuration. This embodiment of the application builds a tax management system with high concurrency, high reliability, elastic scalability, high availability, and strong disaster recovery capabilities.

[0144] storage media

[0145] In this embodiment, a computer-readable storage medium is provided to store instructions for causing a machine to perform the communication control method as described herein. Specifically, a system or apparatus equipped with a storage medium may be provided, on which software program code implementing the functions of any of the embodiments described above is stored, and the computer (or CPU or MPU) of the system or apparatus may read and execute the program code stored in the storage medium.

[0146] In this case, the program code read from the storage medium can itself implement the function of any of the above embodiments, and therefore the program code and the storage medium storing the program code constitute part of this application.

[0147] Examples of storage media used to provide program code include floppy disks, hard disks, magneto-optical disks, optical disks (such as CD-ROM, CD-R, CD-RW, DVD-ROM, DVD-RAM, DVD-RW, DVD+RW), magnetic tapes, non-volatile memory cards, and ROMs. Alternatively, program code can be downloaded from a server computer via a communication network.

[0148] It should be noted that the above communication control method embodiments are based on the aforementioned communication control method embodiments. For details and beneficial effects, please refer to the description in the aforementioned tax administration method embodiments, which will not be repeated here.

[0149] In the description of this application, the terms "first" and "second" are used only for convenience in describing different components or names, and should not be construed as indicating or implying a sequential relationship, relative importance, or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of that feature.

[0150] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application.

[0151] It should be noted that although specific embodiments of this application have been described in detail with reference to the accompanying drawings, this should not be construed as limiting the scope of protection of this application. Various modifications and variations that can be made by those skilled in the art without inventive effort within the scope described in the claims still fall within the scope of protection of this application.

[0152] The examples of the embodiments in this application are intended to concisely illustrate the technical features of the embodiments in this application, so that those skilled in the art can intuitively understand the technical features of the embodiments in this application, and are not intended to be improper limitations on the embodiments in this application.

[0153] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application.

Claims

1. A communication control method applied to a stamping machine, characterized in that, The method includes: Generate signaling based on the stamping machine signaling protocol, wherein the signaling based on the stamping machine signaling protocol includes: signaling start code, termination code, service code, service data area, signaling fill code, and signaling category; a complete signaling based on the stamping machine signaling protocol consists of 8 bytes, including the signaling start code in the first byte, the service code in the second byte, the signaling category in the third byte, the service data area and signaling fill code in the fourth to seventh bytes, and the signaling termination code in the eighth byte, wherein the signaling category includes request signaling and return signaling; the stamping machine signaling protocol also includes an error code ERRNO, represented by 1 byte. In the return signaling, the result needs to be explicitly stated in the first byte of the data area, that is, the code indicating success or failure. If the return fails, the reason code for the failure needs to be further specified in the second byte of the data area, that is, the error code ERRNO; Based on the signaling, the corresponding business function is determined, wherein the business function includes: handshake, opening the box, stamping, returning the stamp, closing the box, and status query; If the stamping machine meets the execution state of the business function corresponding to the signaling, then the business function corresponding to the signaling is executed.

2. The method according to claim 1, characterized in that, The stamping service includes: single-stamp mode and multi-stamp mode. The step of determining the service function corresponding to the signaling based on the signaling further includes: If the business function corresponding to the signaling is a stamping business function, determine whether the stamping business function is a single-stamp mode stamping business function or a multi-stamp mode stamping business function.

3. The method according to claim 2, characterized in that, The step of determining the service function corresponding to the signaling based on the signaling further includes: If the stamping service function is a multi-stamp stamping service function, determine whether the multi-stamp mode is a single-stamp multi-stamp mode or a multi-stamp multi-stamp mode.

4. The method according to claim 3, characterized in that, The step of determining the service function corresponding to the signaling based on the signaling further includes: If the multi-seal mode is a multi-seal multi-cover mode, the signaling includes multiple sub-signalings, including: a sub-signaling for preparing to cover multiple seals, and a sub-signaling for sending the official seal information when covering multiple seals.

5. A communication control device applied to a stamping machine, characterized in that, The device includes: The signaling receiving module is used to generate signaling based on the stamping machine signaling protocol. The signaling based on the stamping machine signaling protocol includes: a signaling start code, an end code, a service code, a service data area, a signaling padding code, and a signaling category. A complete signaling message based on the stamping machine signaling protocol consists of 8 bytes, sequentially including the first byte (signaling start code), the second byte (service code), the third byte (signaling category), the fourth to seventh bytes (service data area and signaling padding code), and the eighth byte (signaling end code). The signaling category includes request signaling and return signaling. The stamping machine signaling protocol also includes an error code ERRNO, represented by one byte. In the return signaling, the result, i.e., the code indicating success or failure, needs to be explicitly stated in the first byte of the data area. If the return fails, the reason for the failure, i.e., the error code ERRNO, needs to be further specified in the second byte of the data area. The signaling determination module is used to determine the business function corresponding to the signaling based on the signaling, wherein the business function includes: handshake, opening the box, stamping, returning the stamp, closing the box, and status query. The business execution module is used to execute the business function corresponding to the signaling when the stamping machine meets the execution state of the business function corresponding to the signaling.

6. An electronic device, characterized in that, include: The processor, communication interface, memory, and communication bus communicate with each other through the communication bus. The memory is used to store at least one executable instruction, which causes the processor to perform the operation corresponding to the communication control method as described in any one of claims 1-4.

7. A computer storage medium having a computer program stored thereon, which, when executed by a processor, implements the communication control method as described in any one of claims 1-4.

8. A computer program product tangibly stored on a computer-readable medium and comprising computer-executable instructions that, when executed, cause at least one processor to perform the method according to any one of claims 1-4.

Citation Information

Patent Citations

  • Knowledge graph driven intelligent hardware control method

    CN107272521A