CN110795949A - Card swiping method and device, electronic equipment and medium - Google Patents

Card swiping method and device, electronic equipment and medium Download PDF

Info

Publication number
CN110795949A
CN110795949A CN201910913322.8A CN201910913322A CN110795949A CN 110795949 A CN110795949 A CN 110795949A CN 201910913322 A CN201910913322 A CN 201910913322A CN 110795949 A CN110795949 A CN 110795949A
Authority
CN
China
Prior art keywords
scene
card
nfc
information
scene model
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910913322.8A
Other languages
Chinese (zh)
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.)
Vivo Mobile Communication Hangzhou Co Ltd
Original Assignee
Vivo Mobile Communication Hangzhou 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 Vivo Mobile Communication Hangzhou Co Ltd filed Critical Vivo Mobile Communication Hangzhou Co Ltd
Priority to CN201910913322.8A priority Critical patent/CN110795949A/en
Publication of CN110795949A publication Critical patent/CN110795949A/en
Pending legal-status Critical Current

Links

Images

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/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/10009Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation sensing by radiation using wavelengths larger than 0.1 mm, e.g. radio-waves or microwaves
    • G06K7/10158Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation sensing by radiation using wavelengths larger than 0.1 mm, e.g. radio-waves or microwaves methods and means used by the interrogation device for reliably powering the wireless record carriers using an electromagnetic interrogation field
    • 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/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/10009Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation sensing by radiation using wavelengths larger than 0.1 mm, e.g. radio-waves or microwaves
    • G06K7/10366Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation sensing by radiation using wavelengths larger than 0.1 mm, e.g. radio-waves or microwaves the interrogation device being adapted for miscellaneous applications
    • G06K7/10376Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation sensing by radiation using wavelengths larger than 0.1 mm, e.g. radio-waves or microwaves the interrogation device being adapted for miscellaneous applications the interrogation device being adapted for being moveable
    • G06K7/10386Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation sensing by radiation using wavelengths larger than 0.1 mm, e.g. radio-waves or microwaves the interrogation device being adapted for miscellaneous applications the interrogation device being adapted for being moveable the interrogation device being of the portable or hand-handheld type, e.g. incorporated in ubiquitous hand-held devices such as PDA or mobile phone, or in the form of a portable dedicated RFID reader
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N20/00Machine learning

Abstract

The embodiment of the invention discloses a card swiping method, a card swiping device, electronic equipment and a medium. The method comprises the following steps: under the condition that the NFC function is called, first scene information where the electronic equipment is located is obtained through electromagnetic wave detection operation of a radar; and under the condition that the first scene information is matched with the target scene model, performing data exchange with the card swiping machine through the NFC card corresponding to the target scene model. By utilizing the embodiment of the invention, the NFC card which accords with the current scene can be automatically determined, so that the operation that a user frequently switches the NFC card due to different use scenes is reduced, and the convenience of the user when the user swipes the card by using the NFC function is improved.

Description

Card swiping method and device, electronic equipment and medium
Technical Field
The embodiment of the invention relates to the technical field of near field communication, in particular to a card swiping method, a card swiping device, electronic equipment and a medium.
Background
Near Field Communication (NFC) is a short-range high-frequency radio technology, and an NFC card obtained by simulating the functions of some physical card can realize short-range inductive card swiping. With the development of the technology, more and more mobile phone devices are loaded with NFC, and users also start to simulate more cards such as bank cards, access cards, subway and bus cards and the like through the mobile phone NFC, so that great convenience is brought to the life of the users.
However, since NFC can trigger only one card at the same time, for a general user, there may be a plurality of cards used at high frequency in life, and therefore, it is necessary to frequently switch these cards, which brings great inconvenience to the user. For example, the user has set up the entrance guard's card as the acquiescence card, then when the user need punch the entrance guard's card, can directly trigger, and when the user need punch the bus card, need get into NFC card management interface earlier, manual selection bus card, then just can punch the card successfully.
Disclosure of Invention
The embodiment of the invention provides a card swiping method, a card swiping device, electronic equipment and a medium, and aims to solve the problem of poor convenience caused by the fact that NFC needs to manually switch cards.
In a first aspect, an embodiment of the present invention provides a card swiping method applied to an electronic device, including:
under the condition that the NFC function is called, first scene information where the electronic equipment is located is obtained through electromagnetic wave detection operation of a radar;
and under the condition that the first scene information is matched with the target scene model, performing data exchange with the card swiping machine through the NFC card corresponding to the target scene model.
In a second aspect, an embodiment of the present invention further provides a card swiping device applied to an electronic device, including:
the first information acquisition module is used for acquiring first scene information of the electronic equipment through electromagnetic wave detection operation of a radar under the condition that the NFC function is called;
and the card swiping module is used for exchanging data with the card swiping machine through the NFC card corresponding to the target scene model under the condition that the first scene information is matched with the target scene model.
In a third aspect, an embodiment of the present invention provides an electronic device, which includes a processor, a memory, and a computer program stored on the memory and operable on the processor, and when executed by the processor, the electronic device implements the steps of the card swiping method according to the first aspect.
In a fourth aspect, the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the card swiping method according to the first aspect.
In the embodiment of the invention, the corresponding scene models are respectively bound for the NFC cards in advance, when the NFC function is called, the scene information of the current electronic equipment is acquired, the acquired scene information is matched with the scene models bound by the NFC cards, and after the matching is successful, the current acquired scene information is shown to be in accordance with the use scene of the NFC cards successfully matched, so that the NFC cards successfully matched are directly used for swiping cards subsequently. Therefore, in the embodiment, the NFC card which accords with the current scene can be automatically determined, so that the operation that a user frequently switches the NFC card due to different use scenes is reduced, and the convenience of the user when the user swipes the card by using the NFC function is improved.
Drawings
The present invention will be better understood from the following description of specific embodiments thereof taken in conjunction with the accompanying drawings, in which like or similar reference characters designate like or similar features.
Fig. 1 is a schematic flow chart of a card swiping method according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart illustrating another card swiping method according to an embodiment of the present invention;
FIG. 3 is a schematic structural diagram of a card swiping device according to an embodiment of the present invention;
FIG. 4 is a schematic structural diagram of another card swiping device according to an embodiment of the present invention;
fig. 5 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Because the current NFC function can only select one default card, when a plurality of NFC cards are required to be frequently used, the cards need to be frequently and manually cut, and inconvenience is caused to users. The embodiment of the invention realizes the automatic switching of the NFC card in a scene matching mode, and improves the convenience when a user uses the NFC function. Specifically, fig. 1 shows a schematic flowchart of a card swiping method provided by an embodiment of the present invention, where the method is applied to an electronic device, and includes:
s101: under the condition that the NFC function is called, first scene information where the electronic equipment is located is obtained through electromagnetic wave detection operation of a radar;
after the NFC function is called, the NFC functional module in the electronic device can operate, and can perform operations related to NFC. The method for invoking NFC may include any one or more of the following: the electronic equipment calls the NFC function by default after being started (namely the NFC function is always in the starting state), the user manually calls the NFC function, and the distance between the electronic equipment and the card swiping machine is smaller than the induction distance of the NFC.
In addition, in the embodiment of the present invention, the NFC card includes any one or more of the following: bus cards, access cards, bank cards, and the like. The system can also comprise a plurality of different bank cards, for example, a user needs to use a specific bank card to use the special bank card in a specific restaurant to use the special bank card, and the embodiment of the invention can realize that the user can automatically switch to the appointed bank card to pay when consuming in the restaurant, thereby improving the convenience when the user consumes.
S102: and under the condition that the first scene information is matched with the target scene model, performing data exchange with the card swiping machine through the NFC card corresponding to the target scene model.
The data exchange with the card swiping machine refers to the information interaction between the NFC card and the card swiping machine, so that the operations of opening a gate, opening a security door or deducting money and the like are controlled.
In the embodiment of the invention, the corresponding scene models are respectively bound for each NFC card in advance, when the NFC function is called, the scene information of the current electronic equipment is acquired, the acquired scene information is matched with at least one scene model bound by each NFC card, and after the matching is successful, the currently acquired scene information is shown to be in accordance with the use scene of the NFC card successfully matched, so that the NFC card successfully matched is directly used for swiping the card subsequently. Therefore, in the embodiment, the NFC card which accords with the current scene can be automatically determined, so that the operation that a user frequently switches the NFC card due to different use scenes is reduced, and the convenience of the user when the user swipes the card by using the NFC function is improved.
In a specific embodiment, the radar is a millimeter wave radar.
The working principle of the radar is as follows: the emitted electromagnetic wave irradiates a target and receives the echo of the target, so that information such as the distance from the target to the emission point of the electromagnetic wave, the distance change rate (radial speed), the azimuth, the altitude and the like is obtained. The millimeter wave radar is a radar operating in a millimeter wave band (millimeter wave). Generally, the millimeter wave refers to a wave with a frequency range of 30 to 300GHz and a wavelength of 1 to 10 mm. Compared with optical probes such as infrared, laser and television, the millimeter wave probe has strong capability of penetrating fog, smoke and dust and has the characteristics of all weather (except heavy rainy days) all day long. The millimeter wave radar can distinguish and identify very small targets, can identify the materials and the shapes of a plurality of objects, and has imaging capability. Therefore, the scene information is acquired by adopting the material detection function of the millimeter wave radar, the interference caused by dust, rainwater and the like outside can be reduced, the imaging reliability is high, the target identification precision is high, and along with the miniaturization of a radar chip, the millimeter wave radar is small in size and convenient to integrate into electronic equipment.
In other embodiments, the scene information may also be obtained by other radars with higher precision than the millimeter wave, for example, a terahertz radar, and the like, which is not limited in the present invention.
Further, the first scene information includes: the structure information of the card swiping machine and/or the environment information of the electronic equipment. The structure of the imprinter herein includes the macrostructure and/or the microstructure of the imprinter.
In this embodiment, for a scene that an NFC card is needed to swipe, according to different types of NFC cards, the structures of the corresponding swipe machines and the external environment are different. For example, in a subway scene, the card swiping machine is a gate, the external environment is the environment of the subway entrance and exit station (in the bus scene, the external environment is the composition of a specific area of the bus, etc.), and in the scene of the access control card, the card swiping machine is a small card swiping machine arranged on a door, and the external environment is a corridor environment (such as a metal gate, a reinforced concrete wall, etc.). The structure of the card swiping machine corresponding to different scenes and the external environment are usually fixed, so that the type of the NFC card to be selected can be determined according to the environment information and the structure information of the card swiping machine.
In S102 of a specific embodiment, in the case that the first scene information matches the target scene model, the method further includes: and training the target scene model according to the first scene information.
In this embodiment, when the first scene information is successfully matched with the scene model, the first scene information does not represent that the first scene information completely conforms to the scene model, and there may be a certain difference between the first scene information and the scene model, for example, the scene information that the scene model depends on when being constructed does not include raindrops on the card swipe, and the first scene information includes raindrops on the card swipe. Therefore, the scene model can be continuously improved by continuously training the scene model through the first scene information, so that the scene model can be correctly matched subsequently under various different conditions (such as rain, stain and the like), and the accuracy of automatic switching of the NFC card is improved.
It should be noted that, for a part of NFC cards, a card swiping scene may not have a fixed environmental characteristic, for example, when the NFC card is a bank card, the NFC card may swipe the card in various stores, and at this time, it is not convenient enough to use environmental information as the scene information, but the structure of the card swiping machine corresponding to the bank card is basically fixed, so in this case, the scene model bound by the bank card may only include the structure information of the card swiping machine. In other embodiments, some NFC card bound scene models may also contain only context information. The content contained in the scene model bound by the NFC card depends on the type and the application scene of the NFC card.
In addition, in a plurality of NFC cards included in the same electronic device, the scene model bound to each NFC card may be the same type of information, for example, both include the structure information of the card swiping machine and the environment information where the electronic device is located, or the scene model bound to each NFC card may also include different types of information, for example, the entrance guard card only includes the structure information of the card swiping machine, the bank card only includes the environment information, and the like, which is not limited in the present invention.
In some embodiments of the present invention, after S101 and before S102, the method further includes:
matching the first scene information with a preset scene model respectively to obtain a successfully matched target scene model; and presetting the scene model as at least one scene model bound by the NFC card.
The scene model is a model constructed according to a machine learning algorithm trained according to scene information, each scene model can represent scene characteristics of a place, and some NFC cards (such as bus cards) can be used in multiple scenes (such as subways and buses), so that the NFC cards used in the multiple scenes are correspondingly bound with multiple scene models to respectively match different use scenes.
In an embodiment, the matching the first scene information with the preset scene model respectively to obtain a successfully matched target scene model includes:
and respectively matching the first scene information with at least one scene model bound with each NFC card according to the preset card sequence to obtain a target scene model.
In this embodiment, matching is not performed randomly, but performed according to a preset card sequence, where the preset card sequence generally meets the requirement of a user or is set from high to low according to the probability of successful matching, so matching is performed according to the preset card sequence, and the matching success efficiency is high.
Specifically, the preset card sequence may be: and the card sequence included in the third operation input by the user enables the obtained preset card sequence to meet the use requirement of the user. Alternatively, the preset card ordering may also be: and sequencing according to the use frequency of each NFC card from high to low.
It can be understood that the sequence set by the user or the sequence automatically performed according to the use frequency reflects the probability that the user uses the NFC card, and the sequence set by the user is ranked according to the level of the use requirement of the user, and the top use requirement is the largest, and the ranking according to the use frequency is also the top use frequency. Therefore, sequential matching is performed according to the card sequencing, and matching can be successfully performed in the matching process of the first several NFC cards, so that the matching efficiency is high.
Of course, in other embodiments, the matching may be performed in other orders, for example, the current default card is matched first, and after the matching fails, the next NFC card of the default card is matched according to the card sequence preset by the electronic device. The present invention does not limit the matching order of the NFC cards.
Based on the foregoing embodiments, some embodiments of the present invention provide a method for constructing a scene model, and referring to fig. 2, fig. 2 shows a flowchart illustrating binding of a scene model according to an embodiment of the present invention. The card swiping method further comprises the following steps:
s201: under the condition that the NFC function is called, judging whether NFC card switching operation input by a user is received; here, the NFC card switching operation herein refers to an operation of manually switching an NFC card as a default card. Executing S202 under the condition of receiving the NFC card switching operation; executing S101 under the condition that the NFC card switching operation is not received; the subsequent steps are the same as those in the previous embodiment, and are not described herein again.
S202: acquiring second scene information of the electronic equipment through electromagnetic wave detection operation of a radar;
s203: constructing a scene model by using the second scene information;
s204: and binding the constructed scene model with the first NFC card selected by the NFC card switching operation.
In this embodiment, after the user manually switches the NFC card, the currently selected first NFC card is a card that the user thinks needs to use in the current scene, and the second scene information of the electronic device, which is obtained at this time, is the scene information that matches the first NFC card, so that the scene model of the first NFC card is constructed according to the second scene information, and the scene model bound to each NFC card can conform to the actual usage scene of the user.
It should be noted that, in this embodiment, the NFC function is also called when the NFC card switching operation input by the user is received, and therefore, in this embodiment, when the NFC card switching operation input by the user is received, the following operations S201 to S204 are executed, and then if a card swiping operation is required (for example, the distance from the card swiping machine is smaller than the preset sensing distance), the card swiping operation is directly performed by using the first NFC card, and if the card swiping operation is not required, the operation is stopped at S204. And in the case that the NFC card switching operation input by the user is not received, the operations of steps S101 to S102 are performed.
In a specific embodiment, the NFC card switching operation may be an operation of dragging the NFC card to a preset display area, or may also be an operation of touching the NFC card through a preset touch manner, where the preset touch manner may be a single click, a double click, or the like. The above are only some specific implementation manners, and the specific content of the NFC card switching operation is not limited in the present invention.
In an embodiment, after step S202 and before step S203, the method further includes:
and under the condition that the second scene information is matched with the scene model bound by the first NFC card, training the scene model bound by the first NFC card according to the second scene information.
In this embodiment, at least one scene model bound to each NFC card is a model constructed by a machine learning algorithm, and after the models are constructed, the models need to be trained by using enough samples, and the scene models can have higher accuracy through continuous training and learning. However, in the case that the first NFC card is bound with a plurality of scene models, the second scene information can only be used to train the scene model bound by the first NFC card and matching with the second scene information.
In another embodiment, S203 may include:
and under the condition that the first NFC card is not bound with the scene model or the second scene information is not matched with the scene model bound with the first NFC card, constructing the scene model by utilizing the second scene information.
Based on the foregoing embodiment, when the first NFC card is not bound with a scene model, or the currently acquired scene information does not conform to the previously bound scene model, it indicates that the scene where the electronic device is located at this time is a new scene, and therefore a new scene model needs to be created to bind with the first NFC card. By the mode, the number of the scene models bound by the NFC card can be continuously improved, so that the NFC card can be automatically switched to a proper NFC card for swiping in any scene subsequently, and the operation of a user is simplified.
In the embodiment of the present invention, because the second scenario information and the first scenario information are only different in the time for triggering the acquisition, and the contents of the two scenarios are not different, the second scenario information may also be implemented by a millimeter wave radar or other radars, and the second scenario information may also include the structure information of the card swipe and/or the environment information where the electronic device is located. For the second scene information, reference may be made to the foregoing description of the first scene information, which is not described herein again.
In addition, when the second environment information is matched with the environment model bound to the first NFC card, matching may also be performed according to the above manner, which is not described herein again.
In order to implement the above method embodiment, an embodiment of the present invention provides a card swiping device applied to an electronic device, and referring to fig. 3, fig. 3 shows a schematic structural diagram of the card swiping device provided in the embodiment of the present invention. This device of punching card includes:
the first information acquisition module 301 is configured to acquire first scene information where the electronic device is located through an electromagnetic wave detection operation of a radar when the NFC function is invoked;
the card swiping module 302 is configured to perform data exchange with the card swiping machine through the NFC card corresponding to the target scene model when the first scene information is matched with the target scene model.
In the embodiment of the invention, the corresponding scene models are respectively bound for each NFC card in advance, when the NFC function is called, the scene information of the current electronic equipment is acquired, the acquired scene information is matched with at least one scene model bound by each NFC card, and after the matching is successful, the currently acquired scene information is shown to be in accordance with the use scene of the NFC card successfully matched, so that the NFC card successfully matched is directly used for swiping the card subsequently. Therefore, in the embodiment, the NFC card which accords with the current scene can be automatically determined, so that the operation that a user frequently switches the NFC card due to different use scenes is reduced, and the convenience of the user when the user swipes the card by using the NFC function is improved.
In an embodiment, the manner for invoking NFC may include any one or more of the following: the electronic equipment calls the NFC function by default after being started (namely the NFC function is always in the starting state), the user manually calls the NFC function, and the distance between the electronic equipment and the card swiping machine is smaller than the induction distance of the NFC.
In the embodiment of the present invention, the NFC card includes any one or more of the following: bus cards, access cards, bank cards, and the like. The system can also comprise a plurality of different bank cards, for example, a user needs to use a specific bank card to use the special bank card in a specific restaurant to use the special bank card, and the embodiment of the invention can realize that the user can automatically switch to the appointed bank card to pay when consuming in the restaurant, thereby improving the convenience when the user consumes.
In a specific embodiment, the radar is a millimeter wave radar.
In this embodiment, adopt millimeter wave radar's material to detect the function and obtain scene information, can reduce the interference that the external world (like dust, rainwater etc.) caused, the imaging reliability is high, and the target identification precision is high to along with radar chip's miniaturization, make millimeter wave radar's small, be convenient for integrate to electronic equipment in. In other embodiments, the scene information may also be obtained by other radars with higher precision than the millimeter wave, for example, a terahertz radar, and the like, which is not limited in the present invention.
Further, the first scene information includes: the structure information of the card swiping machine and/or the environment information of the electronic equipment. The structure of the imprinter herein includes the macrostructure and/or the microstructure of the imprinter.
In this embodiment, for a scene that an NFC card is needed to swipe, according to different types of NFC cards, the structures of the corresponding swipe machines and the external environment are different. For example, in a subway scene, the card swiping machine is a gate, the external environment is the environment of the subway entrance and exit station (in the bus scene, the external environment is the composition of a specific area of the bus, etc.), and in the scene of the access control card, the card swiping machine is a small card swiping machine arranged on a door, and the external environment is a corridor environment (such as a metal gate, a reinforced concrete wall, etc.). The structure of the card swiping machine corresponding to different scenes and the external environment are usually fixed, so that the type of the NFC card to be selected can be determined according to the environment information and the structure information of the card swiping machine.
In a specific embodiment, the apparatus further comprises:
and the first scene training module is used for training the target scene model according to the first scene information.
In this embodiment, when the first scene information is successfully matched with the scene model, the first scene information does not represent that the first scene information completely conforms to the scene model, and there may be a certain difference between the first scene information and the scene model, for example, the scene information that the scene model depends on when being constructed does not include raindrops on the card swipe, and the first scene information includes raindrops on the card swipe. Therefore, the scene model can be continuously improved by continuously training the scene model through the first scene information, so that the scene model can be correctly matched subsequently under various different conditions (such as rain, stain and the like), and the accuracy of automatic switching of the NFC card is improved.
In a specific embodiment, the apparatus further comprises:
the scene matching module 303 is configured to match the first scene information with a preset scene model respectively to obtain a successfully matched target scene model; and presetting the scene model as at least one scene model bound by the NFC card.
The scene model is a model constructed according to a machine learning algorithm trained according to scene information, each scene model can represent scene characteristics of a place, and some NFC cards (such as bus cards) can be used in multiple scenes (such as subways and buses), so that the NFC cards used in the multiple scenes are correspondingly bound with multiple scene models to respectively match different use scenes.
In an embodiment, the scene matching module 303 is specifically configured to:
and respectively matching the first scene information with at least one scene model bound with each NFC card according to the preset card sequence to obtain a target scene model.
In this embodiment, matching is not performed randomly, but performed according to a preset card sequence, where the preset card sequence generally meets the requirement of a user or is set from high to low according to the probability of successful matching, so matching is performed according to the preset card sequence, and the matching success efficiency is high.
Based on the foregoing embodiments, in some embodiments of the present invention, a process for constructing a scene model is provided, which is shown in fig. 4, where fig. 4 illustrates a schematic structural diagram of another card swiping device provided in an embodiment of the present invention; this device of punching the card still includes:
a determining module 401, configured to determine whether an NFC card switching operation input by a user is received under a condition that an NFC function is invoked; under the condition of receiving the NFC card switching operation, triggering a second information acquisition module 402; under the condition that the switching operation of the NFC card is not received, triggering a first information acquisition module 301;
a second information obtaining module 402, configured to obtain second scene information where the electronic device is located through an electromagnetic wave detection operation of a radar;
a scene model constructing module 403, configured to construct a scene model using the second scene information;
and a model binding module 404, configured to bind the constructed scene model with the first NFC card selected by the NFC card switching operation.
Here, the NFC card switching operation herein refers to an operation of manually switching an NFC card as a default card.
In this embodiment, after the user manually switches the NFC card, the currently selected first NFC card is a card that the user thinks needs to use in the current scene, and the second scene information of the electronic device, which is obtained at this time, is the scene information that matches the first NFC card, so that the scene model of the first NFC card is constructed according to the second scene information, and the scene model bound to each NFC card can conform to the actual usage scene of the user.
In this embodiment, after the user manually switches the NFC card, the currently selected first NFC card is a card that the user thinks needs to use in the current scene, and the second scene information of the electronic device, which is obtained at this time, is the scene information that matches the first NFC card, so that the scene model of the first NFC card is constructed according to the second scene information, and the scene model bound to each NFC card can conform to the actual usage scene of the user.
In one embodiment, the apparatus further comprises:
and the second scene training module is used for training the scene model bound by the first NFC card according to the second scene information under the condition that the second scene information is matched with the scene model bound by the first NFC card.
In this embodiment, at least one scene model bound to each NFC card is a model constructed by a machine learning algorithm, and after the model is constructed, it needs to be trained by using enough samples, and the scene model can have higher accuracy through continuous training and learning.
In another embodiment, the scene model building module 403 is specifically configured to:
and under the condition that the first NFC card is not bound with the scene model or the second scene information is not matched with the scene model bound with the first NFC card, constructing the scene model by utilizing the second scene information.
Based on the foregoing embodiment, when the first NFC card is not bound with a scene model, or the currently acquired scene information does not conform to the previously bound scene model, it indicates that the scene where the electronic device is located at this time is a new scene, and therefore a new scene model needs to be created to bind with the first NFC card. By the mode, the number of the scene models bound by the NFC card can be continuously improved, so that the NFC card can be automatically switched to a proper NFC card for swiping in any scene subsequently, and the operation of a user is simplified.
In addition, when the second environment information is matched with the environment model bound to the first NFC card, matching may also be performed according to the above manner, which is not described herein again.
The apparatus provided in the embodiment of the present invention can implement each method step implemented in the method embodiments of fig. 1 to fig. 2, and is not described here again to avoid repetition.
In order to implement the card swiping method provided by the above embodiment, fig. 5 shows a hardware structure diagram of an electronic device provided by the embodiment of the present invention.
The electronic device 500 includes, but is not limited to: a near field communication unit 501, a network module 502, an audio output unit 503, an input unit 504, a sensor 505, a display unit 506, a user input unit 507, an interface unit 508, a memory 509, a processor 510, a power supply 511, and the like. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 5 does not constitute a limitation of the electronic device, and that the electronic device may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the electronic device includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
The near field communication unit 501 is configured to, when the near field communication NFC function is called, obtain first scene information where the electronic device is located through an electromagnetic wave detection operation of a radar;
and the processor 510 is configured to perform data exchange with the card swiping machine through the NFC card corresponding to the target scene model when the first scene information matches the target scene model.
In the embodiment of the invention, the corresponding scene models are respectively bound for each NFC card in advance, when the NFC function is called, the scene information of the current electronic equipment is acquired, the acquired scene information is matched with at least one scene model bound by each NFC card, and after the matching is successful, the currently acquired scene information is shown to be in accordance with the use scene of the NFC card successfully matched, so that the NFC card successfully matched is directly used for swiping the card subsequently. Therefore, in the embodiment, the NFC card which accords with the current scene can be automatically determined, so that the operation that a user frequently switches the NFC card due to different use scenes is reduced, and the convenience of the user when the user swipes the card by using the NFC function is improved.
It should be understood that, in the embodiment of the present invention, the nfc unit 501 may be used for receiving and sending signals during information transmission and reception or during a call, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 510; in addition, the uplink data is transmitted to the base station. In general, the near field communication unit 501 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. Further, the near field communication unit 501 may also communicate with a network and other devices through a wireless communication system.
The electronic device provides wireless broadband internet access to the user via the network module 502, such as assisting the user in sending and receiving e-mails, browsing web pages, and accessing streaming media.
The audio output unit 503 may convert audio data received by the near field communication unit 501 or the network module 502 or stored in the memory 509 into an audio signal and output as sound. Also, the audio output unit 503 may also provide audio output related to a specific function performed by the electronic apparatus 500 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 503 includes a speaker, a buzzer, a receiver, and the like.
The input unit 504 is used to receive an audio or video signal. The input Unit 504 may include a Graphics Processing Unit (GPU) 5041 and a microphone 5042, and the Graphics processor 5041 processes image data of a still picture or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 506. The image frames processed by the graphic processor 5041 may be stored in the memory 509 (or other storage medium) or transmitted via the near field communication unit 501 or the network module 502. The microphone 5042 may receive sounds and may be capable of processing such sounds into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the near field communication unit 501 in case of the phone call mode.
The electronic device 500 also includes at least one sensor 505, such as light sensors, motion sensors, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 5061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 5061 and/or a backlight when the electronic device 500 is moved to the ear. As one type of motion sensor, an accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of an electronic device (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 505 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The display unit 506 is used to display information input by the user or information provided to the user. The Display unit 506 may include a Display panel 5061, and the Display panel 5061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 507 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the electronic device. Specifically, the user input unit 507 includes a touch panel 5071 and other input devices 5072. Touch panel 5071, also referred to as a touch screen, may collect touch operations by a user on or near it (e.g., operations by a user on or near touch panel 5071 using a finger, stylus, or any suitable object or attachment). The touch panel 5071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 510, and receives and executes commands sent by the processor 510. In addition, the touch panel 5071 may be implemented in various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 5071, the user input unit 507 may include other input devices 5072. In particular, other input devices 5072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein.
Further, the touch panel 5071 may be overlaid on the display panel 5061, and when the touch panel 5071 detects a touch operation thereon or nearby, the touch operation is transmitted to the processor 510 to determine the type of the touch event, and then the processor 510 provides a corresponding visual output on the display panel 5061 according to the type of the touch event. Although in fig. 5, the touch panel 5071 and the display panel 5061 are two independent components to implement the input and output functions of the electronic device, in some embodiments, the touch panel 5071 and the display panel 5061 may be integrated to implement the input and output functions of the electronic device, and is not limited herein.
The interface unit 508 is an interface for connecting an external device to the electronic apparatus 500. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 508 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the electronic apparatus 500 or may be used to transmit data between the electronic apparatus 500 and external devices.
The memory 509 may be used to store software programs as well as various data. The memory 509 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 509 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device.
The processor 510 is a control center of the electronic device, connects various parts of the whole electronic device by using various interfaces and lines, performs various functions of the electronic device and processes data by running or executing software programs and/or modules stored in the memory 509 and calling data stored in the memory 509, thereby performing overall monitoring of the electronic device. Processor 510 may include one or more processing units; preferably, the processor 510 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 510.
The electronic device 500 may further include a power supply 511 (e.g., a battery) for supplying power to various components, and preferably, the power supply 511 may be logically connected to the processor 510 via a power management system, so as to implement functions of managing charging, discharging, and power consumption via the power management system.
In addition, the electronic device 500 includes some functional modules that are not shown, and are not described in detail herein.
Preferably, an embodiment of the present invention further provides an electronic device, which includes a processor 510, a memory 509, and a computer program that is stored in the memory 509 and can be run on the processor 510, and when the computer program is executed by the processor 510, the processes of the card swiping method embodiment are implemented, and the same technical effect can be achieved, and in order to avoid repetition, details are not described here again.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the card swiping method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
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 apparatus 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 apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (11)

1. A card swiping method is applied to electronic equipment and is characterized by comprising the following steps:
under the condition that the NFC function is called, acquiring first scene information of the electronic equipment through electromagnetic wave detection operation of a radar;
and under the condition that the first scene information is matched with the target scene model, performing data exchange with the card swiping machine through the NFC card corresponding to the target scene model.
2. The method according to claim 1, wherein after the acquiring the first scene information of the electronic device by the electromagnetic wave detection operation of the radar, further comprises:
matching the first scene information with a preset scene model respectively to obtain the successfully matched target scene model; the preset scene model is at least one scene model bound by the NFC card.
3. The method of claim 1, further comprising:
after the NFC function is called, under the condition that NFC card switching operation is received, second scene information where the electronic equipment is located is obtained through electromagnetic wave detection operation of the radar;
constructing a scene model by using the second scene information;
and binding the constructed scene model with the first NFC card selected by the NFC card switching operation.
4. The method according to claim 3, wherein after the obtaining of the second scene information of the electronic device by the electromagnetic wave detection operation of the radar and before the constructing of the scene model by using the second scene information, further comprises:
and under the condition that the second scene information is matched with the scene model bound by the first NFC card, training the scene model bound by the first NFC card according to the second scene information.
5. The method according to claim 3 or 4, wherein the constructing a scene model using the second scene information specifically comprises:
and under the condition that the first NFC card is not bound with a scene model or the second scene information is not matched with the scene model bound with the first NFC card, constructing a scene model by using the second scene information.
6. The method of claim 1, wherein the first scene information comprises: the structure information of the card swiping machine and/or the environment information of the electronic equipment.
7. A card swiping device applied to electronic equipment is characterized by comprising:
the first information acquisition module is used for acquiring first scene information of the electronic equipment through electromagnetic wave detection operation of a radar under the condition that the NFC function is called;
and the card swiping module is used for exchanging data with a card swiping machine through the NFC card corresponding to the target scene model under the condition that the first scene information is matched with the target scene model.
8. The apparatus of claim 7, further comprising:
the scene matching module is used for respectively matching the first scene information with a preset scene model to obtain the target scene model which is successfully matched; the preset scene model is at least one scene model bound by the NFC card.
9. The apparatus of claim 7, further comprising:
the judgment module is used for triggering the second information acquisition module under the condition of receiving the switching operation of the NFC card after the NFC function is called;
the second information acquisition module is used for acquiring second scene information of the electronic equipment through electromagnetic wave detection operation of the radar;
the scene model building module is used for building a scene model by utilizing the second scene information;
and the model binding module is used for binding the constructed scene model with the first NFC card selected by the NFC card switching operation.
10. The method of claim 9, further comprising:
and the second scene training module is used for training the scene model bound by the first NFC card according to the second scene information under the condition that the second scene information is matched with the scene model bound by the first NFC card.
11. An electronic device comprising a processor, a memory, and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the card swiping method according to any one of claims 1 to 6.
CN201910913322.8A 2019-09-25 2019-09-25 Card swiping method and device, electronic equipment and medium Pending CN110795949A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910913322.8A CN110795949A (en) 2019-09-25 2019-09-25 Card swiping method and device, electronic equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910913322.8A CN110795949A (en) 2019-09-25 2019-09-25 Card swiping method and device, electronic equipment and medium

Publications (1)

Publication Number Publication Date
CN110795949A true CN110795949A (en) 2020-02-14

Family

ID=69439718

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910913322.8A Pending CN110795949A (en) 2019-09-25 2019-09-25 Card swiping method and device, electronic equipment and medium

Country Status (1)

Country Link
CN (1) CN110795949A (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111401469A (en) * 2020-03-27 2020-07-10 北京小米移动软件有限公司 Smart card calling method and device and storage medium
CN111464692A (en) * 2020-03-30 2020-07-28 RealMe重庆移动通信有限公司 Near field communication card determination method and device, storage medium and electronic equipment
CN112069848A (en) * 2020-11-12 2020-12-11 深圳市汇顶科技股份有限公司 Card selection method, chip, terminal and storage medium for NFC card simulation mode
CN112188461A (en) * 2020-10-20 2021-01-05 Oppo广东移动通信有限公司 Control method and device for near field communication device, medium and electronic equipment
CN112347799A (en) * 2020-10-16 2021-02-09 歌尔科技有限公司 Multi-NFC (near field communication) card switching method and electronic equipment
CN112511974A (en) * 2020-12-14 2021-03-16 展讯通信(上海)有限公司 NFC card selection method and device and electronic equipment
CN112906411A (en) * 2021-02-02 2021-06-04 中国银联股份有限公司 Service processing method, user terminal, service device, system and storage medium
CN113225676A (en) * 2021-05-25 2021-08-06 深圳市欢太数字科技有限公司 Near field communication setting method and device, mobile terminal and storage medium
CN113364490A (en) * 2020-03-04 2021-09-07 华为技术有限公司 NFC application calling method, electronic equipment and NFC device
CN113361293A (en) * 2021-06-02 2021-09-07 深圳市汇顶科技股份有限公司 Card swiping method, card controller, electronic device and storage medium
CN113409041A (en) * 2020-03-17 2021-09-17 华为技术有限公司 Electronic card selection method and device, terminal and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018133178A1 (en) * 2017-01-20 2018-07-26 华为技术有限公司 Nfc-based data transmission method and mobile device
CN108509660A (en) * 2018-05-29 2018-09-07 维沃移动通信有限公司 A kind of broadcasting object recommendation method and terminal device
CN110012157A (en) * 2019-02-28 2019-07-12 努比亚技术有限公司 A kind of application display alarm method, terminal and computer readable storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018133178A1 (en) * 2017-01-20 2018-07-26 华为技术有限公司 Nfc-based data transmission method and mobile device
CN108509660A (en) * 2018-05-29 2018-09-07 维沃移动通信有限公司 A kind of broadcasting object recommendation method and terminal device
CN110012157A (en) * 2019-02-28 2019-07-12 努比亚技术有限公司 A kind of application display alarm method, terminal and computer readable storage medium

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113364490A (en) * 2020-03-04 2021-09-07 华为技术有限公司 NFC application calling method, electronic equipment and NFC device
CN113364490B (en) * 2020-03-04 2022-07-29 华为技术有限公司 NFC application calling method, electronic equipment and NFC device
WO2021185174A1 (en) * 2020-03-17 2021-09-23 华为技术有限公司 Electronic card selection method and apparatus, terminal, and storage medium
CN113409041A (en) * 2020-03-17 2021-09-17 华为技术有限公司 Electronic card selection method and device, terminal and storage medium
CN111401469A (en) * 2020-03-27 2020-07-10 北京小米移动软件有限公司 Smart card calling method and device and storage medium
CN111464692A (en) * 2020-03-30 2020-07-28 RealMe重庆移动通信有限公司 Near field communication card determination method and device, storage medium and electronic equipment
CN111464692B (en) * 2020-03-30 2021-09-07 RealMe重庆移动通信有限公司 Near field communication card determination method and device, storage medium and electronic equipment
CN112347799A (en) * 2020-10-16 2021-02-09 歌尔科技有限公司 Multi-NFC (near field communication) card switching method and electronic equipment
CN112188461A (en) * 2020-10-20 2021-01-05 Oppo广东移动通信有限公司 Control method and device for near field communication device, medium and electronic equipment
CN112069848B (en) * 2020-11-12 2021-04-30 深圳市汇顶科技股份有限公司 Card selection method, chip, terminal and storage medium for NFC card simulation mode
CN112069848A (en) * 2020-11-12 2020-12-11 深圳市汇顶科技股份有限公司 Card selection method, chip, terminal and storage medium for NFC card simulation mode
CN112511974A (en) * 2020-12-14 2021-03-16 展讯通信(上海)有限公司 NFC card selection method and device and electronic equipment
CN112906411A (en) * 2021-02-02 2021-06-04 中国银联股份有限公司 Service processing method, user terminal, service device, system and storage medium
CN112906411B (en) * 2021-02-02 2024-03-22 中国银联股份有限公司 Service processing method, user terminal, service equipment, system and storage medium
CN113225676A (en) * 2021-05-25 2021-08-06 深圳市欢太数字科技有限公司 Near field communication setting method and device, mobile terminal and storage medium
CN113361293A (en) * 2021-06-02 2021-09-07 深圳市汇顶科技股份有限公司 Card swiping method, card controller, electronic device and storage medium

Similar Documents

Publication Publication Date Title
CN110795949A (en) Card swiping method and device, electronic equipment and medium
CN108255378B (en) Display control method and mobile terminal
CN108536365B (en) Image sharing method and terminal
CN111092990B (en) Application program sharing method, electronic device and storage medium
CN111142723B (en) Icon moving method and electronic equipment
CN111142991A (en) Application function page display method and electronic equipment
CN109284144B (en) Fast application processing method and mobile terminal
CN110830363B (en) Information sharing method and electronic equipment
CN109408072B (en) Application program deleting method and terminal equipment
CN111026484A (en) Application sharing method, first electronic device and computer-readable storage medium
CN109408171B (en) Display control method and terminal
CN110674662A (en) Scanning method and terminal equipment
CN107783747B (en) Interface display processing method and mobile terminal
CN111163224B (en) Voice message playing method and electronic equipment
CN109523253B (en) Payment method and device
CN110730298A (en) Display control method and electronic equipment
CN110519503B (en) Method for acquiring scanned image and mobile terminal
CN108984066B (en) Application icon display method and mobile terminal
CN110752981A (en) Information control method and electronic equipment
CN110908750B (en) Screen capturing method and electronic equipment
CN111163449B (en) Application sharing method, first electronic device and computer-readable storage medium
CN110941469B (en) Application splitting creation method and terminal equipment thereof
CN110167006B (en) Method for controlling application program to use SIM card and terminal equipment
CN111061446A (en) Display method and electronic equipment
CN110837328A (en) Display method and electronic equipment

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