CN114025332A - Payment service communication method and device, computer equipment and storage medium - Google Patents

Payment service communication method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN114025332A
CN114025332A CN202111192883.7A CN202111192883A CN114025332A CN 114025332 A CN114025332 A CN 114025332A CN 202111192883 A CN202111192883 A CN 202111192883A CN 114025332 A CN114025332 A CN 114025332A
Authority
CN
China
Prior art keywords
information
payment service
channel list
list information
channel
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.)
Granted
Application number
CN202111192883.7A
Other languages
Chinese (zh)
Other versions
CN114025332B (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 Xinguodu Tech Co Ltd
Original Assignee
Shenzhen Xinguodu Tech 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 Shenzhen Xinguodu Tech Co Ltd filed Critical Shenzhen Xinguodu Tech Co Ltd
Priority to CN202111192883.7A priority Critical patent/CN114025332B/en
Publication of CN114025332A publication Critical patent/CN114025332A/en
Application granted granted Critical
Publication of CN114025332B publication Critical patent/CN114025332B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/50Service provisioning or reconfiguring
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/08Payment architectures
    • G06Q20/20Point-of-sale [POS] network systems
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/08Testing, supervising or monitoring using real traffic

Landscapes

  • Business, Economics & Management (AREA)
  • Engineering & Computer Science (AREA)
  • Accounting & Taxation (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Finance (AREA)
  • Strategic Management (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The application discloses a payment service communication method, a payment service communication device, computer equipment and a storage medium. The payment service communication method provided by the application comprises the following steps: receiving initial channel information of a server side; obtaining target channel list information according to the initial channel information; sending payment service request information to the server side according to the target channel list information; and receiving payment service response information sent by the server according to the payment service request information. The payment service communication method improves the reliability of payment service communication.

Description

Payment service communication method and device, computer equipment and storage medium
Technical Field
The present application relates to, but not limited to, the field of computers, and in particular, to a payment service communication method, apparatus, computer device, and storage medium.
Background
The POS system is a system that directly reads commodity sales information when selling commodities through an automatic reading device, such as a cash register, and transmits the information to relevant departments through a communication network and a computer system for analysis and processing to improve the operating efficiency.
When the POS terminal uses the GPRS network to communicate for transaction, the POS terminal sends transaction data to a background after a user swipes a card, if a base station cell network is unavailable or the base station cell only has a language service but no data service, the problems of low transaction speed, long transaction time consumption, high transaction failure rate and the like are easily caused, and the reliability of communication is reduced.
Disclosure of Invention
The present application is directed to solving at least one of the problems in the prior art. Therefore, the application provides a payment service communication method, a payment service communication device, a computer device and a storage medium, which can improve the reliability of payment service communication.
An embodiment of a first aspect of the present application provides a payment service communication method, which is used for a client, and includes: receiving initial channel information of a server side; obtaining target channel list information according to the initial channel information; sending payment service request information to the server side according to the target channel list information; and receiving payment service response information sent by the server according to the payment service request information.
The payment service communication method provided by the embodiment of the application at least has the following technical effects: according to the payment service communication method, the initial channel information of the server side is received, the target channel list information is obtained according to the initial channel information, the payment service request information is sent to the server side according to the target channel list information, and the payment service response information fed back by the server side is received, so that the communication of the payment service is realized, and the reliability of the communication of the payment service is improved.
According to some embodiments of the present application, the obtaining of the target channel list information according to the initial channel information includes: obtaining first channel list information according to the channel number and the signal receiving power information; and obtaining the target channel list information according to the signal strength indication information and the first channel list information.
According to some embodiments of the present application, the channel number includes a base station number and a cell number, and the obtaining first channel list information according to the channel number and the signal reception power information includes: obtaining initial channel list information according to the base station number and the cell number; and screening the initial channel list information according to the signal receiving power information and a preset power threshold value to obtain the first channel list information.
According to some embodiments of the present application, the obtaining the target channel list information according to the signal strength indication information and the first channel list information includes: sorting in a descending order according to the signal strength indicated value to obtain a sorting result; establishing socket connection between the client and the server according to the sequencing result to obtain a connection result; and screening the first channel list information according to the connection result to obtain the target channel list information.
According to some embodiments of the present application, the filtering the first channel list information according to the connection result to obtain the target channel list information includes: and if the connection result is successful, storing the first channel list information corresponding to the signal strength indicated value into target channel list information.
An embodiment of a second aspect of the present application provides a payment service communication method, which is used at a server side, and includes: sending initial channel information to a client so that the client can obtain target channel list information according to the initial channel information; receiving payment service request information sent by the client according to the target channel list information; and sending payment service response information to the client according to the payment service request information.
The payment service communication method provided by the embodiment of the application at least has the following technical effects: according to the payment service communication method, the initial channel information is sent to the client, so that the client can obtain the target channel list information according to the initial channel information, receive the payment service request information sent by the client and send the payment service response information to the client according to the payment service request information, communication of the payment service is achieved, and reliability of communication of the payment service is improved.
An embodiment of a third aspect of the present application provides a payment service communication apparatus, which is used for a client, and includes: the channel information receiving module is used for receiving initial channel information of the server side; the list information processing module is used for obtaining target channel list information according to the initial channel information; the payment service request information sending module is used for sending payment service request information to the server side according to the target channel list information; and the response information receiving module is used for receiving payment service response information sent by the server side according to the payment service request information.
An embodiment of a fourth aspect of the present application provides a payment service communication apparatus, configured to a server, including: the channel information sending module is used for sending initial channel information to a client so that the client can obtain target channel list information according to the initial channel information; the request information receiving module is used for receiving payment service request information sent by the client according to the target channel list information; and the response information sending module is used for sending payment service response information to the client according to the payment service request information.
An embodiment of a fifth aspect of the present application provides a computer device, including: a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor when executing the program implementing: the payment service communication method according to the embodiment of the first aspect of the present application; or, the payment service communication method according to the embodiment of the second aspect of the present application.
A storage medium according to an embodiment of a sixth aspect of the present application stores computer-executable instructions for: executing the payment service communication method described in the embodiment of the first aspect; or, the payment service communication method described in the second aspect embodiment is executed.
Additional aspects and advantages of the application will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the application.
Drawings
The present application is further described with reference to the following figures and examples, in which:
FIG. 1 is a schematic diagram of an application scenario of an embodiment of the present disclosure;
FIG. 2 is a flow chart of a payment service communication method for a client provided by an embodiment of the present application;
FIG. 3 is a flowchart of step S220 in FIG. 1;
FIG. 4 is a flowchart of one embodiment of step S310 in FIG. 3;
FIG. 5 is a flowchart of step S320 in FIG. 3 in another embodiment;
fig. 6 is a flowchart of a payment service communication method for a server according to an embodiment of the present application.
Reference numerals: client 110, server 120, merchant computer 111, payment terminal 112, first communication module 113, second communication module 114, wireless base station 121, agent server 122, payment platform server 123.
Detailed Description
Reference will now be made in detail to embodiments of the present application, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are exemplary only for the purpose of explaining the present application and are not to be construed as limiting the present application.
In the description of the present application, it is to be understood that the positional descriptions, such as the directions of up, down, front, rear, left, right, etc., referred to herein are based on the directions or positional relationships shown in the drawings, and are only for convenience of description and simplification of description, and do not indicate or imply that the referred device or element must have a specific direction, be constructed and operated in a specific direction, and thus, should not be construed as limiting the present application.
In the description of the present application, the meaning of a plurality is one or more, the meaning of a plurality is two or more, and the above, below, exceeding, etc. are understood as excluding the present number, and the above, below, within, etc. are understood as including the present number. If the first and second are described for the purpose of distinguishing technical features, they are not to be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated or implicitly indicating the precedence of the technical features indicated.
In the description of the present application, unless otherwise expressly limited, terms such as set, mounted, connected and the like should be construed broadly, and those skilled in the art can reasonably determine the specific meaning of the terms in the present application by combining the detailed contents of the technical solutions.
In the description of the present application, reference to the description of the terms "one embodiment," "some embodiments," "an illustrative embodiment," "an example," "a specific example," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the present application. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
In the description of the present application, unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. The terminology used herein is for the purpose of describing embodiments of the invention only and is not intended to be limiting of the invention.
First, several terms referred to in the present application are resolved:
a Point of sales (POS) system is a system that directly reads sales information of a commodity when the commodity is sold through an automatic reading device, such as a cash register, and transmits the information to a related department through a communication network and a computer system for analysis and processing to improve the operating efficiency. The POS terminal is a terminal reader provided with a bar code or OCR (optical character recognition) code technology, has a cash or barter deposit function, is mainly used for providing data service and management functions for commodity and media transactions and performing non-cash settlement, is arranged in a special merchant and an acceptance network of a credit card and is connected with a computer to form a network, so that automatic electronic fund transfer can be realized, and the POS terminal has the functions of supporting consumption, pre-authorization, balance inquiry, transfer and the like, and is safe, quick and reliable to use.
The Global System for Mobile Communications (GSM), a digital Mobile communication standard established by ETSI, is a standard for Mobile Communications in the european telecommunication standards organization, the air interface of GSM, which uses time division multiple access technology, has been adopted by over 100 countries worldwide since the mid-90 s, the ubiquity of GSM standards has made international roaming of users common after signing roaming agreements between Mobile phone operators, the biggest difference of GSM is that its signaling and voice channels are digital, and GSM is considered to be a second generation (2G) Mobile phone System.
General Packet Radio Service (GPRS) is a mobile data Service that GSM mobile phone users can use, GPRS is a continuation of GSM and is different from circuit-switched transmission mode, GPRS is transmitted in a Packet mode, the cost borne by users is calculated by the data flow transmitted by users, rather than using their entire channels, the transmission rate of GPRS can be increased to 56kb/s or even 114kb/s, the maximum advantage of GPRS is that the data transmission speed is not comparable to that of WAP, and besides the speed advantage, GPRS can also ensure that users can keep in contact with the network at any time. GPRS provides end-to-end, wide area wireless IP connectivity, and is widely used with various mobile communication terminals. GPRS is a new data bearing service developed on the existing GSM system, supports TCP/IP protocol, and can be directly communicated with packet data network. The data of the GPRS terminal is transmitted to the mobile company server through the base station, the data returned by the server is forwarded to the server with the public network IP through the Internet, the data returned by the server is sent to the mobile company server through the Internet, and the mobile company server forwards the data to the GPRS terminal. Therefore, according to the principle of GPRS, it is ensured that all base station cells to be connected can be connected to a server with public network IP, and the method is an important way for improving the success rate of the connection transaction background.
A base station, i.e. a public mobile communication base station, is an interface device for a mobile device to access the internet, and is a form of a radio station, which is a radio transceiver station for information transmission between a mobile telephone terminal and a base station through a mobile communication switching center in a certain radio coverage area. The construction of mobile communication base stations is an important part of the investment of mobile communication operators, and is generally carried out around the factors of coverage, call quality, investment benefit, difficult construction, convenient maintenance and the like.
A mobile communication Cell (Cell), also called a Cell, refers to an area covered by a base station or a sector antenna of a part of a base station in a cellular mobile communication system, in which area a mobile station can reliably communicate with the base station via a radio channel. Early mobile communication was a large area system, in which a base station was built in an area and the signal coverage of the base station was increased as much as possible, which has advantages of easy implementation and simple equipment, but has limited system capacity and difficulty in expanding the capacity due to limitations of power and spectrum resources. The cell is made to divide an area into many small areas, each cell is covered by a base station, adjacent cells use different frequencies to avoid interference, and cells far away from each other can use the same frequency due to limited power of the base station and have low interference degree, which is not enough to generate fatal influence on communication quality of two cell users, thus realizing frequency spectrum reuse and greatly improving the utilization rate of frequency spectrum resources.
An AT (attention) instruction is an instruction applied to connection and communication between a Terminal device and a PC application, and an instruction sent by a Terminal device (TE) or a Data Terminal Device (DTE) to a Terminal Adapter (TA) or a Data Circuit Terminal Device (DCE) may receive a length of 1056 characters AT most, in addition to two characters of an AT, for sending an AT instruction. The functions of a Mobile Station (MS) are controlled by the TA, TE sending an AT command to interact with GSM network services. The user can control the aspects of calling, short message, telephone book, data service, fax and the like through AT instructions, and each AT command line only comprises one AT instruction. Returning is needed after the AT instruction is sent, the AT returning state comprises OK, ERROR and ERROR reason character strings related to the command under three conditions, and a character is arranged before and after the returning state, if OK indicates that the AT command is successfully executed; ERROR indicates AT command execution failure; NO DIAL TONE only appears in the ATD command return state, indicating NO DIAL TONE.
Location Area Code (LAC) for determining the Location of the mobile station, the coverage Area of each GSM public land mobile network is divided into many Location areas, the Location Area Code is used to identify different Location areas, the Location Area Code is composed of two bytes, 16-system coding is adopted, the available range is 0001-FFFEH, the Code group 0000H and FFFFH are not available.
Received Signal Strength Indication (RSSI), an optional part of the radio transmission layer, is used to determine the connection quality and whether to increase the broadcast transmission Strength. The distance between the signal point and the receiving point is measured according to the strength of the received signal, and then positioning calculation is carried out according to corresponding data. The positioning engine of the ZigBee network CC2431 chip for wireless sensing adopts the RSSI technology and algorithm, and the receiver measures the average signal strength indication of the receiver input obtained by the circuit.
Reference Signal Receiving Power (RSRP), which is the average of received Signal Power over all REs (resource elements) carrying Reference signals within a certain symbol, is one of the key parameters that can represent radio Signal strength and physical layer measurement requirements in the LTE wireless communication field. RSRP definition: a linear average of the received power (in watts) over the Resource Elements (REs) carrying the reference signal over the considered measurement frequency bandwidth.
A thread is a single sequential control flow in a program. A relatively independent and schedulable execution unit in a process is a scheduling unit of a program in operation, which is a basic unit for independently scheduling and dispatching a CPU by a system. Running multiple threads simultaneously in a single program accomplishes different tasks, referred to as multithreading.
The POS terminal is used in various industries and under various scenes, the adaptability of the communication capacity of designed hardware and software is insufficient, the use area of the POS terminal is mostly crowd gathering area, the network reliability is complex and changeable, for example, when the POS terminal uses GPRS network communication transaction, the POS terminal sends transaction data to a background after a user swipes a card, if a base station cell network is unavailable or the base station cell only has language service but no data service, the problems of low transaction speed, long transaction time consumption, high transaction failure rate and the like are easily caused, and the reliability of communication is reduced.
In view of this, the present application provides a payment service communication method, device, computer device and storage medium, which solve the problems of slow network transaction communication speed and low reliability of financial POS terminal devices, greatly improve the transaction speed and reliability of payment service communication, reduce the number of corrections caused subsequently, effectively improve user experience, and provide better service effect and service revenue for dealers.
Fig. 1 is a schematic view of an application scenario of an embodiment of the present disclosure, where the payment service communication method of the embodiment of the present disclosure is applied to a network system, and the network system includes: the system comprises a client 110 and a server 120, wherein the client 110 comprises a merchant computer 111, a payment terminal 112, a first communication module 113 and a second communication module 114; the server 120 includes a wireless base station 121, an agent server 122, and a payment platform server 123. The merchant computer 111 is connected with the payment terminal 112, the payment terminal 112 is connected with the first communication module 113 and the second communication module 114 respectively, the first communication module 113 and the second communication module 114 are connected with the wireless base station 121 respectively, the wireless base station 121 is connected with the agent server 122, and the agent server 122 is connected with the payment platform server 123.
In some embodiments, the payment terminal 112 includes, but is not limited to, a POS terminal.
In some embodiments, the first communication module 113 and the second communication module 114 are two communication modules externally connected to the payment terminal 11.
In some embodiments, the server address of the payment platform server 123 is different according to different agents, an application downloaded corresponding to an agent is connected to a backend server, a TCP connection is established only once for one service, and is used for receiving and transmitting specific service data, and one service is a communication event.
The embodiment of the application provides a payment service communication method, which is used for a client and comprises the following steps: receiving initial channel information of a server side; obtaining target channel list information according to the initial channel information; sending payment service request information to a server side according to the target channel list information; and receiving payment service response information sent by the server according to the payment service request information.
As shown in fig. 2, fig. 2 is a flowchart of a payment service communication method provided in some embodiments, where the payment service communication method includes, but is not limited to, steps S210 to S240, and specifically includes:
s210, receiving initial channel information of a server;
s220, obtaining target channel list information according to the initial channel information;
s230, sending payment service request information to a server side according to the target channel list information;
and S240, receiving payment service response information sent by the server according to the payment service request information.
The payment service communication method illustrated in fig. 2 is applied to a client.
In a specific embodiment, steps S210 to S220 are performed by a first communication module of the client, and steps S230 to S240 are performed by a second communication module of the client, where the first communication module is configured to obtain a target channel list, and the second communication module uses the obtained target channel list to perform subsequent payment service requests and responses, thereby completing the payment service. The second communication module can perform data interaction of related payment services with the payment platform server through the wireless base station and the operator server, and the first communication module can only be connected to the operator server and used for judging whether the cell is available.
It should be noted that, in the process of a single communication event, the first communication module and the second communication module have a sequential execution order, that is, the first communication module generates target channel list information, and then the second communication module performs service interaction; in the process of continuously processing a plurality of communication events to meet the requirements of serial payment services, the first communication module and the second communication module are alternately and dynamically executed, and the first communication module updates the currently monitored network condition in real time so as to facilitate the timely use of the second communication module.
In a specific embodiment, in the 2G network, the first communication module and the second communication module include, but are not limited to, a GPRS communication module.
In step S210, the initial channel information includes a channel number and channel quality information, the channel number is used for characterizing a communication link of the wireless base station when the wireless base station is connected to the client, and the channel quality information is used for evaluating a signal condition of the communication link of the wireless base station when the wireless base station is connected to the client. The channel number includes a base station number and a cell number, the base station number is a location area code LAC for determining the location of the mobile station, and the cell number is a CID for distinguishing the cell. The channel quality information includes signal received power information and signal strength indication information. In the LTE network, the signal received power information includes, but is not limited to, RSRP, and the signal strength indication information includes, but is not limited to, RSSI.
In step S220, in the LTE network, the first communication module obtains first channel list information according to the location area code LAC, the cell number CID, and the RSRP, and then obtains target channel list information according to the RSSI and the first channel list information, that is, performs layer-by-layer screening according to the signal indicators to obtain the target channel list information, thereby improving availability of the target channel list information, preparing for subsequent work of the second communication module, and improving reliability of payment service communication.
In step S230, when the payment terminal dials through the AT command or PPP, the second communication module is enabled to perform socket connection with the payment platform server, and send the payment service request information to the server, thereby implementing service data interaction.
In steps S230 to S240, the second communication module processes the arriving communication event according to the stored available location area code LAC and cell number CID in the target channel list information, where the communication event includes a payment service event, and the service processing process specifically includes: the client sends payment service request information to the server, and the server sends payment service response information to the client after processing, so that the whole service processing process is realized.
According to the payment service communication method, the initial channel information of the server side is received, the target channel list information is obtained according to the initial channel information, the payment service request information is sent to the server side according to the target channel list information, and the payment service response information fed back by the server side is received, so that the communication of the payment service is realized, and the reliability of the communication of the payment service is improved.
According to some embodiments of the present application, the initial channel information includes a channel number and channel quality information, the channel quality information includes signal receiving power information and signal strength indication information, and obtaining target channel list information according to the initial channel information includes: obtaining first channel list information according to the channel number and the signal receiving power information; and obtaining target channel list information according to the signal strength indication information and the first channel list information.
Fig. 3 is a flow chart of step S220 in some embodiments, and step S220 illustrated in fig. 3 includes, but is not limited to, steps S310 to S320:
s310, obtaining first channel list information according to the channel number and the signal receiving power information;
and S320, obtaining target channel list information according to the signal strength indication information and the first channel list information.
In a specific embodiment, the channel number includes a base station number and a cell number, the base station number is a location area code LAC for determining the location of the mobile station, and the cell number is a CID for distinguishing the cells; signal received power information includes, but is not limited to, RSRP and signal strength indication information includes, but is not limited to, RSSI. The target channel list information is a list of available channels.
Specifically, in step S310, the first communication module obtains first channel list information according to the location area code LAC, the cell number CID, and the RSRP; in step S320, layer-by-layer screening is performed according to the RSSI and the first channel list information to obtain the target channel list information, so that the availability of the target channel list information is improved, preparation is made for subsequent work of the second communication module, and the reliability of payment service communication is improved.
According to some embodiments of the present application, the channel number includes a base station number and a cell number, and the obtaining the first channel list information according to the channel number and the signal reception power information includes: obtaining initial channel list information according to the base station number and the cell number; and screening the initial channel list information according to the signal receiving power information and a preset power threshold value to obtain first channel list information.
Fig. 4 is a flowchart of step S310 in some embodiments, and step S310 illustrated in fig. 4 includes, but is not limited to, step S410 to step S420:
s410, obtaining initial channel list information according to the base station number and the cell number;
and S420, screening the initial channel list information according to the signal receiving power information and a preset power threshold value to obtain first channel list information.
In a specific embodiment, the base station number is a location area code LAC for determining the location of the mobile station, and the cell number is a CID for distinguishing the cells; signal received power information includes, but is not limited to, RSRP. The first channel list information is a channel list subjected to RSRP index screening.
Before step S410, preparation needs to be made for obtaining the base station number and the cell number, and specifically includes:
the payment terminal controls the first communication module to communicate with the wireless base station through the AT instruction, and after receiving the AT control instruction from the payment terminal, the first communication module returns an OK instruction to the payment terminal, which indicates that the AT control instruction is successfully executed and the first communication module works normally; the payment terminal further sends a registration base station instruction AT + CREG series instruction for controlling the first communication module to establish connection with the wireless base station, and after the first communication module is successfully established with the wireless base station, the first communication module actively reports a CREG reply instruction to the payment terminal to indicate that the connection with the wireless base station is successfully established; the payment terminal may then set a network type based on the established connection, wherein the network type includes, but is not limited to, 2G, 3G, 4G, automatic, etc.
In some embodiments, the AT command is communicated through a communication interface between the payment terminal and the first communication module, specifically, the communication interface includes, but is not limited to, USB, serial port.
In step S410, the first communication module obtains the location area code LAC and the cell number CID of the wireless base station, and stores the location area code LAC and the cell number CID of the corresponding channel as initial channel list information, where the initial channel list information is channel information scanned by the first communication module, and is used to subsequently screen the channel information to obtain available channel information.
In step S420, the first communication module obtains RSRP of the wireless base station, performs preliminary screening on the initial channel list information in combination with a preset power threshold, and stores the channel in the initial channel list information into the first channel list information if the RSRP value of the channel in the initial channel list information is greater than the preset power threshold, thereby completing the preliminary channel screening.
In a specific embodiment, the preset power threshold value of the RSRP is-85 dBm, the signal coverage range of the channel with the RSRP greater than the threshold value is good, various data services initiated indoors and outdoors can be completed, and the communication requirement is met.
According to some embodiments of the present application, the obtaining the target channel list information according to the signal strength indication information and the first channel list information includes: sorting in a descending order according to the signal strength indicated value to obtain a sorting result; establishing socket connection between the client and the server according to the sequencing result to obtain a connection result; and screening the first channel list information according to the connection result to obtain target channel list information.
Fig. 5 is a flowchart of step S320 in some embodiments, and step S320 illustrated in fig. 5 includes, but is not limited to, step S510 to step S530:
s510, performing descending sorting according to the signal strength indicating value to obtain a sorting result;
s520, establishing socket connection between the client and the server according to the sorting result to obtain a connection result;
s530, the first channel list information is screened according to the connection result, and target channel list information is obtained.
In a specific embodiment, the signal strength indication value includes, but is not limited to, an RSSI value, the first channel list information is a channel list filtered by an RSRP indicator, and the target channel list information is a channel list filtered by an RSSI value indicator and a socket (socket) connection success condition.
In steps S510 to S530, sorting the channel information corresponding to the RSSI values in a descending order according to the RSSI values to obtain a sorting result, establishing a socket connection between the client and the server according to the sorting result, further screening channels according to the connection condition, and if the socket connection is successful, storing the channel information corresponding to the RSSI values as target channel list information.
In the channel screening process, the channel list is stored in a manner of storing information such as LAC and CID as an available cell list.
After step S530, the number of channels in the obtained target channel list information is compared with the target channel threshold number, and the channel information exceeding the threshold number is deleted, and if the number of channels exceeds the list range, the channel information is deleted from the list according to the sequence from weak to strong of RSSI, so as to achieve the effects of saving data resources and improving the data availability. In a specific embodiment, the target channel threshold number is 10.
According to some embodiments of the present application, the filtering the first channel list information according to the connection result to obtain the target channel list information includes: and if the connection result is successful, storing the first channel list information corresponding to the signal strength indicating value into the target channel list information.
In a specific embodiment, the connection result includes connection success and connection failure, the first channel list information corresponding to the signal strength indication value with the connection result being connection success is stored in the target channel list information, and the first channel list information corresponding to the signal strength indication value with the connection result being connection failure is deleted.
The embodiment of the application provides a payment service communication method, which is used for a server side and comprises the following steps: sending initial channel information to a client so that the client can obtain target channel list information according to the initial channel information; receiving payment service request information sent by a client according to the target channel list information; and sending payment service response information to the client according to the payment service request information.
As shown in fig. 6, fig. 6 is a flowchart of a payment service communication method provided in some embodiments, where the payment service communication method includes, but is not limited to, steps S610 to S630, and specifically includes:
s610, sending initial channel information to the client so that the client can obtain target channel list information according to the initial channel information;
s620, receiving payment service request information sent by the client according to the target channel list information;
and S630, sending payment service response information to the client according to the payment service request information.
The payment service communication method illustrated in fig. 6 is applied to the server side.
In step S610, the initial channel information includes a channel number used to characterize a communication link of the wireless base station when the wireless base station is connected to the client, and channel quality information used to evaluate a signal condition of the communication link of the wireless base station when the wireless base station is connected to the client. The channel number includes a base station number and a cell number, the base station number is a location area code LAC for determining the location of the mobile station, and the cell number is a CID for distinguishing the cell. The channel quality information includes signal received power information and signal strength indication information. In the LTE network, the signal received power information includes, but is not limited to, RSRP, and the signal strength indication information includes, but is not limited to, RSSI.
In step S620, when the payment terminal dials through the AT command or PPP, the second communication module is connected to the payment platform server via a socket, and sends the payment service request message to the server, thereby implementing service data interaction.
In steps S620 to S630, the client processes an arriving communication event according to the stored available location area code LAC and the cell number CID in the target channel list information, where the communication event includes a payment service event, and the service event processing process specifically includes: the client sends payment service request information to the server, and the server sends payment service response information to the client after processing, so that the whole service processing process is realized.
According to the payment service communication method, the initial channel information is sent to the client, so that the client can obtain the target channel list information according to the initial channel information, receive the payment service request information sent by the client and send the payment service response information to the client according to the payment service request information, communication of the payment service is achieved, and reliability of communication of the payment service is improved.
The payment service communication method is described in detail below in a specific embodiment. It is to be understood that the following description is illustrative only and is not intended to be in any way limiting.
The payment terminal is provided with two threads, namely a thread 1 and a thread 2, which are executed by a first communication module and a second communication module respectively. The thread 1 mainly has the functions of scanning peripheral base station cells by using a first communication module, screening out current available base station cells and adding the current available base station cells to a queue of the thread 1; and the thread 2 (also called as a main thread) acquires the available base station and the cell in the thread 1 queue, the base station and the cell are connected by using a second communication module, a communication event is waited after the connection, the base station cell information in the thread 1 queue is acquired again after the communication is finished, and the base station cell with the strongest signal is updated, so that the communication success rate is improved. The thread 1 and the thread 2 are alternately carried out, the detection and the update of the channel list and the processing process of the service are synchronously carried out, the communication of the payment service is realized, and the reliability of the communication of the payment service is improved.
If the available cells are not detected in the thread 1 execution process, both the first communication module and the second communication module can communicate with the base station, the second communication module can eliminate the cells which cannot perform data service through RSRP from the scanned cells, then sort the cells from strong to weak according to RSSI, and try to connect in sequence.
The embodiment of the application provides a payment service communication device, which is used for a client and comprises: the channel information receiving module is used for receiving initial channel information of the server side; the list information processing module is used for obtaining target channel list information according to the initial channel information; the payment service request information sending module is used for sending payment service request information to the server side according to the target channel list information; and the response information receiving module is used for receiving payment service response information sent by the server side according to the payment service request information.
The payment service communication device achieves the payment service communication method, receives initial channel information of the server, obtains target channel list information according to the initial channel information, sends payment service request information to the server according to the target channel list information, receives payment service response information fed back by the server, achieves communication of payment services, and improves reliability of payment service communication.
The embodiment of the application provides a payment service communication device, which is used for a server side and comprises: the channel information sending module is used for sending initial channel information to the client so that the client can obtain target channel list information according to the initial channel information; the request information receiving module is used for receiving payment service request information sent by the client according to the target channel list information; and the response information sending module is used for sending the payment service response information to the client according to the payment service request information.
The payment service communication device provided by the application realizes the payment service communication method, sends the initial channel information to the client so that the client can obtain the target channel list information according to the initial channel information, receives the payment service request information sent by the client, and sends the payment service response information to the client according to the payment service request information, thereby realizing the communication of the payment service and improving the reliability of the payment service communication.
An embodiment of the present application provides a computer device, including: a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor when executing the program implementing: the payment service communication method for the client according to any of the embodiments described above; or, the payment service communication method for the server side according to any of the above embodiments of the present application.
A storage medium according to an embodiment of the present application stores computer-executable instructions for: executing the payment service communication method for the client terminal of any one of the above embodiments; or, the payment service communication method for the server side of any of the above embodiments is executed.
The above-described embodiments of the apparatus are merely illustrative, wherein the units illustrated as separate components may or may not be physically separate, i.e. may be located in one place, or may also be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
It will be understood by those of ordinary skill in the art that all or some of the steps, means, and methods disclosed above may be implemented as software, firmware, hardware, or suitable combinations thereof. Some or all of the physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on computer readable media, which may include computer storage media (or non-transitory media) and communication media (or transitory media). The term computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data, as is well known to those of ordinary skill in the art. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, Digital Versatile Disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can accessed by a computer. In addition, communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media as known to those skilled in the art.
The embodiments of the present application have been described in detail with reference to the drawings, but the present application is not limited to the embodiments, and various changes can be made within the knowledge of those skilled in the art without departing from the gist of the present application. Furthermore, the embodiments and features of the embodiments of the present application may be combined with each other without conflict.

Claims (10)

1. A payment transaction communication method, comprising:
receiving initial channel information of a server side;
obtaining target channel list information according to the initial channel information;
sending payment service request information to the server side according to the target channel list information;
and receiving payment service response information sent by the server according to the payment service request information.
2. The payment service communication method of claim 1, wherein the initial channel information comprises a channel number and channel quality information, the channel quality information comprises signal receiving power information and signal strength indication information, and the obtaining of the target channel list information according to the initial channel information comprises:
obtaining first channel list information according to the channel number and the signal receiving power information;
and obtaining the target channel list information according to the signal strength indication information and the first channel list information.
3. The payment service communication method of claim 2, wherein the channel number includes a base station number and a cell number, and the obtaining of the first channel list information according to the channel number and the signal reception power information includes:
obtaining initial channel list information according to the base station number and the cell number;
and screening the initial channel list information according to the signal receiving power information and a preset power threshold value to obtain the first channel list information.
4. The payment service communication method of claim 2 or 3, wherein the signal strength indication information comprises a signal strength indication value, and the obtaining the target channel list information according to the signal strength indication information and the first channel list information comprises:
sorting in a descending order according to the signal strength indicated value to obtain a sorting result;
establishing socket connection between the client and the server according to the sequencing result to obtain a connection result;
and screening the first channel list information according to the connection result to obtain the target channel list information.
5. The payment service communication method of claim 4, wherein the filtering the first channel list information according to the connection result to obtain the target channel list information comprises:
and if the connection result is successful, storing the first channel list information corresponding to the signal strength indicated value into target channel list information.
6. A payment transaction communication method, comprising:
sending initial channel information to a client so that the client can obtain target channel list information according to the initial channel information;
receiving payment service request information sent by the client according to the target channel list information;
and sending payment service response information to the client according to the payment service request information.
7. A payment transaction communications device, comprising:
the channel information receiving module is used for receiving initial channel information of the server side;
the list information processing module is used for obtaining target channel list information according to the initial channel information;
the payment service request information sending module is used for sending payment service request information to the server side according to the target channel list information;
and the response information receiving module is used for receiving payment service response information sent by the server side according to the payment service request information.
8. A payment transaction communications device, comprising:
the channel information sending module is used for sending initial channel information to a client so that the client can obtain target channel list information according to the initial channel information;
the request information receiving module is used for receiving payment service request information sent by the client according to the target channel list information;
and the response information sending module is used for sending payment service response information to the client according to the payment service request information.
9. Computer apparatus, comprising: a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor when executing the program implementing:
the payment service communication method of any one of claims 1 to 4;
or the like, or, alternatively,
the payment service communication method of claim 5.
10. A storage medium having stored thereon computer-executable instructions for causing a computer to perform:
the payment service communication method of any one of claims 1 to 4;
or the like, or, alternatively,
the payment service communication method of claim 5.
CN202111192883.7A 2021-10-13 2021-10-13 Payment service communication method, device, computer equipment and storage medium Active CN114025332B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111192883.7A CN114025332B (en) 2021-10-13 2021-10-13 Payment service communication method, device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111192883.7A CN114025332B (en) 2021-10-13 2021-10-13 Payment service communication method, device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN114025332A true CN114025332A (en) 2022-02-08
CN114025332B CN114025332B (en) 2023-12-29

Family

ID=80055884

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111192883.7A Active CN114025332B (en) 2021-10-13 2021-10-13 Payment service communication method, device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114025332B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020069162A1 (en) * 2000-11-15 2002-06-06 Cornelius Boylan Method for payment, user equipment, server, payment system and computer program product
US9271214B1 (en) * 2014-08-22 2016-02-23 Qualcomm Incorporated Cell change order and cell reselection by a wireless device
US20180098258A1 (en) * 2016-10-03 2018-04-05 Qualcomm Incorporated Inter-rat mobility measurements and operations to support ue connectivity
KR101907806B1 (en) * 2017-12-13 2018-10-12 연세대학교 산학협력단 Handover Method and Apparatus for Super High Frequency Cellular Network
CN109447610A (en) * 2018-11-02 2019-03-08 北京京东金融科技控股有限公司 Method and apparatus for determining payment channel
CN112348507A (en) * 2020-11-11 2021-02-09 中国电力财务有限公司 Service processing method and device
WO2021143493A1 (en) * 2020-01-15 2021-07-22 大唐移动通信设备有限公司 Method and apparatus for determining carrier, and readable storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020069162A1 (en) * 2000-11-15 2002-06-06 Cornelius Boylan Method for payment, user equipment, server, payment system and computer program product
US9271214B1 (en) * 2014-08-22 2016-02-23 Qualcomm Incorporated Cell change order and cell reselection by a wireless device
US20180098258A1 (en) * 2016-10-03 2018-04-05 Qualcomm Incorporated Inter-rat mobility measurements and operations to support ue connectivity
KR101907806B1 (en) * 2017-12-13 2018-10-12 연세대학교 산학협력단 Handover Method and Apparatus for Super High Frequency Cellular Network
CN109447610A (en) * 2018-11-02 2019-03-08 北京京东金融科技控股有限公司 Method and apparatus for determining payment channel
WO2021143493A1 (en) * 2020-01-15 2021-07-22 大唐移动通信设备有限公司 Method and apparatus for determining carrier, and readable storage medium
CN112348507A (en) * 2020-11-11 2021-02-09 中国电力财务有限公司 Service processing method and device

Also Published As

Publication number Publication date
CN114025332B (en) 2023-12-29

Similar Documents

Publication Publication Date Title
CN105682077B (en) A kind of virtual SIM card switching method and device
EP2845419B1 (en) Near field information transmission
CN109257741A (en) Information uploading method, device, terminal and storage medium
CN1843046A (en) System for identifying mobile terminal device automatically and system for value added service access
CN110401943A (en) A kind of mobile terminal stays network method, device, server and storage medium
CN108629594A (en) Method of payment, device, server and storage medium
US20220272522A1 (en) Data transmission method and apparatus
CN106028279A (en) Network registration method and device
CN113014637B (en) Information display method and information push method
CN106465328A (en) Method and system for estimating the geographical distance or for estimating a range of the geographical distance between at least two user equipments, mobile communication network, user equipment, program and computer program product
US10194329B2 (en) Site position priority determination device and method
CN107949019B (en) Load balancing method of wireless access point
CN112383874B (en) Cross-zone coverage identification method, device, equipment and storage medium
CN100490557C (en) Method, system and apparatus for realizing personal hand-held phone terminal register and communication
CN114025332B (en) Payment service communication method, device, computer equipment and storage medium
CN114679793A (en) Slice resource allocation method, device, terminal, network equipment and storage medium
CN110069955B (en) Non-contact card swiping method and device and terminal equipment
CN112153679B (en) Network switching method and device
CN109246610A (en) Fingerprint base method for building up, localization method, device, server and storage medium
CN109660631A (en) Narrowband Internet of things node communication system and method based on modular interface
WO2022205666A1 (en) System, method and apparatus for allocating cloud card, terminal device, server, and medium
JP2001157280A (en) Wireless data communication terminal and method for detecting state of radio wave
CN109714722B (en) Management method and device of indoor antenna, electronic equipment and storage medium
CN108702299A (en) Market for selling with sharing mobile data
US20060003749A1 (en) System and method for constructing, distributing and applying at least one network use offer to at least one mobile terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant