CN101707552B - CID information reporting method, system and device thereof - Google Patents

CID information reporting method, system and device thereof Download PDF

Info

Publication number
CN101707552B
CN101707552B CN 200910211183 CN200910211183A CN101707552B CN 101707552 B CN101707552 B CN 101707552B CN 200910211183 CN200910211183 CN 200910211183 CN 200910211183 A CN200910211183 A CN 200910211183A CN 101707552 B CN101707552 B CN 101707552B
Authority
CN
China
Prior art keywords
message
pos machine
tcp
calling number
end processor
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
CN 200910211183
Other languages
Chinese (zh)
Other versions
CN101707552A (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.)
New H3C Technologies Co Ltd
Original Assignee
Hangzhou H3C Technologies 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 Hangzhou H3C Technologies Co Ltd filed Critical Hangzhou H3C Technologies Co Ltd
Priority to CN 200910211183 priority Critical patent/CN101707552B/en
Publication of CN101707552A publication Critical patent/CN101707552A/en
Application granted granted Critical
Publication of CN101707552B publication Critical patent/CN101707552B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a CID information reporting method which can be applied to a system comprising a POS machine, a router and a prepositive computer. The method comprises the following steps: the router receives a request for establishing physical connection sent by the POS machine; after extracting a calling number of the POS machine, the router can establish the physical connection with the POS machine; the router also can establish TCP short connection with the prepositive computer, lead the calling number to be encapsulated into TCP message, and send the TCP message into the prepositive computer; message-type field is carried by the TCP message and used for identifying whether the TCP message carries the calling number. In the method, the CID uploading function can be realized byan application layer above the TCP, and the influence for transparent transmission data can be minimized.

Description

A kind of cid information report method, system and device
Technical field
The present invention relates to communication technical field, relate in particular to a kind of cid information report method, system and device.
Background technology
For financial POS (Point of sale, electronics cash collecting system) access service, two types of data are generally arranged: one type is real-time transaction data, and characteristics are that data volume is little, real-time requires height, and reliability requirement is high, consumes the transaction of swiping the card such as POS; Another kind of is the transmission application of big data quantity; Such as POS machine program download, application such as blacklist is downloaded, transaction data is uploaded, this type of transaction is insensitive to dialing time of shaking hands, but data volume is relatively large; Need to adopt high-speed asynchronous Modem (modulator-demodulator) dialing (generally being adopted as V.90 agreement) mode; For this application, the router side can adopt AM (Analog Modem, analog modem) that dial-up access is provided.
As shown in Figure 1; Set up physical path between the AM card of dialing of POS machine and router; If POS uploads business; The POS machine sends message through PSTN (Public Switched Telephone Network, PSTN) network with the form of analog signal, arrives MSR (Multiple Services Router through PBX (Private BranchExchange private branch exchange); The open router of multi-service) AM interface; AM is a digital signal with analog signal conversion, and router is not changed message content and message is sent to front end processor through short connection of TCP (Transmission ControlProtocol, transmission control protocol) with front end processor (for example application server) foundation.If POS downloading service; Physical path is set up with identical before between POS machine and the AM; But data are to send to router from front end processor through short connection of TCP; Router goes the TCP encapsulation to message and does not change message content and be forwarded to the AM interface, and the AM interface converts digital signal to analog signal again, through PBX message is sent on the POS machine.The above-mentioned forwarding form of not changing message content is exactly a data penetration transmission.
If client's front end processor then need be collected CID (CALLER ID, the number of the caller POS machine) information of POS machine transaction in order different POS machines to be carried out the business statistics management.Yet, the whole penetration transmission schemes above using, router can not obtain the cid information of POS machine, and then this cid information of notice front end processor; Even on router, can extract cid information, and cid information is sent to front end processor, it is cid information or regular traffic message that front end processor still can't be distinguished this message.
Summary of the invention
The invention provides a kind of cid information report method, system and device, give front end processor so that router obtains and transmit CID.
The invention provides a kind of cid information report method, be applied to comprise in the system of POS machine, router and front end processor, said method comprising the steps of:
Said router receives the physical connection request of setting up that said POS machine sends;
After said router extracts the calling number of said POS machine, the physical connection between foundation and the said POS machine;
Said router set up with said front end processor between TCP lack and be connected; Said calling number is encapsulated as the TCP message; Send to said front end processor, said TCP message carries message type field, and said message type field is used to identify the TCP message and whether carries calling number.
Saidly send to said front end processor, also comprise afterwards:
Said front end processor detects the message type field in the said TCP message, carries calling number if said message type field identifies said TCP message, then extracts said calling number, and replys confirmation message to said router; Otherwise according to the normal data Business Processing.
Also comprise:
If front end processor receives that two or more type of messages that send from same POS machine are the message that carries calling number, then reply first message.
Saidly send to said front end processor, also comprise afterwards:
Said router carries out data forwarding with the mode of transparent transmission after receiving said front end processor response confirmation message between front end processor and POS machine.
Saidly send to said front end processor, also comprise afterwards:
Said router is not received confirmation message in a period of time, then break off with front end processor between TCP be connected, and hang up and the POS machine between physical connection.
The invention provides a kind of cid information reporting system, comprise in POS machine, router and the front end processor, it is characterized in that,
Said POS machine in the time of need uploading business after being used to swipe the card, sends the physical connection request of setting up to said router;
Said router, be used to receive said POS machine sends set up the physical connection request after, extract the calling number of said POS machine after, set up and said POS machine between physical connection; And the TCP between foundation and the said front end processor is short is connected, and said calling number is encapsulated as the TCP message, sends to said front end processor, and said TCP message carries message type field, and said message type field is used to identify the TCP message and whether carries calling number;
Said front end processor; Be used to receive the TCP message that said router sends, whether the type of message that detects said TCP message is for carrying calling number, when carrying calling number; Extract said calling number; And to said router answer confirmation message, when not carrying calling number, according to the normal data Business Processing.
The invention provides a kind of router, be applied to comprise that said router comprises in the system of POS machine, router and front end processor:
The AM interface module is used to receive the physical connection request of setting up that said POS machine sends;
Control module is connected with said AM interface module, after being used to extract the calling number of said POS machine, and the physical connection between foundation and the said POS machine; And the TCP between foundation and the said front end processor is short is connected, and said calling number is encapsulated as the TCP message, sends to said front end processor, and said TCP message carries message type field, and said message type field is used to identify the TCP message and whether carries calling number.
Said control module after also being used to receive said front end processor and responding confirmation message, is carried out data forwarding with the mode of transparent transmission between front end processor and POS machine.
Said control module also is used in a period of time, not receiving confirmation message, then break off with front end processor between TCP be connected, and hang up and the POS machine between physical connection.
The invention provides a kind of front end processor, be applied to comprise that said front end processor comprises in the system of POS machine, router and front end processor:
Receiver module is used to receive the TCP message that said router sends;
Detection module is connected with said receiver module, and whether the message type field that is used for detecting said TCP message identifies said TCP message is carried calling number;
Processing module is connected with said detection module, is used to detect said message type field and identifies said TCP message when carrying calling number, extracts said calling number, and replys confirmation message to said router; Otherwise according to the normal data Business Processing.
Said processing module receives that two or more type of messages that send from same POS machine are the TCP message that carries calling number if also be used for front end processor, then replys first TCP message.
Compared with prior art, the present invention has the following advantages:
Among the present invention, the application layer on the TCP between POS machine and the router realizes the CID upload function, has realized the effectiveness affects of transparent data minimum simultaneously.
Description of drawings
Fig. 1 is a POS business realizing system construction drawing in the prior art;
Fig. 2 is a kind of cid information report method flow chart among the present invention;
Fig. 3 is a kind of router topology figure among the present invention;
Fig. 4 is a kind of front end processor structure chart among the present invention.
Embodiment
The invention provides a kind of cid information report method, be applied to comprise that wherein, the POS machine comprises the MODEM module in the system of at least one POS machine, router and front end processor, router comprises AM interface module and control module; This method is as shown in Figure 2, may further comprise the steps:
Step 201, the user need upload business after the POS machine is swiped the card, and MODEM is through the AM interface of PSTN network dial to the MSR router in the POS machine, and physical connection is set up in request;
Step 202; After the MODEM of AM interface module detects and asks to set up the ring (promptly detecting the ringing-current from the POS machine) of physical connection; First off-hook not reports CALLERID information (comprising calling number) to the control module of router, and the control module of router receives to be extracted calling number behind the CALLER id information and note; Notify the MODEM off-hook of AM interface module then, physical connection is set up.
Step 203; Set up between router and the front end processor that TCP is short to be connected; Router is encapsulated into calling number in the message of specific format and with the TCP message earlier and sends to front end processor; Said TCP message carries message type field, and said message type field is used to identify the TCP message and whether carries calling number.
Wherein, message format is (not comprising the TCP encapsulation):
Message length (2 bytes) ‖ type of message (4 bytes, this type of message represent send be calling number) ‖ calling number length (1 byte) ‖ calling number ‖ CRC (4 bytes, verification with)
Wherein, message length is to begin to the length that finishes from type of message, and can limit calling number length and be no more than 40 bytes, and form is an ASCII character.
When type of message was set to 0x32 0x31 0x30 0x30 (being ASCII character " 2100 "), what expression was sent was calling number.
Whether area code information is arranged in the calling number, and relevant with the configuration of PBX, PBX gives any number router just to extract what number to AM.
If router extracts less than calling number, it is 0 that calling number length then is set.
Step 204, front end processor connect at TCP sets up good back reception message, and the message type field in the TCP message that receives is judged; If type of message is 0x32 0x31 0x30 0x30; Then identify said TCP message and carry calling number, resolve to the message that carries the main frame number, extract the main frame number; And to confirmation message of router response, this confirmation message form is following:
Message length (2 bytes) ‖ type of message (4 bytes, this type of message is represented the affirmation of calling number) ‖ calling number length (1 byte) ‖ calling number ‖ CRC (4 bytes, verification with)
What wherein, type of message was set to 0x32 0x31 0x31 0x30 (being ASCII character " 2110 ") expression transmission is that calling number is confirmed.
If type of message is not 0x32 0x31 0x30 0x30, then be illustrated as the normal data message, handle according to the normal data message.
If front end processor receives that two or more type of messages that send from same POS machine are the message of 0x32 0x31 0x30 0x30, then only need to reply first message, no longer doing of other replied.
After step 205, router receive front end processor response confirmation message, begin normal POS transaction, will between front end processor and POS machine, carry out data forwarding with the mode of transparent transmission, the trade time transaction of going forward side by side, TCP tears chain open after the transaction completion, and physical link is removed.If router is not received confirmation message in a period of time, then break off with front end processor between TCP be connected, hang up and the POS machine between physical connection.
The invention provides a kind of cid information reporting system, comprise in POS machine, router and the front end processor,
Said POS machine in the time of need uploading business after being used to swipe the card, sends the physical connection request of setting up to said router;
Said router, be used to receive said POS machine sends set up the physical connection request after, extract the calling number of said POS machine after, set up and said POS machine between physical connection; And the TCP between foundation and the said front end processor is short is connected, and said calling number is encapsulated as the TCP message, sends to said front end processor, and said TCP message also carries message type field, and said message type field is used to identify the TCP message and whether carries calling number;
Said front end processor; Be used to receive the TCP message that said router sends, whether the type of message that detects said TCP message is for carrying calling number, when carrying calling number; Extract said calling number; And to said router answer confirmation message, when not carrying calling number, according to the normal data Business Processing.
The invention provides a kind of router, be applied to comprise that said router is as shown in Figure 3, comprising in the system of POS machine, router and front end processor:
AM interface module 310 is used to receive the physical connection request of setting up that said POS machine sends;
Control module 320 is connected with AM interface module 310, after being used to extract the calling number of said POS machine, and the physical connection between foundation and the said POS machine; And the TCP between foundation and the said front end processor is short is connected, and said calling number is encapsulated as the TCP message, sends to said front end processor, and said TCP message carries message type field, and said message type field is used to identify the TCP message and whether carries calling number.
Control module 320 after also being used to receive said front end processor and responding confirmation message, is carried out data forwarding with the mode of transparent transmission between front end processor and POS machine.
Control module 320 also is used in a period of time, not receiving confirmation message, then break off with front end processor between TCP be connected, and hang up and the POS machine between physical connection.
The invention provides a kind of front end processor, be applied to comprise that said front end processor is as shown in Figure 4, comprising in the system of POS machine, router and front end processor:
Receiver module 410 is used to receive the TCP message that said router sends;
Detection module 420 is connected with receiver module 420, and whether the message type field that is used for detecting said TCP message identifies said TCP message is carried calling number;
Processing module 430 is connected with detection module 420, is used to detect said message type field and identifies said TCP message when carrying calling number, extracts said calling number, and replys confirmation message to said router; Otherwise according to the normal data Business Processing.
Processing module 430 receives that two or more type of messages that send from same POS machine are the TCP message that carries calling number if also be used for front end processor, then replys first TCP message.
Through the description of above execution mode, those skilled in the art can be well understood to the present invention and can realize through hardware, also can realize by the mode that software adds necessary general hardware platform.Based on such understanding; Technical scheme of the present invention can be come out with the embodied of software product, this software product can be stored in a non-volatile memory medium (can be CD-ROM, USB flash disk; Portable hard drive etc.) in; Comprise some instructions with so that computer equipment (can be personal computer, server, the perhaps network equipment etc.) carry out the described method of each embodiment of the present invention.
It will be appreciated by those skilled in the art that accompanying drawing is the sketch map of a preferred embodiment, module in the accompanying drawing or flow process might not be that embodiment of the present invention is necessary.
It will be appreciated by those skilled in the art that the module in the device among the embodiment can be distributed in the device of embodiment according to the embodiment description, also can carry out respective change and be arranged in the one or more devices that are different from present embodiment.The module of the foregoing description can be merged into a module, also can further split into a plurality of submodules.
The invention described above sequence number is not represented the quality of embodiment just to description.
More than disclosedly be merely several specific embodiment of the present invention, still, the present invention is not limited thereto, any those skilled in the art can think variation all should fall into protection scope of the present invention.

Claims (9)

1. the number cid information report method of a caller POS machine is applied to comprise in the system of POS machine, router and front end processor, it is characterized in that, said method comprising the steps of:
Said router receives the physical connection request of setting up that said POS machine sends;
After said router extracts the calling number of said POS machine, the physical connection between foundation and the said POS machine;
Said router set up with said front end processor between TCP lack and be connected; Said calling number is encapsulated as the TCP message; Send to said front end processor, said TCP message carries message type field, and said message type field is used to identify the TCP message and whether carries calling number.
2. the method for claim 1 is characterized in that, the said front end processor that sends to also comprises afterwards:
Said front end processor detects the message type field in the said TCP message, carries calling number if said message type field identifies said TCP message, then extracts said calling number, and replys confirmation message to said router; Otherwise according to the normal data Business Processing.
3. method as claimed in claim 2 is characterized in that, also comprises:
If front end processor receives that two or more type of messages that send from same POS machine are the message that carries calling number, then reply first message.
4. method as claimed in claim 2 is characterized in that, saidly sends to said front end processor, also comprises afterwards:
Said router carries out data forwarding with the mode of transparent transmission after receiving said front end processor response confirmation message between front end processor and POS machine.
5. method as claimed in claim 2 is characterized in that, saidly sends to said front end processor, also comprises afterwards:
Said router is not received confirmation message in a period of time, then break off with front end processor between TCP be connected, and hang up and the POS machine between physical connection.
6. the number cid information reporting system of a caller POS machine comprises POS machine, router and front end processor, it is characterized in that,
Said POS machine when being used for uploading business, sends the physical connection request of setting up to said router;
Said router is used to receive the physical connection request of setting up that said POS machine sends, and after extracting the calling number of said POS machine, the physical connection between foundation and the said POS machine; And the TCP between foundation and the said front end processor is short is connected; Said calling number is encapsulated as the TCP message, sends to said front end processor, said TCP message carries message type field; Said message type field is used to identify the TCP message and whether carries calling number, specifically comprises:
Analog modem AM interface module is used to receive the physical connection request of setting up that said POS machine sends;
Control module is connected with said AM interface module, after being used to extract the calling number of said POS machine, and the physical connection between foundation and the said POS machine; And the TCP between foundation and the said front end processor is short is connected, and said calling number is encapsulated as the TCP message, sends to said front end processor, and said TCP message carries message type field, and said message type field is used to identify the TCP message and whether carries calling number;
Said front end processor is used to receive the TCP message that said router sends, and detects message type field in the said TCP message and identifies said TCP message and whether carry calling number; When carrying calling number; Extract said calling number, and reply confirmation message, when not carrying calling number to said router; According to the normal data Business Processing, specifically comprise:
Receiver module is used to receive the TCP message that said router sends;
Detection module is connected with said receiver module, and whether the message type field that is used for detecting said TCP message identifies said TCP message is carried calling number;
Processing module is connected with said detection module, is used to detect said message type field and identifies said TCP message when carrying calling number, extracts said calling number, and replys confirmation message to said router; Otherwise according to the normal data Business Processing.
7. system as claimed in claim 6 is characterized in that, said control module after also being used to receive said front end processor and responding confirmation message, is carried out data forwarding with the mode of transparent transmission between front end processor and POS machine.
8. system as claimed in claim 6 is characterized in that, said control module also is used in a period of time, not receiving confirmation message, then break off with front end processor between TCP be connected, and hang up and the POS machine between physical connection.
9. system as claimed in claim 6 is characterized in that, said processing module receives that two or more type of messages that send from same POS machine are the TCP message that carries calling number if also be used for front end processor, then replys first TCP message.
CN 200910211183 2009-11-06 2009-11-06 CID information reporting method, system and device thereof Expired - Fee Related CN101707552B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200910211183 CN101707552B (en) 2009-11-06 2009-11-06 CID information reporting method, system and device thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200910211183 CN101707552B (en) 2009-11-06 2009-11-06 CID information reporting method, system and device thereof

Publications (2)

Publication Number Publication Date
CN101707552A CN101707552A (en) 2010-05-12
CN101707552B true CN101707552B (en) 2012-03-14

Family

ID=42377747

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200910211183 Expired - Fee Related CN101707552B (en) 2009-11-06 2009-11-06 CID information reporting method, system and device thereof

Country Status (1)

Country Link
CN (1) CN101707552B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103108409A (en) * 2012-11-12 2013-05-15 福建联迪商用设备有限公司 Point-of-sale (POS) system and communication method based on soft-assembly program (AP) Soft-Access Point
CN104539592B (en) * 2014-12-16 2018-08-28 北京中交兴路车联网科技有限公司 A kind of transmitting method and system of vehicle device supervision data
WO2017166097A1 (en) * 2016-03-30 2017-10-05 李昕光 Server front positioning method
CN106713036B (en) * 2016-12-27 2020-06-30 中国建设银行股份有限公司 Fault processing method and system for mobile terminal payment system

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1334541A (en) * 2001-09-03 2002-02-06 何长杰 Method and system for procesisng different bank cards
CN201289664Y (en) * 2008-11-19 2009-08-12 中国工商银行股份有限公司山东省分行 Device for settling shop telephone POS financing

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1334541A (en) * 2001-09-03 2002-02-06 何长杰 Method and system for procesisng different bank cards
CN201289664Y (en) * 2008-11-19 2009-08-12 中国工商银行股份有限公司山东省分行 Device for settling shop telephone POS financing

Also Published As

Publication number Publication date
CN101707552A (en) 2010-05-12

Similar Documents

Publication Publication Date Title
JP4213667B2 (en) How to archive multimedia messages
CN102075605B (en) Method, system and mobile terminal for displaying incoming call
CN101707552B (en) CID information reporting method, system and device thereof
CN102611805A (en) Communication information notifying method, information reporting method, server and communication terminals
CN102378151B (en) Information sharing platform and method thereof
CN1099199C (en) Service node for telephone network
CN100499722C (en) Device and method for realizing transmitting information to computer network real-time communication terminal by telephone
US20080242327A1 (en) System and method for sending sms and text messages
CN101330353B (en) Remote video wireless transmission system
CN1653752A (en) Method and device for modem relay termination
KR100417636B1 (en) Method and apparatus for changing a sound source of supplementary service using a ring back tone on calling
CN102422656A (en) Method for performing ussd services in a telecommunications network
KR100678086B1 (en) Apparatus and method for setting multimedia using mms message in mobile terminal
CN101378547B (en) Method and system for issuing wireless advertisement
CN100367737C (en) The implementation of the intellingent network in the next generation networks and its interconnection to the PSTN
CN106941576A (en) A kind of information input method and its call terminal, cloud server
CN1653795B (en) Device to terminate a modem relay channel directly to an ip network
CN101098501A (en) Information recognition system method
CN1549573A (en) Intelligent public telephone fast switch-in method
CN101621839B (en) Method for solving multi-code problem in softswitch cross-zone mode
CN108600971B (en) Device and method for monitoring multimedia message receiving result
US20120264461A1 (en) Method for gathering a response or responses to a question formulated by a call set-up on a telephone network
CN1653766A (en) Device for modem relay channel termination
KR100914100B1 (en) Sms telephone and method of sending and receiving sms message in sms telephone
CN1764291A (en) Method for collecting mobile communication terminal identity data by short message mode

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
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No.

Patentee after: Xinhua three Technology Co., Ltd.

Address before: 310053 Hangzhou hi tech Industrial Development Zone, Zhejiang province science and Technology Industrial Park, No. 310 and No. six road, HUAWEI, Hangzhou production base

Patentee before: Huasan Communication Technology Co., Ltd.

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

Granted publication date: 20120314

Termination date: 20191106