CN109257071B - Equipment control method, device and equipment - Google Patents
Equipment control method, device and equipment Download PDFInfo
- Publication number
- CN109257071B CN109257071B CN201710564132.0A CN201710564132A CN109257071B CN 109257071 B CN109257071 B CN 109257071B CN 201710564132 A CN201710564132 A CN 201710564132A CN 109257071 B CN109257071 B CN 109257071B
- Authority
- CN
- China
- Prior art keywords
- nfc
- simulation mode
- nfc card
- card simulation
- card
- 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.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04B—TRANSMISSION
- H04B5/00—Near-field transmission systems, e.g. inductive or capacitive transmission systems
- H04B5/70—Near-field transmission systems, e.g. inductive or capacitive transmission systems specially adapted for specific purposes
- H04B5/72—Near-field transmission systems, e.g. inductive or capacitive transmission systems specially adapted for specific purposes for local intradevice communication
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K7/00—Methods or arrangements for sensing record carriers, e.g. for reading patterns
- G06K7/10—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
- G06K7/10009—Methods 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/10297—Methods 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 arrangements for handling protocols designed for non-contact record carriers such as RFIDs NFCs, e.g. ISO/IEC 14443 and 18092
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04B—TRANSMISSION
- H04B17/00—Monitoring; Testing
- H04B17/30—Monitoring; Testing of propagation channels
- H04B17/309—Measuring or estimating channel quality parameters
- H04B17/318—Received signal strength
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04B—TRANSMISSION
- H04B5/00—Near-field transmission systems, e.g. inductive or capacitive transmission systems
- H04B5/70—Near-field transmission systems, e.g. inductive or capacitive transmission systems specially adapted for specific purposes
- H04B5/77—Near-field transmission systems, e.g. inductive or capacitive transmission systems specially adapted for specific purposes for interrogation
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Physics & Mathematics (AREA)
- Signal Processing (AREA)
- Toxicology (AREA)
- Electromagnetism (AREA)
- Health & Medical Sciences (AREA)
- Computer Security & Cryptography (AREA)
- Quality & Reliability (AREA)
- General Health & Medical Sciences (AREA)
- Artificial Intelligence (AREA)
- Computer Vision & Pattern Recognition (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Telephone Function (AREA)
- Programmable Controllers (AREA)
Abstract
The present disclosure relates to a device control method, apparatus and device, the device has multiple NFC card emulation modes, the method is used to control the NFC card emulation mode of the device, the method includes: scanning for wireless signals of an environment surrounding the device; detecting whether an NFC radio frequency signal is received; when an NFC radio frequency signal is received, identifying the NFC radio frequency signal to acquire an identification mark corresponding to the NFC radio frequency signal; and starting an NFC card simulation mode corresponding to the identification mark, so that the equipment carries out NFC communication with the sender of the NFC radio frequency signal through the started NFC card simulation mode. When the user moves in different NFC payment scenes, the method can realize automatic switching without manual selection of the user according to the scenes automatically and without user participation, so that the operation convenience of equipment carrying a plurality of NFC cards can be improved.
Description
Technical Field
The present application relates to the technical field of NFC devices, and in particular, to a device control method, apparatus, and device.
Background
In recent years, with the development of NFC (Near Field Communication) technology, functions of card simulation through NFC appear in various devices, such as bank cards, access cards, mobile phones, and the like with built-in NFC chips, where the bank cards with built-in NFC chips can be close to a POS with NFC functions to pay; the access control card with the built-in NFC chip can be close to an access control with an NFC function to perform an unlocking function; the mobile phone with the built-in NFC chip can approach a bus POS machine or other bus payment systems with NFC functions, and bus payment and bus system payment can be easily carried out.
In order to be portable, some small-sized portable wearable devices also have NFC card simulation functions, such as: the bracelet that has NFC card simulation function has been listed as the market, is provided with a plurality of cards such as public transit card and bank card simultaneously in these bracelets, and its main use scene is that to carry out public transit card swiping and the payment of the small amount union pay through NFC.
However, through research on the prior art, the applicant finds that when the bracelet is used in different scenes, different card functions are awakened to require the user to actively perform operation for card selection, for example: when the bus is used, a user is required to select a bus card through touch control or keys firstly and then perform related NFC card swiping behaviors, when the bank card is required to be used for payment, the user is required to manually select the bank card and then perform the related NFC card swiping behaviors, and therefore the user is inconvenient in use scenes.
Disclosure of Invention
The application discloses a device control method, a device and equipment, which aim to solve the problem of inconvenience in use in the background technology.
In order to solve the technical problem, the application discloses the following technical scheme:
a device control method, the device having a plurality of NFC card emulation modes, the method for controlling the NFC card emulation modes of the device, the method comprising:
scanning for wireless signals of an environment surrounding the device;
detecting whether an NFC radio frequency signal is received;
when an NFC radio frequency signal is received, identifying the NFC radio frequency signal to acquire an identification mark corresponding to the NFC radio frequency signal;
and starting an NFC card simulation mode corresponding to the identification mark, so that the equipment carries out NFC communication with the sender of the NFC radio frequency signal through the started NFC card simulation mode.
Optionally, the detecting whether the NFC radio frequency signal is received includes:
detecting whether a wireless signal exists according to a scanning result;
when a wireless signal is received, extracting signal characteristics of the wireless signal;
judging whether the signal characteristic is a preset NFC characteristic or not;
and when the signal characteristic is a preset NFC characteristic, determining that an NFC radio frequency signal is received.
Optionally, the identifying the NFC radio frequency signal to obtain an identification identifier corresponding to the NFC radio frequency signal includes:
determining a preset identification field in the NFC radio frequency signal;
extracting the character string of the preset identification field;
and taking the character string as the identification mark, or searching the identification mark corresponding to the character string according to the corresponding relation between a preset character string and the identification mark.
Optionally, the starting of the NFC card simulation mode corresponding to the identification mark includes:
searching a target NFC card simulation mode corresponding to a preset identification according to the corresponding relation between the identification and the NFC card simulation mode;
acquiring a current NFC card simulation mode of the equipment;
judging whether the current NFC card simulation mode is the target NFC card simulation mode;
when the current NFC card simulation mode is not the target NFC card simulation mode, determining a card identifier of an NFC card corresponding to the target NFC card simulation mode;
and activating an application program corresponding to the card identification to start an NFC card simulation mode corresponding to the identification.
Optionally, the starting of the NFC card simulation mode corresponding to the identification mark includes:
searching a target NFC card simulation mode corresponding to a preset identification according to the corresponding relation between the identification and the NFC card simulation mode;
acquiring a current NFC card simulation mode of the equipment;
judging whether the current NFC card simulation mode is the target NFC card simulation mode;
when the current NFC card simulation mode is not the target NFC card simulation mode, selecting a next card identifier behind a card identifier corresponding to the current NFC card simulation mode according to a preset card identifier sequence of the NFC card;
activating an application program corresponding to the next card identifier, and controlling the equipment to switch to an NFC card simulation mode of the next card identifier pair;
judging whether the NFC card simulation mode corresponding to the next card identification is the target NFC card simulation mode or not;
and when the NFC card simulation mode corresponding to the next card identification is not the target NFC card simulation mode, continuously selecting the next card identification according to a preset NFC card sequence until the switched NFC card simulation mode is the target NFC card simulation mode.
An apparatus for controlling a device having a plurality of NFC card emulation modes, the apparatus for controlling the NFC card emulation modes of the device, the apparatus comprising:
a scanning module for scanning wireless signals of an environment surrounding the device;
the detection module is used for detecting whether an NFC radio frequency signal is received or not;
the identification module is used for identifying the NFC radio frequency signal when receiving the NFC radio frequency signal and acquiring an identification mark corresponding to the NFC radio frequency signal;
and the starting module is used for starting the NFC card simulation mode corresponding to the identification mark, so that the equipment carries out NFC communication with the sender of the NFC radio-frequency signal through the started NFC card simulation mode.
Optionally, the detection module includes:
the wireless signal detection submodule is used for detecting whether a wireless signal exists according to a scanning result;
the characteristic extraction submodule is used for extracting the signal characteristic of the wireless signal when the wireless signal is received;
the characteristic judgment submodule is used for judging whether the signal characteristic is a preset NFC characteristic or not;
and the first determining sub-module is used for determining that the NFC radio frequency signal is received when the signal characteristic is a preset NFC characteristic.
Optionally, the identification module includes:
the field determination submodule is used for determining a preset identification field in the NFC radio frequency signal;
the character string extraction submodule is used for extracting the character string of the preset identification field;
and the second determining submodule is used for taking the character string as the identification mark, or the searching submodule is used for searching the identification mark corresponding to the character string according to the corresponding relation between the preset character string and the identification mark.
Optionally, the starting module includes:
the target mode searching submodule is used for searching a target NFC card simulation mode corresponding to the identification mark according to the corresponding relation between the preset identification mark and the NFC card simulation mode;
a current mode obtaining submodule, configured to obtain a current NFC card simulation mode of the device;
the mode judgment submodule is used for judging whether the current NFC card simulation mode is the target NFC card simulation mode;
a card identifier determining sub-module, configured to determine, when the current NFC card simulation mode is not the target NFC card simulation mode, a card identifier of an NFC card corresponding to the target NFC card simulation mode;
and the program activation submodule is used for activating the application program corresponding to the card identification so as to start the NFC card simulation mode corresponding to the identification.
Optionally, the starting module includes:
the target mode searching submodule is used for searching a target NFC card simulation mode corresponding to the identification mark according to the corresponding relation between the preset identification mark and the NFC card simulation mode;
the current mode searching submodule is used for acquiring a current NFC card simulation mode of the equipment;
the mode judgment submodule is used for judging whether the current NFC card simulation mode is the target NFC card simulation mode;
a card identifier selection sub-module, configured to, when the current NFC card simulation mode is not the target NFC card simulation mode, select, according to a preset card identifier order of the NFC card, a next card identifier located after a card identifier corresponding to the current NFC card simulation mode;
the program activation submodule is used for activating an application program corresponding to the next card identifier and controlling the equipment to be switched to an NFC card simulation mode of the next card identifier pair;
the mode judgment sub-module is further configured to judge whether the NFC card simulation mode corresponding to the next card identifier is the target NFC card simulation mode;
the card identifier selection sub-module is further configured to, when the NFC card simulation mode corresponding to the next card identifier is not the target NFC card simulation mode, continue to select the next card identifier according to a preset NFC card order until the switched NFC card simulation mode is the target NFC card simulation mode.
A device is provided with a plurality of NFC cards, and each NFC card corresponds to an NFC card simulation mode; the apparatus comprises apparatus control means as claimed in any preceding claim.
Optionally, the device is a smart wearable device.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
according to the device control method provided by the embodiment of the application, wireless signals around the intelligent device are firstly scanned, whether NFC radio-frequency signals are received or not is detected, once the NFC radio-frequency signals are received, the identification marks corresponding to the NFC radio-frequency signals can be obtained by identifying the NFC radio-frequency signals, which is equivalent to determining the type of NFC equipment sending the NFC radio-frequency signals, and finally, the intelligent device is directly controlled to start the NFC card simulation mode corresponding to the identification marks, so that the intelligent device can rapidly carry out NFC communication with the NFC equipment of the type.
For the equipment carrying a plurality of NFC cards, when the equipment can be moved by the method, the equipment can be quickly determined to be positioned around the NFC equipment of which type through detecting and analyzing NFC signals, and then the equipment can be automatically switched to a corresponding NFC card simulation mode.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application.
In order to more clearly illustrate the technical solutions in the embodiments or the background art of the present application, the drawings needed to be used in the description of the embodiments or the background art will be briefly described below, and it is obvious for those skilled in the art to obtain other drawings without any inventive exercise.
FIG. 1 is a schematic view of a scenario disclosed in an embodiment of the present application;
FIG. 2 is a schematic flow chart diagram illustrating a method for controlling a device according to an embodiment of the present disclosure;
fig. 3 is a schematic view of another scenario provided in the embodiment of the present application;
fig. 4 is a schematic structural diagram of an apparatus control device according to an embodiment of the present application.
Detailed Description
In order to make those skilled in the art better understand the technical solutions in the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. 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 application.
Fig. 1 is a scene schematic diagram provided in an embodiment of the present application.
As shown in fig. 1, includes: the NFC simulation system comprises a smart device 1 and an NFC device 2, wherein a plurality of NFC cards are arranged in the smart device 1, and each NFC card corresponds to one NFC card simulation mode; be provided with the NFC system of punching the card in NFC device 2, can punch the card to the NFC card or the equipment that has the NFC card, in fig. 1, NFC device 2 uses access control system as an example, and of course NFC device 2 can also include: public transportation system, attendance system, payment system, etc.
Fig. 2 is a schematic flowchart of an apparatus control method according to an embodiment of the present application.
S101, scanning wireless signals of the surrounding environment of the equipment.
For the intelligent device, the main control chip and the receiving antenna can be always in working states, so that the wireless signals can be scanned at any time. In addition, in some scenes, the intelligent device can also sleep the main control chip and only set the receiving antenna in a working state, so that the intelligent device can keep a scanning state at any time in a low power consumption state to scan the wireless signals of the surrounding environment.
S102, whether the NFC radio frequency signal is received or not is detected.
When detecting the wireless signal, it is possible to determine whether the wireless signal is an NFC radio frequency signal by identifying information such as a frequency of the wireless signal.
When receiving the NFC radio frequency signal, S103 identifies the NFC radio frequency signal, and acquires an identification identifier corresponding to the NFC radio frequency signal.
The NFC radio-frequency signal comprises a plurality of fields, in the application, a certain field or a plurality of fields can be preset to serve as identification positions, when the NFC equipment sends the NFC radio-frequency signal, character strings can be set on the fields, and then after the NFC radio-frequency signal is obtained, the character strings of the fields can be extracted, namely the identification corresponding to the NFC radio-frequency signal.
And S104, starting an NFC card simulation mode corresponding to the identification mark, so that the equipment carries out NFC communication with the sender of the NFC radio frequency signal through the started NFC card simulation mode.
For a smart device with multiple NFC cards, in order to implement switching among the multiple NFC cards, the smart device correspondingly has multiple NFC card emulation modes, and once the identification of the NFC radio-frequency signal is determined, that means the type of the NFC device that sends the NFC radio-frequency signal can be determined, and in order to facilitate communication with the NFC device of this type, the corresponding NFC card emulation mode in the smart device can be started.
Referring to fig. 3, the method includes: the house 100, the market/bank 200, the office building 300 and the public transportation system 400, it can be seen from the figure that the user goes to and fro between the house building 100 and the office building 300 by means of the public transportation system 400 and approaches the market/bank 200, wherein, an NFC entrance guard system can be arranged in the house 100, an NFC public transportation payment system can be arranged on the public transportation system 400, an NFC bank payment system can be arranged in the market/bank 200, and an NFC attendance system is arranged in the office building 300.
So when the user in one day, can use different NFC equipment, what the user wore is when containing the intelligent wearing equipment of a plurality of NFC cards, before removing different NFC equipment, utilizes prior art all to need manual NFC in the intelligent wearing equipment to set up, sets up the NFC card that corresponds with NFC equipment to current work card, and the operation is wasted time and energy.
Therefore, in the embodiment of the application, when a user wears the smart device to move, the user can scan surrounding wireless signals at any time, once the wireless signals are determined to be NFC signals, the NFC signals are further identified, identification marks in the NFC signals are determined, the identification marks correspond to the types of the NFC devices to be sent in a one-to-one mode, and after the identification marks are identified, the smart device can be automatically controlled to be switched to a correct NFC card simulation mode so as to be in NFC communication with the NFC devices. For example: when the user moves to the transmitting area of the NFC equipment in the shopping mall, the NFC card corresponding to bank payment can be automatically activated, so that the payment is facilitated; or, when the user moves to the transmitting area of the company access control system, the NFC card corresponding to attendance is automatically activated, so that the attendance is facilitated.
According to the device control method provided by the embodiment of the application, wireless signals around the intelligent device are firstly scanned, whether NFC radio-frequency signals are received or not is detected, once the NFC radio-frequency signals are received, the identification marks corresponding to the NFC radio-frequency signals can be obtained by identifying the NFC radio-frequency signals, which is equivalent to determining the type of NFC equipment sending the NFC radio-frequency signals, and finally, the intelligent device is directly controlled to start the NFC card simulation mode corresponding to the identification marks, so that the intelligent device can rapidly carry out NFC communication with the NFC equipment of the type.
For the equipment carrying a plurality of NFC cards, when the equipment can be moved by the method, the equipment can be quickly determined to be positioned around the NFC equipment of which type through detecting and analyzing NFC signals, and then the equipment can be automatically switched to a corresponding NFC card simulation mode.
In the embodiment of the present application, the foregoing step S102 may include the following steps:
s201, detecting whether a wireless signal exists according to a scanning result;
s202, when a wireless signal is received, extracting the signal characteristics of the wireless signal;
s203, judging whether the signal characteristics are preset NFC characteristics;
and S204, when the signal characteristic is a preset NFC characteristic, determining that an NFC radio frequency signal is received.
In another embodiment of the present application, the foregoing step S103 may include the following steps:
s301, determining a preset identification field in the NFC radio frequency signal;
in this embodiment of the present application, some fields may be reserved in multiple fields of the NFC identification signal as a preset identification field, for example: the end field or the header field may be reserved, and these preset identification fields may be used as a complement to the NFC protocol to notify the smart device and the NFC device in advance, such as: public transport system, bank system, access control system, etc.
S302, extracting the character string of the preset identification field;
and when the preset identification fields are determined, reading the character strings on the preset identification fields.
And S303, taking the character string as the identification mark, or searching the identification mark corresponding to the character string according to the corresponding relation between the preset character string and the identification mark.
When the variety of NFC devices is small, for example: public transit system, bank system and access control system are three, use two numerical values on two fields then can distinguish, then under this condition, just can go out the direct recognition mark as with the character string, for example: 00 corresponds to a public transport system, 01 corresponds to a bank system, and 10 corresponds to an access control system.
When the types of the NFC equipment are more, the corresponding relation between the character strings and the identification marks can be set at a time for the convenience of identification, and therefore after the character strings are determined, the identification marks corresponding to the character strings can be directly searched through the corresponding relation. For example: the identification mark of the public transport system is GJ, but the corresponding character string is 00, the identification mark of the bank system is YH, and the corresponding character string is 01.
In another embodiment of the present application, the aforementioned step S104 may include the following steps:
s401, searching a target NFC card simulation mode corresponding to a preset identification according to the corresponding relation between the identification and the NFC card simulation mode;
s402, acquiring a current NFC card simulation mode of the equipment;
s403, judging whether the current NFC card simulation mode is the target NFC card simulation mode;
s404, when the current NFC card simulation mode is not the target NFC card simulation mode, determining a card identifier of an NFC card corresponding to the target NFC card simulation mode;
s405, activating an application program corresponding to the card identifier to start an NFC card simulation mode corresponding to the identification identifier.
When the method is specifically switched, the target NFC card simulation mode can be directly activated by judging that the current NFC card simulation mode is the target NFC card simulation mode once the current NFC card simulation mode does not meet the requirement, otherwise, the current NFC card simulation mode is in accordance with the requirement, and switching is not needed.
In another embodiment of the present application, the aforementioned step S104 may include the following steps:
s501, searching a target NFC card simulation mode corresponding to a preset identification according to the corresponding relation between the identification and the NFC card simulation mode;
s502, acquiring a current NFC card simulation mode of the equipment;
s503, judging whether the current NFC card simulation mode is the target NFC card simulation mode;
s504, when the current NFC card simulation mode is not the target NFC card simulation mode, selecting a next card identifier behind a card identifier corresponding to the current NFC card simulation mode according to a preset card identifier sequence of the NFC card;
s505, activating an application program corresponding to the next card identifier, and controlling the equipment to switch to an NFC card simulation mode of the next card identifier pair;
s506 determining whether the NFC card emulation mode corresponding to the next card identifier is the target NFC card emulation mode;
and S507, when the NFC card simulation mode corresponding to the next card identifier is not the target NFC card simulation mode, continuously selecting the next card identifier according to a preset NFC card sequence.
Until the switched NFC card simulation mode is the target NFC card simulation mode.
In the method described in the above embodiment, when there are multiple NFC cards and the current NFC card simulation mode does not meet the requirement, the NFC simulation mode is switched one by one according to the preset sequence of the NFC cards, and the NFC card simulation mode that is directly switched is the target NFC card simulation mode and meets the requirement.
As shown in fig. 4, an embodiment of the present application further provides an apparatus for controlling a device, where the device has multiple NFC card emulation modes, and the apparatus is configured to control the NFC card emulation modes of the device, and the apparatus includes:
a scanning module 11, configured to scan a wireless signal of a surrounding environment of the device;
the detection module 12 is configured to detect whether an NFC radio frequency signal is received;
the identification module 13 is configured to identify the NFC radio-frequency signal when receiving the NFC radio-frequency signal, and acquire an identification identifier corresponding to the NFC radio-frequency signal;
and the starting module 14 is configured to start an NFC card simulation mode corresponding to the identification identifier, so that the device performs NFC communication with the sender of the NFC radio-frequency signal through the started NFC card simulation mode.
In an embodiment of the present application, the detection module 12 may include:
a wireless signal detection sub-module 21, configured to detect whether a wireless signal exists according to a scanning result;
a feature extraction submodule 22, configured to, when a wireless signal is received, extract a signal feature of the wireless signal;
the characteristic judgment submodule 23 is configured to judge whether the signal characteristic is a preset NFC characteristic;
and the first determining sub-module 24 is configured to determine that an NFC radio frequency signal is received when the signal characteristic is a preset NFC characteristic.
In an embodiment of the present application, the aforementioned identification module 13 includes:
a field determination submodule 31, configured to determine a preset identification field in the NFC radio-frequency signal;
a character string extraction submodule 32, configured to extract a character string of the preset identification field;
the second determining submodule 33 is configured to use the character string as the identification identifier, or the searching submodule is configured to search the identification identifier corresponding to the character string according to a corresponding relationship between a preset character string and the identification identifier.
In an embodiment of the present application, the aforementioned starting module 14 includes:
the target mode searching submodule 41 is configured to search a target NFC card simulation mode corresponding to the identification identifier according to a correspondence between a preset identification identifier and the NFC card simulation mode;
a current mode obtaining sub-module 42, configured to obtain a current NFC card simulation mode of the device;
a mode determining submodule 43, configured to determine whether the current NFC card simulation mode is the target NFC card simulation mode;
a card identifier determining sub-module 44, configured to determine, when the current NFC card simulation mode is not the target NFC card simulation mode, a card identifier of an NFC card corresponding to the target NFC card simulation mode;
and a program activating sub-module 45, configured to activate an application program corresponding to the card identifier, so as to start an NFC card simulation mode corresponding to the identification identifier.
In an embodiment of the present application, the aforementioned starting module 14 includes:
the target mode searching submodule 51 is configured to search a target NFC card simulation mode corresponding to a preset identification according to a correspondence between the identification and the NFC card simulation mode;
a current mode search submodule 52, configured to obtain a current NFC card simulation mode of the device;
a mode determining submodule 53, configured to determine whether the current NFC card simulation mode is the target NFC card simulation mode;
a card identifier selecting sub-module 54, configured to, when the current NFC card simulation mode is not the target NFC card simulation mode, select, according to a preset card identifier order of the NFC card, a next card identifier located after a card identifier corresponding to the current NFC card simulation mode;
a program activating sub-module 55, configured to activate an application program corresponding to a next card identifier, and control the device to switch to an NFC card simulation mode of a next card identifier pair;
the mode determining sub-module 53 is further configured to determine whether the NFC card simulation mode corresponding to the next card identifier is the target NFC card simulation mode;
the card identifier selecting sub-module 54 is further configured to, when the NFC card simulation mode corresponding to the next card identifier is not the target NFC card simulation mode, continue to select the next card identifier according to a preset NFC card sequence until the switched NFC card simulation mode is the target NFC card simulation mode.
The embodiment of the application also provides equipment, wherein a plurality of NFC cards are arranged in the equipment, and each NFC card corresponds to one NFC card simulation mode; the apparatus comprises apparatus control means as described in any preceding embodiment.
In this embodiment of the application, the foregoing device is an intelligent wearable device, for example: smart bracelets, smart watches, smart media, smart collars, and the like.
For convenience of description, the above devices are described as being divided into various units by function, and are described separately. Of course, the functionality of the units may be implemented in one or more software and/or hardware when implementing the present application.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for apparatus or system embodiments, since they are substantially similar to method embodiments, they are described in relative terms, as long as they are described in partial descriptions of method embodiments. The above-described embodiments of the apparatus and system are merely illustrative, and the units described as separate parts may or may not be physically separate, and the parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
It is noted that, in this document, relational terms such as "first" and "second," and the like, may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, 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 identical elements in a process, method, article, or apparatus that comprises the element.
The above description is merely exemplary of the present application and is presented to enable those skilled in the art to understand and practice the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims (10)
1. A device control method, wherein the device has a plurality of NFC card emulation modes, the method for controlling the NFC card emulation modes of the device, the method comprising:
scanning for wireless signals of an environment surrounding the device;
detecting whether an NFC radio frequency signal is received;
when an NFC radio frequency signal is received, identifying the NFC radio frequency signal to acquire an identification mark corresponding to the NFC radio frequency signal;
starting an NFC card simulation mode corresponding to the identification mark, so that the equipment carries out NFC communication with a sender of the NFC radio frequency signal through the started NFC card simulation mode;
wherein the starting of the NFC card simulation mode corresponding to the identification mark includes:
searching a target NFC card simulation mode corresponding to a preset identification according to the corresponding relation between the identification and the NFC card simulation mode;
acquiring a current NFC card simulation mode of the equipment;
judging whether the current NFC card simulation mode is the target NFC card simulation mode;
when the current NFC card simulation mode is not the target NFC card simulation mode, selecting a next card identifier behind a card identifier corresponding to the current NFC card simulation mode according to a preset card identifier sequence of the NFC card;
activating an application program corresponding to the next card identifier, and controlling the equipment to switch to an NFC card simulation mode of the next card identifier pair;
judging whether the NFC card simulation mode corresponding to the next card identification is the target NFC card simulation mode or not;
and when the NFC card simulation mode corresponding to the next card identification is not the target NFC card simulation mode, continuously selecting the next card identification according to a preset NFC card sequence until the switched NFC card simulation mode is the target NFC card simulation mode.
2. The method of claim 1, wherein the detecting whether the NFC radio frequency signal is received comprises:
detecting whether a wireless signal exists according to a scanning result;
when a wireless signal is received, extracting signal characteristics of the wireless signal;
judging whether the signal characteristic is a preset NFC characteristic or not;
and when the signal characteristic is a preset NFC characteristic, determining that an NFC radio frequency signal is received.
3. The method according to claim 1, wherein the identifying the NFC radio-frequency signal and obtaining the identification corresponding to the NFC radio-frequency signal includes:
determining a preset identification field in the NFC radio frequency signal;
extracting the character string of the preset identification field;
and taking the character string as the identification mark, or searching the identification mark corresponding to the character string according to the corresponding relation between a preset character string and the identification mark.
4. The method according to any of claims 1-3, wherein said initiating an NFC card emulation mode corresponding to said identification comprises:
searching a target NFC card simulation mode corresponding to a preset identification according to the corresponding relation between the identification and the NFC card simulation mode;
acquiring a current NFC card simulation mode of the equipment;
judging whether the current NFC card simulation mode is the target NFC card simulation mode;
when the current NFC card simulation mode is not the target NFC card simulation mode, determining a card identifier of an NFC card corresponding to the target NFC card simulation mode;
and activating an application program corresponding to the card identification to start an NFC card simulation mode corresponding to the identification.
5. An apparatus for controlling a device having a plurality of NFC card emulation modes, the apparatus being configured to control the NFC card emulation modes of the device, the apparatus comprising:
a scanning module for scanning wireless signals of an environment surrounding the device;
the detection module is used for detecting whether an NFC radio frequency signal is received or not;
the identification module is used for identifying the NFC radio frequency signal when receiving the NFC radio frequency signal and acquiring an identification mark corresponding to the NFC radio frequency signal;
the starting module is used for starting an NFC card simulation mode corresponding to the identification mark so that the equipment can carry out NFC communication with a sender of the NFC radio-frequency signal through the started NFC card simulation mode;
wherein the starting module comprises:
the target mode searching submodule is used for searching a target NFC card simulation mode corresponding to the identification mark according to the corresponding relation between the preset identification mark and the NFC card simulation mode;
the current mode searching submodule is used for acquiring a current NFC card simulation mode of the equipment;
the mode judgment submodule is used for judging whether the current NFC card simulation mode is the target NFC card simulation mode;
a card identifier selection sub-module, configured to, when the current NFC card simulation mode is not the target NFC card simulation mode, select, according to a preset card identifier order of the NFC card, a next card identifier located after a card identifier corresponding to the current NFC card simulation mode;
the program activation submodule is used for activating an application program corresponding to the next card identifier and controlling the equipment to be switched to an NFC card simulation mode of the next card identifier pair;
the mode judgment sub-module is further configured to judge whether the NFC card simulation mode corresponding to the next card identifier is the target NFC card simulation mode;
the card identifier selection sub-module is further configured to, when the NFC card simulation mode corresponding to the next card identifier is not the target NFC card simulation mode, continue to select the next card identifier according to a preset NFC card order until the switched NFC card simulation mode is the target NFC card simulation mode.
6. The device control apparatus according to claim 5, wherein the detection module includes:
the wireless signal detection submodule is used for detecting whether a wireless signal exists according to a scanning result;
the characteristic extraction submodule is used for extracting the signal characteristic of the wireless signal when the wireless signal is received;
the characteristic judgment submodule is used for judging whether the signal characteristic is a preset NFC characteristic or not;
and the first determining sub-module is used for determining that the NFC radio frequency signal is received when the signal characteristic is a preset NFC characteristic.
7. The device control apparatus of claim 5, wherein the identification module comprises:
the field determination submodule is used for determining a preset identification field in the NFC radio frequency signal;
the character string extraction submodule is used for extracting the character string of the preset identification field;
and the second determining submodule is used for taking the character string as the identification mark, or the searching submodule is used for searching the identification mark corresponding to the character string according to the corresponding relation between the preset character string and the identification mark.
8. The device control apparatus according to any one of claims 5 to 7, wherein the starting module includes:
the target mode searching submodule is used for searching a target NFC card simulation mode corresponding to the identification mark according to the corresponding relation between the preset identification mark and the NFC card simulation mode;
a current mode obtaining submodule, configured to obtain a current NFC card simulation mode of the device;
the mode judgment submodule is used for judging whether the current NFC card simulation mode is the target NFC card simulation mode;
a card identifier determining sub-module, configured to determine, when the current NFC card simulation mode is not the target NFC card simulation mode, a card identifier of an NFC card corresponding to the target NFC card simulation mode;
and the program activation submodule is used for activating the application program corresponding to the card identification so as to start the NFC card simulation mode corresponding to the identification.
9. A device is characterized in that a plurality of NFC cards are arranged in the device, and each NFC card corresponds to an NFC card simulation mode; the device comprises a device control apparatus according to any one of claims 5-8.
10. The device of claim 9, wherein the device is a smart wearable device.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710564132.0A CN109257071B (en) | 2017-07-12 | 2017-07-12 | Equipment control method, device and equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710564132.0A CN109257071B (en) | 2017-07-12 | 2017-07-12 | Equipment control method, device and equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109257071A CN109257071A (en) | 2019-01-22 |
CN109257071B true CN109257071B (en) | 2021-10-22 |
Family
ID=65051067
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710564132.0A Active CN109257071B (en) | 2017-07-12 | 2017-07-12 | Equipment control method, device and equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109257071B (en) |
Families Citing this family (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US11977946B2 (en) | 2018-11-01 | 2024-05-07 | Huawei Technologies Co., Ltd. | Method for automatically activating NFC application and terminal |
CN110536274B (en) * | 2019-08-06 | 2022-11-25 | 拉卡拉支付股份有限公司 | NFC device control method and device, NFC device and storage medium |
CN110381443B (en) | 2019-09-05 | 2022-04-22 | 北京小米移动软件有限公司 | Near field communication card activation method and device |
CN110673896A (en) | 2019-09-29 | 2020-01-10 | 北京小米移动软件有限公司 | Near field communication card activation method and device |
CN113494211A (en) * | 2020-04-01 | 2021-10-12 | 深南电路股份有限公司 | Control method of intelligent lock, intelligent lock and radio frequency identification device |
CN111581994B (en) * | 2020-05-06 | 2024-05-03 | 维沃移动通信有限公司 | Near field communication NFC communication method and device and electronic equipment |
CN114466337B (en) * | 2020-11-09 | 2025-05-13 | Oppo广东移动通信有限公司 | Analog card switching method, device, electronic device and storage medium for near field communication |
CN112528695B (en) * | 2020-12-18 | 2024-03-15 | 北京元心科技有限公司 | Identification method, device, equipment and computer readable storage medium |
CN113312934B (en) * | 2021-05-26 | 2023-04-25 | 维沃移动通信有限公司 | NFC analog card selection method, device, electronic equipment and storage medium |
CN113536817A (en) * | 2021-06-30 | 2021-10-22 | 马昊伯 | NFC access control card automatic switching system based on GPS positioning technology |
CN113486684A (en) * | 2021-06-30 | 2021-10-08 | 马昊伯 | NFC access control card automatic and rapid switching method and system |
CN113645597B (en) * | 2021-08-06 | 2024-09-06 | Oppo广东移动通信有限公司 | NFC communication processing method, device, storage medium and electronic device |
CN113840279B (en) * | 2021-09-22 | 2024-05-14 | Oppo广东移动通信有限公司 | Analog card activation method, device, terminal and storage medium |
CN114519407B (en) * | 2022-01-10 | 2024-10-29 | 维沃移动通信有限公司 | Display control method, display control device, electronic equipment and medium |
CN115567906B (en) * | 2022-08-31 | 2025-02-11 | 深圳市雪球科技有限公司 | Virtual card switching method, device, system, electronic device and storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1808462A (en) * | 2004-12-20 | 2006-07-26 | 韩国电子通信研究院 | Rfid reader interface and event management apparatus for supporting multi-protocol-based heterogeneous readers and method therefor |
CN1957359A (en) * | 2004-07-02 | 2007-05-02 | 诺基亚公司 | Initiating Actions Expressed in Compressed Action Language |
CN102346861A (en) * | 2011-09-16 | 2012-02-08 | 中兴通讯股份有限公司 | Method and terminal for managing RFID (Radio Frequency Identification Device) card |
CN104318286A (en) * | 2014-10-31 | 2015-01-28 | 东莞宇龙通信科技有限公司 | NFC label data management method and system and terminal |
CN105490708A (en) * | 2015-12-09 | 2016-04-13 | 广东欧珀移动通信有限公司 | Method and device for reading and writing smart card |
CN105491243A (en) * | 2016-01-18 | 2016-04-13 | 努比亚技术有限公司 | NFC mobile terminal and NFC simulation card switching control method |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9819401B2 (en) * | 2015-09-24 | 2017-11-14 | Intel IP Corporation | Highly selective low-power card detector for near field communications (NFC) |
-
2017
- 2017-07-12 CN CN201710564132.0A patent/CN109257071B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1957359A (en) * | 2004-07-02 | 2007-05-02 | 诺基亚公司 | Initiating Actions Expressed in Compressed Action Language |
CN1808462A (en) * | 2004-12-20 | 2006-07-26 | 韩国电子通信研究院 | Rfid reader interface and event management apparatus for supporting multi-protocol-based heterogeneous readers and method therefor |
CN102346861A (en) * | 2011-09-16 | 2012-02-08 | 中兴通讯股份有限公司 | Method and terminal for managing RFID (Radio Frequency Identification Device) card |
CN104318286A (en) * | 2014-10-31 | 2015-01-28 | 东莞宇龙通信科技有限公司 | NFC label data management method and system and terminal |
CN105490708A (en) * | 2015-12-09 | 2016-04-13 | 广东欧珀移动通信有限公司 | Method and device for reading and writing smart card |
CN105491243A (en) * | 2016-01-18 | 2016-04-13 | 努比亚技术有限公司 | NFC mobile terminal and NFC simulation card switching control method |
Also Published As
Publication number | Publication date |
---|---|
CN109257071A (en) | 2019-01-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109257071B (en) | Equipment control method, device and equipment | |
EP2986037A1 (en) | A method for detecting manipulation by a user of a device provided with a communication tag, corresponding computer program product, user terminal, device, and system | |
KR100800722B1 (en) | Method and system to check the location of lost mobile terminal | |
CN101772215B (en) | Support mobile terminal and the near field communication method thereof of near-field communication | |
CN102215050B (en) | Detection method for radio-frequency SIM (Subscriber Identity Module) card collision with low-frequency magnetic communication | |
US20140176306A1 (en) | Near-field-communication (nfc) enabled mobile device and operation method thereof | |
CN111464692A (en) | Near field communication card determination method and device, storage medium and electronic equipment | |
RU2013103453A (en) | METHOD AND DEVICE FOR PREVENTING LOSS OF SUBJECT AND QUICK SEARCH FOR SUBJECT | |
US20170154327A1 (en) | Mobile Payment Method and Apparatus and Near Field Communication Device | |
CN105321330A (en) | Intelligent household equipment, binding method, device and system thereof and mobile terminal | |
CN104580534B (en) | Information processing method, device and electronic equipment | |
CN104268129A (en) | Message reply method and message reply device | |
CN104392500A (en) | Checking-in method | |
CN104902434A (en) | Information processing method, information processing device and information processing system | |
CN102103616A (en) | Method and device for implementing application of NFC (near-field communication) mobile terminal reader | |
CN104346838A (en) | Terminal and system | |
KR20080023712A (en) | Device for controlling wireless communication function in mobile communication terminal having authentication information card and short-range wireless communication chip | |
CN104869562A (en) | Information transmission method, device and system | |
CN104298902A (en) | Method, device and equipment for displaying applications | |
CN107274178B (en) | Network switching method and related product | |
KR20140128172A (en) | An appratus for processing credit card information and a method for operating it | |
KR102005057B1 (en) | Selective Receiving Method for BLE Beacon Service Information and BLE Beacon Service System using the Same | |
CN105809078B (en) | Method for preventing repeated payment transaction between different-frequency cards executed by double-frequency card reader and double-frequency card reader | |
CN106027736B (en) | Address book marking method and device | |
CN110121856A (en) | Control area configuration method and device |
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 | ||
TR01 | Transfer of patent right | ||
TR01 | Transfer of patent right |
Effective date of registration: 20230419 Address after: 809, Block A, Zhongguan Times Square, No. 4168 Liuxian Avenue, Pingshan Community, Taoyuan Street, Nanshan District, Shenzhen City, Guangdong Province, 518055 Patentee after: Guangdong Neuis Technology Co.,Ltd. Address before: 518054 Room 201, building A, 1 Bay Road, Shenzhen Hong Kong cooperation zone, Qianhai, Shenzhen, Guangdong, Nanshan District Patentee before: SHENZHEN RUYI EXPLORATION TECHNOLOGY CO.,LTD. |