CN116842970A - Information processing method, device, equipment and storage medium - Google Patents

Information processing method, device, equipment and storage medium Download PDF

Info

Publication number
CN116842970A
CN116842970A CN202310665284.5A CN202310665284A CN116842970A CN 116842970 A CN116842970 A CN 116842970A CN 202310665284 A CN202310665284 A CN 202310665284A CN 116842970 A CN116842970 A CN 116842970A
Authority
CN
China
Prior art keywords
financial card
card
interface
financial
information processing
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
CN202310665284.5A
Other languages
Chinese (zh)
Other versions
CN116842970B (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.)
Tianteng Industrial Shenzhen Co ltd
Original Assignee
Tianteng Industrial Shenzhen 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 Tianteng Industrial Shenzhen Co ltd filed Critical Tianteng Industrial Shenzhen Co ltd
Priority to CN202310665284.5A priority Critical patent/CN116842970B/en
Publication of CN116842970A publication Critical patent/CN116842970A/en
Application granted granted Critical
Publication of CN116842970B publication Critical patent/CN116842970B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/0008General problems related to the reading of electronic memory record carriers, independent of its reading method, e.g. power transfer

Landscapes

  • Engineering & Computer Science (AREA)
  • Artificial Intelligence (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Power Sources (AREA)

Abstract

The application discloses an information processing method, a device, equipment and a storage medium, wherein the information processing method is applied to a financial card application end, the financial card application end is in butt joint with a card reader, the card reader is connected with a financial card, and the method comprises the following steps: responding to a financial card information transmission instruction of the card reader, and calling a basic interface, wherein the basic interface at least comprises a power-on operation interface and an Application Protocol Data Unit (APDU) interaction interface; establishing a connection relationship between the financial card and the application end of the financial card based on the power-on operation interface; and controlling the card reader and the financial card to transmit financial card information through the APDU interaction interface based on the connection relation. The application solves the problem that a great amount of developer time is required to be consumed in maintenance and updating when the financial card application is in butt joint with a plurality of different card readers, and realizes the development and maintenance of the financial card application more conveniently and rapidly.

Description

Information processing method, device, equipment and storage medium
Technical Field
The present application relates to the field of communications technologies, and in particular, to an information processing method, an apparatus, a device, and a storage medium.
Background
With the rapid popularization of financial cards, the importance of the financial cards in daily life of people is increasing. And more financial business applications are developed, and the information of the financial card is acquired as a basic condition. To cope with the increasing use of financial services, various types of card readers are continually introduced in the industry. In general, the same type of financial card application can dock a plurality of different card readers, but the current development of the financial card application for docking different card readers is only limited to self-packaging API interfaces, and various docking APIs and repeated development situations exist, so that the development of various financial card applications is disordered, and a large amount of time is consumed for maintenance and updating of developers.
Therefore, there is a need for an easy to develop and maintain solution.
Disclosure of Invention
The application mainly aims to provide an information processing method, an information processing device, information processing equipment and a storage medium, and aims to solve the problem that a large amount of developer time is required to be consumed in maintenance and updating when a financial card is applied to butt-joint a plurality of different card readers.
In order to achieve the above object, an embodiment of the present application provides an information processing method applied to a financial card application terminal, the financial card application terminal being in butt joint with a card reader, the card reader being connected with a financial card, the information processing method including:
responding to a financial card information transmission instruction of the card reader, and calling a basic interface, wherein the basic interface at least comprises a power-on operation interface and an Application Protocol Data Unit (APDU) interaction interface;
establishing a connection relationship between the financial card and the application end of the financial card based on the power-on operation interface;
and controlling the card reader and the financial card to transmit financial card information through the APDU interaction interface based on the connection relation.
Optionally, the step of establishing a connection relationship between the financial card and the application end of the financial card based on the power-on operation interface includes:
initializing the card reader based on the power-on operation interface;
providing a communication environment between the financial card and the application end of the financial card;
and establishing a connection relation between the financial card and the financial card application terminal based on the communication environment so as to support the financial card application terminal and the financial card to transmit financial card information through the card reader.
Optionally, the step of controlling the card reader to transmit the financial card information with the financial card based on the connection relationship and the APDU interactive interface includes:
based on the connection relation, controlling the card reader to send an APDU instruction to the financial card through the APDU interaction interface;
receiving a group packet returned by the financial card based on the APDU instruction;
and analyzing the group package to obtain the financial card information.
Optionally, the step of parsing the package to obtain the financial card information includes:
filtering data based on the group package, and extracting to-be-verified data;
and carrying out validity verification on the data to be verified to obtain effective financial card information.
Optionally, the base interface further includes a power-down operation interface, and after the step of transmitting the financial card information with the financial card based on the connection relationship and the APDU interaction interface, the method further includes:
and under the condition that the financial card application end and the financial card finish transmitting the financial card information, releasing card reader resources based on the power-down operation interface, and closing the communication environment between the financial card and the financial card application end so as to disconnect the connection relationship between the financial card and the financial card application end.
Optionally, the step of calling the basic interface includes:
acquiring a basic interface calling function;
and calling a function according to the basic interface to call a corresponding basic interface, and initializing the called basic interface.
The embodiment of the application also provides an information processing device which is applied to a financial card application end, wherein the financial card application end is in butt joint with a card reader, the card reader is connected with a financial card, and the information processing device comprises:
the calling module is used for responding to a financial card information transmission instruction of the card reader and calling a basic interface, wherein the basic interface at least comprises a power-on operation interface and an Application Protocol Data Unit (APDU) interaction interface;
the connection establishment module is used for establishing a connection relationship between the financial card and the application end of the financial card based on the power-on operation interface;
and the information transmission module is used for controlling the card reader and the financial card to transmit financial card information through the APDU interaction interface based on the connection relation.
Optionally, the information processing apparatus further includes:
and the disconnection module is used for releasing card reader resources based on the power-down operation interface under the condition that the financial card application end and the financial card finish transmitting the financial card information, and closing the communication environment between the financial card and the financial card application end so as to disconnect the connection relationship between the financial card and the financial card application end.
The embodiment of the application also provides an information processing device, which comprises a memory, a processor and an information processing program stored on the memory and capable of running on the processor, wherein the information processing program realizes the steps of the information processing method when being executed by the processor.
The embodiment of the present application also proposes a computer-readable storage medium having stored thereon an information processing program which, when executed by a processor, implements the steps of the information processing method as described above.
The information processing method, the device, the equipment and the storage medium provided by the embodiment of the application are applied to a financial card application end, the financial card application end is in butt joint with a card reader, the card reader is connected with a financial card, and the information processing method calls a basic interface by responding to a financial card information transmission instruction of the card reader, wherein the basic interface at least comprises a power-on operation interface and an Application Protocol Data Unit (APDU) interaction interface; establishing a connection relationship between the financial card and the application end of the financial card based on the power-on operation interface; and controlling the card reader and the financial card to transmit financial card information through the APDU interaction interface based on the connection relation. According to the scheme, the basic interface is called, the connection between the financial card and the application end of the financial card is built in the modularized basic interface, the card reader is controlled to exchange transmission data with the financial card, and the information of the financial card can be easily acquired. According to the scheme of the application, the communication and the operation of the card reader are realized by providing a unified basic interface, so that a developer can use the same API on an application level without concern about the details of communication with the bottom layer of the card reader, and the development process is more convenient and efficient and is easy to maintain and expand.
Drawings
FIG. 1 is a schematic diagram of functional blocks of an apparatus to which an information processing apparatus of the present application belongs;
FIG. 2 is a flowchart of a first exemplary embodiment of an information processing method according to the present application;
FIG. 3 is a flowchart illustrating a second exemplary embodiment of an information processing method according to the present application;
fig. 4 is a schematic flow chart of controlling a card reader to transmit financial card information with a financial card through an APDU interactive interface according to a second exemplary embodiment of the information processing method of the present application;
fig. 5 is a flowchart illustrating a third exemplary embodiment of an information processing method according to the present application.
The achievement of the objects, functional features and advantages of the present application will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
The embodiment of the application is applied to a financial card application end, the financial card application end is in butt joint with a card reader, the card reader is connected with a financial card, and the main solution of the embodiment of the application is as follows: responding to a financial card information transmission instruction of the card reader, and calling a basic interface, wherein the basic interface at least comprises a power-on operation interface and an Application Protocol Data Unit (APDU) interaction interface; establishing a connection relationship between the financial card and the application end of the financial card based on the power-on operation interface; and controlling the card reader and the financial card to transmit financial card information through the APDU interaction interface based on the connection relation. According to the scheme, the basic interface is called, the connection between the financial card and the application end of the financial card is built in the modularized basic interface, the card reader is controlled to exchange transmission data with the financial card, and the information of the financial card can be easily acquired. According to the scheme of the application, the communication and the operation of the card reader are realized by providing a unified basic interface, so that a developer can use the same API on an application level without concern about the details of communication with the bottom layer of the card reader, and the development process is more convenient and efficient and is easy to maintain and expand.
Specifically, referring to fig. 1, fig. 1 is a schematic diagram of functional modules of an apparatus to which an information processing device of the present application belongs. The information processing apparatus may be a device-independent apparatus capable of interface call and information processing, which may be carried on the device in the form of hardware or software. The device can be an intelligent mobile terminal with a data processing function such as a mobile phone and a tablet personal computer, and can also be a fixed device or a server with a data processing function.
In this embodiment, the apparatus to which the information processing apparatus belongs includes at least an output module 110, a processor 120, a memory 130, and a communication module 140.
The memory 130 stores an operating system and an information processing program, and the information processing device can store information such as a financial card information transmission instruction of the card reader, a basic interface calling function, a called basic interface, a connection relation between the financial card and an application end of the financial card established based on a power-on operation interface, and financial card information which is transmitted by the card reader and the financial card through an APDU interaction interface into the memory 130; the output module 110 may be a display screen or the like. The communication module 140 may include a WIFI module, a mobile communication module, a bluetooth module, and the like, and communicates with an external device or a server through the communication module 140.
Wherein the information processing program in the memory 130 when executed by the processor performs the steps of:
responding to a financial card information transmission instruction of the card reader, and calling a basic interface, wherein the basic interface at least comprises a power-on operation interface and an Application Protocol Data Unit (APDU) interaction interface;
establishing a connection relationship between the financial card and the application end of the financial card based on the power-on operation interface;
and controlling the card reader and the financial card to transmit financial card information through the APDU interaction interface based on the connection relation.
Further, the information processing program in the memory 130 when executed by the processor also realizes the following steps:
initializing the card reader based on the power-on operation interface;
providing a communication environment between the financial card and the application end of the financial card;
and establishing a connection relation between the financial card and the financial card application terminal based on the communication environment so as to support the financial card application terminal and the financial card to transmit financial card information through the card reader.
Further, the information processing program in the memory 130 when executed by the processor also realizes the following steps:
based on the connection relation, controlling the card reader to send an APDU instruction to the financial card through the APDU interaction interface;
receiving a group packet returned by the financial card based on the APDU instruction;
and analyzing the group package to obtain the financial card information.
Further, the information processing program in the memory 130 when executed by the processor also realizes the following steps:
filtering data based on the group package, and extracting to-be-verified data;
and carrying out validity verification on the data to be verified to obtain effective financial card information.
Further, the information processing program in the memory 130 when executed by the processor also realizes the following steps:
and under the condition that the financial card application end and the financial card finish transmitting the financial card information, releasing card reader resources based on the power-down operation interface, and closing the communication environment between the financial card and the financial card application end so as to disconnect the connection relationship between the financial card and the financial card application end.
Further, the information processing program in the memory 130 when executed by the processor also realizes the following steps:
acquiring a basic interface calling function;
and calling a function according to the basic interface to call a corresponding basic interface, and initializing the called basic interface.
According to the scheme, the basic interface is called in response to the financial card information transmission instruction of the card reader, wherein the basic interface at least comprises a power-on operation interface and an Application Protocol Data Unit (APDU) interaction interface; establishing a connection relationship between the financial card and the application end of the financial card based on the power-on operation interface; and controlling the card reader and the financial card to transmit financial card information through the APDU interaction interface based on the connection relation. According to the scheme, the basic interface is called, the connection between the financial card and the application end of the financial card is built in the modularized basic interface, the card reader is controlled to exchange transmission data with the financial card, and the information of the financial card can be easily acquired. According to the scheme of the application, the communication and the operation of the card reader are realized by providing a unified basic interface, so that a developer can use the same API on an application level without concern about the details of communication with the bottom layer of the card reader, and the development process is more convenient and efficient and is easy to maintain and expand.
Based on the above device architecture, but not limited to the above architecture, an embodiment of the information processing method of the present application is presented.
Referring to fig. 2, fig. 2 is a flowchart illustrating a first exemplary embodiment of an information processing method according to the present application. The main execution body of the method of the embodiment may be an information processing device, or may be an information processing apparatus or a server, and the embodiment uses the information processing device as an example, where the information processing device may be integrated on a terminal apparatus such as a smart phone, a tablet computer, or the like having a data processing function. The information processing device of this embodiment includes a financial card application terminal, the financial card application terminal is docked with a card reader, the card reader is connected with a financial card, wherein the card reader is used for reading information in the financial card, in this embodiment, the information processing method is applied to the financial card application terminal, the method includes:
step S11, a basic interface is called in response to a financial card information transmission instruction of the card reader, wherein the basic interface at least comprises a power-on operation interface and an Application Protocol Data Unit (APDU) interaction interface.
Specifically, when the card reader reads the information in the financial card, the card reader sends a financial card information transmission instruction to the financial card application end connected with the card reader. And the financial card application end receives and responds to the financial card information transmission instruction and calls the basic interface. The basic interface is an interface related to acquiring financial card information by the card reader, and at least comprises a power-on operation interface and an Application Protocol Data Unit (APDU) interaction interface. The APDU refers to an application protocol data unit, and includes instructions and data required by the application end of the financial card to communicate with the financial card. In this embodiment, once the basic interface is invoked, the PBOC (china bank card standard) process will start to start inside the modular interface.
And step S12, establishing a connection relationship between the financial card and the application end of the financial card based on the power-on operation interface.
Specifically, a connection relationship between a financial card and an application end of the financial card is established through a power-on operation interface, wherein the power-on operation refers to that physical connection is established between the financial card and a card reader. The power-on operation can be realized by interacting with the card reader so as to ensure that the connection between the financial card and the application end of the financial card is normally established.
And step S13, controlling the card reader and the financial card to transmit financial card information through the APDU interaction interface based on the connection relation.
In particular, APDU interaction is a core operation of data exchange between a financial card application and a financial card. In this embodiment, based on the established connection relationship between the financial card and the application end of the financial card, the transmission of the financial card information between the card reader and the financial card is controlled through the APDU interactive interface.
According to the scheme, the basic interface is called in response to the financial card information transmission instruction of the card reader, wherein the basic interface at least comprises a power-on operation interface and an Application Protocol Data Unit (APDU) interaction interface; establishing a connection relationship between the financial card and the application end of the financial card based on the power-on operation interface; and controlling the card reader and the financial card to transmit financial card information through the APDU interaction interface based on the connection relation. According to the scheme, the basic interface is called, the connection between the financial card and the application end of the financial card is built in the modularized basic interface, the card reader is controlled to exchange transmission data with the financial card, and the information of the financial card can be easily acquired. According to the scheme of the application, the communication and the operation of the card reader are realized by providing a unified basic interface, so that a developer can use the same API on an application level without concern about the details of communication with the bottom layer of the card reader, and the development process is more convenient and efficient and is easy to maintain and expand.
Further, referring to fig. 3, fig. 3 is a flowchart illustrating a second exemplary embodiment of the information processing method according to the present application. Based on the embodiment shown in fig. 2, in this embodiment, the establishing, based on the power-on operation interface, the connection relationship between the financial card and the application end of the financial card may include:
step S1201, initializing the card reader based on the power-on operation interface;
step S1202, providing a communication environment between the financial card and the financial card application end;
step S1203 establishes a connection relationship between the financial card and the financial card application terminal based on the communication environment, so as to support the financial card application terminal and the financial card to transmit financial card information through the card reader.
In this embodiment, the modularized power-on operation interface is used to establish a connection relationship between the financial card and the application end of the financial card. The card reader is initialized through the power-on operation interface, and then a proper communication environment is provided between the financial card and the application end of the financial card. In the provided communication environment, a connection relation between the financial card and the financial card application end is established through the power-on operation interface, and the connection relation between the financial card and the financial card application end is used for supporting the transmission of financial card information between the financial card application end and the financial card through a card reader.
Further, referring to fig. 4, fig. 4 is a schematic flow chart of controlling a card reader to transmit financial card information with a financial card through an APDU interactive interface according to a second exemplary embodiment of the information processing method of the present application. In this embodiment, the controlling, based on the connection relationship, the card reader to transmit the financial card information with the financial card through the APDU interface in step S13 may include:
step S1301, based on the connection relationship, controlling the card reader to send an APDU command to the financial card through the APDU interaction interface;
step S1302, receiving a packet returned by the financial card based on the APDU command;
step S1303, performing parsing processing on the package to obtain the financial card information.
In this embodiment, the modularized APDU interactive interface is used to implement data exchange between the financial card application end and the financial card. Based on the established connection relation between the financial card and the application end of the financial card, the card reader is controlled to send an APDU instruction to the financial card through the APDU interaction interface. The financial card responds after receiving the APDU instruction, and returns a group package to the financial card application end, wherein the group package can comprise response data returned by the financial card based on the received APDU instruction. Then, the financial card application end controls the card reader to receive a package returned by the financial card through the APDU interaction interface; and analyzing the received group package to obtain the financial card information.
Further, in this embodiment, in step S1303, the parsing the package to obtain the financial card information may include:
step S301, data filtering is carried out based on the group package, and data to be verified is extracted;
and step S302, carrying out validity verification on the data to be verified to obtain valid financial card information.
Specifically, the received group package is subjected to data filtering, the data to be verified is extracted from the filtered data, and then the data to be verified is returned to the application end of the financial card. The financial card application end performs validity check on the returned data to be checked to ensure that the current returned information is valid. If the validity check is passed, the effective financial card information is obtained, and the next PBOC flow can be continued.
In this embodiment, the reliability and security of the transaction can be ensured by performing additional checksum security control in the PBOC flow inside the modular interface. The verification process may include, but is not limited to, PIN verification, data integrity check, certificate verification, etc., so that accuracy and security of the financial card information are ensured.
According to the scheme, the basic interface is called in response to the financial card information transmission instruction of the card reader, wherein the basic interface at least comprises a power-on operation interface and an Application Protocol Data Unit (APDU) interaction interface; establishing a connection relationship between the financial card and the application end of the financial card based on the power-on operation interface; and controlling the card reader and the financial card to transmit financial card information through the APDU interaction interface based on the connection relation. According to the scheme, the basic interface is called, the connection between the financial card and the application end of the financial card is built in the modularized basic interface, the card reader is controlled to exchange transmission data with the financial card, and the information of the financial card can be easily acquired. According to the scheme of the application, the communication and the operation of the card reader are realized by providing a unified basic interface, so that a developer can use the same API on an application level without concern about the details of communication with the bottom layer of the card reader, and the development process is more convenient and efficient and is easy to maintain and expand.
Further, referring to fig. 5, fig. 5 is a flowchart illustrating a third exemplary embodiment of the information processing method according to the present application. Based on the embodiment shown in fig. 2, fig. 3 or fig. 4, in this embodiment, the base interface may further include a power-down operation interface, configured to disconnect a connection relationship between a financial card and an application end of the financial card, and in step S13, after controlling, based on the connection relationship, the card reader and the financial card to transmit financial card information through the APDU interface, the method may further include:
and S14, releasing card reader resources based on the power-down operation interface under the condition that the financial card application end and the financial card finish transmitting the financial card information, and closing the communication environment between the financial card and the financial card application end so as to disconnect the connection relationship between the financial card and the financial card application end.
Specifically, the power-down operation refers to breaking the physical connection between the financial card and the application end of the financial card. In this embodiment, after the interactive transmission of the financial card information is completed between the financial card application end and the financial card, the card reader resource is released through the power-down operation interface, and the communication environment between the financial card and the financial card application end is closed at the same time, so as to disconnect the connection relationship between the financial card and the financial card application end.
Through the power-down operation, the financial card can be ensured to be safely disconnected after interaction is completed, so that other applications or operations can continue to use the card reader.
By providing three basic APIs, namely a power-on operation interface, an APDU interaction interface and a power-off operation interface, an application end developer can concentrate on processing financial card data and business logic without paying attention to the bottom communication details with a card reader. Based on the scheme of the embodiment of the application, a developer only needs to provide three corresponding basic interfaces for each different card reader, namely power-on operation, APDU interaction and power-off operation, so as to acquire the financial card information, and does not need to repeatedly develop the whole PBOC process each time, namely only needs to pay attention to the interface implementation of a specific card reader, so that the development process of the application end of the financial card can be simplified, and the development efficiency is improved. At the same time, since the underlying reader communication portion is already encapsulated and verified at the API level, it is also advantageous to reduce the risk of errors and faults.
Further, as an embodiment, the step of calling the basic interface may include:
step S1101, obtaining a basic interface calling function;
step S1102, calling a corresponding basic interface according to the basic interface calling function, and initializing the called basic interface.
Specifically, a basic interface calling function is obtained, wherein the basic interface calling function is built in the modularized interface. And calling a corresponding basic interface according to the basic interface calling function, and initializing the called basic interface, wherein the basic interface can comprise, but is not limited to, a power-on operation interface, an APDU interaction interface, a power-off operation interface and the like.
And then, returning the financial card information to the financial application end by calling the financial card information acquisition interface inside the modularized interface.
Illustratively, the basic interface call function may be:
pboc_setallback ("power-up function name", "power-up function pointer");
pboc_setallback ("apdu interactive function name", "apdu interactive function pointer");
pboc_setallback ("power down function name", "power down function pointer");
pboc_geteticination (…)/call get financial card information interface
According to the scheme, the basic interface is called in response to the financial card information transmission instruction of the card reader, wherein the basic interface at least comprises a power-on operation interface and an Application Protocol Data Unit (APDU) interaction interface; establishing a connection relationship between the financial card and the application end of the financial card based on the power-on operation interface; and controlling the card reader and the financial card to transmit financial card information through the APDU interaction interface based on the connection relation. According to the scheme, the basic interface is called, the connection between the financial card and the application end of the financial card is built in the modularized basic interface, the card reader is controlled to exchange transmission data with the financial card, and the information of the financial card can be easily acquired. According to the scheme of the application, the communication and the operation of the card reader are realized by providing a unified basic interface, so that a developer can use the same API on an application level without concern about the details of communication with the bottom layer of the card reader, and the development process is more convenient and efficient and is easy to maintain and expand.
In addition, an embodiment of the present application further provides an information processing apparatus, which is applied to a financial card application end, where the financial card application end interfaces with a card reader, and the card reader is connected with a financial card, and the information processing apparatus includes:
the calling module is used for responding to a financial card information transmission instruction of the card reader and calling a basic interface, wherein the basic interface at least comprises a power-on operation interface and an Application Protocol Data Unit (APDU) interaction interface;
the connection establishment module is used for establishing a connection relationship between the financial card and the application end of the financial card based on the power-on operation interface;
and the information transmission module is used for controlling the card reader and the financial card to transmit financial card information through the APDU interaction interface based on the connection relation.
Further, the information processing apparatus may further include:
and the disconnection module is used for releasing card reader resources based on the power-down operation interface under the condition that the financial card application end and the financial card finish transmitting the financial card information, and closing the communication environment between the financial card and the financial card application end so as to disconnect the connection relationship between the financial card and the financial card application end.
The principle and implementation process of the information processing in this embodiment are referred to the above embodiments, and will not be described in detail herein.
In addition, an embodiment of the present application also proposes an information processing apparatus including a memory, a processor, and an information processing program stored on the memory and executable on the processor, the information processing program implementing the steps of the information processing method as described above when executed by the processor.
Because the information processing program is executed by the processor and adopts all the technical schemes of all the embodiments, the information processing program at least has all the beneficial effects brought by all the technical schemes of all the embodiments and is not described in detail herein.
Furthermore, an embodiment of the present application also proposes a computer-readable storage medium having stored thereon an information processing program which, when executed by a processor, implements the steps of the information processing method as described above.
Because the information processing program is executed by the processor and adopts all the technical schemes of all the embodiments, the information processing program at least has all the beneficial effects brought by all the technical schemes of all the embodiments and is not described in detail herein.
Compared with the prior art, the information processing method, the device, the equipment and the storage medium provided by the embodiment of the application have the advantages that the basic interface is called by responding to the financial card information transmission instruction of the card reader, wherein the basic interface at least comprises a power-on operation interface and an Application Protocol Data Unit (APDU) interaction interface; establishing a connection relationship between the financial card and the application end of the financial card based on the power-on operation interface; and controlling the card reader and the financial card to transmit financial card information through the APDU interaction interface based on the connection relation. According to the scheme, the basic interface is called, the connection between the financial card and the application end of the financial card is built in the modularized basic interface, the card reader is controlled to exchange transmission data with the financial card, and the information of the financial card can be easily acquired. According to the scheme of the application, the communication and the operation of the card reader are realized by providing a unified basic interface, so that a developer can use the same API on an application level without concern about the details of communication with the bottom layer of the card reader, and the development process is more convenient and efficient and is easy to maintain and expand.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The foregoing embodiment numbers of the present application are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) as above, comprising instructions for causing a terminal device (which may be a mobile phone, a computer, a server, a controlled terminal, or a network device, etc.) to perform the method of each embodiment of the present application.
The foregoing description is only of the preferred embodiments of the present application, and is not intended to limit the scope of the application, but rather is intended to cover any equivalents of the structures or equivalent processes disclosed herein or in the alternative, which may be employed directly or indirectly in other related arts.

Claims (10)

1. An information processing method is characterized by being applied to a financial card application end, wherein the financial card application end is in butt joint with a card reader, and the card reader is connected with a financial card, and the information processing method comprises the following steps:
responding to a financial card information transmission instruction of the card reader, and calling a basic interface, wherein the basic interface at least comprises a power-on operation interface and an Application Protocol Data Unit (APDU) interaction interface;
establishing a connection relationship between the financial card and the application end of the financial card based on the power-on operation interface;
and controlling the card reader and the financial card to transmit financial card information through the APDU interaction interface based on the connection relation.
2. The information processing method according to claim 1, wherein the step of establishing a connection relationship between the financial card and the application terminal of the financial card based on the power-on operation interface includes:
initializing the card reader based on the power-on operation interface;
providing a communication environment between the financial card and the application end of the financial card;
and establishing a connection relation between the financial card and the financial card application terminal based on the communication environment so as to support the financial card application terminal and the financial card to transmit financial card information through the card reader.
3. The information processing method of claim 1, wherein the step of controlling the card reader to transmit financial card information with the financial card through the APDU interactive interface based on the connection relation comprises:
based on the connection relation, controlling the card reader to send an APDU instruction to the financial card through the APDU interaction interface;
receiving a group packet returned by the financial card based on the APDU instruction;
and analyzing the group package to obtain the financial card information.
4. The information processing method as claimed in claim 3, wherein the step of parsing the package to obtain the financial card information includes:
filtering data based on the group package, and extracting to-be-verified data;
and carrying out validity verification on the data to be verified to obtain effective financial card information.
5. The information processing method as claimed in claim 1, wherein the basic interface further comprises a power-down operation interface, and the step of controlling the card reader to transmit financial card information with the financial card through the APDU interface based on the connection relationship further comprises:
and under the condition that the financial card application end and the financial card finish transmitting the financial card information, releasing card reader resources based on the power-down operation interface, and closing the communication environment between the financial card and the financial card application end so as to disconnect the connection relationship between the financial card and the financial card application end.
6. The information processing method according to any one of claims 1 to 5, wherein the step of calling a basic interface includes:
acquiring a basic interface calling function;
and calling a function according to the basic interface to call a corresponding basic interface, and initializing the called basic interface.
7. An information processing apparatus, characterized in that it is applied to a financial card application terminal, the financial card application terminal interfaces with a card reader, the card reader is connected with a financial card, the information processing apparatus includes:
the calling module is used for responding to a financial card information transmission instruction of the card reader and calling a basic interface, wherein the basic interface at least comprises a power-on operation interface and an Application Protocol Data Unit (APDU) interaction interface;
the connection establishment module is used for establishing a connection relationship between the financial card and the application end of the financial card based on the power-on operation interface;
and the information transmission module is used for controlling the card reader and the financial card to transmit financial card information through the APDU interaction interface based on the connection relation.
8. The information processing apparatus according to claim 7, wherein the information processing apparatus further comprises:
and the disconnection module is used for releasing card reader resources based on the power-down operation interface under the condition that the financial card application end and the financial card finish transmitting the financial card information, and closing the communication environment between the financial card and the financial card application end so as to disconnect the connection relationship between the financial card and the financial card application end.
9. An information processing apparatus comprising a memory, a processor, and an information processing program stored on the memory and executable on the processor, the information processing program implementing the steps of the information processing method according to any one of claims 1 to 6 when executed by the processor.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon an information processing program which, when executed by a processor, implements the steps of the information processing method according to any one of claims 1 to 6.
CN202310665284.5A 2023-06-06 2023-06-06 Information processing method, device, equipment and storage medium Active CN116842970B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310665284.5A CN116842970B (en) 2023-06-06 2023-06-06 Information processing method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310665284.5A CN116842970B (en) 2023-06-06 2023-06-06 Information processing method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN116842970A true CN116842970A (en) 2023-10-03
CN116842970B CN116842970B (en) 2024-04-02

Family

ID=88159047

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310665284.5A Active CN116842970B (en) 2023-06-06 2023-06-06 Information processing method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116842970B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101013464A (en) * 2007-01-24 2007-08-08 北京飞天诚信科技有限公司 Method for information interaction between host computer and smart card
CN108846469A (en) * 2018-06-28 2018-11-20 中国建设银行股份有限公司 Financial IC card exchange method, device and readable storage medium storing program for executing
CN114417900A (en) * 2021-12-21 2022-04-29 东信和平科技股份有限公司 System and method for realizing unified read-write card and peripheral access

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101013464A (en) * 2007-01-24 2007-08-08 北京飞天诚信科技有限公司 Method for information interaction between host computer and smart card
CN108846469A (en) * 2018-06-28 2018-11-20 中国建设银行股份有限公司 Financial IC card exchange method, device and readable storage medium storing program for executing
CN114417900A (en) * 2021-12-21 2022-04-29 东信和平科技股份有限公司 System and method for realizing unified read-write card and peripheral access

Also Published As

Publication number Publication date
CN116842970B (en) 2024-04-02

Similar Documents

Publication Publication Date Title
JP4090511B2 (en) Method for transmitting control commands for a shim card from an external device to the shim card
EP2211480B1 (en) Wireless communication device for providing at least one near field communication service
EP2421216B1 (en) Enhanced near field communication terminal, smart card and communication method thereof
KR101541263B1 (en) Method and apparatus for executing user action commands
CN101115078B (en) System for developing mobile communications terminal equipment
CN105263140A (en) System and method for realizing remote authentication of subscriber identity module (SIM) card
TW202044019A (en) Access method based on H5 access mode, access component thereof and mobile terminal
CN102685303A (en) Communication method and device
WO2012037791A1 (en) Method, device and system for displaying radio frequency identification application information
CN106503986B (en) Virtual resource transfer method and device
CN205541170U (en) MPOS machine and mobile payment system
CN103619053A (en) Method for using user identification cards and communication system
CN116842970B (en) Information processing method, device, equipment and storage medium
JPH08297634A (en) Card reader terminal and execution method of plurality of applications of said terminal
US7653382B2 (en) Radiocommunication module executing a main software and a client software comprising several client applications
CN102572800A (en) Method for SIM (subscriber identity module) card to automatically read information of IMEI (international mobile equipment identity) information of terminal on basis of STK (SIM application tool kit) technology
CN210627378U (en) Borrow machine based on NFC technique
CN109408127B (en) Chip system loading method and chip card
CN109634885B (en) Method and device for communication between mobile terminal and smart card
EP2632180A1 (en) Method for exchanging data between two mobile devices
KR100494827B1 (en) Distributed object model based radio server with hardware-independent communication interface and communication control method using the same
CN112596925B (en) Transaction data transmission method and device
CN116170506B (en) System and method for realizing loose coupling butt joint of mobile terminal signature service and reader
KR102678934B1 (en) Near field communication (NFC) communication methods, devices, and electronic equipment
CN117291212A (en) Method for realizing android NFC framework based on intelligent POS non-connection function

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