CN101296159B - Conversion method between telephone dialing POS terminal data and TCP/IP packet data - Google Patents

Conversion method between telephone dialing POS terminal data and TCP/IP packet data Download PDF

Info

Publication number
CN101296159B
CN101296159B CN2007100767297A CN200710076729A CN101296159B CN 101296159 B CN101296159 B CN 101296159B CN 2007100767297 A CN2007100767297 A CN 2007100767297A CN 200710076729 A CN200710076729 A CN 200710076729A CN 101296159 B CN101296159 B CN 101296159B
Authority
CN
China
Prior art keywords
data
pos terminal
pos
frame
tcp
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.)
Expired - Fee Related
Application number
CN2007100767297A
Other languages
Chinese (zh)
Other versions
CN101296159A (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.)
Shenzhen Hongdian Technologies Corp
Original Assignee
Shenzhen Hongdian Technologies Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Hongdian Technologies Corp filed Critical Shenzhen Hongdian Technologies Corp
Priority to CN2007100767297A priority Critical patent/CN101296159B/en
Publication of CN101296159A publication Critical patent/CN101296159A/en
Application granted granted Critical
Publication of CN101296159B publication Critical patent/CN101296159B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)
  • Communication Control (AREA)

Abstract

The invention relates to a converting method between the terminal data of dial-up POS and TCP/IP grouped data, which comprises the following steps of: setting a modem; establishing connection with a POS terminal by using a transport protocol; adopting a normal response mode of an SDLC protocol to transmit data between a modem terminal (master station) and the POS terminal (slave station); distinguishing and receiving data frames sent by the POS terminal, removing the encapsulation of a V.80 protocol and the SDLC protocol from the data frames, conversing the data frames into TCP data and sending transaction data at the POS terminal to a bank transaction server in the mode of TCP data stream; receiving the data sent back from the transaction server, distinguishing transaction data packets, carrying out reverse conversion to every transaction data packet and sending the converted data to the POS terminal; maintaining data links; and disconnecting linkage with the POS terminal.

Description

Conversion method between telephone dialing POS terminal data and the TCP/IP grouped data
Technical field
The present invention relates to the conversion method between a kind of telephone dialing POS terminal data and the TCP/IP grouped data, particularly relate to a kind of telephone dialing POS terminal data of the mode through packet switching and the conversion method between the TCP/IP grouped data.
Background technology
The telephone dialing POS terminating machine is built-in modulator-demodulator adopts the mode of dialing to conclude the business through the trading server of public telephone network (PSTN) and bank POS front end processor connecting path and bank, its employing be circuit exchange mode.And current bank service main frame supports that TCP/IP is that the mode of packet switching is carried out the POS terminal transaction, as using the wireless POS terminal.Adopting dialing is that Circuit-switched mode is carried out the mode costliness of the cost of POS terminal transaction than the employing packet switching, and transactions velocity is slow, and fail safe is lower; It is much lower than dialing that the mode that adopts TCP/IP to divide into groups is transmitted the cost of transaction data; And transactions velocity is fast; And can transmit data through the mode of private network; And avoided public network, improved the fail safe of transaction, so the POS terminating machine has from adopting circuit switching to the excessive trend of packet switching.
Summary of the invention
The present invention is in order to overcome the deficiency of above-mentioned prior art, and the present invention provides a kind of telephone dialing POS terminal data of lower-cost mode through packet switching and the conversion method between the TCP/IP grouped data.
The technical solution adopted for the present invention to solve the technical problems is: the conversion method between a kind of telephone dialing POS terminal data and the TCP/IP grouped data is provided, and it may further comprise the steps: modulator-demodulator is set; Use host-host protocol and POS terminal to connect; The Normal Response Mode of transmission The data SDLC agreement between modulator-demodulator end (main website) and POS terminal (slave station); Identification also receives the Frame that send on the POS terminal, and this Frame is removed the V.80 encapsulation of agreement and SDLC agreement, converts tcp data to, and the form that flows through tcp data sends to the bank transaction server with POS terminal transaction data; Receive the data that trading server returns, the identification transaction data package, and the data that each transaction data package will be carried out after reverse transformation also will be changed send to the POS terminal; Data link is kept; Disconnection links with the POS terminal; In the Frame step of on identification and reception POS terminal, sending, take out the 2nd byte of frame header, this byte is the control field of SDLC frame; Utilize this field that the type of SDLC frame is judged; If this frame is the I frame of SDLC be Frame then, the data after this byte are exactly POS message, it does not comprise V.80 End of Frame sign 19h, b1h.
The scheme that the present invention solves further technical problem is: the modulator-demodulator that V.80 being provided with of this modulator-demodulator use to be supported, the SDLC agreement is carried out synchronous transmission; Through serial ports and modem communication, V.80 modulator-demodulator is set to support simultaneously and the SDLC synchronous communications protocol: to close data compression, select operating mode be the normal speed buffer mode, forbid V8bis, enable V.80 Synchronous access mode, enable CRC check and relevant POS terminal option is set.
The scheme that the present invention solves further technical problem is: using host-host protocol and POS terminal to connect in the step; V.22FastConnect or V.29FastConnect or BELL212AFastConnect the host-host protocol that modulator-demodulator is set is for; Monitor serial ports, initiatively connect if find the POS terminal, just reply immediately; With its negotiation, consult successfully at wait modulator-demodulator and POS terminal.
The scheme that the present invention solves further technical problem is: keep in the step in data link, when receiving the RR control frame of SDLC, when not receiving the transaction return data of bank, only need respond identical RR control frame to the POS terminal and get final product.
The scheme that the present invention solves further technical problem is: break off and the linking in the step of POS terminal, if on serial ports, receive POS terminal break link signal then break off and being connected of POS terminal; If after the time-out time of appointment, do not receive the data at POS terminal then being connected of active disconnection and POS terminal; Detect local terminal release link under the carrier free situation.
The scheme that the present invention solves further technical problem is: removing the Frame that send on the POS terminal V.80, the encapsulation of agreement and SDLC agreement further may further comprise the steps: the control field of removing the SDLC agreement: 30h < the SDLC Frame control field of a byte>(totally 2 bytes); Remove the V.80 frame end mark of agreement: 19h, b1h (2 bytes); V.80 agreement escape data in the remaining POS message is reduced; Calculate the length of whole POS message and add to before the POS message, account for 2 bytes, accomplish conversion.
The scheme that the present invention solves further technical problem is: discerning the POS message that the bank transaction server returns; Further may further comprise the steps: a transaction data package comprises POS message-length and two parts of POS message of 2 bytes; The POS message-length of 2 bytes is placed on the stem of whole transaction data package; It has represented the length of POS message thereafter, is as the criterion with the 1st tcp data of receiving, the 1st and the 2nd byte is the POS message-length; And according to this length receive the back POS message, the data that exceed this length will be regarded as the data in the next transaction data package.
The scheme that the present invention solves further technical problem is: each TCP transaction data package that trading server is returned carry out deblocking and to separate the POS message of being honored as a queen carry out the SDLC protocol encapsulation and V.80 protocol encapsulation further may further comprise the steps: remove the POS message-length data in the transaction data package, promptly first 2 bytes; Needs in the POS message of remainder are carried out the data of V.80 escape and carry out escape, add V.80 Frame end mark: 19h, b1h in the ending of serial data; Calculate the value of the control field of the Frame that this time needs send according to the value of the SDLC Frame control field of the correct POS terminal data frame that receives of last time; And with 30h < value of the control field of a byte>totally 2 bytes constitute a complete frame before adding POS message to, accomplish reverse transformation.
Compared to prior art; Convert the packet of TCP after the Circuit-switched simulation new data demodulates of conversion method between telephone dialing POS terminal data of the present invention and the TCP/IP grouped data with the POS terminal transaction to; Send to the trading server of bank through the network of TCP/IP; And with the returned packet reverse transformation of bank server and be modulated into simulation and send to the POS terminal new number, thereby accomplish transaction, reduced cost.
Description of drawings
Fig. 1 is the schematic flow sheet of the conversion method between telephone dialing POS terminal data of the present invention and the TCP/IP grouped data.
Embodiment
Above content is to combine concrete preferred implementation to the further explain that the present invention did, and can not assert that practical implementation of the present invention is confined to these explanations.For the those of ordinary skill of technical field under the present invention, under the prerequisite that does not break away from the present invention's design, can also make some simple deduction or replace, all should be regarded as belonging to protection scope of the present invention.
Below in conjunction with accompanying drawing and instance the conversion method between telephone dialing POS terminal data of the present invention and the TCP/IP grouped data is described further.
Please with reference to Fig. 1, the conversion method between telephone dialing POS terminal data of the present invention and the TCP/IP grouped data may further comprise the steps: modulator-demodulator (S101) is set; Use host-host protocol and POS terminal connect (S102); The Normal Response Mode (S103) of transmission The data SDLC agreement between modulator-demodulator end (main website) and POS terminal (slave station); Identification also receives the Frame that send on the POS terminal, and this Frame is removed the V.80 encapsulation of agreement and SDLC agreement, converts tcp data to, and the form that flows through tcp data sends to bank transaction server (S104) with POS terminal transaction data; Receive the data that trading server returns, the identification transaction data package, and the data that each transaction data package will be carried out after reverse transformation also will be changed send to POS terminal (S105); Data link is kept (S106); Break off link (S107) with the POS terminal.
Wherein:
S101: setup of modulator-demodulator: the modulator-demodulator that V.80 use is supported, the SDLC agreement is carried out synchronous transmission.Through serial ports and modem communication, V.80 modulator-demodulator is set to support simultaneously and the SDLC synchronous communications protocol: to close data compression, select operating mode be the normal speed buffer mode, forbid V8bis, enable V.80 Synchronous access mode, enable CRC check and relevant POS terminal option is set.
V.22FastConnect or V.29FastConnect or BELL212AFastConnect etc. S102: use specific host-host protocol and POS terminal to connect: the host-host protocol that modulator-demodulator is set is for.Monitor serial ports, initiatively connect if find the POS terminal, just reply immediately, with its negotiation, consult successfully at wait modulator-demodulator and POS terminal.
S103: the Normal Response Mode of transmission The data SDLC agreement between main website (modulator-demodulator end) and the slave station (POS terminal), main website (modulator-demodulator end) notifies slave station (POS terminal) after being ready to accept data: main website has accepted ready.Concrete operations are as being: write h30, h93, h19, hB1 string with the hexadecimal integer to serial ports; Notice slave station (POS terminal) uses Normal Response Mode; If successfully will receive the response of the unnumbered acknowledge frame of slave station (POS terminal), can receive following hexadecimal number h30, h73, h19, hb1, write hexadecimal string h30, h19, ha0, h19, hb1 to serial ports afterwards; It has represented a RR control frame among the SDLC, and the expression main website receives ready.
S104: the Frame to send at the POS terminal is discerned and changed: identification also receives the Frame that send on the POS terminal; This Frame is removed the V.80 encapsulation of agreement and SDLC agreement; Convert tcp data to, the form through tcp data stream sends to the bank transaction server with POS terminal transaction data, concrete realize as: take out V.80 the 2nd byte of protocol frame head; This byte is the control field of SDLC frame; Utilize this field that the type of SDLC frame is judged, if this frame is the I frame of SDLC be Frame then, the data after this byte are exactly POS message (not comprising V.80 End of Frame sign 19h, b1h); Remove the control field of SDLC agreement: 30h < the SDLC Frame control field of a byte>totally 2 bytes; Remove the V.80 frame end mark of agreement (19h, b1h); V.80 agreement escape data in the remaining POS message is reduced; Calculate the length of whole POS message and add to before the POS message, account for 2 bytes, accomplish conversion, this serial data as tcp data, is sent to the trading server of bank's side through Transmission Control Protocol.
S105: the return data to trading server carries out reverse transformation: when receiving the tcp data that the trading server of bank returns; Be as the criterion with the 1st tcp data of receiving; The the 1st and the 2nd byte is the POS message-length; And according to this length receive the back POS message, the data that exceed this length will be regarded as the data in the next transaction data package.Remove the POS message-length data in the transaction data package, promptly first 2 bytes; Needs in the POS message of remainder are carried out the data of V.80 escape and carry out escape, add V.80 Frame end mark: 19h, b1h (2 bytes) in the ending of POS message; Calculate the value of the control field of the Frame that this time needs send according to the value of the SDLC Frame control field of the correct POS terminal data frame that receives of last time; This value accounts for a byte; And 30h < value of the control field of a byte that calculates>amounted to two bytes; Constitute a complete frame before adding POS message to, accomplish reverse transformation.This frame is write modulator-demodulator through serial ports, by sending to the POS terminal after the modem processes.
If S106 keeps data link with the POS terminal when receiving the RR control frame of the SDLC that sends at the POS terminal; When the transaction data that the trading server of not receiving bank returns; Only need respond identical RR control frame and get final product, can play the effect of keeping the link between local terminal modulator-demodulator and the POS terminal like this to the POS terminal.
S107: break off and being connected of POS terminal: if on serial ports, receive POS terminal break link signal then break off and being connected of POS terminal; If after the time-out time of appointment, do not receive the data at POS terminal then being connected of active disconnection and POS terminal; Detect local terminal release link under the carrier free situation.
Convert the packet of TCP after the Circuit-switched simulation new data demodulates of conversion method between telephone dialing POS terminal data of the present invention and the TCP/IP grouped data with the POS terminal transaction to; Send to the trading server of bank through the network of TCP/IP; And with the returned packet reverse transformation of bank server and be modulated into simulation and send to the POS terminal new number; Thereby accomplish transaction, the cost that has reduced every transaction has reduced exchange hour simultaneously.

Claims (5)

1. the conversion method between telephone dialing POS terminal data and the TCP/IP grouped data, it may further comprise the steps:
Modulator-demodulator is set;
Use host-host protocol and POS terminal to connect;
As the modulator-demodulator end of main website with as the Normal Response Mode that transmits The data SDLC agreement between the POS terminal of slave station;
Identification also receives the Frame that send on the POS terminal; This Frame is removed the V.80 encapsulation of agreement and SDLC agreement, convert tcp data to, the form through tcp data stream sends to the bank transaction server with POS terminal transaction data; This step is concrete to be realized as follows: take out V.80 the 2nd byte of protocol frame head; This byte is the control field of SDLC frame, utilizes this field that the type of SDLC frame is judged, if this frame is the I frame of SDLC be Frame then; Data after this byte are exactly POS message, and it does not comprise V.80 End of Frame sign 19h, b1h; Remove the SDLC Frame control field of the control field of SDLC agreement: 30h, a byte, totally 2 bytes; Remove the V.80 frame end mark of agreement: 19h, b1h, totally 2 bytes; V.80 agreement escape data in the remaining POS message is reduced; Calculate the length of whole POS message and add to before the POS message, account for 2 bytes, accomplish conversion;
Receive the tcp data that trading server returns; The identification transaction data package; And each transaction data package carried out deblocking and carry out SDLC protocol encapsulation and protocol encapsulation V.80 to separating the POS message of being honored as a queen, the data after will changing afterwards send to the POS terminal, and this step is concrete to be realized as follows: a transaction data package comprises POS message-length and two parts of POS message of 2 bytes; The POS message-length of 2 bytes is placed on the stem of whole transaction data package; It has represented the length of POS message thereafter, is as the criterion with the 1st tcp data of receiving, the 1st and the 2nd byte is the POS message-length; And according to this length receive the back POS message, the data that exceed this length will be regarded as the data in the next transaction data package; Remove the POS message-length data in the transaction data package, promptly first 2 bytes; Needs in the POS message of remainder are carried out the data of V.80 escape and carry out escape, add V.80 Frame end mark: 19h, b1h, totally 2 bytes in the ending of POS message; Calculate the value of the control field of the Frame that this time needs send according to the value of the SDLC Frame control field of the correct POS terminal data frame that receives of last time; This value accounts for a byte; And with the value of the control field of 30h, a byte calculating; Amount to two bytes, add POS message to and constitute a complete frame before, accomplish reverse transformation;
Data link is kept;
Disconnection links with the POS terminal.
2. the conversion method between telephone dialing POS terminal data according to claim 1 and the TCP/IP grouped data; It is characterized in that: the modulator-demodulator that V.80 being provided with of this modulator-demodulator use to be supported, the SDLC agreement is carried out synchronous transmission; Through serial ports and modem communication, V.80 modulator-demodulator is set to support simultaneously and the SDLC synchronous communications protocol: to close data compression, select operating mode be the normal speed buffer mode, forbid V.8bis, enable V.80 Synchronous access mode, enable CRC check, and the option relevant with the telephone dialing POS terminal is set.
3. the conversion method between telephone dialing POS terminal data according to claim 1 and the TCP/IP grouped data; V.22FastConnect or V.29FastConnect or BELL212AFastConnect it is characterized in that: using host-host protocol and POS terminal to connect in the step, the host-host protocol that modulator-demodulator is set is for, the monitoring serial ports; If finding the POS terminal initiatively connects; Just reply immediately, with its negotiation, consult successfully at wait modulator-demodulator and POS terminal.
4. the conversion method between telephone dialing POS terminal data according to claim 1 and the TCP/IP grouped data; It is characterized in that: keep in the step in data link; When receiving the RR control frame of SDLC; When not receiving the transaction return data of bank, only need respond identical RR control frame and get final product to the POS terminal.
5. the conversion method between telephone dialing POS terminal data according to claim 1 and the TCP/IP grouped data; It is characterized in that: break off and the linking in the step of POS terminal, if on serial ports, receive POS terminal break link signal then break off and being connected of POS terminal; If after the time-out time of appointment, do not receive the data at POS terminal then being connected of active disconnection and POS terminal; Detect local terminal release link under the carrier free situation.
CN2007100767297A 2007-08-28 2007-08-28 Conversion method between telephone dialing POS terminal data and TCP/IP packet data Expired - Fee Related CN101296159B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2007100767297A CN101296159B (en) 2007-08-28 2007-08-28 Conversion method between telephone dialing POS terminal data and TCP/IP packet data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2007100767297A CN101296159B (en) 2007-08-28 2007-08-28 Conversion method between telephone dialing POS terminal data and TCP/IP packet data

Publications (2)

Publication Number Publication Date
CN101296159A CN101296159A (en) 2008-10-29
CN101296159B true CN101296159B (en) 2012-05-23

Family

ID=40066184

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2007100767297A Expired - Fee Related CN101296159B (en) 2007-08-28 2007-08-28 Conversion method between telephone dialing POS terminal data and TCP/IP packet data

Country Status (1)

Country Link
CN (1) CN101296159B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104378333B (en) * 2013-08-15 2018-09-21 华为终端有限公司 Modem dialup method and broadband device
US10380579B1 (en) 2016-12-22 2019-08-13 Square, Inc. Integration of transaction status indications

Also Published As

Publication number Publication date
CN101296159A (en) 2008-10-29

Similar Documents

Publication Publication Date Title
CN101442481A (en) Dual proxy approach to TCP performance improvements over a wireless interface
CN101156396B (en) Data frame transmission processing method and system
EP1495648B1 (en) Fixed cellular terminal with packet data transmission over analog interface
WO2010045820A1 (en) Transmission device and transmission method for remote radio data
CN102325084B (en) Method and system for realizing data exchange in IEC104 (international electrotechnical commission 104) communication protocol forwarding
CN101778244B (en) Wireless video conference system and method for adding common voice user
CN103795518B (en) A kind of equipment room port mode synchronous method, equipment and system
EP2525531B1 (en) Method and network access device for enabling data forwarding between different physical media
CN104618007B (en) A kind of synchronous satellite Transmission Control Protocol segmentation connection optimization method
CN103516694A (en) Communication method, device and system
CN101051957B (en) Dynamically regulating method and device for link state and bundled link state
CN101296159B (en) Conversion method between telephone dialing POS terminal data and TCP/IP packet data
EP2760173B1 (en) Data transmission method, device and system
CN102255790A (en) Method and system for informing congestion control information
CN100583727C (en) Multi-network interface reverse multiplexing method
CN101789843A (en) Method for implementing multi-line E1 binding and network bridge
CN103684637A (en) Channel testing device and method
US6934551B1 (en) Method for wireless data transmission for adaptive multiple protocols
EP1303976A1 (en) Distributed modem
CN102811149B (en) A kind of for the double card headend equipment in video system and control method, system
CN102420745A (en) 3G (the third Generation) communication method and system
CN100571224C (en) The interconnection device of DWDM Ethernet official telephone and circuit switching official telephone
US7260107B1 (en) PPP data conversion apparatus and method
Cisco X.25
CN103731322B (en) Method and device for detecting self-adapting link among devices with different capabilities

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20120523

Termination date: 20160828

CF01 Termination of patent right due to non-payment of annual fee