CN111064728B - Method, device and equipment for packing and unpacking data message - Google Patents
Method, device and equipment for packing and unpacking data message Download PDFInfo
- Publication number
- CN111064728B CN111064728B CN201911318094.6A CN201911318094A CN111064728B CN 111064728 B CN111064728 B CN 111064728B CN 201911318094 A CN201911318094 A CN 201911318094A CN 111064728 B CN111064728 B CN 111064728B
- Authority
- CN
- China
- Prior art keywords
- data
- unpacking
- packet
- information
- packaging
- 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
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/22—Parsing or analysis of headers
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/22—Indexing; Data structures therefor; Storage structures
- G06F16/2228—Indexing structures
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/29—Geographical information databases
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q20/00—Payment architectures, schemes or protocols
- G06Q20/08—Payment architectures
- G06Q20/20—Point-of-sale [POS] network systems
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q40/00—Finance; Insurance; Tax strategies; Processing of corporate or income taxes
- G06Q40/04—Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L49/00—Packet switching elements
- H04L49/90—Buffering arrangements
- H04L49/9057—Arrangements for supporting packet reassembly or resequencing
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/2866—Architectures; Arrangements
- H04L67/30—Profiles
Landscapes
- Engineering & Computer Science (AREA)
- Business, Economics & Management (AREA)
- Theoretical Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Accounting & Taxation (AREA)
- Physics & Mathematics (AREA)
- Databases & Information Systems (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Finance (AREA)
- General Engineering & Computer Science (AREA)
- Strategic Management (AREA)
- Data Mining & Analysis (AREA)
- General Business, Economics & Management (AREA)
- Computer Security & Cryptography (AREA)
- Economics (AREA)
- Marketing (AREA)
- Development Economics (AREA)
- Technology Law (AREA)
- Software Systems (AREA)
- Remote Sensing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The invention discloses a method, a device and equipment for packing and unpacking a data message. Wherein the method comprises the following steps: the method comprises the steps of configuring the packaging and unpacking of 8583 data message packets, analyzing the 8583 data message packets after configuration, analyzing the intermediate data of the transaction process related to the 8583 data message packets after configuration, and packaging and unpacking the intermediate data of the transaction process after analysis. By the method, the flexible configuration of the 8583 data message packet packaging and unpacking can be realized.
Description
Technical Field
The present invention relates to the field of data packet technologies, and in particular, to a method, an apparatus, and a device for packet packing and unpacking of a data packet.
Background
In the current bank card merchant bill receiving market, a financial payment POS (point of sales) terminal is generally issued and managed by an acquiring bank contracted with the merchant or a third-party payment institution, and can only belong to one acquiring institution. However, with the continuous development of business of merchants and the continuous opening of the market of the payment business in China, the cooperation of one merchant and a plurality of banks or third-party payment mechanisms is a common phenomenon, and some merchants can cooperate with the plurality of banks or third-party payment mechanisms. Commercial business needs are increasing day by day, such as supporting overseas VISA, mastercard, payment treasure, WeChat payment, and the like. The main obstacle for different acquirer accesses is the implementation that ISO8583(8583 data message) packets for the target acquirer access specification need to be added again.
However, in the existing packet packing and unpacking scheme of the data packet, the packet packing and unpacking mode of the 8583 data packet is generally implemented by writing a code, the logic of the packet packing and unpacking is solidified in a binary file of a POS application, the format of the packet needs to be changed when the business requirement of an acquirer is upgraded, or when an acquirer connection mode is added to a terminal, a POS application source code needs to be updated and recompiled, the POS terminal of a merchant is upgraded by issuing the acquirer after testing, the upgrade of the binary file is too large, and the problem of binary compatibility on front and rear version firmware is solved, which causes difficulty in operation and upgrade in an actual production environment, and the flexible configuration of the packet packing and unpacking of the 8583 data packet cannot be implemented.
Disclosure of Invention
In view of this, the present invention provides a method, an apparatus, and a device for packet packing and unpacking of data packets, which can flexibly configure 8583 packet packing and unpacking of data packets.
According to an aspect of the present invention, a method for packing and unpacking data packets is provided, which includes: configuring the packet packing and unpacking of the 8583 data message packet; analyzing the configured 8583 data message packet, and analyzing the transaction flow intermediate data associated with the configured 8583 data message packet; and packaging and unpacking the analyzed transaction flow intermediate data.
The configuring the packet packing and unpacking of the 8583 data packet includes: and configuring the packet packing and unpacking of the 8583 data message packet in a formatted file configuration mode.
Analyzing the configured 8583 data packet, and analyzing the transaction flow intermediate data associated with the configured 8583 data packet, includes: judging whether the configured 8583 data message packet has a configuration file or not when an application program of the point-of-sale terminal is started, analyzing the configured 8583 data message packet when the configuration file is judged to exist, performing correlation operation of a domain processing function on the configured 8583 data message packet, using a binary stream output by an analyzer as a table name in a Model name mode, and analyzing transaction flow intermediate data associated with the configured 8583 data message packet through the table name.
Wherein, said packing and unpacking said parsed transaction flow intermediate data includes: retrieving information of an acquiring mechanism to be connected from a database through an application program of a point-of-sale terminal, retrieving configuration information of a corresponding 8583 data message packet through the retrieved information of the acquiring mechanism, introducing the retrieved configuration information into a parser for packaging and unpacking, obtaining packaging data of a current request packet from the parsed intermediate data of the transaction process through the parser, combining the packaging data into a corresponding 8583 data message packet according to template rules and converting the data packet into a byte data stream, sending the byte data stream out according to the connection information of the corresponding acquiring mechanism for background response, transmitting the byte data stream information to the parser after receiving background response data, and generating corresponding response data key value pair information according to the template configuration information through the parser, and storing and printing the information according to the key value pair of the returned response packet through an application program of the point-of-sale terminal, and packaging and unpacking the analyzed transaction flow intermediate data according to the stored and printed key value pair information.
Wherein, after said packaging and unpacking said parsed transaction flow intermediate data, further comprising: and constructing a retrieval index for associating the packaged and unpacked transaction flow intermediate data.
According to another aspect of the present invention, there is provided a device for packing and unpacking data packets, comprising: the system comprises a configuration module, an analysis module and a package unpacking module; the configuration module is used for configuring the packet and the unpacking of the 8583 data message packet; the analysis module is used for analyzing the configured 8583 data message packet and analyzing the transaction flow intermediate data associated with the configured 8583 data message packet; and the packaging and unpacking module is used for packaging and unpacking the analyzed transaction flow intermediate data.
Wherein the configuration module is specifically configured to: and configuring the packet packing and unpacking of the 8583 data message packet in a formatted file configuration mode.
Wherein, the analysis module is specifically configured to: judging whether the configured 8583 data message packet has a configuration file or not when an application program of the point-of-sale terminal is started, analyzing the configured 8583 data message packet when the configuration file is judged to exist, performing correlation operation of a domain processing function on the configured 8583 data message packet, using a binary stream output by an analyzer as a table name in a Model name mode, and analyzing transaction flow intermediate data associated with the configured 8583 data message packet through the table name.
Wherein the group unpacking module is specifically configured to: retrieving information of an acquiring mechanism to be connected from a database through an application program of a point-of-sale terminal, retrieving configuration information of a corresponding 8583 data message packet through the retrieved information of the acquiring mechanism, introducing the retrieved configuration information into a parser for packaging and unpacking, obtaining packaging data of a current request packet from the parsed intermediate data of the transaction process through the parser, combining the packaging data into a corresponding 8583 data message packet according to template rules and converting the data packet into a byte data stream, sending the byte data stream out according to the connection information of the corresponding acquiring mechanism for background response, transmitting the byte data stream information to the parser after receiving background response data, and generating corresponding response data key value pair information according to the template configuration information through the parser, and storing and printing the information according to the key value pair of the returned response packet through an application program of the point-of-sale terminal, and packaging and unpacking the analyzed transaction flow intermediate data according to the stored and printed key value pair information.
The device for packing and unpacking the data message further comprises: building a module; the construction module is used for constructing a retrieval index which is related to the packaged and unpacked transaction flow intermediate data.
According to another aspect of the present invention, there is provided a packet packing and unpacking device for data packets, comprising: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform any of the above methods of packaging and unpacking data packets.
According to a further aspect of the present invention, there is provided a computer readable storage medium storing a computer program which, when executed by a processor, implements any of the above methods of packaging and unpacking data packets.
It can be found that, according to the above scheme, the grouping and unpacking of the 8583 data packet can be configured, the configured 8583 data packet can be analyzed, the transaction flow intermediate data associated with the configured 8583 data packet can be analyzed, and the analyzed transaction flow intermediate data can be grouped and unpacked, so that the flexible configuration of the grouping and unpacking of the 8583 data packet can be realized.
Furthermore, the above scheme can configure the packet and the unpacking of the 8583 data packet in a formatted file configuration mode, which has the advantage of realizing flexible configuration of the packet and the unpacking of the 8583 data packet in a formatted file configuration mode, so that a point-of-sale terminal can dynamically switch the order receiving mechanism to be connected.
Furthermore, the above scheme can judge whether the configured 8583 data message packet has a configuration file when the application program of the point-of-sale terminal is started, when the configuration file exists, the configured 8583 data message packet is analyzed, performing correlation operation of domain processing function on the configured 8583 data message packet, using the binary stream output by the parser as a table name in a Model name mode, analyzing the transaction flow intermediate data associated with the configured 8583 data packet through the table name, the method has the advantages that the configured transaction flow intermediate data associated with the 8583 data message packet can be analyzed, the information of all the acquirers corresponding to the associated transaction flow intermediate data can be acquired, and the acquirers to be connected can be switched dynamically according to the acquired information of all the acquirers.
Further, the above scheme can retrieve the information of the connected acquiring mechanism from the database through the application program of the point-of-sale terminal, retrieve the configuration information of the corresponding 8583 data packet through the retrieved information of the acquiring mechanism, lead the retrieved configuration information into the parser for packaging and unpacking, obtain the package data of the current request packet from the parsed transaction flow intermediate data through the parser, combine the corresponding 8583 data packet according to the template rule and convert into the byte data stream, send out the byte data stream according to the connection information of the corresponding acquiring mechanism and wait for background response, after receiving the background response data, transmit the byte data stream information to the parser, and generate the corresponding key value pair information of the response data through the parser according to the template configuration information, and storing and printing the key value pair information of the returned response packet through an application program of the point-of-sale terminal, and packaging and unpacking the analyzed transaction flow intermediate data according to the stored and printed key value pair information, so that the advantage that the analyzed transaction flow intermediate data can be packaged and unpacked in a configuration retrieval mode, and the flexible configuration of the 8583 data packet packaging and unpacking can be realized, so that the point-of-sale terminal can be connected with a plurality of different acquiring organizations.
Furthermore, the scheme can construct a retrieval index associated with the packaged and unpacked transaction flow intermediate data, and has the advantages that the collection mechanisms to be connected can be conveniently and dynamically switched according to the constructed retrieval index, and a plurality of different collection mechanisms can be conveniently connected.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a flowchart illustrating an embodiment of a method for packing and unpacking data packets according to the present invention;
FIG. 2 is a flow chart illustrating a method for packing and unpacking data packets according to another embodiment of the present invention;
FIG. 3 is a schematic structural diagram of an embodiment of a device for packing and unpacking data packets according to the present invention;
FIG. 4 is a schematic structural diagram of another embodiment of a device for packing and unpacking data packets according to the present invention;
fig. 5 is a schematic structural diagram of an embodiment of a device for packing and unpacking data packets according to the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be noted that the following examples are only illustrative of the present invention, and do not limit the scope of the present invention. Similarly, the following examples are only some but not all examples of the present invention, and all other examples obtained by those skilled in the art without any inventive work are within the scope of the present invention.
The invention provides a method for packaging and unpacking a data message, which can realize flexible configuration of 8583 packaging and unpacking of the data message.
Referring to fig. 1, fig. 1 is a schematic flow chart illustrating a method for packing and unpacking data packets according to an embodiment of the present invention. It should be noted that the method of the present invention is not limited to the flow sequence shown in fig. 1 if the results are substantially the same. As shown in fig. 1, the method comprises the steps of:
s101: and configuring the packet packing and unpacking of the 8583 data message packet.
The configuring the packet packing and unpacking of the 8583 data packet may include:
the method has the advantages that flexible configuration of the 8583 data message packet packing and unpacking can be realized through the formatted file configuration mode, and a point-of-sale terminal can dynamically switch the acquiring mechanism to be connected conveniently.
In this embodiment, an entry defined by the format of the 8583 data packet may be defined in a DataMap (data map) manner.
In this embodiment, a Model may be used to describe the applicable scope of the Template definition of the 8583 data packet, for example, TEMP (Template) may be used to represent the packet format Template of the 8583 data packet, 086 may be used to identify the applicable scope, UnionPay may be used to indicate that the defined Template of the 8583 data packet is applicable to the union background, Version may be used to identify the current Template Version information of the 8583 data packet, FieldConfig (matching field) field may be used to indicate the respective data field format definitions specified by the current acquirer for the 8583 data packet, the data field format definition general specification is the same as the union specification, DataMap may be used to define the packet and unpacking format information of the 8583 data packet specific to each field in each transaction, and correspond to the data tag specific to the intermediate data of the transaction, so that the point-of-sale terminal can correspond to the acquiring mechanism to be connected.
S102: and analyzing the configured 8583 data message packet to analyze the transaction flow intermediate data associated with the configured 8583 data message packet.
The analyzing the configured 8583 data packet to analyze the transaction flow intermediate data associated with the configured 8583 data packet may include:
the method has the advantages that the transaction flow intermediate data related to the configured 8583 data message packet can be analyzed through the table name, the information of all acquiring agencies corresponding to the related transaction flow intermediate data can be acquired, and the acquiring agencies to be connected can be dynamically switched according to the acquired information of all the acquiring agencies.
S103: and packaging and unpacking the analyzed transaction flow intermediate data.
Wherein, the packaging and unpacking the analyzed transaction flow intermediate data may include:
retrieving information of the acquiring organization to be connected from a database by an application program of the point-of-sale terminal, retrieving configuration information of a corresponding 8583 data message packet by the retrieved information of the acquiring organization, introducing the retrieved configuration information into a parser for packaging and unpacking, obtaining package data of a current request packet from the parsed intermediate data of the transaction flow by the parser, combining the package data into a corresponding 8583 data message packet according to template rules and converting the package data into a byte data stream, sending the byte data stream out and waiting for a background response according to the connection information of the corresponding acquiring organization, transmitting the byte data stream information to the parser after receiving the background response data, generating corresponding key-value pair information of response data according to the template configuration information by the parser, and storing and printing according to the key-value pair information of the returned response packet by the application program of the point-of sale terminal, and according to the stored and printed key value pair information, the analyzed transaction flow intermediate data is packaged and unpacked, so that the advantage that the analyzed transaction flow intermediate data can be packaged and unpacked in a configuration retrieval mode, and the 8583 data message packet can be flexibly configured for packaging and unpacking, so that a point-of-sale terminal can be connected with a plurality of different acquiring mechanisms.
In this embodiment, the information of the acquirer may include unified identification information of the acquirer, and the background connection information of the acquirer includes an IP (Internet Protocol), a port number, and the like, which is not limited in the present invention.
After the packaging and unpacking of the parsed transaction flow intermediate data, the method may further include:
the method has the advantages that the method can conveniently and dynamically switch the acquiring mechanism to be connected according to the constructed retrieval index, and can conveniently connect a plurality of different acquiring mechanisms.
It can be found that, in this embodiment, the grouping and unpacking of the 8583 data packet may be configured, the configured 8583 data packet may be parsed, the transaction flow intermediate data associated with the configured 8583 data packet may be parsed, and the parsed transaction flow intermediate data may be grouped and unpacked, so that the flexible grouping and unpacking of the 8583 data packet may be implemented.
Further, in this embodiment, the packet and the unpack of the 8583 data packet may be configured in a formatted file configuration manner, which is advantageous in that flexible configuration of the packet and the unpack of the 8583 data packet may be realized in a formatted file configuration manner, so that the pos terminal may dynamically switch the order receiving mechanism to be connected.
Further, in this embodiment, it can be determined whether the configured 8583 data packet has a configuration file when the application program of the pos is started, when the configuration file exists, the configured 8583 data message packet is analyzed, performing correlation operation of domain processing function on the configured 8583 data message packet, using the binary stream output by the parser as a table name in a Model name mode, analyzing the transaction flow intermediate data associated with the configured 8583 data packet through the table name, the method has the advantages that the configured transaction flow intermediate data associated with the 8583 data message packet can be analyzed, the information of all the acquirers corresponding to the associated transaction flow intermediate data can be acquired, and the acquirers to be connected can be switched dynamically according to the acquired information of all the acquirers.
Further, in this embodiment, the information of the acquiring organization to be connected can be retrieved from the database by the application program of the point-of-sale terminal, the configuration information of the corresponding 8583 data packet can be retrieved by the retrieved information of the acquiring organization, the retrieved configuration information is led into the parser for packaging and unpacking, the package data of the current request packet can be obtained from the parsed transaction flow intermediate data by the parser, and is combined into the corresponding 8583 data packet according to the template rule and converted into the byte data stream, the byte data stream is sent out and waits for the background response according to the connection information of the corresponding acquiring organization, and after the background response data is received, the byte data stream information is transmitted to the parser, and the corresponding key value pair information of the response data is generated by the parser according to the template configuration information, and storing and printing the key value pair information of the returned response packet through an application program of the point-of-sale terminal, and packaging and unpacking the analyzed transaction flow intermediate data according to the stored and printed key value pair information, so that the advantage that the analyzed transaction flow intermediate data can be packaged and unpacked in a configuration retrieval mode, and the flexible configuration of the 8583 data packet packaging and unpacking can be realized, so that the point-of-sale terminal can be connected with a plurality of different acquiring organizations.
Referring to fig. 2, fig. 2 is a schematic flow chart of another embodiment of a method for packing and unpacking data packets according to the present invention. In this embodiment, the method includes the steps of:
s201: and configuring the packet packing and unpacking of the 8583 data message packet.
As described above in S101, further description is omitted here.
S202: and analyzing the configured 8583 data message packet to analyze the transaction flow intermediate data associated with the configured 8583 data message packet.
As described above in S102, further description is omitted here.
S203: and packaging and unpacking the analyzed transaction flow intermediate data.
As described above in S103, which is not described herein.
S204: and constructing a retrieval index associated with the packaged and unpacked transaction flow intermediate data.
It can be found that, in this embodiment, a retrieval index associating the packaged and unpacked transaction flow intermediate data can be constructed, which has the advantages of being able to realize to dynamically switch the acquirer to be connected according to the constructed retrieval index, and being able to conveniently realize to connect a plurality of different acquirers.
The invention also provides a data message packing and unpacking device, which can realize flexible configuration of 8583 data message package packing and unpacking.
Referring to fig. 3, fig. 3 is a schematic structural diagram of an embodiment of a data packet packing and unpacking device according to the present invention. In this embodiment, the data packet packing and unpacking device 30 includes a configuration module 31, an analysis module 32, and a packing and unpacking module 33.
The configuration module 31 is configured to configure the packet packing and unpacking of the 8583 data packet.
The parsing module 32 is configured to parse the configured 8583 data packet, and parse the transaction flow intermediate data associated with the configured 8583 data packet.
The packaging and unpacking module 33 is configured to package and unpack the parsed transaction flow intermediate data.
Optionally, the configuration module 31 may be specifically configured to:
and configuring the packet packing and unpacking of the 8583 data message packet in a formatted file configuration mode.
Optionally, the parsing module 32 may be specifically configured to:
judging whether the configured 8583 data message packet has a configuration file or not when an application program of the point-of-sale terminal is started, analyzing the configured 8583 data message packet when the configuration file is judged to exist, performing correlation operation of a domain processing function on the configured 8583 data message packet, using a binary stream output by an analyzer as a table name in a Model name mode, and analyzing transaction flow intermediate data associated with the configured 8583 data message packet through the table name.
Optionally, the set of unpacking module 33 may be specifically configured to:
retrieving information of the acquiring organization to be connected from a database by an application program of the point-of-sale terminal, retrieving configuration information of a corresponding 8583 data message packet by the retrieved information of the acquiring organization, introducing the retrieved configuration information into a parser for packaging and unpacking, obtaining package data of a current request packet from the parsed intermediate data of the transaction flow by the parser, combining the package data into a corresponding 8583 data message packet according to template rules and converting the package data into a byte data stream, sending the byte data stream out and waiting for a background response according to the connection information of the corresponding acquiring organization, transmitting the byte data stream information to the parser after receiving the background response data, generating corresponding key-value pair information of response data according to the template configuration information by the parser, and storing and printing according to the key-value pair information of the returned response packet by the application program of the point-of sale terminal, and according to the stored and printed key value pair information, packaging and unpacking the analyzed transaction flow intermediate data.
Referring to fig. 4, fig. 4 is a schematic structural diagram of another embodiment of a data packet packing and unpacking device according to the present invention. Different from the previous embodiment, the packet packing and unpacking device 40 for data packets in this embodiment further includes a building module 41.
The constructing module 41 is configured to construct a retrieval index associated with the packaged and unpacked transaction flow intermediate data.
Each unit module of the data packet packing and unpacking device 30/40 may respectively execute the corresponding steps in the above method embodiments, and therefore, the details of each unit module are not repeated herein, and please refer to the description of the corresponding steps above.
The present invention further provides a device for packing and unpacking data packets, as shown in fig. 5, including: at least one processor 51; and a memory 52 communicatively coupled to the at least one processor 51; the memory 52 stores instructions executable by the at least one processor 51, and the instructions are executed by the at least one processor 51 to enable the at least one processor 51 to perform the above-mentioned packet packing and unpacking method for data packets.
Wherein the memory 52 and the processor 51 are coupled in a bus, which may comprise any number of interconnected buses and bridges, which couple one or more of the various circuits of the processor 51 and the memory 52 together. The bus may also connect various other circuits such as peripherals, voltage regulators, power management circuits, and the like, which are well known in the art, and therefore, will not be described any further herein. A bus interface provides an interface between the bus and the transceiver. The transceiver may be one element or a plurality of elements, such as a plurality of receivers and transmitters, providing a means for communicating with various other apparatus over a transmission medium. The data processed by the processor 51 is transmitted over a wireless medium via an antenna, which further receives the data and transmits the data to the processor 51.
The processor 51 is responsible for managing the bus and general processing and may also provide various functions including timing, peripheral interfaces, voltage regulation, power management, and other control functions. And the memory 52 may be used to store data used by the processor 51 in performing operations.
The present invention further provides a computer-readable storage medium storing a computer program. The computer program realizes the above-described method embodiments when executed by a processor.
It can be found that, according to the above scheme, the grouping and unpacking of the 8583 data packet can be configured, the configured 8583 data packet can be analyzed, the transaction flow intermediate data associated with the configured 8583 data packet can be analyzed, and the analyzed transaction flow intermediate data can be grouped and unpacked, so that the flexible configuration of the grouping and unpacking of the 8583 data packet can be realized.
Furthermore, the above scheme can configure the packet and the unpacking of the 8583 data packet in a formatted file configuration mode, which has the advantage of realizing flexible configuration of the packet and the unpacking of the 8583 data packet in a formatted file configuration mode, so that a point-of-sale terminal can dynamically switch the order receiving mechanism to be connected.
Furthermore, the above scheme can judge whether the configured 8583 data message packet has a configuration file when the application program of the point-of-sale terminal is started, when the configuration file exists, the configured 8583 data message packet is analyzed, performing correlation operation of domain processing function on the configured 8583 data message packet, using the binary stream output by the parser as a table name in a Model name mode, analyzing the transaction flow intermediate data associated with the configured 8583 data packet through the table name, the method has the advantages that the configured transaction flow intermediate data associated with the 8583 data message packet can be analyzed, the information of all the acquirers corresponding to the associated transaction flow intermediate data can be acquired, and the acquirers to be connected can be switched dynamically according to the acquired information of all the acquirers.
Further, the above scheme can retrieve the information of the connected acquiring mechanism from the database through the application program of the point-of-sale terminal, retrieve the configuration information of the corresponding 8583 data packet through the retrieved information of the acquiring mechanism, lead the retrieved configuration information into the parser for packaging and unpacking, obtain the package data of the current request packet from the parsed transaction flow intermediate data through the parser, combine the corresponding 8583 data packet according to the template rule and convert into the byte data stream, send out the byte data stream according to the connection information of the corresponding acquiring mechanism and wait for background response, after receiving the background response data, transmit the byte data stream information to the parser, and generate the corresponding key value pair information of the response data through the parser according to the template configuration information, and storing and printing the key value pair information of the returned response packet through an application program of the point-of-sale terminal, and packaging and unpacking the analyzed transaction flow intermediate data according to the stored and printed key value pair information, so that the advantage that the analyzed transaction flow intermediate data can be packaged and unpacked in a configuration retrieval mode, and the flexible configuration of the 8583 data packet packaging and unpacking can be realized, so that the point-of-sale terminal can be connected with a plurality of different acquiring organizations.
Furthermore, the scheme can construct a retrieval index associated with the packaged and unpacked transaction flow intermediate data, and has the advantages that the collection mechanisms to be connected can be conveniently and dynamically switched according to the constructed retrieval index, and a plurality of different collection mechanisms can be conveniently connected.
In the several embodiments provided in the present invention, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, a division of a module or a unit is merely a logical division, and an actual implementation may have another division, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
Units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be substantially or partially implemented in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, a network device, or the like) or a processor (processor) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above description is only a part of the embodiments of the present invention, and not intended to limit the scope of the present invention, and all equivalent devices or equivalent processes performed by the present invention through the contents of the specification and the drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.
Claims (8)
1. A method for packing and unpacking data messages is characterized by comprising the following steps:
configuring the packet packing and unpacking of the 8583 data message packet;
analyzing the configured 8583 data packet, and analyzing the transaction flow intermediate data associated with the configured 8583 data packet, wherein the analyzing the configured 8583 data packet and the analyzing the transaction flow intermediate data associated with the configured 8583 data packet include:
judging whether the configured 8583 data message packet has a configuration file or not when an application program of the point-of-sale terminal is started, analyzing the configured 8583 data message packet when the configuration file is judged to exist, performing correlation operation of a domain processing function on the configured 8583 data message packet, using a binary stream output by an analyzer as a table name in a Model name mode, analyzing transaction flow intermediate data associated with the configured 8583 data message packet through the table name, and acquiring information of all acquiring mechanisms corresponding to the associated transaction flow intermediate data;
and packaging and unpacking the analyzed transaction flow intermediate data.
2. The method for packaging and unpacking data packets of claim 1, wherein the configuring of the packaging and unpacking of 8583 data packet comprises:
and configuring the packet packing and unpacking of the 8583 data message packet in a formatted file configuration mode.
3. The method for packaging and unpacking data packets according to claim 1, wherein the packaging and unpacking the parsed transaction flow intermediate data includes:
retrieving information of an acquiring mechanism to be connected from a database through an application program of a point-of-sale terminal, retrieving configuration information of a corresponding 8583 data message packet through the retrieved information of the acquiring mechanism, introducing the retrieved configuration information into a parser for packaging and unpacking, obtaining packaging data of a current request packet from the parsed intermediate data of the transaction process through the parser, combining the packaging data into a corresponding 8583 data message packet according to template rules and converting the data packet into a byte data stream, sending the byte data stream out according to the connection information of the corresponding acquiring mechanism for background response, transmitting the byte data stream information to the parser after receiving background response data, and generating corresponding response data key value pair information according to the template configuration information through the parser, and storing and printing the information according to the key value pair of the returned response packet through an application program of the point-of-sale terminal, and packaging and unpacking the analyzed transaction flow intermediate data according to the stored and printed key value pair information.
4. The method for packaging and unpacking data packets according to claim 1, wherein after the packaging and unpacking of the parsed transaction flow intermediate data, the method further comprises:
and constructing a retrieval index for associating the packaged and unpacked transaction flow intermediate data.
5. A device for packing and unpacking data packets, comprising:
the system comprises a configuration module, an analysis module and a package unpacking module;
the configuration module is used for configuring the packet and the unpacking of the 8583 data message packet;
the analysis module is used for analyzing the configured 8583 data message packet and analyzing the transaction flow intermediate data associated with the configured 8583 data message packet; wherein, the analysis module is specifically configured to:
judging whether the configured 8583 data message packet has a configuration file or not when an application program of the point-of-sale terminal is started, analyzing the configured 8583 data message packet when the configuration file is judged to exist, performing correlation operation of a domain processing function on the configured 8583 data message packet, using a binary stream output by an analyzer as a table name in a Model name mode, analyzing transaction flow intermediate data associated with the configured 8583 data message packet through the table name, and acquiring information of all acquiring mechanisms corresponding to the associated transaction flow intermediate data;
and the packaging and unpacking module is used for packaging and unpacking the analyzed transaction flow intermediate data.
6. The device for packaging and unpacking data packets according to claim 5, wherein the configuration module is specifically configured to:
and configuring the packet packing and unpacking of the 8583 data message packet in a formatted file configuration mode.
7. The device for packetizing and depacketizing data packets according to claim 5, wherein the packetizing and depacketizing module is specifically configured to:
retrieving information of an acquiring mechanism to be connected from a database through an application program of a point-of-sale terminal, retrieving configuration information of a corresponding 8583 data message packet through the retrieved information of the acquiring mechanism, introducing the retrieved configuration information into a parser for packaging and unpacking, obtaining packaging data of a current request packet from the parsed intermediate data of the transaction process through the parser, combining the packaging data into a corresponding 8583 data message packet according to template rules and converting the data packet into a byte data stream, sending the byte data stream out according to the connection information of the corresponding acquiring mechanism for background response, transmitting the byte data stream information to the parser after receiving background response data, and generating corresponding response data key value pair information according to the template configuration information through the parser, and storing and printing the information according to the key value pair of the returned response packet through an application program of the point-of-sale terminal, and packaging and unpacking the analyzed transaction flow intermediate data according to the stored and printed key value pair information.
8. The apparatus for packing and unpacking data packets of claim 5, wherein the apparatus for packing and unpacking data packets further comprises:
building a module;
the construction module is used for constructing a retrieval index which is related to the packaged and unpacked transaction flow intermediate data.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911318094.6A CN111064728B (en) | 2019-12-19 | 2019-12-19 | Method, device and equipment for packing and unpacking data message |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911318094.6A CN111064728B (en) | 2019-12-19 | 2019-12-19 | Method, device and equipment for packing and unpacking data message |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111064728A CN111064728A (en) | 2020-04-24 |
CN111064728B true CN111064728B (en) | 2022-04-19 |
Family
ID=70302206
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911318094.6A Active CN111064728B (en) | 2019-12-19 | 2019-12-19 | Method, device and equipment for packing and unpacking data message |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111064728B (en) |
Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102915600A (en) * | 2012-09-20 | 2013-02-06 | 无锡华御信息技术有限公司 | Fore-POS (point of sale) system and method convenient for function extension |
CN102930670A (en) * | 2012-10-23 | 2013-02-13 | 福建鑫诺通讯技术有限公司 | Intelligent financial card-reading system |
CN103428080A (en) * | 2012-05-17 | 2013-12-04 | 中国银联股份有限公司 | Data unpacking and data packing method |
CN104537778A (en) * | 2015-01-21 | 2015-04-22 | 上海讯联数据服务有限公司 | Method and device for supporting plurality of acquirers based on same financial POS terminal |
CN105023149A (en) * | 2015-04-03 | 2015-11-04 | 深圳市淘淘谷信息技术有限公司 | Method for realizing off-line cashing diversified settlement and payment management, and payment management system |
CN105590191A (en) * | 2015-09-08 | 2016-05-18 | 中国银联股份有限公司 | Interface system used for transaction data access, and implementation method thereof |
CN105590215A (en) * | 2015-10-29 | 2016-05-18 | 中国银联股份有限公司 | Device and method for data processing on-line processing of date mistakes between mechanisms |
CN106846147A (en) * | 2017-02-15 | 2017-06-13 | 四川商通实业有限公司 | A kind of financial transaction management system |
CN107730243A (en) * | 2017-07-20 | 2018-02-23 | 深圳市微盾科技有限公司 | A kind of card user and POS interactive system and method |
CN107808284A (en) * | 2017-11-17 | 2018-03-16 | 上海瀚银信息技术有限公司 | A kind of method of payment based on POS system |
CN108243168A (en) * | 2016-12-27 | 2018-07-03 | 比亚迪股份有限公司 | Packet parsing, group packet method and apparatus and message handling system |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100228683A1 (en) * | 2009-03-06 | 2010-09-09 | TxVia, Inc. | Issuing systems, acquiring systems, and payment networks/systems development |
WO2012027694A2 (en) * | 2010-08-27 | 2012-03-01 | Visa International Service Association | Account number based bill payment platform apparatuses, methods and systems |
US10013690B2 (en) * | 2014-01-16 | 2018-07-03 | Visa International Service Asssociation | Systems and methods for merchant mobile acceptance |
US10922761B2 (en) * | 2016-08-02 | 2021-02-16 | Mastercard International Incorporated | Payment card network data validation system |
US20180101858A1 (en) * | 2016-10-07 | 2018-04-12 | Mastercard International Incorporated | System and method for providing reward points |
US10896422B2 (en) * | 2016-12-01 | 2021-01-19 | Mastercard International Incorporated | Systems and methods for detecting collusion between merchants and cardholders |
-
2019
- 2019-12-19 CN CN201911318094.6A patent/CN111064728B/en active Active
Patent Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103428080A (en) * | 2012-05-17 | 2013-12-04 | 中国银联股份有限公司 | Data unpacking and data packing method |
CN102915600A (en) * | 2012-09-20 | 2013-02-06 | 无锡华御信息技术有限公司 | Fore-POS (point of sale) system and method convenient for function extension |
CN102930670A (en) * | 2012-10-23 | 2013-02-13 | 福建鑫诺通讯技术有限公司 | Intelligent financial card-reading system |
CN104537778A (en) * | 2015-01-21 | 2015-04-22 | 上海讯联数据服务有限公司 | Method and device for supporting plurality of acquirers based on same financial POS terminal |
CN105023149A (en) * | 2015-04-03 | 2015-11-04 | 深圳市淘淘谷信息技术有限公司 | Method for realizing off-line cashing diversified settlement and payment management, and payment management system |
CN105590191A (en) * | 2015-09-08 | 2016-05-18 | 中国银联股份有限公司 | Interface system used for transaction data access, and implementation method thereof |
CN105590215A (en) * | 2015-10-29 | 2016-05-18 | 中国银联股份有限公司 | Device and method for data processing on-line processing of date mistakes between mechanisms |
CN108243168A (en) * | 2016-12-27 | 2018-07-03 | 比亚迪股份有限公司 | Packet parsing, group packet method and apparatus and message handling system |
CN106846147A (en) * | 2017-02-15 | 2017-06-13 | 四川商通实业有限公司 | A kind of financial transaction management system |
CN107730243A (en) * | 2017-07-20 | 2018-02-23 | 深圳市微盾科技有限公司 | A kind of card user and POS interactive system and method |
CN107808284A (en) * | 2017-11-17 | 2018-03-16 | 上海瀚银信息技术有限公司 | A kind of method of payment based on POS system |
Non-Patent Citations (1)
Title |
---|
基于POS终端的高速公路移动支付方案研究;潘梁等;《中国交通信息化》;20170504;135-137页 * |
Also Published As
Publication number | Publication date |
---|---|
CN111064728A (en) | 2020-04-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10304133B2 (en) | Distribution of market data | |
US12002017B2 (en) | Method and system for multi-account check processing via blockchain | |
CN110287247B (en) | Data storage method, device, equipment and storage medium based on Unionpay system | |
US10764163B2 (en) | Determining an event history for an event processed by a plurality of communicating servers via a central event data log | |
US20140195361A1 (en) | Method and system for active receipt management | |
CN110472207A (en) | List generation method and device | |
CN110619555A (en) | Unified management method and device for order information, terminal equipment and medium | |
WO2005045646A2 (en) | Trade engine processing of mass quote messages with market data message format | |
CN102362286A (en) | Interface module, system and method | |
CN104820604B (en) | A kind of browser applied to POS terminal | |
CN101390122A (en) | Scalable transformation and configuration of edi interchanges | |
CN111026931A (en) | Data query method, device, equipment and medium | |
CN110795697A (en) | Logic expression obtaining method and device, storage medium and electronic device | |
CN110995754B (en) | Method, device and equipment for managing data message indexes | |
CN111738763A (en) | Policy processing method, device, equipment and storage medium | |
CN109829723A (en) | The method and apparatus for generating business voucher | |
CN111126983B (en) | Order receiving connection method based on sales terminal, sales terminal and sales equipment | |
CN111064728B (en) | Method, device and equipment for packing and unpacking data message | |
CN110995755B (en) | Method, device and equipment for configuring data message | |
CN112948306A (en) | Method and device for expanding system interface | |
CN109214911A (en) | The treating method and apparatus of bill reconciliation exception | |
KR102407941B1 (en) | User interface generation method of electronic device calling function or procedure of external device based on remote procedure call(rpc), program and electronic device thereof | |
CN110555763A (en) | financial data processing method and device based on block chain | |
US9002870B2 (en) | System, method and computer program product for EDI-to-EDI translations | |
CN107632896A (en) | A kind of data processing method, data processing equipment and communication apparatus |
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 |