CN109617881A - A kind of processing method and terminal of POS terminal message - Google Patents
A kind of processing method and terminal of POS terminal message Download PDFInfo
- Publication number
- CN109617881A CN109617881A CN201811548325.8A CN201811548325A CN109617881A CN 109617881 A CN109617881 A CN 109617881A CN 201811548325 A CN201811548325 A CN 201811548325A CN 109617881 A CN109617881 A CN 109617881A
- Authority
- CN
- China
- Prior art keywords
- pos terminal
- message
- identification code
- terminal message
- business identification
- 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.)
- Pending
Links
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
-
- 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
-
- 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/50—Network services
- H04L67/51—Discovery or management thereof, e.g. service location protocol [SLP] or web services
-
- 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/08—Protocols for interworking; Protocol conversion
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention discloses the processing methods and terminal of a kind of POS terminal message, it is unified format by the way that the POS terminal message that each POS terminal is sent is transformed, the POS terminal message of the unified format includes heading and message body, the heading includes the corresponding business identification code of POS terminal, the message body includes the original message of POS terminal, the POS terminal message of different industries can be carried out to unified collection and processing, the compatibility to the POS terminal message of different message formats is not only realized, but also reduces the complexity of the POS terminal message of compatible different industries.
Description
Technical field
The present invention relates to POS business treatment technique fields, processing method and end more particularly, to a kind of POS terminal message
End.
Background technique
With the development of payment industry, payment electronic product is widely used in various industries.Due to each
Otherness existing for business between a industry, so that there is some difference for the business datum acquired on the financial POS of different industries, from
And cause the message for being sent to corresponding service process platform on financial POS terminal also different.With socio-economic development, no
Industrial Convergence between the same industry has been a kind of universal phenomenon, and service process platform needs to accept the financial POS of different industries
Transaction is a kind of prerequisite basic function.
Such as increase new industry access on current platform, needs to increase the finance to the sector again on existing platform
The a series of function such as the parsing of POS terminal message and business processing, the POS access interface that the same platform is externally issued
It is not identical.The compatible complexity for not only increasing existing system of such industry, it is also possible to existing stable business system
It damages.
Summary of the invention
The technical problems to be solved by the present invention are: providing the processing method and terminal of a kind of POS terminal message, reduce simultaneous
Hold the complexity of the POS terminal message of different industries.
In order to solve the above-mentioned technical problem, a kind of technical solution that the present invention uses are as follows:
A kind of processing method of POS terminal message, comprising steps of
S1, the POS terminal message with unified format that each POS terminal is sent is received, the POS terminal message includes
Heading and message body, the heading include the corresponding business identification code of POS terminal, and the message body includes POS terminal
Original message;
S2, the parsing POS terminal message carry out corresponding processing to the POS terminal message according to parsing result.
In order to solve the above-mentioned technical problem, the another technical solution that the present invention uses are as follows:
A kind of processing terminal of POS terminal message, including memory, processor and storage are on a memory and can be described
The computer program run on processor, the processor perform the steps of when executing the computer program
S1, the POS terminal message with unified format that each POS terminal is sent is received, the POS terminal message includes
Heading and message body, the heading include the corresponding business identification code of POS terminal, and the message body includes POS terminal
Original message;
S2, the parsing POS terminal message carry out corresponding processing to the POS terminal message according to parsing result.
The beneficial effects of the present invention are: it is unified format by the way that the POS terminal message that each POS terminal is sent is transformed,
The POS terminal message of the unified format includes heading and message body, and the heading includes that the corresponding business of POS terminal is known
Other code, the message body include the original message of POS terminal, and the POS terminal message of different industries can be carried out to unified collection
And processing, the compatibility to the POS terminal message of different message formats is not only realized, but also reduce compatible different industries
The complexity of POS terminal message.
Detailed description of the invention
Fig. 1 is a kind of flow chart of the processing method of POS terminal message of the embodiment of the present invention
Fig. 2 is a kind of processing terminal structural schematic diagram of POS terminal message of the embodiment of the present invention;
Fig. 3 is that the service process platform of the embodiment of the present invention one handles the flow chart of POS terminal message;
Fig. 4 is that the service process platform of the embodiment of the present invention two handles the flow chart of POS terminal message;
Fig. 5 is that the service process platform of the embodiment of the present invention three handles the flow chart of POS terminal message;
Label declaration:
1, a kind of processing terminal of POS terminal message;2, memory;3, processor.
Specific embodiment
To explain the technical content, the achieved purpose and the effect of the present invention in detail, below in conjunction with embodiment and cooperate attached
Figure is explained.
The most critical design of the present invention is: the POS terminal message that each POS terminal is sent is transformed as unified format, institute
The POS terminal message for stating unified format includes heading and message body, and the heading includes the corresponding business identification of POS terminal
Code, the message body includes the original message of POS terminal.
Please refer to Fig. 1, a kind of processing method of POS terminal message, comprising steps of
S1, the POS terminal message with unified format that each POS terminal is sent is received, the POS terminal message includes
Heading and message body, the heading include the corresponding business identification code of POS terminal, and the message body includes POS terminal
Original message;
S2, the parsing POS terminal message carry out corresponding processing to the POS terminal message according to parsing result.
As can be seen from the above description, the beneficial effects of the present invention are: the POS terminal sent by the way that each POS terminal is transformed
Message is unified format, and the POS terminal message of the unified format includes heading and message body, and the heading includes POS
The corresponding business identification code of terminal, the message body include the original message of POS terminal, can be by the POS terminal of different industries
Message carries out unified collection and processing, not only realizes the compatibility to the POS terminal message of different message formats, but also reduce
The complexity of the POS terminal message of compatible different industries.
Further, the step S2 includes:
The POS terminal message is parsed, judges whether to be resolved to heading, if it is not, then forwarding the POS terminal message
Server to default is handled;
Otherwise, it parses the heading and obtains business identification code, according to the business identification code to the POS terminal message
Message body handled.
It whether is resolved to the heading as can be seen from the above description, prejudging, it can be to avoid in the feelings of not heading
Meaningless operation under condition improves working efficiency;When being resolved to the heading, the business of the available message is identified
Code, operates according to message body of the business identification code to the message, determines POS terminal message by business identification code
The industry, so that corresponding processing is carried out, it is convenient and efficient.
Further, the heading further includes packet parsing rule;
The parsing heading obtains business identification code, according to the business identification code to the POS terminal message
Carrying out processing includes:
It parses the heading and obtains business identification code and packet parsing rule;
Judge whether that the message body to the POS terminal message parses according to the packet parsing rule, if it is not, then
Outgoing packet body is intercepted from the POS terminal message, and the message body is forwarded to service corresponding with the business identification code
Device;
Otherwise, it is handled according to message body of the business identification code to the POS terminal message.
As can be seen from the above description, being judged whether according to the packet parsing rule for also including in the heading to the report
Style is parsed, and can need whether setting parses the POS terminal message above sent according to the actual situation, is improved flexible
Property.
Further, it is described according to message body of the business identification code to the POS terminal message carry out processing include:
Corresponding packet parsing function is obtained according to the business identification code;
The packet parsing function is called to parse the message body of the POS terminal message.
Message is solved as can be seen from the above description, directly obtaining corresponding packet parsing function according to business identification code
Analysis, will extraly add the interface of corresponding message, simplify operation when without existing being parsed.
Further, it is also wrapped after the message body for calling the packet parsing function to parse the POS terminal message
It includes:
Message body after the parsing is converted into internal form message, the internal form message is forwarded to unified end
Mouth is handled.
As can be seen from the above description, being translated into internal form message after parsing the message body, convenient for being uniformly processed, mention
The internal form message is forwarded to unified port processing, realizes business procession and packet parsing mistake by high working efficiency
Journey is separated from each other, and facilitates the upgrading and maintenance of follow-up business, increases stability.
It is further, described that corresponding packet parsing function is obtained according to the business identification code specifically:
Corresponding routing rule is matched to by the business identification code;
It will be sent in corresponding packet parsing function on the message body of the POS terminal message by the routing rule.
As can be seen from the above description, the business identification code carrys out the message particular by corresponding routing rule is matched to
It is sent on body in corresponding packet parsing function, improves the accuracy for parsing the message body.
Further, it will be sent to before corresponding packet parsing function on the message body of the POS terminal message further include:
Dynamically load includes the analytical function configuration documentation of the packet parsing function.
As can be seen from the above description, first loading the parsing of the packet parsing function before calling the packet parsing function
Function configuration documentation obtains packet parsing function corresponding with the business identification code in the configuration documentation of the analytical function
Information facilitates and calls corresponding packet parsing function.
Further, before the step S1 further include:
S01, increase simultaneously store the corresponding service identification of each POS terminal, increase in the analytical function configuration documentation
Packet parsing function corresponding with the service identification;
S02, increase simultaneously store and the business identification code is corresponding routes to message corresponding with the business identification code
The routing rule of analytical function;
Corresponding relationship between S03, storage service identification code and routing rule.
As can be seen from the above description, increasing service identification corresponding with each POS terminal and corresponding message solution in advance
Function and routing rule are analysed, subsequent match is facilitated to be handled to corresponding packet parsing function, simplifies compatible not apposition
The complexity of the POS terminal message of formula.
Further, being matched to corresponding routing rule by the business identification code includes:
According to the corresponding relationship between service identification and routing rule, the business identification code is matched to corresponding road
By rule.
As can be seen from the above description, the business identification code for ensuring to parse when receiving POS terminal message can match
To correct routing, to be matched to correct packet parsing function, it is ensured that the heading resolving and the message
The corresponding relationship of body resolving improves the accuracy to different POS terminal packet parsings.
Further, before the step S01 further include:
Judge whether business identification code to be increased has stored, if it is not, thening follow the steps S01-S03.
As can be seen from the above description, judging whether business identification code to be increased has stored, know if it is not, just executing increase business
The operation of other code and corresponding data, avoids meaningless addition from operating, further increases efficiency.
Referring to figure 2., a kind of processing terminal of POS terminal message, including memory, processor and storage are on a memory
And the computer program that can be run on the processor, the processor realize following step when executing the computer program
It is rapid:
S1, the POS terminal message with unified format that each POS terminal is sent is received, the POS terminal message includes
Heading and message body, the heading include the corresponding business identification code of POS terminal, and the message body includes POS terminal
Original message;
S2, the parsing POS terminal message carry out corresponding processing to the POS terminal message according to parsing result.
As can be seen from the above description, the beneficial effects of the present invention are: the POS terminal sent by the way that each POS terminal is transformed
Message is unified format, and the POS terminal message of the unified format includes heading and message body, and the heading includes POS
The corresponding business identification code of terminal, the message body include the original message of POS terminal, can be by the POS terminal of different industries
Message carries out unified collection and processing, not only realizes the compatibility to the POS terminal message of different message formats, but also reduce
The complexity of the POS terminal message of compatible different industries.
Further, the step S2 includes:
The POS terminal message is parsed, judges whether to be resolved to heading, if it is not, then forwarding the POS terminal message
Server to default is handled;
Otherwise, it parses the heading and obtains business identification code, according to the business identification code to the POS terminal message
Message body handled.
It whether is resolved to the heading as can be seen from the above description, prejudging, it can be to avoid in the feelings of not heading
Meaningless operation under condition improves working efficiency;When being resolved to the heading, the business of the available message is identified
Code, operates according to message body of the business identification code to the message, determines POS terminal message by business identification code
The industry, so that corresponding processing is carried out, it is convenient and efficient.
Further, the heading further includes packet parsing rule;
The parsing heading obtains business identification code, according to the business identification code to the POS terminal message
Carrying out processing includes:
It parses the heading and obtains business identification code and packet parsing rule;
Judge whether that the message body to the POS terminal message parses according to the packet parsing rule, if it is not, then
Outgoing packet body is intercepted from the POS terminal message, and the message body is forwarded to service corresponding with the business identification code
Device;
Otherwise, it is handled according to message body of the business identification code to the POS terminal message.
As can be seen from the above description, being judged whether according to the packet parsing rule for also including in the heading to the report
Style is parsed, and can need whether setting parses the POS terminal message above sent according to the actual situation, is improved flexible
Property.
Further, it is described according to message body of the business identification code to the POS terminal message carry out processing include:
Corresponding packet parsing function is obtained according to the business identification code;
The packet parsing function is called to parse the message body of the POS terminal message.
Message is solved as can be seen from the above description, directly obtaining corresponding packet parsing function according to business identification code
Analysis, will extraly add the interface of corresponding message, simplify operation when without existing being parsed.
Further, it is also wrapped after the message body for calling the packet parsing function to parse the POS terminal message
It includes:
Message body after the parsing is converted into internal form message, the internal form message is forwarded to unified end
Mouth is handled.
As can be seen from the above description, being translated into internal form message after parsing the message body, convenient for being uniformly processed, mention
The internal form message is forwarded to unified port processing, realizes business procession and packet parsing mistake by high working efficiency
Journey is separated from each other, and facilitates the upgrading and maintenance of follow-up business, increases stability.
It is further, described that corresponding packet parsing function is obtained according to the business identification code specifically:
Corresponding routing rule is matched to by the business identification code;
It will be sent in corresponding packet parsing function on the message body of the POS terminal message by the routing rule.
As can be seen from the above description, the business identification code carrys out the message particular by corresponding routing rule is matched to
It is sent on body in corresponding packet parsing function, improves the accuracy for parsing the message body.
Further, it will be sent to before corresponding packet parsing function on the message body of the POS terminal message further include:
Dynamically load includes the analytical function configuration documentation of the packet parsing function.
As can be seen from the above description, first loading the parsing of the packet parsing function before calling the packet parsing function
Function configuration documentation obtains packet parsing function corresponding with the business identification code in the configuration documentation of the analytical function
Information facilitates and calls corresponding packet parsing function.
Further, before the step S1 further include:
S01, increase simultaneously store the corresponding service identification of each POS terminal, increase in the analytical function configuration documentation
Packet parsing function corresponding with the service identification;
S02, increase simultaneously store and the business identification code is corresponding routes to message corresponding with the business identification code
The routing rule of analytical function;
Corresponding relationship between S03, storage service identification code and routing rule.
As can be seen from the above description, increasing service identification corresponding with each POS terminal and corresponding message solution in advance
Function and routing rule are analysed, subsequent match is facilitated to be handled to corresponding packet parsing function, simplifies compatible not apposition
The complexity of the POS terminal message of formula.
Further, being matched to corresponding routing rule by the business identification code includes:
According to the corresponding relationship between service identification and routing rule, the business identification code is matched to corresponding road
By rule.
As can be seen from the above description, the business identification code for ensuring to parse when receiving POS terminal message can match
To correct routing, to be matched to correct packet parsing function, it is ensured that the heading resolving and the message
The corresponding relationship of body resolving improves the accuracy to different POS terminal packet parsings.
Further, before the step S01 further include:
Judge whether business identification code to be increased has stored, if it is not, thening follow the steps S01-S03.
As can be seen from the above description, judging whether business identification code to be increased has stored, know if it is not, just executing increase business
The operation of other code and corresponding data, avoids meaningless addition from operating, further increases efficiency.
Embodiment one
Please refer to Fig. 1 and Fig. 3, a kind of processing method of POS terminal message, comprising steps of
The POS terminal message for the various industries that ex ante analysis needs service process platform to handle and the POS of various industries
Corresponding business identification code, the industry is respectively set for the POS terminal message of various industries in the packet parsing function of terminal message
Industry and its corresponding packet parsing function belonging to the corresponding POS terminal message of identification code unique identification of being engaged in;
The message format that existing POS terminal is sent is transformed, on the basis for not influencing the POS terminal regular traffic and using
On, the message format of the POS terminal is improved to unified format;
The message of the unified format includes heading and message body two parts;
Specifically, increase the service identification of the POS terminal to the heading;
The message body is added in the original message information of the POS terminal;
Service process platform will analyze obtained each business identification code in advance and corresponding packet parsing function adds
Add, specific adding procedure is as follows:
Judge whether business identification code to be increased has stored, if it is not, thening follow the steps S01-S03;If so, without
Addition operation;
S01, increase simultaneously store the corresponding service identification of each POS terminal, increase in the analytical function configuration documentation
Packet parsing function corresponding with the service identification;
S02, increase simultaneously store and the business identification code is corresponding routes to message corresponding with the business identification code
The routing rule of analytical function;
Corresponding relationship between S03, storage service identification code and routing rule;
Wherein, above-mentioned adding procedure can be dynamically, i.e., if there is the POS terminal message of new industry needs the industry
Business processing platform processing, then can carry out dynamic addition;
It is as shown in Figure 3 by treatment process of the service process platform to the POS terminal message of various industries:
S1, the POS terminal message with unified format that each POS terminal is sent is received, the POS terminal message includes
Heading and message body, the heading include the corresponding business identification code of POS terminal, and the message body includes POS terminal
Original message;
S2, the parsing POS terminal message carry out corresponding processing to the POS terminal message according to parsing result;
Specifically, the POS terminal message is parsed, judges whether to be resolved to heading, if it is not, then by the POS terminal
The server that message is forwarded to default is handled, that is to say, that can also be compatible with the progress of POS terminal message format is not above-mentioned
The processing of message transmitted by the POS terminal of the transformation of unified format, which thereby enhances the robustness of Message processing;
Otherwise, it parses the heading and obtains business identification code, according to the business identification code to the POS terminal message
Message body handled;
Specifically, according to the corresponding relationship between the service identification and routing rule being previously stored, according to the business
Identification code is matched to corresponding routing rule;
Dynamically load includes the analytical function configuration documentation of the packet parsing function;
It will be sent in corresponding packet parsing function on the message body of the POS terminal message by the routing rule;
The packet parsing function is called to parse the message body of the POS terminal message;
Wherein, when carrying out the matching of routing rule, if the business identification code is not configured in the service process platform
Corresponding routing rule causes the business identification code matching less than corresponding routing rule, and the service process platform will be shown
Show miscue, and terminates the processing of the POS terminal message.
Embodiment two
Referring to figure 4., the present embodiment and the difference of embodiment one are: the heading further includes packet parsing rule,
The packet parsing rule indicates whether the POS terminal needs service process platform to carry out pressure solution to corresponding message body
Analysis;
The step S2 specifically:
The POS terminal message is parsed, judges whether to be resolved to heading, if it is not, then forwarding the POS terminal message
Server to default is handled;
Otherwise, it parses the heading and obtains business identification code and packet parsing rule;
Judge whether that the message body to the POS terminal message parses according to the packet parsing rule, if it is not, then
Outgoing packet body is intercepted from the POS terminal message, and the message body is forwarded to service corresponding with the business identification code
Device is handled, that is to say, that and POS terminal does not need service process platform its message is uniformly processed in this case, and
It is handled according to original mode;
Otherwise, it is handled according to message body of the business identification code to the POS terminal message;
The detailed process and embodiment handled according to message body of the business identification code to the POS terminal message
It is identical in one.
Embodiment three
Referring to figure 5., the present embodiment is calling the packet parsing function on the basis of embodiment one or embodiment two
After the message body for parsing the POS terminal message further include:
Message body after the parsing is converted into internal form message, the internal form message is forwarded to unified end
Mouth is handled;
Wherein, the internal form message be can be former to the POS terminals of various industries by service process platform interior liabilities
The unified format that the Service Processing Module that beginning message is uniformly processed can be identified and be handled, by carrying out unified turn to it
Change, avoids the POS terminal original message for also needing additional port to receive different industries in the prior art;And the business
Processing platform separates packet parsing and message traffic processing, only need to be in the unified port if subsequent have upgrading service
The Service Processing Module at place carries out corresponding modification upgrading, convenient and efficient, increases system stability, ties up convenient for system
Shield.
Example IV
Referring to figure 2., a kind of processing terminal 1 of POS terminal message, including memory 2, processor 3 and it is stored in storage
On device 2 and the computer program that can be run on the processor 3, the realization when processor 3 executes the computer program
Each step in embodiment one.
Embodiment five
Referring to figure 2., a kind of processing terminal 1 of POS terminal message, including memory 2, processor 3 and it is stored in storage
On device 2 and the computer program that can be run on the processor 3, the realization when processor 3 executes the computer program
Each step in embodiment two.
Embodiment six
Referring to figure 2., a kind of processing terminal 1 of POS terminal message, including memory 2, processor 3 and it is stored in storage
On device 2 and the computer program that can be run on the processor 3, the realization when processor 3 executes the computer program
Each step in embodiment three.
In conclusion the processing method and terminal of a kind of POS terminal message provided by the invention, by whole to existing POS
End message format is transformed, and is transformed into the unified message format that service process platform is capable of handling, the message format includes
Heading and message body, the heading include the business identification code and message of industry belonging to unique identification POS terminal message
Resolution rules, the message body include the original message of POS terminal, by the business identification code can be matched to it is described
The corresponding packet parsing function of POS terminal original message can determine whether whole to the POS by packet parsing rule
End original message is parsed, while packet parsing and Message processing being separated, and is parsed to POS terminal original message
After convert thereof into internal form and be forwarded to unified port again and handled, do not need to need to add as existing business processing platform
For the interface of the POS terminal message of each different industries, the complexity of the POS terminal message of compatible different industries is reduced,
Simultaneously it can also be compatible with the situation not being transformed to POS message format, the compatible range of further expansion, and by message solution
Analysis is separated with Message processing, is realized distributed deployment, is reduced the complexity and later maintenance difficulty of system, is improved
The stability of system.
The above description is only an embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair
Equivalents made by bright specification and accompanying drawing content are applied directly or indirectly in relevant technical field, similarly include
In scope of patent protection of the invention.
Claims (20)
1. a kind of processing method of POS terminal message, which is characterized in that comprising steps of
S1, the POS terminal message with unified format that each POS terminal is sent is received, the POS terminal message includes message
Head and message body, the heading includes the corresponding business identification code of POS terminal, and the message body includes the original of POS terminal
Message;
S2, the parsing POS terminal message carry out corresponding processing to the POS terminal message according to parsing result.
2. a kind of processing method of POS terminal message according to claim 1, which is characterized in that the step S2 includes:
The POS terminal message is parsed, judges whether to be resolved to heading, if it is not, being then forwarded to the POS terminal message silent
The server recognized is handled;
Otherwise, it parses the heading and obtains business identification code, according to the business identification code to the report of the POS terminal message
Style is handled.
3. a kind of processing method of POS terminal message according to claim 2, which is characterized in that the heading also wraps
Include packet parsing rule;
The parsing heading obtains business identification code, is carried out according to the business identification code to the POS terminal message
Processing includes:
It parses the heading and obtains business identification code and packet parsing rule;
Judge whether that the message body to the POS terminal message parses according to the packet parsing rule, if it is not, then from institute
Interception outgoing packet body in POS terminal message is stated, the message body is forwarded to server corresponding with the business identification code;
Otherwise, it is handled according to message body of the business identification code to the POS terminal message.
4. a kind of processing method of POS terminal message according to claim 2 or 3, which is characterized in that described according to
Business identification code carries out processing to the message body of the POS terminal message
Corresponding packet parsing function is obtained according to the business identification code;
The packet parsing function is called to parse the message body of the POS terminal message.
5. a kind of processing method of POS terminal message according to claim 4, which is characterized in that described to call the report
Literary analytical function parses after the message body of the POS terminal message further include:
Message body after the parsing is converted into internal form message, by the internal form message be forwarded to unified port into
Row processing.
6. a kind of processing method of POS terminal message according to claim 4, which is characterized in that described according to the industry
Identification code of being engaged in obtains corresponding packet parsing function specifically:
Corresponding routing rule is matched to by the business identification code;
It will be sent in corresponding packet parsing function on the message body of the POS terminal message by the routing rule.
7. a kind of processing method of POS terminal message according to claim 6, which is characterized in that by the POS terminal report
It is sent to before corresponding packet parsing function on the message body of text further include:
Dynamically load includes the analytical function configuration documentation of the packet parsing function.
8. a kind of processing method of POS terminal message according to claim 7, which is characterized in that before the step S1
Further include:
S01, increase simultaneously store the corresponding service identification of each POS terminal, in analytical function configuration documentation increase and institute
State the corresponding packet parsing function of service identification;
S02, increase simultaneously store and the business identification code is corresponding routes to packet parsing corresponding with the business identification code
The routing rule of function;
Corresponding relationship between S03, storage service identification code and routing rule.
9. a kind of processing method of POS terminal message according to claim 8, which is characterized in that known by the business
Other code is matched to corresponding routing rule
According to the corresponding relationship between service identification and routing rule, the business identification code is matched to corresponding routing and is advised
Then.
10. a kind of processing method of POS terminal message according to claim 8 or claim 9, which is characterized in that in the step
Before S01 further include:
Judge whether business identification code to be increased has stored, if it is not, thening follow the steps S01-S03.
11. a kind of processing terminal of POS terminal message, including memory, processor and storage are on a memory and can be described
The computer program run on processor, which is characterized in that the processor realizes following step when executing the computer program
It is rapid:
S1, the POS terminal message with unified format that each POS terminal is sent is received, the POS terminal message includes message
Head and message body, the heading includes the corresponding business identification code of POS terminal, and the message body includes the original of POS terminal
Message;
S2, the parsing POS terminal message carry out corresponding processing to the POS terminal message according to parsing result.
12. a kind of processing terminal of POS terminal message according to claim 11, which is characterized in that the step S2 packet
It includes:
The POS terminal message is parsed, judges whether to be resolved to heading, if it is not, being then forwarded to the POS terminal message silent
The server recognized is handled;
Otherwise, it parses the heading and obtains business identification code, according to the business identification code to the report of the POS terminal message
Style is handled.
13. a kind of processing terminal of POS terminal message according to claim 12, which is characterized in that the heading is also
Including packet parsing rule;
The parsing heading obtains business identification code, is carried out according to the business identification code to the POS terminal message
Processing includes:
It parses the heading and obtains business identification code and packet parsing rule;
Judge whether that the message body to the POS terminal message parses according to the packet parsing rule, if it is not, then from institute
Interception outgoing packet body in POS terminal message is stated, the message body is forwarded to server corresponding with the business identification code;
Otherwise, it is handled according to message body of the business identification code to the POS terminal message.
14. a kind of processing terminal of POS terminal message according to claim 12 or 13, which is characterized in that the basis
The business identification code carries out processing to the message body of the POS terminal message
Corresponding packet parsing function is obtained according to the business identification code;
The packet parsing function is called to parse the message body of the POS terminal message.
15. a kind of processing terminal of POS terminal message according to claim 14, which is characterized in that described in the calling
Packet parsing function parses after the message body of the POS terminal message further include:
Message body after the parsing is converted into internal form message, by the internal form message be forwarded to unified port into
Row processing.
16. a kind of processing terminal of POS terminal message according to claim 14, which is characterized in that described according to
Business identification code obtains corresponding packet parsing function specifically:
Corresponding routing rule is matched to by the business identification code;
It will be sent in corresponding packet parsing function on the message body of the POS terminal message by the routing rule.
17. a kind of processing terminal of POS terminal message according to claim 16, which is characterized in that by the POS terminal
It is sent on the message body of message before corresponding packet parsing function further include:
Dynamically load includes the analytical function configuration documentation of the packet parsing function.
18. a kind of processing terminal of POS terminal message according to claim 17, which is characterized in that the step S1 it
Before further include:
S01, increase simultaneously store the corresponding service identification of each POS terminal, in analytical function configuration documentation increase and institute
State the corresponding packet parsing function of service identification;
S02, increase simultaneously store and the business identification code is corresponding routes to packet parsing corresponding with the business identification code
The routing rule of function;
Corresponding relationship between S03, storage service identification code and routing rule.
19. a kind of processing terminal of POS terminal message according to claim 18, which is characterized in that pass through the business
Identification code is matched to corresponding routing rule
According to the corresponding relationship between service identification and routing rule, the business identification code is matched to corresponding routing and is advised
Then.
20. a kind of processing terminal of POS terminal message described in 8 or 19 according to claim 1, which is characterized in that in the step
Before rapid S01 further include:
Judge whether business identification code to be increased has stored, if it is not, thening follow the steps S01-S03.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811548325.8A CN109617881A (en) | 2018-12-18 | 2018-12-18 | A kind of processing method and terminal of POS terminal message |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811548325.8A CN109617881A (en) | 2018-12-18 | 2018-12-18 | A kind of processing method and terminal of POS terminal message |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109617881A true CN109617881A (en) | 2019-04-12 |
Family
ID=66009648
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811548325.8A Pending CN109617881A (en) | 2018-12-18 | 2018-12-18 | A kind of processing method and terminal of POS terminal message |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109617881A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113542374A (en) * | 2021-06-30 | 2021-10-22 | 北京宇信科技集团股份有限公司 | Message processing method and system |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130046722A1 (en) * | 2008-04-11 | 2013-02-21 | Trevor Hanson | Message conduit systems with algorithmic data stream control and methods for processing thereof |
CN103440714A (en) * | 2013-07-11 | 2013-12-11 | 福建联迪商用设备有限公司 | POS terminal and method and system for network configuration of POS terminal |
CN103714453A (en) * | 2013-12-27 | 2014-04-09 | 福建联迪商用设备有限公司 | Payment platform system and payment method based on intelligent device |
CN103957241A (en) * | 2014-04-16 | 2014-07-30 | 中国工商银行股份有限公司 | Communication method and device based on message data |
WO2015177306A1 (en) * | 2014-05-21 | 2015-11-26 | Euronet Usa Llc | Financial switching engine and messaging |
CN105391593A (en) * | 2015-12-30 | 2016-03-09 | 迈普通信技术股份有限公司 | Message transmission method and equipment |
CN106302856A (en) * | 2016-08-18 | 2017-01-04 | 福建联迪商用设备有限公司 | A kind of method and system shortening Android intelligence POS exchange hour |
CN207650989U (en) * | 2017-12-26 | 2018-07-24 | 苏州晟世能源管理有限公司 | A kind of intelligence instrument data collection architecture |
-
2018
- 2018-12-18 CN CN201811548325.8A patent/CN109617881A/en active Pending
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130046722A1 (en) * | 2008-04-11 | 2013-02-21 | Trevor Hanson | Message conduit systems with algorithmic data stream control and methods for processing thereof |
CN103440714A (en) * | 2013-07-11 | 2013-12-11 | 福建联迪商用设备有限公司 | POS terminal and method and system for network configuration of POS terminal |
CN103714453A (en) * | 2013-12-27 | 2014-04-09 | 福建联迪商用设备有限公司 | Payment platform system and payment method based on intelligent device |
CN103957241A (en) * | 2014-04-16 | 2014-07-30 | 中国工商银行股份有限公司 | Communication method and device based on message data |
WO2015177306A1 (en) * | 2014-05-21 | 2015-11-26 | Euronet Usa Llc | Financial switching engine and messaging |
CN105391593A (en) * | 2015-12-30 | 2016-03-09 | 迈普通信技术股份有限公司 | Message transmission method and equipment |
CN106302856A (en) * | 2016-08-18 | 2017-01-04 | 福建联迪商用设备有限公司 | A kind of method and system shortening Android intelligence POS exchange hour |
CN207650989U (en) * | 2017-12-26 | 2018-07-24 | 苏州晟世能源管理有限公司 | A kind of intelligence instrument data collection architecture |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113542374A (en) * | 2021-06-30 | 2021-10-22 | 北京宇信科技集团股份有限公司 | Message processing method and system |
CN113542374B (en) * | 2021-06-30 | 2022-04-12 | 北京宇信科技集团股份有限公司 | Message processing method and system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US6253371B1 (en) | Method for supporting parallelization of source program | |
US6636521B1 (en) | Flexible runtime configurable application program interface (API) that is command independent and reusable | |
US7739696B2 (en) | Message translation systems and methods | |
CN111290806B (en) | Calling method and device of application program interface, computer equipment and storage medium | |
EP0090016A1 (en) | Apparatus for routing data amoung low order units and a high order host computer system | |
CN113114706B (en) | Multichannel Ethernet message processing method based on power chip | |
CN109861998B (en) | Plug-in type dynamic analysis system and method based on Beidou short message protocol | |
CN114500690A (en) | Interface data processing method and device, electronic equipment and storage medium | |
CN111738763B (en) | Policy processing method, device, equipment and storage medium | |
CN108040069A (en) | A kind of quick method for opening network data APMB package | |
CN109617881A (en) | A kind of processing method and terminal of POS terminal message | |
CN114025032A (en) | Transmission protocol method, system, equipment and storage medium of EMS and BMS | |
EP2793201A1 (en) | Safety information transfer system, device and method based on extended parameter set | |
CN116346961B (en) | Financial message processing method and device, electronic equipment and storage medium | |
CN112965732A (en) | Resource package obtaining method, intelligent wearable device and storage medium | |
CN116996601A (en) | Message format conversion method and device, electronic equipment and storage medium | |
CN112800474B (en) | Data desensitization method and device, storage medium and electronic device | |
CN113177202A (en) | Data calling method and system, double-chip sales terminal and readable storage medium | |
CN114374745A (en) | Protocol format processing method and system | |
CN107835158B (en) | Method and device for transmitting interactive data under SNA network system | |
CN112565194A (en) | Transaction link tracking method, electronic device and storage medium | |
CN112181816A (en) | Interface testing method and device based on scene, computer equipment and medium | |
CN110162480B (en) | Automatic analysis method for structured diagnosis object | |
CN115357513B (en) | Program ambiguity test method, device, equipment and storage medium | |
CN112230983B (en) | Information processing method, electronic device, and 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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190412 |