CN110995755B - Method, device and equipment for configuring data message - Google Patents

Method, device and equipment for configuring data message Download PDF

Info

Publication number
CN110995755B
CN110995755B CN201911318156.3A CN201911318156A CN110995755B CN 110995755 B CN110995755 B CN 110995755B CN 201911318156 A CN201911318156 A CN 201911318156A CN 110995755 B CN110995755 B CN 110995755B
Authority
CN
China
Prior art keywords
data
packet
information
unpacking
transaction flow
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
CN201911318156.3A
Other languages
Chinese (zh)
Other versions
CN110995755A (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.)
Fujian Newland Payment Technology Co ltd
Original Assignee
Fujian Newland Payment Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujian Newland Payment Technology Co ltd filed Critical Fujian Newland Payment Technology Co ltd
Priority to CN201911318156.3A priority Critical patent/CN110995755B/en
Publication of CN110995755A publication Critical patent/CN110995755A/en
Application granted granted Critical
Publication of CN110995755B publication Critical patent/CN110995755B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/22Parsing or analysis of headers
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION 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/00Payment architectures, schemes or protocols
    • G06Q20/08Payment architectures
    • G06Q20/20Point-of-sale [POS] network systems
    • G06Q20/202Interconnection or interaction of plural electronic cash registers [ECR] or to host computer, e.g. network details, transfer of information from host to ECR or from ECR to ECR
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION 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/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/26Special purpose or proprietary protocols or architectures

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • General Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • Strategic Management (AREA)
  • Development Economics (AREA)
  • Technology Law (AREA)
  • Marketing (AREA)
  • Economics (AREA)
  • Computing Systems (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a method, a device and equipment for configuring 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, packaging and unpacking the intermediate data of the transaction process after analysis, and dynamically switching the bill receiving mechanism to be connected according to the intermediate data of the transaction process after packaging and unpacking. By the mode, the flexible configuration of the 8583 data message packet packaging and unpacking can be realized, so that the POS terminal can dynamically switch the acquiring mechanism to be connected.

Description

Method, device and equipment for configuring data message
Technical Field
The present invention relates to the field of data packet configuration technology, and in particular, to a method, an apparatus, and a device for configuring 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 scheme for configuring data packets, the packaging and unpacking modes of 8583 data packet packets are generally implemented by writing codes, the packaging and unpacking logic is solidified in the binary file of the POS application, the packet format needs to be changed when the business requirement of the acquirer is upgraded, or when a radio mechanism connection mode is added on the terminal, the POS application program source code needs to be updated, recompilation, testing and issuing to corresponding maintenance organization to upgrade POS terminal of merchant, the binary file upgrade will encounter too large file, and aiming at the problem of binary system compatibility on front and back version firmware, operation and maintenance and upgrading are difficult in the actual production environment, flexible configuration of 8583 data packet packaging and unpacking cannot be realized, and a point-of-sale terminal cannot dynamically switch a receiving mechanism to be connected.
Disclosure of Invention
In view of this, the present invention provides a method, an apparatus, and a device for configuring a data packet, which can flexibly configure 8583 packet packets and unpack the data packet packets, so that a point-of-sale terminal can dynamically switch a receiving mechanism to be connected.
According to an aspect of the present invention, a method for configuring a data packet is provided, including: configuring the package 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; packaging and unpacking the analyzed transaction flow intermediate data; and dynamically switching the acquiring mechanism to be connected according to the packaged and unpacked 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 dynamically switching the acquirer to be connected according to the packaged and unpacked 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 an apparatus for configuring a data packet, including: the system comprises a configuration module, an analysis module, a package unpacking module and a switching module; the configuration module is used for configuring the packet and the unpack 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; the packaging and unpacking module is used for packaging and unpacking the analyzed transaction flow intermediate data; and the switching module is used for dynamically switching the acquiring mechanism to be connected according to the packaged and unpacked 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.
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 apparatus for configuring a data packet further includes: 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 an apparatus for configuring a data packet, including: 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 configuring data packets.
According to a further aspect of the invention, there is provided a computer readable storage medium storing a computer program which, when executed by a processor, implements a method of configuring a data message as described in any of the above.
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, the analyzed transaction flow intermediate data can be grouped and unpacked, and the acquiring mechanism to be connected can be dynamically switched according to the transaction flow intermediate data after the grouping and unpacking, so that the flexible configuration of the grouping and unpacking of the 8583 data packet can be realized, and the point-of-sale terminal can dynamically switch the acquiring mechanism to be connected.
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 configuring a data packet according to the present invention;
FIG. 2 is a flowchart illustrating a method for configuring a data packet according to another embodiment of the present invention;
FIG. 3 is a schematic structural diagram of an embodiment of an apparatus for configuring a data packet according to the present invention;
FIG. 4 is a schematic structural diagram of an apparatus for configuring a data packet according to another embodiment of the present invention;
fig. 5 is a schematic structural diagram of an embodiment of a device for configuring a data packet 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. Likewise, the following examples are only some examples, not all examples, 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 configuring data messages, which can realize flexible configuration of 8583 data message packet packaging and unpacking, so that a point-of-sale terminal can dynamically switch an order receiving mechanism to be connected.
Referring to fig. 1, fig. 1 is a flowchart illustrating a method for configuring a data packet 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 specify 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 definition Template of the 8583 data packet is applicable to the back office of the bank, 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 defines a common specification bank specification, DataMap may be used to define the packet and unpacking format information of the 8583 data packet that is identical to the respective field-specific data packet in each transaction, and corresponds to a data tag specific to transaction-intermediate data, 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.
S104: and dynamically switching the acquiring mechanism to be connected according to the packaged and unpacked transaction flow intermediate data.
Wherein, after dynamically switching the acquirer to be connected according to the packaged and unpacked 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 group package and the 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, the parsed transaction flow intermediate data may be packaged and unpacked, and the acquiring mechanism to be connected may be dynamically switched according to the packaged and unpacked transaction flow intermediate data, so that the flexible configuration of the group package and the unpacking of the 8583 data packet may be implemented, and the point-of-sale terminal may dynamically switch the acquiring mechanism to be connected.
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 transaction flow intermediate data associated with the configured 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 flowchart illustrating a method for configuring a data packet according to another embodiment of 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 dynamically switching the acquiring mechanism to be connected according to the packaged and unpacked transaction flow intermediate data.
As described above in S104, and will not be described herein.
S205: 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 device for configuring the data message, which can realize flexible configuration of the 8583 data message packet package and unpacking, so that the POS terminal can dynamically switch the bill receiving mechanism to be connected.
Referring to fig. 3, fig. 3 is a schematic structural diagram of an apparatus for configuring a data packet according to an embodiment of the present invention. In this embodiment, the apparatus 30 for configuring a data packet includes a configuration module 31, an analysis module 32, a packet unpacking module 33, and a switching module 34.
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.
The switching module 34 is configured to dynamically switch the acquirer to be connected according to the packaged and unpacked 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 POS 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 data packet into a byte data stream, sending the byte data stream out according to the connection information of the corresponding acquiring organization and waiting for background response, transmitting the byte data stream information to the parser after receiving the background response data, generating corresponding response data key value pair information according to the template configuration information by the parser, and storing and printing the returned key value pair information according to the key value pair information of the response packet by the application program of the POS terminal, and packaging and unpacking the analyzed transaction flow intermediate data according to the stored and printed key value pair information.
Referring to fig. 4, fig. 4 is a schematic structural diagram of another embodiment of an apparatus for configuring a data packet according to the present invention. Different from the previous embodiment, the apparatus 40 for configuring a data packet according to 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 apparatus 30/40 for configuring data packets can respectively execute the corresponding steps in the above method embodiments, and therefore, the detailed description of each unit module is omitted here, please refer to the description of the corresponding steps above.
The present invention further provides a device for configuring a data packet, 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 execute the above method for configuring a data packet.
Wherein the memory 52 and the processor 51 are coupled in a bus, the bus may comprise any number of interconnected buses and bridges, the buses coupling together one or more of the various circuits of the processor 51 and the memory 52. 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, the analyzed transaction flow intermediate data can be grouped and unpacked, and the acquiring mechanism to be connected can be dynamically switched according to the transaction flow intermediate data after the grouping and unpacking, so that the flexible configuration of the grouping and unpacking of the 8583 data packet can be realized, and the point-of-sale terminal can dynamically switch the acquiring mechanism to be connected.
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 or not through the application program of the point-of-sale terminal when starting, 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 above scheme can construct a retrieval index associated with the packaged and unpacked transaction flow intermediate data, which has the advantages of being capable of dynamically switching the order taking mechanisms to be connected according to the constructed retrieval index conveniently and being capable of conveniently connecting a plurality of different order taking mechanisms.
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.
The 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 position, 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 substantially or partially contribute to the prior art, or all or part of the technical solution may be embodied in the form of a software product, which is stored in a storage medium and includes several 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 contents of the present specification and the attached drawings, or directly or indirectly applied to other related technical fields, are all included in the scope of the present invention.

Claims (8)

1. A method for configuring a data packet, comprising:
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;
packaging and unpacking the analyzed transaction flow intermediate data;
dynamically switching the acquiring mechanism to be connected according to the packaged and unpacked transaction flow intermediate data;
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, 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 constructing a retrieval index associated with the packaged and unpacked transaction flow intermediate data, and dynamically switching the order receiving mechanisms to be connected according to the constructed retrieval index so as to connect a plurality of different order receiving mechanisms.
2. The method of configuring a data packet according to claim 1, wherein the configuring the packetization and depacketization of 8583 data packet packets comprises:
and configuring the packet packing and unpacking of the 8583 data message packet in a formatted file configuration mode.
3. The method of configuring data packets of claim 1, wherein said packaging and unpacking said parsed transaction flow intermediate data comprises:
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 of configuring data messages according to claim 1, wherein after dynamically switching the acquirer to be connected based on the packaged and unpacked transaction flow intermediate data, further comprising:
and constructing a retrieval index for associating the packaged and unpacked transaction flow intermediate data.
5. An apparatus for configuring a data packet, comprising:
the system comprises a configuration module, an analysis module, a package unpacking module and a switching module;
the configuration module is used for configuring the packet and the unpack 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;
the packaging and unpacking module is used for packaging and unpacking the analyzed transaction flow intermediate data;
the switching module is used for dynamically switching the order receiving mechanism to be connected according to the packaged and unpacked transaction flow intermediate data;
the analysis module is specifically configured to determine whether the configured 8583 data packet has a configuration file when an application of the point-of-sale terminal is started, analyze the configured 8583 data packet when the configuration file is determined to exist, perform correlation operation of a domain processing function on the configured 8583 data packet, use a binary stream output by an analyzer as a table name in a Model name manner, analyze transaction flow intermediate data associated with the configured 8583 data packet by using the table name, and acquire information of all acquiring mechanisms corresponding to the associated transaction flow intermediate data.
6. The apparatus for configuring a data packet 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 apparatus for configuring a data packet according to claim 5, wherein the packet 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.
8. The apparatus for configuring data packets according to claim 5, wherein the apparatus for configuring 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.
CN201911318156.3A 2019-12-19 2019-12-19 Method, device and equipment for configuring data message Active CN110995755B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911318156.3A CN110995755B (en) 2019-12-19 2019-12-19 Method, device and equipment for configuring data message

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911318156.3A CN110995755B (en) 2019-12-19 2019-12-19 Method, device and equipment for configuring data message

Publications (2)

Publication Number Publication Date
CN110995755A CN110995755A (en) 2020-04-10
CN110995755B true CN110995755B (en) 2022-09-02

Family

ID=70063001

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911318156.3A Active CN110995755B (en) 2019-12-19 2019-12-19 Method, device and equipment for configuring data message

Country Status (1)

Country Link
CN (1) CN110995755B (en)

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060050684A1 (en) * 2004-09-07 2006-03-09 First Data Corporation Message analysis systems and methods
CN102915600B (en) * 2012-09-20 2014-10-08 无锡华御信息技术有限公司 Fore-POS (point of sale) system and method convenient for function extension
CN104537778A (en) * 2015-01-21 2015-04-22 上海讯联数据服务有限公司 Method and device for supporting plurality of acquirers based on same financial POS terminal
CN104732382A (en) * 2015-04-03 2015-06-24 深圳市淘淘谷信息技术有限公司 Payment management method and payment management system

Also Published As

Publication number Publication date
CN110995755A (en) 2020-04-10

Similar Documents

Publication Publication Date Title
US20190236708A1 (en) Distribution of market data
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
CN110619555A (en) Unified management method and device for order information, terminal equipment and medium
CN102362286A (en) Interface module, system and method
CN110795697B (en) Method and device for acquiring logic expression, storage medium and electronic device
CN115134236A (en) Intelligent network card management method, device, equipment and readable medium
CN105302556B (en) Realize the method and system and server unit calculated
CN111738763A (en) Policy processing method, device, equipment and storage medium
CN110995754B (en) Method, device and equipment for managing data message indexes
CN111126983B (en) Order receiving connection method based on sales terminal, sales terminal and sales equipment
CN110995755B (en) Method, device and equipment for configuring data message
CN109284452A (en) The online methods of exhibiting of electronic protocol, device, electronic equipment, storage medium
CN111064728B (en) Method, device and equipment for packing and unpacking data message
CN113780969A (en) Customs declaration method and system
CN110782310B (en) Method, device and system for asynchronously acquiring user attribute information from third-party platform
CN109829723A (en) The method and apparatus for generating business voucher
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
CN116385181A (en) Business transaction method, system, storage medium and electronic equipment
CN110555763A (en) financial data processing method and device based on block chain
CN109214911A (en) The treating method and apparatus of bill reconciliation exception
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
US11354635B2 (en) Payment message interface
CN114721704A (en) Multi-platform docking method and device, electronic equipment and computer readable 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