CN109905417B - Tax billing system and tax control converter - Google Patents

Tax billing system and tax control converter Download PDF

Info

Publication number
CN109905417B
CN109905417B CN201711284872.5A CN201711284872A CN109905417B CN 109905417 B CN109905417 B CN 109905417B CN 201711284872 A CN201711284872 A CN 201711284872A CN 109905417 B CN109905417 B CN 109905417B
Authority
CN
China
Prior art keywords
data packet
tax
encrypted
control
billing terminal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201711284872.5A
Other languages
Chinese (zh)
Other versions
CN109905417A (en
Inventor
张磊
张帅
张树林
高志刚
张玉魁
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Aisino Corp
Original Assignee
Aisino Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Aisino Corp filed Critical Aisino Corp
Priority to CN201711284872.5A priority Critical patent/CN109905417B/en
Publication of CN109905417A publication Critical patent/CN109905417A/en
Application granted granted Critical
Publication of CN109905417B publication Critical patent/CN109905417B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a tax invoicing system and a tax control converter, wherein the tax invoicing system comprises: the system comprises a tax control billing terminal, a gold tax disk, a tax control converter and a tax server; the tax control billing terminal sends a target data packet to the tax control converter; receiving a first data packet sent by the tax control converter, and sending the first data packet to the tax server; the tax control converter receives the target data packet, acquires a first data packet corresponding to the target data packet from the gold tax disk, and sends the first data packet to the tax control billing terminal; the tax server receives a first data packet sent by the tax control billing terminal and sends a second data packet sent to the tax control converter to the tax control billing terminal. In the embodiment of the invention, the tax control converter does not directly perform data interaction with the tax server, and a network module is not required to be configured in the tax control converter, so that the hardware cost of the tax control converter is saved, and the requirement on a network interface in a user use scene is reduced.

Description

Tax billing system and tax control converter
Technical Field
The invention relates to the field of tax invoicing, in particular to a tax invoicing system and a tax control converter.
Background
With the wide promotion of 'marketing tax change and increment' work, namely business tax change and increment tax work in the whole industry, in order to enable millions of old tax control billing terminals to have the function of issuing value tax invoices, a device named as 'tax control converter' is generated. The tax control converter is connected with the old tax control billing terminal through a serial port line, and during work, the tax control billing terminal initiates a service request through the serial port, and the tax control converter operates an internal gold tax disk to complete various service operations of value added tax. FIG. 1 is a schematic diagram of the operation of a tax controlled converter in the prior art.
In the prior art, the tax control converter itself has a network module, as shown in fig. 1, when data interaction is performed between the tax control converter and the tax server, the tax control converter sends data to the tax server through the network module itself, and after receiving the data sent by the tax control converter, the tax server also sends response data to the tax control converter through the network module in the tax control converter. The existence of the network module in the tax control converter in the prior art increases the hardware cost of the tax control converter, and a user use scene must have a network interface, which has limitations.
Disclosure of Invention
The embodiment of the invention provides a tax invoicing system and a tax control converter, which are used for solving the problems that the network module in the tax control converter in the prior art increases the hardware cost of the tax control converter, and a network interface is required in a user use scene, so that the tax control converter has limitation.
The embodiment of the invention provides a tax invoicing system, which comprises: the system comprises a tax control billing terminal, a gold tax disk, a tax control converter and a tax server; wherein the content of the first and second substances,
the tax control billing terminal is connected with the tax control converter and is used for sending a target data packet to the tax control converter; the target data packet is initiated by the tax control invoicing terminal after receiving an operation instruction of a user or a second data packet sent by the tax server; receiving a first data packet sent by the tax control converter, and sending the first data packet to the tax server;
the tax control converter is connected with the gold tax disc and is used for receiving the target data packet, acquiring a first data packet corresponding to the target data packet from the gold tax disc and sending the first data packet to the tax control billing terminal;
and the tax server is used for receiving the first data packet sent by the tax control billing terminal and sending the second data packet sent to the tax control converter to the tax control billing terminal.
Further, the tax control converter is specifically configured to obtain an encrypted first data packet corresponding to the target data packet from the gold tax disk, and send the encrypted first data packet to the tax control billing terminal;
the tax control billing terminal is specifically used for receiving the encrypted first data packet sent by the tax control converter and sending the encrypted first data packet to the tax server;
the tax server is specifically configured to receive the first encrypted data packet sent by the tax-control billing terminal, and decrypt the first encrypted data packet.
Further, the tax server is specifically configured to send the encrypted second data packet sent to the tax control converter to the tax control billing terminal;
the tax control billing terminal is specifically used for sending the received encrypted second data packet to the tax control converter;
the tax control converter is specifically configured to receive the encrypted second data packet sent by the tax control billing terminal, send the encrypted second data packet to the fiscal disc, and enable the fiscal disc to decrypt the encrypted second data packet.
Further, the tax control converter is specifically configured to encapsulate the encrypted first data packet, and send the encapsulated first data packet to the tax control billing terminal;
the tax control billing terminal is specifically configured to receive the encapsulated first data packet, decapsulate the encapsulated first data packet, and send the decapsulated first data packet to the tax server; receiving an encrypted second data packet sent by the tax server, packaging the encrypted second data packet, and sending the packaged second data packet to the tax control converter;
the tax control converter is specifically configured to receive the encapsulated second data packet sent by the tax control billing terminal, decapsulate the encapsulated second data packet, send the decapsulated second data packet to the fiscal disc, and enable the fiscal disc to decrypt the decapsulated second data packet.
Further, the tax control converter is further configured to, after receiving the encrypted second data packet sent by the tax control billing terminal, determine whether the encrypted second data packet is a secure channel data packet, and if so, decrypt the encrypted second data packet.
Further, the first data packet includes at least one of:
the data packet requesting to establish connection of a Transmission Control Protocol (TCP) protocol or an Internet Protocol (IP), the data packet requesting to release connection of the TCP protocol or the IP and the service data packet.
On the other hand, the embodiment of the invention provides a tax control converter, which comprises a control module, an RS232 serial port circuit and a USB interface circuit; wherein the content of the first and second substances,
the control module is respectively connected with the RS232 serial port circuit and the USB interface circuit, the RS232 serial port circuit is used for being connected with a tax control billing terminal, and the USB interface circuit is used for being connected with a gold tax disk;
the control module is used for receiving a target data packet sent by the tax control billing terminal through the RS232 serial port circuit; the target data packet is initiated by the tax control invoicing terminal after receiving an operation instruction of a user or a second data packet sent by a tax server; and acquiring a first data packet corresponding to the target data packet from the gold tax disk through the USB interface circuit, and sending the first data packet to the tax control billing terminal through the RS232 serial port circuit, so that the tax control billing terminal sends the first data packet to a tax server.
Further, the control module is specifically configured to acquire, through the USB interface circuit, a first encrypted data packet corresponding to the target data packet from the gold tax disk, and send the first encrypted data packet to the tax-control billing terminal through an RS232 serial port circuit, so that the tax-control billing terminal sends the first encrypted data packet to the tax server.
Further, the control module is specifically configured to receive, through the RS232 serial port circuit, the encrypted second data packet sent by the tax control billing terminal, and send, through the USB interface circuit, the encrypted second data packet to the fiscal disc, so that the fiscal disc decrypts the encrypted second data packet.
Further, the control module is specifically configured to encapsulate the encrypted first data packet, and send the encapsulated first data packet to the tax-control billing terminal through an RS232 serial port circuit;
the control module is further configured to receive the encapsulated second data packet sent by the tax control billing terminal through the RS232 serial port circuit, decapsulate the encapsulated second data packet, and send the decapsulated second data packet to the fiscal disc through the USB interface circuit, so that the fiscal disc decrypts the decapsulated data packet.
The embodiment of the invention provides a tax invoicing system and a tax control converter, wherein the tax invoicing system comprises: the system comprises a tax control billing terminal, a gold tax disk, a tax control converter and a tax server; the tax control billing terminal is connected with the tax control converter and used for sending a target data packet to the tax control converter; the target data packet is initiated by the tax control invoicing terminal after receiving an operation instruction of a user or a second data packet sent by the tax server; receiving a first data packet sent by the tax control converter, and sending the first data packet to the tax server; the tax control converter is connected with the gold tax disc and is used for receiving the target data packet, acquiring a first data packet corresponding to the target data packet from the gold tax disc and sending the first data packet to the tax control billing terminal; and the tax server is used for receiving the first data packet sent by the tax control billing terminal and sending the second data packet sent to the tax control converter to the tax control billing terminal. In the embodiment of the invention, the tax control converter sends the first data packet to be sent to the tax server to the tax control billing terminal, the first data packet is sent to the tax server through the tax control billing terminal, and the second data packet sent to the tax control converter by the tax server is also sent through the tax control billing terminal, so that the tax control converter does not directly perform data interaction with the tax server, a network module is not required to be configured in the tax control converter, the hardware cost of the tax control converter is saved, and the requirement on a network interface in a user use scene is reduced.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a schematic diagram of a tax billing system in the prior art;
fig. 2 is a schematic structural diagram of a tax invoicing system according to embodiment 1 of the present invention;
FIG. 3 is a flow chart of data interaction provided in embodiment 5 of the present invention;
FIG. 4 is a schematic structural diagram of a tax controlled converter according to embodiment 6 of the present invention;
FIG. 5 is a flowchart of data interaction provided in embodiment 8 of the present invention;
FIG. 6 is a schematic structural diagram of a tax controlled converter according to embodiment 8 of the present invention;
fig. 7 is a schematic structural diagram of a control module according to embodiment 8 of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the attached drawings, and it should be understood that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Example 1:
fig. 2 is a schematic structural diagram of a tax invoicing system according to an embodiment of the present invention, where the tax invoicing system includes: a tax control billing terminal 21, a gold tax disk 22, a tax control converter 23 and a tax server 24; wherein the content of the first and second substances,
the tax-control billing terminal 21 is connected with the tax-control converter 23, and the tax-control billing terminal 21 is configured to send a target data packet to the tax-control converter 23; wherein the target data packet is initiated by the tax control billing terminal 21 receiving an operation instruction of a user, or initiated after receiving a second data packet sent by the tax server 24; receiving a first data packet sent by the tax control converter 23, and sending the first data packet to the tax server 24;
the tax control converter 23 is connected to the gold tax disk 22, and the tax control converter 23 is configured to receive the target data packet, obtain a first data packet corresponding to the target data packet from the gold tax disk 22, and send the first data packet to the tax control billing terminal 21;
the tax server 24 is configured to receive the first data packet sent by the tax-controlled billing terminal 21, and send the second data packet sent to the tax-controlled converter 23 to the tax-controlled billing terminal 21.
In the embodiment of the present invention, the tax control billing terminal 21 is connected to the tax server 24, specifically, the tax control billing terminal 21 includes a network module, the tax control billing terminal 21 may establish a network connection with the tax server 24 through its own network module, and the tax control billing terminal 21 is further connected to the tax control converter 23 through a serial port.
The tax-control billing terminal 21 can receive an operation instruction of a user, the operation instruction of the user is an instruction sent to the tax-control billing terminal 21 by the user according to the work requirement of the user, and the tax-control billing terminal 21 sends a corresponding data packet to the tax-control converter 23 according to the instruction. The tax control converter 23 may receive the data packet sent by the tax control billing terminal 21, the tax control converter 23 may be connected to the gold tax disk 22 through a USB interface circuit, the gold tax disk 22 stores a first data packet corresponding to the data packet, and after receiving the data packet, the tax control converter 23 may obtain the first data packet corresponding to the data packet from the gold tax disk 22 and send the first data packet sent to the tax server 24 to the tax control billing terminal 21. The tax-controlled billing terminal 21 may receive the first data packet sent by the tax-controlled converter 23 and forward the first data packet to the tax server 24.
The tax server 24 may receive the first data packet sent by the tax-controlled billing terminal 21 and send the second data packet sent to the tax-controlled converter 23 to the tax-controlled billing terminal 21. The tax-controlled billing terminal 21 may receive the second data packet sent by the tax server 24. After receiving the second data packet sent by the tax server 24, the tax-controlled billing terminal 21 may send the second data packet to the tax-controlled converter 23. The tax control converter 23 receives the second data packet, determines whether it is necessary to send the next first data packet corresponding to the second data packet to the tax control billing terminal 21, and if so, acquires the next first data packet corresponding to the second data packet from the tax administration disk 22, and sends the next first data packet to the tax control billing terminal 21. The tax-control billing terminal 21 may receive the next first data packet sent by the tax-control converter 23, and the process after the tax-control billing terminal 21 receives the next first data packet is the same as the process after the first data packet is received, which is not described herein again.
The process of receiving the second data packet and determining whether to send the next first data packet corresponding to the second data packet to the tax-controlled billing terminal 21 by the tax-controlled converter 23 belongs to the prior art, and is not described herein again.
In the embodiment of the present invention, after receiving the operation instruction of the user, the tax-control billing terminal 21 sends the target data packet to the tax-control converter 23 as the data packet corresponding to the operation instruction of the user, and after receiving the second data packet sent by the tax server 24, the tax-control billing terminal 21 sends the target data packet to the tax-control converter 23 as the second data packet sent by the tax server 24.
The tax server 24 stores a data packet corresponding to the first data packet and other data packets that it has actively transmitted to the tax control billing terminal 21, and the other data packets do not have a correspondence with the first data packet. When the tax server 24 does not receive the first data packet, the second data packet may be actively sent to the tax control billing terminal 21, the second data packet sent at this time may be another data packet sent to the tax control billing terminal 21 according to the self requirement, and after the tax server 24 receives the first data packet, the second data packet sent may be a data packet corresponding to the first data packet.
In the embodiment of the present invention, the tax control converter 23 sends the first data packet that needs to be sent to the tax server 24 to the tax control billing terminal 21, the first data packet is sent to the tax server 24 through the tax control billing terminal 21, and the second data packet that the tax server 24 sends to the tax control converter 23 is also sent through the tax control billing terminal 21, so the tax control converter 23 does not directly perform data interaction with the tax server 24, and a network module does not need to be configured in the tax control converter 23, thereby saving the hardware cost of the tax control converter 23, and reducing the requirement for a network interface in a user use scenario.
Example 2:
in order to ensure the security of data transmission, on the basis of the above embodiment, in an embodiment of the present invention, the fiscal converter 23 is specifically configured to obtain an encrypted first data packet corresponding to the target data packet from the fiscal disc 22, and send the encrypted first data packet to the fiscal invoicing terminal 21;
the tax-control billing terminal 21 is specifically configured to receive the encrypted first data packet sent by the tax-control converter 23, and send the encrypted first data packet to the tax server 24;
the tax server 24 is specifically configured to receive the encrypted first data packet sent by the tax control invoicing terminal 21, and decrypt the encrypted first data packet.
The tax control converter 23 may be connected to the fiscal disc 22 through a USB interface circuit, and the first data packet corresponding to the target data packet stored in the fiscal disc 22 may be encrypted, where the key data is stored in the fiscal disc 22, and the fiscal disc 22 may encrypt the first data packet according to the key data. After receiving the target data packet, the fiscal converter 23 acquires the encrypted first data packet corresponding to the target data packet from the fiscal disc 22, and sends the encrypted first data packet to the fiscal billing terminal 21. The tax control billing terminal 21 does not decrypt the encrypted first data packet, but simply forwards the received encrypted first data packet sent by the tax control converter 23 to the tax server 24. The tax server 24 receives the first data packet subjected to the encryption processing sent by the tax control billing terminal 21, and performs the decryption processing on the first data packet subjected to the encryption processing. The tax server 24 stores therein the key data, and after receiving the encrypted first data packet, the tax server may complete decryption of the encrypted first data packet according to the stored key data. After the first data packet subjected to the encryption processing is decrypted by the tax server 24, a second data packet corresponding to the first data packet may be determined, and the second data packet sent to the tax control converter 23 may be sent to the tax control billing terminal 21.
The process of obtaining the first encrypted data packet corresponding to the target data packet from the fiscal disc 22 after the target data packet is received by the fiscal converter 23 belongs to the prior art, and is not described herein again.
Example 3:
in order to further ensure the security of data transmission, on the basis of the foregoing embodiments, in an embodiment of the present invention, the tax server 24 is specifically configured to send the encrypted second data packet sent to the tax control converter 23 to the tax control billing terminal 21;
the tax control billing terminal 21 is specifically configured to send the received encrypted second data packet to the tax control converter 23;
the tax control converter 23 is specifically configured to receive the encrypted second data packet sent by the tax control billing terminal 21, send the encrypted second data packet to the fiscal disc 22, and enable the fiscal disc 22 to decrypt the encrypted second data packet.
The second data packet stored in the tax server 24 may be encrypted, wherein the tax server 24 may encrypt the second data packet according to the key data stored in itself. The tax server 24 sends the encrypted second data packet sent to the tax control converter 23 to the tax control billing terminal 21, and the tax control billing terminal 21 does not decrypt the encrypted second data packet, but forwards the received encrypted second data packet sent by the tax server 24 to the tax control converter 23. The fiscal switch 23 forwards the encrypted second data packet to the fiscal disc 22, and the fiscal disc 22 receives the encrypted second data packet and decrypts the encrypted second data packet. The fiscal disc 22 may decrypt the encrypted second data packet according to the key data stored therein.
Example 4:
because the tax control converter 23 is connected with the tax control billing terminal 21 through a serial port, the corresponding serial port communication protocol needs to be satisfied when the tax control converter 23 performs data interaction with the tax control billing terminal 21. On the basis of the foregoing embodiments, in the embodiment of the present invention, the tax control converter 23 is specifically configured to encapsulate the encrypted first data packet, and send the encapsulated first data packet to the tax control invoicing terminal 21;
the tax control billing terminal 21 is specifically configured to receive the encapsulated first data packet, decapsulate the encapsulated first data packet, and send the decapsulated first data packet to the tax server 24; receiving the encrypted second data packet sent by the tax server 24, encapsulating the encrypted second data packet, and sending the encapsulated second data packet to the tax control converter 23;
the tax control converter 23 is specifically configured to receive the encapsulated second data packet sent by the tax control billing terminal 21, decapsulate the encapsulated second data packet, send the decapsulated second data packet to the fiscal disc 22, and enable the fiscal disc 22 to decrypt the decapsulated second data packet.
In the embodiment of the present invention, the tax control converter 23 and the tax control billing terminal 21 may be connected through a serial port, data interaction needs to be performed between the tax control converter 23 and the tax control billing terminal 21 according to a serial port communication protocol, in order to ensure that the tax control converter 23 can send the first data packet to the tax control billing terminal 21, after the tax control converter 23 obtains the encrypted first data packet from the gold tax disk 22, the encrypted first data packet may be encapsulated according to the serial port communication protocol, and the encapsulated first data packet is sent to the tax control billing terminal 21.
The tax control billing terminal 21 receives the encapsulated first data packet, decapsulates the encapsulated first data packet according to the serial communication protocol, and sends the decapsulated first data packet to the tax server 24. The tax server 24 receives the decapsulated first data packet sent by the tax control billing terminal 21, and may perform decryption processing on the decapsulated first data packet. Also, the tax server 24 may transmit the second data packet subjected to the encryption process, which is transmitted to the tax control converter 23, to the tax control billing terminal 21.
In order to ensure that the tax control billing terminal 21 can send the second data packet to the tax control converter 23, after receiving the encrypted second data packet sent by the tax server 24, the tax control billing terminal 21 encapsulates the encrypted second data packet according to the serial communication protocol, and sends the encapsulated second data packet to the tax control converter 23. The tax control converter 23 decapsulates the encapsulated second data packet according to the serial port communication protocol after receiving the encapsulated second data packet sent by the tax control billing terminal 21, and sends the decapsulated second data packet to the tax administration disk 22, and the tax administration disk 22 may decrypt the decapsulated second data packet.
In the embodiment of the present invention, the tax control converter 23 encapsulates the encrypted first data packet, sends the encapsulated first data packet to the tax control billing terminal 21, and after receiving the encrypted second data packet sent by the tax server 24, the tax control billing terminal 21 encapsulates the encrypted second data packet, and sends the encapsulated second data packet to the tax control converter 23. Thereby ensuring that data transmission can be carried out between the tax-controlled converter 23 and the tax-controlled billing terminal 21.
Example 5:
in order to ensure the security of data transmission, on the basis of the foregoing embodiments, in an embodiment of the present invention, the fiscal converter 23 is further configured to determine whether the second encrypted data packet is a secure channel data packet after receiving the second encrypted data packet sent by the fiscal invoicing terminal 21, and if so, perform decryption processing on the second encrypted data packet.
A secure channel is established between the tax control billing terminal 21 and the tax server 24, the second data packet sent by the tax server 24 to the tax control billing terminal 21 carries the related information of the secure channel, after receiving the encrypted second data packet sent by the tax control billing terminal 21, the tax control converter 23 determines whether the encrypted second data packet carries the related information of the secure channel, if it is determined that the encrypted second data packet carries the related information of the secure channel, it is determined that the encrypted second data packet is the secure channel data packet, and at this time, the encrypted second data packet is decrypted. And if the encrypted second data packet is judged not to carry the related information of the secure channel, determining that the encrypted second data packet is not the secure channel data packet, and not decrypting the encrypted second data packet.
In the embodiment of the present invention, when the fiscal converter 23 determines that the encrypted second data packet is the secure channel data packet, the encrypted second data packet is decrypted. And when the second data packet subjected to the encryption processing is determined not to be the safe channel data packet, the second data packet subjected to the encryption processing is not subjected to decryption processing. Thus ensuring the security of data transmission.
In addition, in the above embodiments, the first data packet includes at least one of:
a data packet requesting a Transmission Control Protocol (TCP) Protocol or an Internet Protocol (IP) Protocol to establish a connection, and a data packet requesting a TCP Protocol or an IP Protocol to release a connection and a service data packet.
The fiscal disk 22 stores a data packet requesting a connection establishment of a TCP protocol or an IP protocol, a data packet requesting a connection release of a TCP protocol or an IP protocol, and a service data packet. After receiving the target data packet sent by the tax control billing terminal 21, the tax control converter 23 obtains a first data packet corresponding to the target data packet from the fiscal disc 22, where the first data packet corresponding to the target data packet may be at least one of a data packet requesting to establish a connection with a TCP protocol or an IP protocol, a data packet requesting to release a connection with a TCP protocol or an IP protocol, and a service data packet, and the process of the tax control converter 23 transmitting the data packet requesting to establish a connection with a TCP protocol or an IP protocol, the data packet requesting to release a connection with a TCP protocol or an IP protocol, and the service data packet is performed according to the process of transmitting the first data packet, which is not described herein again.
Fig. 3 is a data interaction flow chart provided in an embodiment of the present invention, and as shown in fig. 3, after the fiscal converter is started, the fiscal converter receives a data packet sent by a fiscal invoicing terminal, and obtains a first data packet corresponding to the data packet sent by the fiscal invoicing terminal from a gold tax disk, where the first data packet may be a data packet requesting a TCP protocol or an IP protocol to establish a connection, or a data packet requesting a TCP protocol or an IP protocol to release a connection, or a service data packet. And the first data packet is encapsulated according to a serial port communication protocol and is sent to the tax control billing terminal, and the tax control billing terminal unpacks the first data packet and sends the first data packet to the tax server. And the tax control converter receives a second data packet which is sent by the tax control billing terminal and corresponds to the first data packet and is subjected to encryption processing, and the second data packet is sent to the tax control billing terminal by the tax server. The tax control converter judges whether the second data packet is a safe channel data packet, if so, the second data packet is decrypted, the decrypted second data packet is sent to a gold tax disc, whether a next first data packet corresponding to the second data packet needs to be sent to the tax control billing terminal is judged, if so, the next first data packet corresponding to the second data packet is obtained from the gold tax disc, the next first data packet is sent to the tax control billing terminal, the tax control billing terminal can receive the next first data packet sent by the tax control converter, the process of the tax control billing terminal after receiving the next first data packet is the same as the process after receiving the first data packet, the process is not repeated here, and if not needed, the next data packet sent by the tax control billing terminal is waited to be received. And if the second data packet is not the safe channel data packet, the second data packet is not processed, and the next data packet sent by the tax control billing terminal is waited to be received.
Example 6:
fig. 4 is a schematic structural diagram of a tax-control converter according to an embodiment of the present invention, where the tax-control converter includes a control module 231, an RS232 serial port circuit 232, and a USB interface circuit 233; wherein the content of the first and second substances,
the control module 231 is respectively connected with the RS232 serial port circuit 232 and the USB interface circuit 233, the RS232 serial port circuit 232 is used for connecting with a tax control billing terminal, and the USB interface circuit 233 is used for connecting with a gold tax disk;
the control module 231 is configured to receive the target data packet sent by the tax-control billing terminal through the RS232 serial port circuit 232; the target data packet is initiated by the tax control invoicing terminal after receiving an operation instruction of a user or a second data packet sent by a tax server; and acquiring a first data packet corresponding to the target data packet from the gold tax disk through the USB interface circuit 233, and sending the first data packet to the tax control billing terminal through the RS232 serial port circuit 232, so that the tax control billing terminal sends the first data packet to a tax server.
The tax control billing terminal can receive an operation instruction of the user or a second data packet sent by the tax server. The tax control converter comprises a control module 231 and an RS232 serial port circuit 232, the RS232 serial port circuit 232 is respectively connected with the control module 231 and the tax control billing terminal, and the tax control billing terminal receives an operation instruction of a user or sends a second data packet to the control module 231 through the RS232 serial port circuit 232.
The tax control converter comprises a USB interface circuit 233, the USB interface circuit 233 is connected with the control module 231 and used for being connected with a gold tax disc, and after the control module 231 receives the target data packet, the USB interface circuit 233 can obtain a first data packet corresponding to the target data packet from the gold tax disc, and send the first data packet to the tax control billing terminal through the RS232 serial port circuit 232, so that the tax control billing terminal sends the first data packet to the server.
Example 7:
on the basis of the foregoing embodiments, in an embodiment of the present invention, on the basis of the foregoing embodiments, the control module 231 is specifically configured to obtain, through the USB interface circuit 233, the encrypted first data packet corresponding to the target data packet from the gold tax disk, send the encrypted first data packet to the tax-control billing terminal through the RS232 serial port circuit 232, and enable the tax-control billing terminal to send the encrypted first data packet to the tax server.
In order to ensure the security of the transmission of the first data packet, the first data packet corresponding to the target data packet stored in the tax disk is encrypted. After receiving the target data packet, the control module 231 acquires the encrypted first data packet corresponding to the target data packet from the gold tax disk, and sends the encrypted first data packet to the tax control billing terminal through the RS232 serial port circuit 232. The tax control billing terminal does not decrypt the encrypted first data packet, but forwards the received encrypted first data packet sent by the control module 231 through the RS232 serial port circuit 232 to the tax server.
In this embodiment of the present invention, the control module 231 is specifically configured to receive, through the RS232 serial port circuit, the encrypted second data packet sent by the tax control billing terminal, and send, through the USB interface circuit 233, the encrypted second data packet to the fiscal disc, so that the fiscal disc decrypts the encrypted second data packet.
In order to ensure the safety of the transmission of the second data packet, the second data packet stored in the tax server is encrypted. The tax server may send the encrypted second data packet to the tax control billing terminal, the tax control billing terminal sends the received encrypted second data packet to the control module 231 through the RS232 serial port circuit 232, and the control module 231 sends the encrypted second data packet to the fiscal disc through the USB interface circuit 233 after receiving the encrypted second data packet sent by the tax control billing terminal through the RS232 serial port circuit 232, so that the fiscal disc decrypts the encrypted second data packet.
Example 8:
on the basis of the foregoing embodiments, in the embodiments of the present invention, the control module 231 is specifically configured to encapsulate the encrypted first data packet, and send the encapsulated first data packet to the tax control invoicing terminal through the RS232 serial port circuit 232;
the control module 231 is further configured to receive the encapsulated second data packet sent by the tax control billing terminal through the RS232 serial port circuit 232, decapsulate the encapsulated second data packet, and send the decapsulated second data packet to the fiscal disc through the USB interface circuit 233, so that the fiscal disc decrypts the decapsulated data packet.
In the embodiment of the present invention, the control module 231 is connected to the tax-control billing terminal through the RS232 serial port circuit 232, data interaction needs to be performed between the control module 231 and the tax-control billing terminal according to the RS232 protocol, and in order to ensure that the control module 231 can send the first data packet to the tax-control billing terminal, after the control module 231 obtains the first data packet after encryption processing from the gold tax disk, the first data packet after encryption processing may be encapsulated according to the RS232 protocol, and the encapsulated first data packet is sent to the tax-control billing terminal through the RS232 serial port circuit 232. Specifically, as shown in fig. 5, the application host process in the control module 231 may obtain the encrypted first data packet from the fiscal disc, and may send the encrypted first data packet to the local forwarding process through the local process communication protocol, where the local forwarding process completes encapsulation of the encrypted first data packet, and then sends the encapsulated first data packet to the tax control billing terminal through the RS232 serial port circuit 232. And the tax control billing terminal sends the first data packet to the tax server.
In order to ensure that the tax control billing terminal can send the second data packet to the control module 231 through the RS232 serial port circuit 232, after receiving the encrypted second data packet sent by the tax server, the tax control billing terminal encapsulates the encrypted second data packet according to the RS232 protocol, and sends the encapsulated second data packet to the control module 231 through the RS232 serial port circuit 232. After receiving the second encapsulated data packet sent by the tax control billing terminal through the RS232 serial port circuit 232, the control module 231 may decapsulate the second encapsulated data packet according to the RS232 protocol. Specifically, after receiving the second encapsulated data packet sent by the tax control billing terminal, the control module 231 may send the second encapsulated data packet to the local process, where the local process completes decapsulation of the second encapsulated data packet, and then sends the decapsulated second data packet to the fiscal disc through the USB interface circuit 233, and the fiscal disc may decrypt the decapsulated second data packet.
In addition, fig. 6 is a schematic structural diagram of a tax-controlled converter according to an embodiment of the present invention, where the tax-controlled converter further includes: a storage module 234, an indicator light module 235, and a power module 236. The power module 236 is respectively connected with the control module 231, the RS232 serial port circuit 232, the USB interface circuit 233, the storage module 234 and the indicator light module 235, and is used for supplying power to the control module 231, the RS232 serial port circuit 232, the USB interface circuit 233, the storage module 234 and the indicator light module 235; the control module 231 is connected with the storage module 234 and is used for acquiring the running program in the storage module 234; the indicator light module 235 is respectively connected with the control module 231, the power supply module 236 and the RS232 serial port circuit 232, and is used for identifying that the power supply module 236 supplies power for the indicator light, controlling the power supply indicator light to be on, identifying that data packets exist in the RS232 serial port circuit 232 for transmission, controlling the communication indicator light to be on, identifying that the RS232 serial port circuit 232 is connected with the tax control invoicing terminal, and controlling the equipment connection indicator light to be on.
Fig. 7 is a schematic structural diagram of a control module according to an embodiment of the present invention, where the control module includes a gold tax disk drive unit 2311, a certificate access unit 2312, a tax certificate interface unit 2313, a secure channel interface unit 2314, and a command line uniform resource locator Curl unit 2315; the golden tax disk drive unit 2311 is connected with the USB interface circuit and the Curl unit 2315 respectively, the Curl unit 2315 is further connected with the RS232 serial port circuit, and the Curl unit 2315 is used for receiving a target data packet sent by the tax-control billing terminal through the RS232 serial port circuit, acquiring a data packet except a certificate corresponding to the target data packet from the golden tax disk through the golden tax disk drive unit 2311, and sending the data packet to the tax-control billing terminal through the RS232 serial port circuit. The certificate access unit 2312 is connected with the USB interface circuit and the tax certificate interface unit 2313 respectively, the secure channel interface unit 2314 is connected with the tax certificate interface unit 2313 and the Curl unit 2315 respectively, and the Curl unit 2315 is used for acquiring a certificate data packet corresponding to the target data packet from the gold tax disk through the certificate access unit 2312, the tax certificate interface unit 2313 and the secure channel interface unit 2314, and sending the certificate data packet to the tax control billing terminal through the RS232 serial port circuit.
The embodiment of the invention provides a tax invoicing system and a tax control converter, wherein the tax invoicing system comprises: the system comprises a tax control billing terminal, a gold tax disk, a tax control converter and a tax server; the tax control billing terminal is connected with the tax control converter and used for sending a target data packet to the tax control converter; the target data packet is initiated by the tax control invoicing terminal after receiving an operation instruction of a user or a second data packet sent by the tax server; receiving a first data packet sent by the tax control converter, and sending the first data packet to the tax server; the tax control converter is connected with the gold tax disc and is used for receiving the target data packet, acquiring a first data packet corresponding to the target data packet from the gold tax disc and sending the first data packet to the tax control billing terminal; and the tax server is used for receiving the first data packet sent by the tax control billing terminal and sending the second data packet sent to the tax control converter to the tax control billing terminal. In the embodiment of the present invention, the tax control converter 23 sends the first data packet that needs to be sent to the tax server 24 to the tax control billing terminal 21, the first data packet is sent to the tax server 24 through the tax control billing terminal 21, and the second data packet that the tax server 24 sends to the tax control converter 23 is also sent through the tax control billing terminal 21, so the tax control converter 23 does not directly perform data interaction with the tax server 24, and a network module does not need to be configured in the tax control converter 23, thereby saving the hardware cost of the tax control converter 23, and reducing the requirement for a network interface in a user use scenario.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (10)

1. A tax invoicing system, the tax invoicing system comprising: the system comprises a tax control billing terminal, a gold tax disk, a tax control converter and a tax server; wherein the content of the first and second substances,
the tax control billing terminal is connected with the tax control converter and is used for sending a target data packet to the tax control converter; the target data packet is initiated by the tax control invoicing terminal after receiving an operation instruction of a user or a second data packet sent by the tax server; receiving a first data packet sent by the tax control converter, and sending the first data packet to the tax server;
the tax control converter is connected with the gold tax disc and is used for receiving the target data packet, acquiring a first data packet corresponding to the target data packet from the gold tax disc and sending the first data packet to the tax control billing terminal;
and the tax server is used for receiving the first data packet sent by the tax control billing terminal and sending the second data packet sent to the tax control converter to the tax control billing terminal.
2. The system of claim 1, wherein the fiscal converter is specifically configured to obtain a first encrypted data packet corresponding to the target data packet from the gold tax disk, and send the first encrypted data packet to the fiscal invoicing terminal;
the tax control billing terminal is specifically used for receiving the encrypted first data packet sent by the tax control converter and sending the encrypted first data packet to the tax server;
the tax server is specifically configured to receive the first encrypted data packet sent by the tax-control billing terminal, and decrypt the first encrypted data packet.
3. The system according to claim 1 or 2, wherein the tax server is specifically configured to send the encrypted second data packet sent to the tax-controlled switch to the tax-controlled billing terminal;
the tax control billing terminal is specifically used for sending the received encrypted second data packet to the tax control converter;
the tax control converter is specifically configured to receive the encrypted second data packet sent by the tax control billing terminal, send the encrypted second data packet to the fiscal disc, and enable the fiscal disc to decrypt the encrypted second data packet.
4. The system of claim 3, wherein the fiscal converter is specifically configured to encapsulate the encrypted first data packet and send the encapsulated first data packet to the fiscal billing terminal;
the tax control billing terminal is specifically configured to receive the encapsulated first data packet, decapsulate the encapsulated first data packet, and send the decapsulated first data packet to the tax server; receiving an encrypted second data packet sent by the tax server, packaging the encrypted second data packet, and sending the packaged second data packet to the tax control converter;
the tax control converter is specifically configured to receive the encapsulated second data packet sent by the tax control billing terminal, decapsulate the encapsulated second data packet, send the decapsulated second data packet to the fiscal disc, and enable the fiscal disc to decrypt the decapsulated second data packet.
5. The system of claim 3, wherein the tax control switch is further configured to determine whether the encrypted second data packet is a secure channel data packet after receiving the encrypted second data packet sent by the tax control billing terminal, and if so, decrypt the encrypted second data packet.
6. The system of claim 1, wherein the first data packet comprises at least one of:
the data packet requesting to establish connection of a Transmission Control Protocol (TCP) protocol or an Internet Protocol (IP), the data packet requesting to release connection of the TCP protocol or the IP and the service data packet.
7. A tax control converter is characterized by comprising a control module, an RS232 serial port circuit and a USB interface circuit; wherein the content of the first and second substances,
the control module is respectively connected with the RS232 serial port circuit and the USB interface circuit, the RS232 serial port circuit is used for being connected with a tax control billing terminal, and the USB interface circuit is used for being connected with a gold tax disk;
the control module is used for receiving a target data packet sent by the tax control billing terminal through the RS232 serial port circuit; the target data packet is initiated by the tax control invoicing terminal after receiving an operation instruction of a user or a second data packet sent by a tax server; and acquiring a first data packet corresponding to the target data packet from the gold tax disk through the USB interface circuit, and sending the first data packet to the tax control billing terminal through the RS232 serial port circuit, so that the tax control billing terminal sends the first data packet to a tax server.
8. The fiscal converter of claim 7, wherein the control module is specifically configured to obtain a first encrypted data packet corresponding to the target data packet from the golden tax disk through the USB interface circuit, send the first encrypted data packet to the fiscal invoicing terminal through an RS232 serial port circuit, and enable the fiscal invoicing terminal to send the first encrypted data packet to the tax server.
9. The fiscal converter according to claim 7 or 8, wherein the control module is specifically configured to receive the encrypted second data packet sent by the fiscal billing terminal through the RS232 serial port circuit, and send the encrypted second data packet to the fiscal disc through the USB interface circuit, so that the fiscal disc decrypts the encrypted second data packet.
10. The tax-control switch according to claim 9, wherein the control module is specifically configured to encapsulate the encrypted first data packet, and send the encapsulated first data packet to the tax-control billing terminal through an RS232 serial port circuit;
the control module is further configured to receive the encapsulated second data packet sent by the tax control billing terminal through the RS232 serial port circuit, decapsulate the encapsulated second data packet, and send the decapsulated second data packet to the fiscal disc through the USB interface circuit, so that the fiscal disc decrypts the decapsulated data packet.
CN201711284872.5A 2017-12-07 2017-12-07 Tax billing system and tax control converter Active CN109905417B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711284872.5A CN109905417B (en) 2017-12-07 2017-12-07 Tax billing system and tax control converter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711284872.5A CN109905417B (en) 2017-12-07 2017-12-07 Tax billing system and tax control converter

Publications (2)

Publication Number Publication Date
CN109905417A CN109905417A (en) 2019-06-18
CN109905417B true CN109905417B (en) 2022-01-21

Family

ID=66939195

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711284872.5A Active CN109905417B (en) 2017-12-07 2017-12-07 Tax billing system and tax control converter

Country Status (1)

Country Link
CN (1) CN109905417B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102103777A (en) * 2009-12-21 2011-06-22 航天信息股份有限公司 Network tax declaration system and tax declaration method thereof for fiscal cash register
CN205375707U (en) * 2016-02-23 2016-07-06 浪潮软件集团有限公司 Tax control extension box applied to serial port tax control cash register
CN106485579A (en) * 2016-10-21 2017-03-08 百望股份有限公司 A kind of tax declaration method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102103777A (en) * 2009-12-21 2011-06-22 航天信息股份有限公司 Network tax declaration system and tax declaration method thereof for fiscal cash register
CN205375707U (en) * 2016-02-23 2016-07-06 浪潮软件集团有限公司 Tax control extension box applied to serial port tax control cash register
CN106485579A (en) * 2016-10-21 2017-03-08 百望股份有限公司 A kind of tax declaration method

Also Published As

Publication number Publication date
CN109905417A (en) 2019-06-18

Similar Documents

Publication Publication Date Title
CN111132138B (en) Transparent communication protection method and device for mobile application program
CN106209838B (en) IP access method and device of SSL VPN
TWI636373B (en) Method and device for authorizing between devices
WO2021022794A1 (en) Rdma-based data transmission method, network card, server and medium
CN111093198A (en) Wireless local area network data transmission method and device
WO2021109963A1 (en) Initial security configuration method, security module, and terminal
EP3182324A1 (en) System and method for secure communications between a computer test tool and a cloud-based server
EP4258593A1 (en) Ota update method and apparatus
WO2018098633A1 (en) Data transmission method, data transmission apparatus, electronic device and computer program product
KR102664180B1 (en) Network-based media processing security
CN104580180A (en) Data encryption method, data decryption method and devices
US20230007480A1 (en) Provisioning method and terminal device
CN109831775B (en) Processor, baseband chip and SIM card information transmission method
CN111355684A (en) Internet of things data transmission method, device and system, electronic equipment and medium
CN110519203B (en) Data encryption transmission method and device
CN107155184B (en) WIFI module with secure encryption chip and communication method thereof
CN109495885B (en) Authentication method, mobile terminal, management system and Bluetooth IC card
CN107872315B (en) Data processing method and intelligent terminal
CN113613227B (en) Data transmission method and device of Bluetooth equipment, storage medium and electronic device
CN106656484B (en) A kind of PCI cipher card drive system and its implementation
CN114499990A (en) Vehicle control method, device, equipment and storage medium
CN109905417B (en) Tax billing system and tax control converter
CN113141333B (en) Communication method, device, server, system and storage medium of network access device
CN110311921B (en) Power distribution terminal encryption and decryption method, system, equipment and computer storage medium
CN111510421B (en) Data processing method and device, electronic equipment and computer readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant