WO2022012616A1 - 近场通信nfc的信息显示方法、装置及电子设备 - Google Patents

近场通信nfc的信息显示方法、装置及电子设备 Download PDF

Info

Publication number
WO2022012616A1
WO2022012616A1 PCT/CN2021/106437 CN2021106437W WO2022012616A1 WO 2022012616 A1 WO2022012616 A1 WO 2022012616A1 CN 2021106437 W CN2021106437 W CN 2021106437W WO 2022012616 A1 WO2022012616 A1 WO 2022012616A1
Authority
WO
WIPO (PCT)
Prior art keywords
nfc
card
nfc card
information
signal
Prior art date
Application number
PCT/CN2021/106437
Other languages
English (en)
French (fr)
Inventor
李雪锋
Original Assignee
维沃移动通信有限公司
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 维沃移动通信有限公司 filed Critical 维沃移动通信有限公司
Publication of WO2022012616A1 publication Critical patent/WO2022012616A1/zh

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/10237Methods 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 reader and the record carrier being capable of selectively switching between reader and record carrier appearance, e.g. in near field communication [NFC] devices where the NFC device may function as an RFID reader or as an RFID tag
    • 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/10475Methods 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 arrangements to facilitate interaction with further interrogation devices, e.g. such that at least two interrogation devices may function and cooperate in a network of such devices

Definitions

  • the present application relates to the technical field of electronic products, and in particular, to a near field communication NFC information display method, device and electronic device.
  • NFC Near Field Communication
  • BLE Bluetooth Low Energy
  • NFC can be used to simulate bus cards, access control cards, bank cards, and ID cards. For example, if an electronic device has the function of simulating an access control card, it is necessary to copy all the simulated access control cards in advance.
  • the access control card After the access control card is successfully copied, it has the function of an access control card, which can be used to swipe the access control card.
  • the electronic device When the electronic device duplicates the access control card, it may fail to copy the card, or when the electronic device uses the simulated access control card to swipe the access control card, the card may fail to swipe, and the authentication between the electronic device and the access control card fails, or When the authentication between the electronic device and the card reader fails, the user may need to perform the authentication operation repeatedly for many times, which increases the user's operation time and operation steps.
  • the embodiments of the present application provide a near field communication NFC information display method, device, and electronic device, so as to solve the problem that when authentication between the electronic device and the access control card or authentication between the electronic device and the card reader fails, the user
  • the authentication operation may need to be repeated many times, which leads to the problem of increased operation time and operation steps of the user.
  • an embodiment of the present application provides a near field communication NFC information display method, including:
  • the target device includes an NFC card reader or an NFC card
  • an embodiment of the present application provides a near field communication NFC information display device, including:
  • a receiving module configured to receive a first NFC signal sent by a target device; wherein, the target device includes an NFC card reader or an NFC card;
  • a display module configured to display target prompt information when the first NFC signal does not meet the target response condition corresponding to the first NFC signal.
  • embodiments of the present application provide an electronic device, the electronic device includes a processor, a memory, and a program or instruction stored on the memory and executable on the processor, the program or instruction being The processor implements the steps of the method according to the first aspect when executed.
  • an embodiment of the present application provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or instruction is executed by a processor, the steps of the method according to the first aspect are implemented .
  • an embodiment of the present application provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction, and implement the first aspect the method described.
  • an embodiment of the present application provides a computer software product, the computer software product is stored in a non-volatile storage medium, and the software product is configured to be executed by at least one processor to implement the first The steps of the method of the aspect.
  • an embodiment of the present application provides an electronic device, where the electronic device is configured to execute the method described in the first aspect.
  • the first NFC signal sent by the target device is received; in the case that the first NFC signal does not meet the target response condition corresponding to the first NFC signal, the target prompt information is displayed.
  • the target prompt information is displayed.
  • FIG. 1 is a flowchart of a near field communication NFC information display method according to an embodiment of the present application
  • FIG. 2 is a flowchart of an instruction detection method according to an embodiment of the present application.
  • FIG 3 is one of the schematic diagrams of target prompt information in an embodiment of the present application.
  • FIG. 4 is a schematic diagram of a data interaction process in the process of copying an access control card according to an embodiment of the present application
  • FIG. 5 is the second schematic diagram of target prompt information according to an embodiment of the present application.
  • FIG. 6 is a schematic diagram of a data interaction process in a door brushing process according to an embodiment of the present application.
  • FIG. 7 is the third schematic diagram of target prompt information according to an embodiment of the present application.
  • FIG. 9 is the second schematic diagram of the data interaction process in the decryption process according to the embodiment of the present application.
  • FIG. 10 is a block diagram of a near field communication NFC information display device according to an embodiment of the present application.
  • FIG. 11 is a block diagram of an electronic device according to an embodiment of the present application.
  • FIG. 12 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present application.
  • first, second and the like in the description and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It is to be understood that the data so used are interchangeable under appropriate circumstances so that the embodiments of the present application can be practiced in sequences other than those illustrated or described herein, and distinguish between “first”, “second”, etc.
  • the objects are usually of one type, and the number of objects is not limited.
  • the first object may be one or more than one.
  • “and/or” in the description and claims indicates at least one of the connected objects, and the character “/" generally indicates that the associated objects are in an "or” relationship.
  • an embodiment of the present application provides a near field communication NFC information display method.
  • the near field communication NFC information display method in the embodiment of the present application may be applied to a near field communication NFC information display device, and may also be applied to electronic equipment, such as a mobile terminal.
  • the method includes:
  • Step 11 Receive the first NFC signal sent by the target device; wherein, the target device includes an NFC card reader or an NFC card.
  • the NFC card may include, but is not limited to, an access control card, a bus card, a bank card, etc., or the NFC card may also be other cards using NFC technology, etc., which are not limited in the embodiments of the present application.
  • the NFC information display device or electronic device can perform data interaction with the NFC card, wherein the NFC card can actively or passively communicate with the device or electronic device, the device or electronic device
  • the device can read the data of the NFC card, for example, the device or electronic device can copy the data of the NFC card, or read the data in the NFC card and perform corresponding operations (for example, when the NFC card is an access control card, the device or electronic device can After the data in the NFC card is successfully read, the operation of unlocking the access control can be performed).
  • the device or electronic device replicates the data of the NFC card as an example, the type of the access control card may be a non-encrypted access control card or an encrypted access control card.
  • the sector data of the non-encrypted access control card is non-encrypted.
  • the sector data of the encrypted access control card is encrypted, and it can only be read normally after the key verification is successful.
  • To copy this kind of access control card not only need to copy the unique identification code information of the access control card, but also copy the data of the access control card sector.
  • the NFC card reader may include but is not limited to: an access control card reader, a bus card reader, a bank card reader, etc., or the NFC card reader may also be other card readers using NFC technology, etc.
  • the application examples are not limited to this.
  • the NFC information display device or electronic device can perform data interaction with the NFC card reader, wherein the device or electronic device has the data of the NFC card, that is, the device or the electronic device has the data of the NFC card.
  • the electronic device can simulate data interaction between the NFC card and the NFC card reader.
  • Step 12 In the case that the first NFC signal does not meet the target response condition corresponding to the first NFC signal, display target prompt information.
  • the target prompt information can be used to indicate that the first NFC signal does not meet the target response condition corresponding to the first NFC signal.
  • the target prompt information can be used to indicate that the Data exchange failed.
  • the first NFC signal does not meet the target response condition corresponding to the first NFC signal may include but is not limited to: the first NFC signal does not meet the protocol conditions, such as not meeting the conditions of the ISO14443 protocol, the first NFC signal
  • the content of the information carried does not conform to the content of the command to make an on-the-spot response (Answer To Request Type A, ATQA) using the TYPE A technology, or the content of the command to respond to the on-site response using the TYPE B technology (Answer To Request Type B, ATQB).
  • the key information carried by the first NFC signal does not conform to the key information obtained by decryption, etc.
  • Type A technology transmits signals through a 13.65MHz radio frequency carrier.
  • the scheme adopted is a synchronous and improved Miller encoding method, which is transmitted by 100% amplitude shift keying (ASK) signal; when the NFC card transmits a signal to the card reader, the signal is transmitted by modulating a carrier wave.
  • Manchester encoding is transmitted using a sub-carrier of 847 kHz. Simply put, when representing information "1", the signal will have a gap of 0.3 microseconds, and when representing information "0", the signal may or may not have a gap, which is related to the information before and after.
  • Type B technology is that when the card reader transmits the signal to the NFC card, it uses the 13.65MHz radio frequency carrier signal, adopts the asynchronous, non-return-to-zero (NRZ) encoding method, and transmits with 10% ASK signal;
  • the card reader transmits signals it uses binary phase shift keying (BPSK) coding for modulation. That is, the difference between the information "1" and the information "0” is that the signal amplitude of the information "1" is large, that is, the signal is strong, and the signal amplitude of the information "0" is small, that is, the signal is weak.
  • BPSK binary phase shift keying
  • the device or electronic device replicates the data of the NFC card as an example, the type of the access control card may be a non-encrypted access control card or an encrypted access control card.
  • the sector data of the non-encrypted access control card is non-encrypted.
  • the access control card or the device or electronic device sends the unique identification code information to the access control machine (or called the access control card reader).
  • the access control machine when the access control machine successfully verifies the unique identification code information, the access control can be successfully swiped, and if the verification of the unique identification code information fails, it means that the target response conditions corresponding to the first NFC signal are not met.
  • the sector data of the encrypted access control card is encrypted, and it can be read normally only after the key verification is successful.
  • the access control will request the corresponding sector data from the encrypted access control card or the device or electronic device. , if the request fails, if there is no sector data or the sector data does not meet the conditions, it means that the target response conditions corresponding to the first NFC signal are not met.
  • the NFC information display device or electronic device has an NFC module for implementing data interaction with the target device; wherein the NFC module has an instruction detection unit for implementing instruction detection.
  • the instruction detection unit can detect in real time every connection between the device or the electronic device and the target device. The correctness of the interactive instructions.
  • an exception report is triggered, such as reporting to the processor, and the processor controls the display module to display the target prompt information. Notifies the user that the current interaction is abnormal.
  • Step 21 Send out an instruction; for example, the instruction may be a near-field approach instruction for sensing a target device within a predetermined distance, and a response instruction may be fed back when a target device receives the instruction.
  • the instruction may be a near-field approach instruction for sensing a target device within a predetermined distance, and a response instruction may be fed back when a target device receives the instruction.
  • Step 22 start the instruction detection unit
  • Step 23 Waiting to receive the instruction fed back by the target device
  • Step 24 determine whether the instruction fed back by the target device is received within the predetermined period of time; if the instruction fed back by the target device is not received within the predetermined period of time, step 25 is performed; if the instruction fed back by the target device is received within the predetermined period of time, then Go to step 26;
  • Step 25 report the abnormal event, and the process ends
  • Step 26 determine whether the instruction meets the protocol conditions; if it meets and does not meet the conditions for the end of the process, then execute step 27; if it meets and reaches the conditions for the end of the process, then the process ends; if not, then execute step 25;
  • Step 27 Send out an instruction; the instruction may be an instruction in the process of data interaction with the target device, such as an instruction for handshake connection, authentication of key information, and the like.
  • the first NFC signal sent by the target device is received; in the case that the first NFC signal does not meet the target response condition corresponding to the first NFC signal, the target prompt information is displayed.
  • the target prompt information is used to indicate that the first NFC signal does not meet the target response condition corresponding to the first NFC signal, so as to inform the user that the current data interaction with the target device such as the NFC card reader or the NFC card has failed. It is avoided that the user needs to perform the authentication operation repeatedly, which leads to the increase of the operation time and the operation steps, thereby helping to improve the operation efficiency.
  • target prompt information including:
  • the first prompt information is used to indicate that the NFC card is an NFC card that does not meet the first preset protocol condition.
  • the NFC card is an access control card
  • the NFC display device or electronic device copies the data of the access control card
  • the access control card is an access control card of a non-ISO14443 protocol, or the access control card is an access control card belonging to the ISO14443 protocol, but in the data
  • replication failure may occur.
  • the report of the failure event of copying the access control card is triggered.
  • a prompt message is displayed interactively on the application layer interface to inform the user that copying the access control card fails.
  • the content of the prompt message can be "The copy operation of this type of access control card is not supported", as shown in Figure 3.
  • any one of the data interaction instructions of the display device or electronic device for detecting NFC and the access control card does not meet the conditions stipulated in the agreement, which may be: after receiving the first NFC signal, it is not received within a predetermined period of time specified in the agreement. To the second NFC signal carrying the target information content, it does not meet the conditions specified in the protocol.
  • Figure 4 shows the data interaction process between the access control card and the NFC display device or electronic device in the process of copying the access control card; specifically, it may include:
  • the NFC display device or electronic device can send a card search command through the NFC antenna, and the card search command is used to detect whether there is an access control card and activate the command detection unit of the device or electronic device.
  • the access control card responds after receiving the card finding instruction sent by the device or the electronic device, that is, feeding back the response command, that is, the first NFC signal, to the device or the electronic device.
  • the command detection unit judges whether the content of the response command returned by the access control card conforms to the content of the ATQA or ATQB command. If not, it means that the current access control card does not support the ISO14443 protocol, that is, it does not meet the conditions of the first preset protocol, then stop copying Access card operation, and report abnormal events. For example, prompt information is displayed interactively on the application layer interface to inform the user that the NFC card is an NFC card that does not meet the conditions of the first preset protocol, and the copying of the access control card fails. For example, the content of the prompt information can be "This type of access control card is not supported. copy operation".
  • the current access control card does not support the ISO14443 protocol, that is If the conditions of the first preset agreement are not met, the operation of copying the access control card will be stopped and an abnormal event will be reported.
  • prompt information is displayed interactively on the application layer interface to inform the user that the NFC card is an NFC card that does not meet the conditions of the first preset protocol, and the copying of the access control card fails.
  • the content of the prompt information can be "This type of access control card is not supported. copy operation".
  • the NFC card does not meet the protocol conditions during the interaction with the near-field proximity signal of the NFC card, or it can be understood that the NFC card is not an NFC card of a predetermined type (such as Type A or Type B).
  • the copy process can be terminated directly, and the user can be informed of the failure of the copy by displaying a prompt message, which can reduce the user's repeated repeated copy operations, and can also specifically display that the NFC card does not meet the conditions of the first preset agreement.
  • the user is informed of the reason for the failure of the copy operation, so that the user can deal with it according to the failure reason.
  • an NFC display device or an electronic device can be a card reader, and the card reader can have a display module for displaying prompt information, or the card reader.
  • the card reader may be connected to a display device, and used to send an instruction carrying the prompt information to the display device, and display the prompt information through the display device, which is not limited to this embodiment of the present application.
  • the step of receiving the first NFC signal sent by the target device may specifically include: during the interaction process of the handshake connection with the NFC card, receiving the first NFC signal.
  • the first handshake signal sent by the NFC card may specifically include: during the interaction process of the handshake connection with the NFC card, receiving the first NFC signal.
  • the step of displaying target prompt information when the first NFC signal does not meet the target response condition corresponding to the first NFC signal may specifically include: when the first handshake signal does not meet a first preset In the case of the protocol condition, second prompt information is displayed; wherein, the second prompt information is used to indicate that the NFC card is an NFC card that does not meet the first preset protocol condition.
  • the NFC card is an access control card.
  • the NFC display device or electronic device copies the data of the access control card
  • the access control card is an access control card of a non-ISO14443 protocol, or the access control card is an access control card belonging to the ISO14443 protocol, but in the data
  • replication failure may occur.
  • any of the data interaction instructions between the NFC display device or the electronic device and the access control card does not meet the conditions specified in the protocol, it will trigger the failure of copying the access control card. report.
  • a prompt message is displayed interactively on the application layer interface to inform the user that copying the access control card fails.
  • the content of the prompt message can be "The copy operation of this type of access control card is not supported", as shown in Figure 3.
  • the data interaction process between the access control card and the NFC display device or electronic device may also include:
  • the instruction detection unit detects that the content of any handshake signal fed back by the access control card does not meet the conditions specified in the protocol during the handshake interaction process. For example, the content of the handshake signal is inconsistent with the content specified in the protocol, or the content of the handshake signal is not the protocol.
  • the content contained in the stipulation that is, the handshake signal does not meet the conditions of the first preset protocol, will trigger an abnormal event report, indicating that the copy operation of this type of access control card is not supported.
  • a prompt message is displayed interactively on the application layer interface to inform the user that copying the access control card fails.
  • the content of the prompt message can be "The copy operation of this type of access control card is not supported", as shown in Figure 3.
  • the access control card before performing the handshake interaction process of the ISO14443 protocol with the access control card, it may also include:
  • the NFC display device or electronic device can send a card search command through the NFC antenna, and the card search command is used to detect whether there is an access control card and activate the command detection unit of the device or electronic device.
  • the access control card responds after receiving the card finding instruction sent by the device or the electronic device, that is, feeding back the response command, that is, the first NFC signal, to the device or the electronic device.
  • the instruction detection unit determines that the content of the response instruction returned by the access control card conforms to the content of the ATQA or ATQB instruction, and performs the ISO14443 protocol handshake interaction process with the access control card.
  • the copying process when it is judged that the NFC card is an NFC card that does not meet the protocol conditions during the handshake interaction with the NFC card, the copying process can be terminated directly, and the user is informed that the copying fails by displaying a prompt message. It can reduce the user's repeated copy operation, and can also inform the user of the reason for the failure of the copy operation by specifically displaying that the NFC card is an NFC card that does not meet the conditions of the first preset protocol, so that the user can deal with the failure accordingly. .
  • an NFC display device or an electronic device can be a card reader, and the card reader can have a display module for displaying prompt information, or the card reader.
  • the card reader may be connected to a display device, and used to send an instruction carrying the prompt information to the display device, and display the prompt information through the display device, which is not limited to this embodiment of the present application.
  • the step of receiving the first NFC signal sent by the target device may specifically include: using the data of the second NFC card to communicate with the NFC card reader During the interaction process of the handshake connection, receive the second handshake signal sent by the NFC card reader;
  • the step of displaying target prompt information may specifically include: when the second handshake signal does not meet the second preset In the case of agreement conditions, third prompt information is displayed; wherein, the third prompt information is used to indicate that the second NFC card is an NFC card that does not meet the agreement conditions corresponding to the NFC card reader.
  • the NFC card reader can be an access control type card reader, and the NFC display device or electronic device has the data of the access control card, that is, it has the function of simulating the access control card.
  • the handshake signal fed back by the access control card reader is received. If the handshake signal does not meet the protocol standard specifications of the ISO14443-3 layer, and the handshake signal does not meet the second preset protocol conditions, then Triggers an event that reports the failure to refresh the access control.
  • the application layer After the application layer obtains the event, it interactively displays prompt information to inform the user that the access control card currently simulated by the NFC display device or electronic device is an access control card that does not meet the protocol conditions corresponding to the NFC card reader.
  • the content of the prompt information can be It is "non-standard access control, failure to brush access control", etc., as shown in Figure 5.
  • Figure 6 shows the data interaction process between the NFC display device or electronic device and the access control card reader during the access control process; specifically, it can include:
  • the access control card reader continuously sends out a card search command, which is used to detect whether there is an access control card or a device or electronic device that simulates the function of an access control card.
  • the device or electronic device responds after receiving the card search command from the access control card reader, that is, feeds back a response command according to the card search command, and activates the command detection unit.
  • the access control card reader and the terminal device perform the handshake interaction process of the ISO14443 protocol.
  • There may be multiple handshake signals in the handshake interaction process that is, there may be multiple command interactions during the handshake interaction process.
  • the instruction detection unit detects that the content of any handshake signal fed back by the access control card does not meet the conditions specified in the protocol during the handshake interaction process. For example, the content of the handshake signal is inconsistent with the content specified in the protocol, or the content of the handshake signal is not the protocol.
  • the content contained in the regulations, or the access control card reader returns the anti-collision (ANTICOLLISION) command to the device or electronic device within 40us after receiving the response command (such as the ATQA command) from the device or electronic device.
  • ANTICOLLISION anti-collision
  • the time is much less than the time 400us defined by the protocol specification, so for the device or electronic equipment side, it is equivalent to not receiving any instructions from the access control card reader, that is, the handshake signal does not meet the second preset protocol conditions, and an abnormal event is triggered. Report, it means non-standard access control, the access control failed.
  • the prompt information is displayed interactively on the application layer interface to inform the user that the access control card function simulated by the device or electronic device does not comply with the ISO14443 protocol standard, resulting in failure to swipe the access control. failed", as shown in Figure 5.
  • the card swiping process can be terminated directly, and a prompt can be displayed by displaying a prompt.
  • the step of receiving the first NFC signal sent by the target device may specifically include: establishing a relationship with the NFC card reader based on the data of the second NFC card After the handshake connection, receive the first NFC signal sent by the NFC card reader, where the first NFC signal carries the first key information;
  • the step of displaying the target prompt information may specifically include: determining a second password according to the data of the second NFC card. key information; in the case that the first key information does not match the second key information, display fourth prompt information; wherein, the fourth prompt information is used to indicate that the After the handshake connection is established, the key authentication with the data of the second NFC card fails.
  • the corresponding function can be performed only when the read data of the NFC card satisfies the corresponding encryption protocol.
  • the data interaction process between an encrypted card reader and an NFC card can be the process of decrypting random numbers.
  • an NFC card or a device or electronic device that simulates the function of an NFC card can try to decrypt it through the built-in key, and obtain the second Key information, if the second key information matches the first key information sent by the card reader, it is determined that the decryption is successful, and the subsequent data exchange process can be continued. If the second key information does not match the first key information sent by the card reader, the decryption fails, indicating that the NFC card or the device or electronic device terminal device that simulates the NFC card function does not have the correct key, It is necessary to obtain the key through authorization to enable the NFC card reader to perform the corresponding function.
  • the card reader is an access control card reader
  • the NFC card or the device or electronic equipment terminal device that simulates the NFC card function needs to be obtained through authorization. Only the key can make the NFC card reader unlock the door.
  • a prompt message can be displayed through the application layer to inform the user that the access control card currently simulated by the NFC display device or electronic device does not have the correct key, or inform the user of the current simulated access control card of the NFC display device or electronic device.
  • the card is an unauthorized NFC card, and the decryption fails.
  • the content of the prompt information can be "encrypted access control, please authorize the key first", etc., as shown in Figure 7.
  • the data interaction process between the NFC display device or electronic device and the access control card reader during the decryption process is given; specifically, it may include:
  • the encrypted access control card reader continuously sends out a card search command, which is used to detect whether there is an access control card or a device or electronic device that simulates an access control card.
  • the device or electronic device responds after receiving the card search instruction from the encrypted access control card reader, that is, feeds back the response instruction to the encrypted access control card reader, and starts the instruction detection unit.
  • the device or electronic device and the encrypted access control card reader perform a handshake interaction at the ISO14443 protocol layer, and establish a handshake connection through the handshake interaction at the ISO14443 protocol layer; the encrypted access control card reader sends an encrypted random number, that is, the first key information. .
  • the device or electronic device decrypts the random number through the built-in key to obtain the second key information. If the instruction detection unit detects that the decryption fails, such as the decryption cannot be performed without the key, or the second key information obtained by decryption does not match the first key information, an abnormal event will be reported, and a prompt will be displayed to inform
  • the access control card currently simulated by the user's NFC display device or electronic device is an unauthorized NFC card, and the decryption fails.
  • the content of the prompt message can be "encrypted access control, please authorize the key first", etc., as shown in Figure 7.
  • the encrypted access control card reader If the decryption is successful, that is, the first key information matches the second key information, after the encrypted access control card reader receives the successful data, it will further read the sector data in the access control card data from the device or electronic device , used to verify the content of the sector, if the verification is successful, it means that the access control is successful, and the encrypted access control card reader can control the release of the access control.
  • the card swiping process can be terminated directly, and the user can be informed to swipe the card by displaying a prompt message. If it fails, it can reduce the user’s repeated copy operations, and can also inform the user of the reason for the failure of the card swipe operation by specifically displaying that the current card reader is an encrypted card reader, the current decryption fails, and an authorization key is required, so that the The user can handle it according to the failure reason.
  • the execution subject may be an information display device for near field communication NFC, or a method for performing near field communication NFC in the information display device for near field communication NFC.
  • the control module of the information display method of communication NFC the method for performing the information display of the near field communication NFC by the information display device of the near field communication NFC is taken as an example to describe the information display device of the near field communication NFC provided by the embodiment of the present application.
  • an embodiment of the present application provides an information display device 1000 for near field communication NFC, including:
  • a receiving module 1010 configured to receive a first NFC signal sent by a target device; wherein, the target device includes an NFC card reader or an NFC card;
  • a display module 1020 configured to display target prompt information when the first NFC signal does not meet the target response condition corresponding to the first NFC signal;
  • the target prompt information is used to indicate that the first NFC signal does not meet the target response condition corresponding to the first NFC signal.
  • the display module 1020 includes:
  • the first display unit is configured to display the first prompt information when the second NFC signal carrying the target information content is not received within a predetermined period of time after the first NFC signal is received.
  • the receiving module 1010 includes:
  • a first receiving unit configured to receive the first handshake signal sent by the NFC card during the interaction process of the handshake connection with the NFC card;
  • the display module 1020 includes:
  • a second display unit configured to display second prompt information when the first handshake signal does not meet the first preset protocol condition
  • the second prompt information is used to indicate that the NFC card is an NFC card that does not meet the conditions of the first preset protocol.
  • the receiving module 1010 includes:
  • a second receiving unit configured to receive a second handshake signal sent by the NFC card reader during the interaction process of performing a handshake connection with the NFC card reader using the data of the second NFC card;
  • the display module 1020 includes:
  • a third receiving unit configured to display third prompt information when the second handshake signal does not meet the second preset protocol condition
  • the third prompt information is used to indicate that the second NFC card is an NFC card that does not meet the protocol conditions corresponding to the NFC card reader.
  • the receiving module 1010 includes:
  • a third receiving unit configured to receive a first NFC signal sent by the NFC card reader after establishing a handshake connection with the NFC card reader based on the data of the second NFC card, the first NFC signal carrying the first NFC card a key information;
  • the display module 1020 includes:
  • a determining unit configured to determine the second key information according to the data of the second NFC card
  • a fourth display unit configured to display fourth prompt information when the first key information does not match the second key information
  • the fourth prompt information is used to indicate that after establishing a handshake connection with the NFC card reader, the key authentication fails with the data of the second NFC card.
  • the information display device for near field communication NFC in this embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal.
  • the apparatus may be a mobile electronic device or a non-mobile electronic device.
  • the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palmtop computer, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (personal digital assistant).
  • UMPC ultra-mobile personal computer
  • netbook or a personal digital assistant
  • non-mobile electronic devices can be servers, network attached storage (Network Attached Storage, NAS), personal computer (personal computer, PC), television (television, TV), teller machine or self-service machine, etc., this application Examples are not specifically limited.
  • Network Attached Storage NAS
  • personal computer personal computer, PC
  • television television
  • teller machine or self-service machine etc.
  • the information display device for near field communication NFC in the embodiment of the present application may be a device with an operating system.
  • the operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, which are not specifically limited in the embodiments of the present application.
  • the near field communication NFC information display device provided in the embodiment of the present application can implement each process implemented by the method embodiments in FIGS. 1 to 9 , and to avoid repetition, details are not described here.
  • the first NFC signal sent by the target device is received; if the first NFC signal does not meet the target response condition corresponding to the first NFC signal, the target prompt information is displayed.
  • the target prompt information is displayed.
  • an embodiment of the present application further provides an electronic device 1100, including a processor 1101, a memory 1102, a program or instruction stored in the memory 1102 and executable on the processor 1101,
  • an electronic device 1100 including a processor 1101, a memory 1102, a program or instruction stored in the memory 1102 and executable on the processor 1101,
  • the program or instruction is executed by the processor 1101, each process of the above-mentioned embodiment of the NFC information display method can be realized, and the same technical effect can be achieved. To avoid repetition, details are not repeated here.
  • the electronic devices in the embodiments of the present application include the aforementioned mobile electronic devices and non-mobile electronic devices.
  • FIG. 12 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
  • the electronic device 1200 includes but is not limited to: a radio frequency unit 1201, a network module 1202, an audio output unit 1203, an input unit 1204, a sensor 1205, a display unit 1206, a user input unit 1207, an interface unit 1208, a memory 1209, and a processor 1210, etc. part.
  • the electronic device 1200 may also include a power supply (such as a battery) for supplying power to various components, and the power supply may be logically connected to the processor 1210 through a power management system, so as to manage charging, discharging, and power management through the power management system. consumption management and other functions.
  • a power supply such as a battery
  • the structure of the electronic device shown in FIG. 12 does not constitute a limitation on the electronic device.
  • the electronic device may include more or less components than the one shown, or combine some components, or arrange different components, which will not be repeated here. .
  • the radio frequency unit 1201 is used to receive the first NFC signal sent by the target device; wherein, the target device includes an NFC card reader or an NFC card;
  • the processor 1210 is configured to display the target prompt information through the display unit 1206 when the first NFC signal does not meet the target response condition corresponding to the first NFC signal.
  • the processor 1210 when the target device is an NFC card, the processor 1210 is configured to, within a predetermined period of time after receiving the first NFC signal, the radio frequency unit 1201 does not receive the second NFC carrying the target information content In the case of a signal, the display unit 1206 displays first prompt information, wherein the first prompt information is used to indicate that the NFC card is an NFC card that does not meet the first preset protocol conditions.
  • the radio frequency unit 1201 is configured to receive the first handshake signal sent by the NFC card during the interaction process of the handshake connection with the NFC card;
  • the processor 1210 is configured to display second prompt information through the display unit 1206 when the first handshake signal does not meet the first preset protocol conditions; wherein the second prompt information is used to indicate the NFC card It is an NFC card that does not meet the conditions of the first preset protocol.
  • the radio frequency unit 1201 is configured to receive the NFC read during the interaction process of performing a handshake connection with the NFC card reader using the data of the second NFC card.
  • the processor 1210 is configured to display third prompt information through the display unit 1206 when the second handshake signal does not meet the second preset protocol condition; wherein the third prompt information is used to indicate the second
  • the NFC card is an NFC card that does not meet the protocol conditions corresponding to the NFC card reader.
  • the radio frequency unit 1201 is configured to receive the data sent by the NFC card reader after establishing a handshake connection with the NFC card reader using the data of the second NFC card. a first NFC signal, where the first NFC signal carries first key information;
  • the processor 1210 is configured to determine the second key information according to the data of the second NFC card; if the first key information does not match the second key information, display the first key information through the display unit 1206.
  • Four prompt information wherein, the fourth prompt information is used to indicate that after establishing a handshake connection with the NFC card reader, the key authentication fails with the data of the second NFC card.
  • the first NFC signal sent by the target device is received; if the first NFC signal does not meet the target response condition corresponding to the first NFC signal, the target prompt information is displayed.
  • the target prompt information is displayed.
  • the input unit 1204 may include a graphics processor (Graphics Processing Unit, GPU) 12041 and a microphone 12042. Such as camera) to obtain still pictures or video image data for processing.
  • the display unit 1206 may include a display panel 12061, which may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like.
  • the user input unit 1207 includes a touch panel 12071 and other input devices 12072 .
  • the touch panel 12071 is also called a touch screen.
  • the touch panel 12071 may include two parts, a touch detection device and a touch controller.
  • Other input devices 12072 may include, but are not limited to, physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, and joysticks, which are not described herein again.
  • Memory 1209 may be used to store software programs as well as various data, including but not limited to application programs and operating systems.
  • the processor 1210 may integrate an application processor and a modem processor, wherein the application processor mainly handles the operating system, user interface, and application programs, and the like, and the modem processor mainly handles wireless communication. It can be understood that, the above-mentioned modulation and demodulation processor may not be integrated into the processor 1210.
  • Embodiments of the present application further provide a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or instruction is executed by a processor, each process of the above-mentioned embodiment of the NFC information display method is implemented , and can achieve the same technical effect, in order to avoid repetition, it is not repeated here.
  • the processor is the processor in the electronic device described in the foregoing embodiments.
  • the readable storage medium includes a computer-readable storage medium, such as a computer read-only memory (Read-Only Memory, ROM), a random access memory (Random Access Memory, RAM), a magnetic disk or an optical disk, and the like.
  • An embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction to implement the above-mentioned near field communication NFC information
  • the chip includes a processor and a communication interface
  • the communication interface is coupled to the processor
  • the processor is configured to run a program or an instruction to implement the above-mentioned near field communication NFC information
  • the chip mentioned in the embodiments of the present application may also be referred to as a system-on-chip, a system-on-chip, a system-on-a-chip, or a system-on-a-chip, or the like.
  • the disclosed apparatus and method may be implemented in other manners.
  • the apparatus embodiments described above are only illustrative.
  • the division of the units is only a logical function division. In actual implementation, there may be other division methods.
  • multiple units or components may be combined or Can be integrated into another system, or some features can be ignored, or not implemented.
  • the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical, mechanical or other forms.
  • the units described as separate components may or may not be physically separated, and components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
  • each functional unit in each embodiment of the present disclosure may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit.
  • the method of the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is better implementation.
  • the technical solution of the present application can be embodied in the form of a software product in essence or in a part that contributes to the prior art, and the computer software product is stored in a storage medium (such as ROM/RAM, magnetic disk, CD-ROM), including several instructions to make a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the methods described in the various embodiments of this application.
  • a storage medium such as ROM/RAM, magnetic disk, CD-ROM
  • modules, units, and subunits can be implemented in one or more Application Specific Integrated Circuits (ASIC), Digital Signal Processor (DSP), Digital Signal Processing Device (DSP Device, DSPD) ), Programmable Logic Device (PLD), Field-Programmable Gate Array (FPGA), general-purpose processor, controller, microcontroller, microprocessor, in other electronic units or combinations thereof.
  • ASIC Application Specific Integrated Circuits
  • DSP Digital Signal Processor
  • DSP Device Digital Signal Processing Device
  • DSPD Digital Signal Processing Device
  • PLD Programmable Logic Device
  • FPGA Field-Programmable Gate Array
  • the technologies described in the embodiments of the present disclosure may be implemented through modules (eg, procedures, functions, etc.) that perform the functions described in the embodiments of the present disclosure.
  • Software codes may be stored in memory and executed by a processor.
  • the memory can be implemented in the processor or external to the processor.

Landscapes

  • Health & Medical Sciences (AREA)
  • Toxicology (AREA)
  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Electromagnetism (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)

Abstract

本申请公开了一种近场通信NFC的信息显示方法、装置及电子设备,属于通信技术领域。该方法包括:接收目标装置发送的第一NFC信号;其中,所述目标装置包括NFC读卡器或NFC卡;在所述第一NFC信号不符合所述第一NFC信号对应的目标响应条件的情况下,显示目标提示信息。

Description

近场通信NFC的信息显示方法、装置及电子设备
相关申请的交叉引用
本申请主张在2020年7月15日在中国提交的中国专利申请号No.202010681292.5的优先权,其全部内容通过引用包含于此。
技术领域
本申请涉及电子产品技术领域,尤其涉及一种近场通信NFC的信息显示方法、装置及电子设备。
背景技术
随着智电子设备的快速发展,电子设备集成的器件越来越多,逐步增加了摄像头、红外传感器、全球定位系统(Global Positioning System,GPS)、蓝牙、无线上网(wireless fidelity,WIFI)、指纹、近场通信(Near Field Communication,NFC)、蓝牙低能耗(Bluetooth Low Energy,BLE)等各种各样的传感器。这些传感器极大的提升了电子设备的使用体验以及功能丰富程度。在电子设备的NFC集成了嵌入式安全芯片的情况下,NFC可以用于模拟公交卡、门禁卡、银行卡以及身份证等。例如:电子设备若要具备模拟门禁卡的功能,需要预先复制所有模拟的门禁卡,在门禁卡复制成功后则具备了门禁卡的功能,可以用于刷门禁。电子设备复制门禁卡时可能发生复制卡失败,或者是在电子设备采用模拟的门禁卡来刷门禁时也可能发生刷卡失败的情况,在发生这种电子设备与门禁卡之间的认证失败,或者电子设备与读卡器之间的认证失败的情况时,用户可能需要多次反复进行认证操作,导致用户的操作时间和操作步骤增加。
发明内容
本申请实施例提供了一种近场通信NFC的信息显示方法、装置及电子设备,以解决目前在电子设备与门禁卡之间的认证或者电子设备与读卡器之间认证发生失败时,用户可能需要多次反复进行认证操作,导致用户的操作时 间和操作步骤增加的问题。
为了解决上述技术问题,本申请是这样实现的:
第一方面,本申请实施例提供了一种近场通信NFC的信息显示方法,包括:
接收目标装置发送的第一NFC信号;其中,所述目标装置包括NFC读卡器或NFC卡;
在所述第一NFC信号不符合所述第一NFC信号对应的目标响应条件的情况下,显示目标提示信息。
第二方面,本申请实施例提供了一种近场通信NFC的信息显示装置,包括:
接收模块,用于接收目标装置发送的第一NFC信号;其中,所述目标装置包括NFC读卡器或NFC卡;
显示模块,用于在所述第一NFC信号不符合所述第一NFC信号对应的目标响应条件的情况下,显示目标提示信息。
第三方面,本申请实施例提供了一种电子设备,该电子设备包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如第一方面所述的方法的步骤。
第四方面,本申请实施例提供了一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如第一方面所述的方法的步骤。
第五方面,本申请实施例提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如第一方面所述的方法。
第六方面,本申请实施例提供了一种计算机软件产品,所述计算机软件产品被存储在非易失的存储介质中,所述软件产品被配置成被至少一个处理器执行以实现如第一方面所述的方法的步骤。
第七方面,本申请实施例提供了一种电子设备,所述电子设备被配置成用于执行如第一方面所述的方法。
在本申请实施例中,接收目标装置发送的第一NFC信号;在所述第一 NFC信号不符合所述第一NFC信号对应的目标响应条件的情况下,显示目标提示信息。这样,通过显示目标提示信息的方式,来告知用户当前与NFC读卡器或NFC卡等目标装置的数据交互失败,从而避免了用户需要反复多次进行认证操作,导致操作时间和操作步骤的增加,从而有利于提高操作效率。
附图说明
图1是本申请实施例的近场通信NFC的信息显示方法的流程图;
图2是本申请实施例的指令侦测方法的流程图;
图3是本申请实施例的目标提示信息的示意图之一;
图4是本申请实施例的复制门禁卡过程中的数据交互过程的示意图;
图5是本申请实施例的目标提示信息的示意图之二;
图6是本申请实施例的刷门禁过程中的数据交互过程的示意图;
图7是本申请实施例的目标提示信息的示意图之三;
图8是本申请实施例的解密过程中的数据交互过程的示意图之一;
图9是本申请实施例的解密过程中的数据交互过程的示意图之二;
图10是本申请实施例的近场通信NFC的信息显示装置的框图;
图11是本申请实施例的电子设备的框图;
图12是本申请实施例的电子设备的硬件结构示意图。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
本申请的说明书和权利要求书中的术语“第一”、“第二”等是用于区别类似的对象,而不用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施,且“第一”、“第二”等所区分的对象通常为一类,并不限定对象的个数,例如第一对象可以是一个,也可以是多个。此外,说 明书以及权利要求中“和/或”表示所连接对象的至少其中之一,字符“/”,一般表示前后关联对象是一种“或”的关系。
下面结合附图,通过具体的实施例及其应用场景对本申请实施例提供的近场通信NFC的信息显示方法进行详细地说明。
如图1所示,本申请实施例提供了一种近场通信NFC的信息显示方法。可选地,本申请实施例中的近场通信NFC的信息显示方法,可以应用于近场通信NFC的信息显示装置,也可以应用于电子设备,如移动终端等。
所述方法包括:
步骤11:接收目标装置发送的第一NFC信号;其中,所述目标装置包括NFC读卡器或NFC卡。
可选地,NFC卡可以包括但不限于:门禁卡、公交卡、银行卡等,或者NFC卡还可以是其他采用NFC技术的卡片等,本申请实施例不以此为限。
当目标装置为NFC卡时,NFC的信息显示装置或电子设备能够与所述NFC卡之间进行数据交互,其中,NFC卡可以主动或被动的与该装置或电子设备进行通信,该装置或电子设备可以对NFC卡的数据进行读取,如该装置或电子设备可以复制NFC卡的数据,或者读取NFC卡中的数据并执行相应操作(如NFC卡为门禁卡时,该装置或电子设备能够在读取所述NFC卡中的数据成功后,执行解除门禁的操作)。
以NFC卡为门禁卡,该装置或电子设备复制NFC卡的数据为例,门禁卡的类型可以是非加密门禁卡,也可以是加密门禁卡。
其中,非加密门禁卡其扇区数据是非加密的。通常复制此类门禁卡,只需要复制门禁卡的ID信息;加密门禁卡其扇区数据是经过加密的,需要通过秘钥校验成功后才能正常读取。复制此类门禁卡,不仅需要复制门禁卡的唯一标识码信息,还要复制门禁卡扇区的数据。
可选的,NFC读卡器可以包括但不限于:门禁读卡器、公交读卡器、银行卡读卡器等,或者NFC读卡器还可以是其他采用NFC技术的读卡器等,本申请实施例不以此为限。
当目标装置为NFC读卡器时,该NFC的信息显示装置或电子设备能够与所述NFC读卡器之间进行数据交互,其中该装置或电子设备中具有NFC 卡的数据,即该装置或电子设备可以模拟NFC卡与所述NFC读卡器之间进行数据交互。
步骤12:在所述第一NFC信号不符合所述第一NFC信号对应的目标响应条件的情况下,显示目标提示信息。
可选地,所述目标提示信息可以用于指示所述第一NFC信号不符合所述第一NFC信号对应的目标响应条件,当然该目标提示信息可以用于指示与所述目标装置之间的数据交互失败。
可选地,所述第一NFC信号不符合所述第一NFC信号对应的目标响应条件可以包括但不限于:第一NFC信号不符合协议条件,如不符合ISO14443协议的条件,第一NFC信号携带的信息内容不符合以TYPE A技术做出在场回应(Answer To Request Type A,ATQA)的指令内容,或不符合以TYPE B技术做出在场回应(Answer To Request Type B,ATQB)的指令内容;第一NFC信号携带的秘钥信息不符合解密得到的秘钥信息等。
其中,Type A技术是通过13.65MHz的射频载波传送信号。其采用方案为同步、改进的密勒(Miller)编码方式,通过100%幅移键控(amplitude shift keying,ASK)信号传送;当NFC卡向读卡器具传送信号时,通过调制载波传送信号。使用847kHz的副载波传送曼彻斯特(Manchester)编码。简单说,当表示信息“1”时,信号会有0.3微妙的间隙,当表示信息“0”时,信号可能有间隙也可能没有,与前后的信息有关。
Type B技术是在读卡器具向NFC卡传送信号时,通过13.65MHz的射频载波信号,采用的是异步、不归零(NRZ)编码方式,通过用10%ASK信号传送的方案;在NFC卡向读卡器具传送信号时,则是采用的二进制相移键控(binary phase shift keying,BPSK)编码进行调制。即信息“1”和信息“0”的区别在于信息“1”的信号幅度大,即信号强,信息“0”的信号幅度小,即信号弱。
以NFC卡为门禁卡,该装置或电子设备复制NFC卡的数据为例,门禁卡的类型可以是非加密门禁卡,也可以是加密门禁卡。
其中,非加密门禁卡其扇区数据是非加密的。采用该非加密门禁卡,或者是采用复制了非加密门禁卡的装置或电子设备刷门禁时,门禁卡或是该装 置或电子设备将唯一标识码信息发送给门禁机(或者称为门禁读卡器),在门禁机验证该唯一标识码信息成功时,即可刷门禁成功,若验证该唯一标识码信息失败,即表示不符合所述第一NFC信号对应的目标响应条件。
其中,加密门禁卡其扇区数据是经过加密的,需要通过秘钥校验成功后才能正常读取。采用该加密门禁卡,或者是采用复制了加密门禁卡的装置或电子设备刷门禁时,门禁机会向加密门禁卡或是该装置或电子设备请求对应的扇区数据,请求成功才能正常刷开门禁,若请求失败,如无扇区数据或扇区数据不符合条件,则表示不符合所述第一NFC信号对应的目标响应条件。
可选地,NFC的信息显示装置或电子设备具有NFC模块,用于实现与目标装置的数据交互;其中,该NFC模块具有指令侦测单元,用于实现指令侦测。例如:在复制门禁卡数据或采用门禁卡或者是复制了门禁卡数据的装置或电子设备刷门禁的过程中,指令侦测单元可以实时侦测该装置或电子设备与目标装置之间的每个交互指令的正确性,在检测到在交互过程中的多个指令中存在不符合目标响应条件的执行时,触发异常上报,如上报给处理器,由处理器控制显示模块显示目标提示信息,以告知用户当前交互异常。
如图2所示,给出了一种指令侦测方法的流程图,具体包括:
步骤21:向外发出指令;例如:该指令可以是近场靠近指令,用于感应预定距离内的目标装置,当有目标装置接收该指令时可以反馈响应的应答指令。
步骤22:启动指令侦测单元;
步骤23:等待接收目标装置反馈的指令;
步骤24:判断是否在预定时长内接收到目标装置反馈的指令;若在预定时长内未接收到目标装置反馈的指令,则执行步骤25;若在预定时长内接收到目标装置反馈的指令,则执行步骤26;
步骤25:上报异常事件,流程结束;
步骤26:判断指令是否符合协议条件;若符合且未达到流程结束的条件,则执行步骤27;若符合且达到流程结束的条件,则流程结束;若不符合,则执行步骤25;
步骤27:向外发出指令;该指令可以是与目标装置的数据交互过程中的 指令,如用于握手连接的指令、密钥信息的认证等。
在本申请实施例中,接收目标装置发送的第一NFC信号;在所述第一NFC信号不符合所述第一NFC信号对应的目标响应条件的情况下,显示目标提示信息。这样,通过目标提示信息用于指示所述第一NFC信号不符合所述第一NFC信号对应的目标响应条件,来告知用户当前与NFC读卡器或NFC卡等目标装置的数据交互失败,从而避免了用户需要反复多次进行认证操作,导致操作时间和操作步骤的增加,从而有利于提高操作效率。
可选地,在所述目标装置为NFC卡的情况下,所述在所述第一NFC信号不符合所述第一NFC信号对应的目标响应条件的情况下,显示目标提示信息,包括:
在接收到所述第一NFC信号之后的预定时长内,未接收到携带有目标信息内容的第二NFC信号的情况下,显示第一提示信息;
其中,所述第一提示信息用于指示所述NFC卡是不符合第一预设协议条件的NFC卡。
例如:该NFC卡是门禁卡,NFC的显示装置或电子设备复制该门禁卡的数据时,如果该门禁卡是非ISO14443协议的门禁卡,或者该门禁卡是属于ISO14443协议的门禁卡,但是在数据交互过程中并未完全按照协议标准的内容进行数据交互的情况下,则可能发生复制失败。这种场景下,在复制门禁卡的过程中,检测NFC的显示装置或电子设备与门禁卡的数据交互指令任意一条指令不符合协议所规定的条件时,即触发复制门禁卡失败事件的上报。如在应用层界面通过交互显示提示信息,以告知用户复制门禁卡失败,例如提示信息的内容可以是“不支持此类门禁卡的复制操作”,如图3所示。
其中,检测NFC的显示装置或电子设备与门禁卡的数据交互指令中有任意一条指令不符合协议所规定的条件可以是:在接收到第一NFC信号之后,未在协议规定的预定时长内接收到携带有目标信息内容的第二NFC信号,则不符合协议所规定的条件。
如图4给出了复制门禁卡过程中,门禁卡与NFC的显示装置或电子设备之间的数据交互过程;具体可以包括:
NFC的显示装置或电子设备可以通过NFC天线发出寻卡指令,寻卡指令 用于侦测是否存在门禁卡同时启动装置或电子设备的指令侦测单元。
门禁卡接收到装置或电子设备发出的寻卡指令后作出回应,即向装置或电子设备反馈应答指令,即第一NFC信号。
指令侦测单元判断该门禁卡返回的应答指令的内容是否符合ATQA或ATQB指令内容,若不符合,则表示当前门禁卡不支持ISO14443协议,即不符合第一预设协议的条件,则停止复制门禁卡的操作,并上报异常事件。如在应用层界面通过交互显示提示信息,以告知用户所述NFC卡是不符合第一预设协议条件的NFC卡,复制门禁卡失败,例如提示信息的内容可以是“不支持此类门禁卡的复制操作”。如果在检测到有NFC片靠近即接收到NFC卡靠近的第一NFC信号之后,但在预设时长内未接受到NFC片反馈的ATQA或ATQB指令,则表示当前门禁卡不支持ISO14443协议,即不符合第一预设协议的条件,则停止复制门禁卡的操作,并上报异常事件。如在应用层界面通过交互显示提示信息,以告知用户所述NFC卡是不符合第一预设协议条件的NFC卡,复制门禁卡失败,例如提示信息的内容可以是“不支持此类门禁卡的复制操作”。
该实施例中,通过在与NFC卡的近场靠近信号的交互过程中,判断该NFC卡不符合协议条件,或者可以理解为NFC卡不是预定类型(如Type A或Type B类型)的NFC卡的情况下,可以直接终止复制流程,并通过显示提示信息的方式告知用户复制失败,可以减少用户反复多次进行复制操作,并且还可以通过具体显示NFC卡是不符合第一预设协议条件的NFC卡的方式,告知用户复制操作失败的原因,以便用户可以根据失败原因进行相应处理。
可选地,本申请的上述实施例还可以应用于刷卡过程中,如NFC的显示装置或电子设备可以是读卡器,该读卡器可以具有显示模块,用于显示提示信息,或者该读卡器可以与显示装置连接,用于发送携带该提示信息的指令至显示装置,并通过该显示装置显示所述提示信息等,本申请实施例不以此为限。
可选地,所述目标装置为NFC卡的情况下,所述接收目标装置发送的第一NFC信号的步骤,可以具体包括:在与所述NFC卡进行握手连接的交互 过程中,接收所述NFC卡发送的第一握手信号;
所述在所述第一NFC信号不符合所述第一NFC信号对应的目标响应条件的情况下,显示目标提示信息的步骤,可以具体包括:在所述第一握手信号不符合第一预设协议条件的情况下,显示第二提示信息;其中,所述第二提示信息用于指示所述NFC卡是不符合第一预设协议条件的NFC卡。
例如:该NFC卡是门禁卡,NFC的显示装置或电子设备复制该门禁卡的数据时,如果该门禁卡是非ISO14443协议的门禁卡,或该门禁卡是属于ISO14443协议的门禁卡,但是在数据交互过程中并未完全按照协议标准的内容进行数据交互的情况下,则可能发生复制失败。这种场景下,在复制门禁卡的过程中,检测NFC的显示装置或电子设备与门禁卡的数据交互指令中有任意一条指令不符合协议所规定的条件时,即触发复制门禁卡失败事件的上报。如在应用层界面通过交互显示提示信息,以告知用户复制门禁卡失败,例如提示信息的内容可以是“不支持此类门禁卡的复制操作”,如图3所示。
参见图4,在复制门禁卡过程中,门禁卡与NFC的显示装置或电子设备之间的数据交互过程;具体还可以包括:
在与门禁卡之间进行ISO14443协议的握手交互过程中,该握手交互过程中可能存在多个握手信号,即握手交互过程中可能存在多个指令的交互。指令侦测单元在该握手交互过程中检测到门禁卡反馈的任意一个握手信号内容不符合协议所规定的条件,如握手信号的内容与协议所规定的内容不一致,或者或握手信号的内容不是协议规定所包含的内容,即握手信号不符合第一预设协议的条件,则触发异常事件上报,表示不支持此类门禁卡的复制操作。如在应用层界面通过交互显示提示信息,以告知用户复制门禁卡失败,例如提示信息的内容可以是“不支持此类门禁卡的复制操作”,如图3所示。
可选地,在与门禁卡之间进行ISO14443协议的握手交互过程之前,还可以包括:
NFC的显示装置或电子设备可以通过NFC天线发出寻卡指令,寻卡指令用于侦测是否存在门禁卡同时启动装置或电子设备的指令侦测单元。
门禁卡接收到装置或电子设备发出的寻卡指令后作出回应,即向装置或电子设备反馈应答指令,即第一NFC信号。指令侦测单元判断该门禁卡返回 的应答指令的内容符合ATQA或ATQB指令内容的情况下,与门禁卡之间进行ISO14443协议的握手交互过程。
该实施例中,通过在与NFC卡的握手交互过程中,判断该NFC卡是不符合协议条件的NFC卡的情况下,可以直接终止复制流程,并通过显示提示信息的方式告知用户复制失败,可以减少用户反复多次进行复制操作,并且还可以通过具体显示NFC卡是不符合第一预设协议条件的NFC卡的方式,告知用户复制操作失败的原因,以便用户可以根据失败原因进行相应处理。
可选地,本申请的上述实施例还可以应用于刷卡过程中,如NFC的显示装置或电子设备可以是读卡器,该读卡器可以具有显示模块,用于显示提示信息,或者该读卡器可以与显示装置连接,用于发送携带该提示信息的指令至显示装置,并通过该显示装置显示所述提示信息等,本申请实施例不以此为限。
可选地,所述目标装置为NFC读卡器的情况下,所述接收目标装置发送的第一NFC信号的步骤,可以具体包括:在以第二NFC卡的数据与所述NFC读卡器进行握手连接的交互过程中,接收所述NFC读卡器发送的第二握手信号;
所述在所述第一NFC信号不符合所述第一NFC信号对应的目标响应条件的情况下,显示目标提示信息的步骤,可以具体包括:在所述第二握手信号不符合第二预设协议条件的情况下,显示第三提示信息;其中,所述第三提示信息用于指示所述第二NFC卡是不符合所述NFC读卡器对应的协议条件的NFC卡。
可选地,该NFC读卡器可以是门禁类型的读卡器,NFC的显示装置或电子设备具有门禁卡的数据,即具有模拟门禁卡的功能,在门禁读卡器与该装置或电子设备在ISO14443-3协议层握手建立连接的过程中,接收门禁读卡器反馈的握手信号,如果握手信号不符合ISO14443-3层的协议标准规范,及握手信号不符合第二预设协议条件,则触发上报刷门禁失败的事件。如应用层获取事件后通过交互显示提示信息,以告知用户NFC的显示装置或电子设备当前模拟的门禁卡是不符合所述NFC读卡器对应的协议条件的门禁卡,例如提示信息的内容可以是“非标准门禁、刷门禁失败”等,如图5所示。
如图6给出了刷门禁过程中,NFC的显示装置或电子设备与门禁读卡器之间的数据交互过程;具体可以包括:
门禁读卡器持续发出寻卡指令,该寻卡指令用于侦测是否存在门禁卡或模拟了门禁卡功能的装置或电子设备。
该装置或电子设备接收到门禁读卡器的寻卡指令后作出回应,即根据该寻卡指令反馈应答指令,并启动指令侦测单元。
门禁读卡器和终端设备进行ISO14443协议的握手交互过程,该握手交互过程中可能存在多个握手信号,即握手交互过程中可能存在多个指令的交互。指令侦测单元在该握手交互过程中检测到门禁卡反馈的任意一个握手信号内容不符合协议所规定的条件,如握手信号的内容与协议所规定的内容不一致,或者或握手信号的内容不是协议规定所包含的内容,或者门禁读卡器在接收到该装置或电子设备的应答指令(如ATQA指令)后,在40us内就回了防冲突(ANTICOLLISION)指令给该装置或电子设备,由于这个时间远小于协议规范定义的时间400us,所以对该装置或电子设备侧来说,相当于未收到门禁读卡器的任何指令,即握手信号不符合第二预设协议条件,则触发异常事件上报,表示非标准门禁,刷门禁失败。如在应用层界面通过交互显示提示信息,以告知用户该装置或电子设备所模拟的门禁卡功能未遵循ISO14443协议标准,导致刷门禁失败,例如提示信息的内容可以是“非标准门禁,刷门禁失败”,如图5所示。
该实施例中,通过在与NFC读卡器的握手交互过程中,判断所模拟的NFC卡是不符合NFC读卡器协议条件的NFC卡的情况下,可以直接终止刷卡流程,并通过显示提示信息的方式告知用户刷卡失败,可以减少用户反复多次进行复制操作,并且还可以通过具体显示NFC卡是不符合NFC读卡器的协议条件的NFC卡的方式,告知用户刷卡操作失败的原因,以便用户可以根据失败原因进行相应处理。
可选地,所述目标装置为读卡器的情况下,所述接收目标装置发送的第一NFC信号的步骤,可以具体包括:在以第二NFC卡的数据与所述NFC读卡器建立握手连接后,接收所述NFC读卡器发送的第一NFC信号,所述第一NFC信号携带有第一密钥信息;
所述在所述第一NFC信号不符合所述第一NFC信号对应的目标响应条件的情况下,显示目标提示信息的步骤,可以具体包括:根据所述第二NFC卡的数据确定第二密钥信息;在所述第一密钥信息与所述第二密钥信息不匹配的情况下,显示第四提示信息;其中,所述第四提示信息用于指示在与所述NFC读卡器建立握手连接后,以所述第二NFC卡的数据进行密钥认证失败。
可选地,当NFC读卡器是加密类型的读卡器,即需要在读取的NFC卡的数据满足相应加密协议的情况下,才能执行相应功能。
例如:加密类型的读卡器与NFC卡的数据交互过程可以是解密随机数的过程,如NFC卡或者是模拟了NFC卡功能的装置或电子设备可以通过内置的密钥尝试解密,得到第二密钥信息,如果该第二密钥信息与读卡器发送的第一密钥信息相匹配,则确定解密成功,则能够继续后续的数据交互流程。如果第二密钥信息与读卡器发送的第一密钥信息不匹配,则解密失败,则表明该NFC卡或者是模拟了NFC卡功能的装置或电子设备终端设备不具备正确的密钥,需要通过授权获取到密钥才能使得NFC读卡器执行相应功能,如该读卡器是门禁读卡器时,该NFC卡或者是模拟了NFC卡功能的装置或电子设备终端设备需要通过授权获取到密钥才能使得NFC读卡器解除门禁。在解密失败时,可以通过应用层显示提示信息,以告知用户NFC的显示装置或电子设备当前模拟的门禁卡是不具备正确的密钥,或者告知用户NFC的显示装置或电子设备当前模拟的门禁卡是未经授权的NFC卡,解密失败,例如提示信息的内容可以是“加密门禁,请先授权密钥”等,如图7所示。
如图8和图9,给出了解密过程中,NFC的显示装置或电子设备与门禁读卡器之间的数据交互过程;具体可以包括:
加密门禁读卡器持续发出寻卡指令,该寻卡指令用于侦测是否存在门禁卡或模拟了门禁卡的装置或电子设备。
该装置或电子设备收到加密门禁读卡器的寻卡指令后作出回应,即向加密门禁读卡器反馈应答指令,并启动指令侦测单元。
该装置或电子设备与加密门禁读卡器之间进行ISO14443协议层的握手交互,并通过ISO14443协议层的握手交互建立握手连接;加密门禁读卡器向 发送加密随机数,即第一密钥信息。
该装置或电子设备通过内置的密钥解密随机数,得到第二密钥信息。如果指令侦测单元侦测到解密失败,如无密钥无法进行解密,或者解密得到的第二密钥信息与第一密钥信息不匹配,则上报异常事件,显示提示用于,用于告知用户NFC的显示装置或电子设备当前模拟的门禁卡是未经授权的NFC卡,解密失败,例如提示信息的内容可以是“加密门禁,请先授权密钥”等,如图7所示。
如果解密成功,即第一密钥信息与第二密钥信息匹配,加密门禁读卡器收到成功的数据后,会进一步从该装置或电子设备中读取出门禁卡数据中的扇区数据,用于校验扇区内容,若校验成功,则表明刷门禁成功,此时加密门禁读卡器可以控制解除门禁。
该实施例中,对于加密类型的读卡器,在与NFC读卡器的建立握手连接后,在解密过程发生失败的情况下,可以直接终止刷卡流程,并通过显示提示信息的方式告知用户刷卡失败,可以减少用户反复多次进行复制操作,并且还可以通过具体显示当前读卡器是加密类型的读卡器,当前解密失败,需要授权密钥等方式,告知用户刷卡操作失败的原因,以便用户可以根据失败原因进行相应处理。
需要说明的是,本申请实施例提供的近场通信NFC的信息显示方法,执行主体可以为近场通信NFC的信息显示装置,或者该近场通信NFC的信息显示装置中的用于执行近场通信NFC的信息显示方法的控制模块。本申请实施例中以近场通信NFC的信息显示装置执行近场通信NFC的信息显示的方法为例,说明本申请实施例提供的近场通信NFC的信息显示装置。
如图10,本申请实施例提供了一种近场通信NFC的信息显示装置1000,包括:
接收模块1010,用于接收目标装置发送的第一NFC信号;其中,所述目标装置包括NFC读卡器或NFC卡;
显示模块1020,用于在所述第一NFC信号不符合所述第一NFC信号对应的目标响应条件的情况下,显示目标提示信息;
其中,所述目标提示信息用于指示所述第一NFC信号不符合所述第一 NFC信号对应的目标响应条件。
可选地,所述目标装置为NFC卡的情况下,所述显示模块1020包括:
第一显示单元,用于在接收到所述第一NFC信号之后的预定时长内,未接收到携带有目标信息内容的第二NFC信号的情况下,显示第一提示信息。
可选地,所述目标装置为NFC卡的情况下,所述接收模块1010包括:
第一接收单元,用于在与所述NFC卡进行握手连接的交互过程中,接收所述NFC卡发送的第一握手信号;
所述显示模块1020包括:
第二显示单元,用于在所述第一握手信号不符合第一预设协议条件的情况下,显示第二提示信息;
其中,所述第二提示信息用于指示所述NFC卡是不符合第一预设协议条件的NFC卡。
可选地,所述目标装置为NFC读卡器的情况下,所述接收模块1010包括:
第二接收单元,用于在以第二NFC卡的数据与所述NFC读卡器进行握手连接的交互过程中,接收所述NFC读卡器发送的第二握手信号;
所述显示模块1020包括:
第三接收单元,用于在所述第二握手信号不符合第二预设协议条件的情况下,显示第三提示信息;
其中,所述第三提示信息用于指示所述第二NFC卡是不符合所述NFC读卡器对应的协议条件的NFC卡。
可选地,所述目标装置为读卡器的情况下,所述接收模块1010包括:
第三接收单元,用于在以第二NFC卡的数据与所述NFC读卡器建立握手连接后,接收所述NFC读卡器发送的第一NFC信号,所述第一NFC信号携带有第一密钥信息;
所述显示模块1020包括:
确定单元,用于根据所述第二NFC卡的数据确定第二密钥信息;
第四显示单元,用于在所述第一密钥信息与所述第二密钥信息不匹配的情况下,显示第四提示信息;
其中,所述第四提示信息用于指示在与所述NFC读卡器建立握手连接后,以所述第二NFC卡的数据进行密钥认证失败。
本申请实施例中的近场通信NFC的信息显示装置可以是装置,也可以是终端中的部件、集成电路、或芯片。该装置可以是移动电子设备,也可以为非移动电子设备。示例性的,移动电子设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、可穿戴设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本或者个人数字助理(personal digital assistant,PDA)等,非移动电子设备可以为服务器、网络附属存储器(Network Attached Storage,NAS)、个人计算机(personal computer,PC)、电视机(television,TV)、柜员机或者自助机等,本申请实施例不作具体限定。
本申请实施例中的近场通信NFC的信息显示装置可以为具有操作系统的装置。该操作系统可以为安卓(Android)操作系统,可以为ios操作系统,还可以为其他可能的操作系统,本申请实施例不作具体限定。
本申请实施例提供的近场通信NFC的信息显示装置能够实现图1至图9的方法实施例实现的各个过程,为避免重复,这里不再赘述。
在本申请实施例中的装置1000,接收目标装置发送的第一NFC信号;在所述第一NFC信号不符合所述第一NFC信号对应的目标响应条件的情况下,显示目标提示信息。这样,通过显示目标提示信息的方式,来告知用户当前与NFC读卡器或NFC卡等目标装置的数据交互失败,从而避免了用户需要反复多次进行认证操作,导致操作时间和操作步骤的增加,从而有利于提高操作效率。
可选的,如图11所示,本申请实施例还提供一种电子设备1100,包括处理器1101,存储器1102,存储在存储器1102上并可在所述处理器1101上运行的程序或指令,该程序或指令被处理器1101执行时实现上述近场通信NFC的信息显示方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
需要注意的是,本申请实施例中的电子设备包括上述所述的移动电子设备和非移动电子设备。
图12为实现本申请实施例的一种电子设备的硬件结构示意图。
该电子设备1200包括但不限于:射频单元1201、网络模块1202、音频输出单元1203、输入单元1204、传感器1205、显示单元1206、用户输入单元1207、接口单元1208、存储器1209、以及处理器1210等部件。
本领域技术人员可以理解,电子设备1200还可以包括给各个部件供电的电源(比如电池),电源可以通过电源管理系统与处理器1210逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。图12中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置,在此不再赘述。
其中,射频单元1201,用于接收目标装置发送的第一NFC信号;其中,所述目标装置包括NFC读卡器或NFC卡;
处理器1210,用于在所述第一NFC信号不符合所述第一NFC信号对应的目标响应条件的情况下,通过显示单元1206显示目标提示信息。
其中,在所述目标装置为NFC卡的情况下,处理器1210,用于在接收到所述第一NFC信号之后的预定时长内,射频单元1201未接收到携带有目标信息内容的第二NFC信号的情况下,通过显示单元1206显示第一提示信息;其中,所述第一提示信息用于指示所述NFC卡是不符合第一预设协议条件的NFC卡。
其中,在所述目标装置为NFC卡的情况下,射频单元1201,用于在与所述NFC卡进行握手连接的交互过程中,接收所述NFC卡发送的第一握手信号;
处理器1210,用于在所述第一握手信号不符合第一预设协议条件的情况下,通过显示单元1206显示第二提示信息;其中,所述第二提示信息用于指示所述NFC卡是不符合第一预设协议条件的NFC卡。
其中,在所述目标装置为NFC读卡器的情况下,射频单元1201,用于在以第二NFC卡的数据与所述NFC读卡器进行握手连接的交互过程中,接收所述NFC读卡器发送的第二握手信号;
处理器1210,用于在所述第二握手信号不符合第二预设协议条件的情况下,通过显示单元1206显示第三提示信息;其中,所述第三提示信息用于指 示所述第二NFC卡是不符合所述NFC读卡器对应的协议条件的NFC卡。
其中,在所述目标装置为读卡器的情况下,射频单元1201,用于在以第二NFC卡的数据与所述NFC读卡器建立握手连接后,接收所述NFC读卡器发送的第一NFC信号,所述第一NFC信号携带有第一密钥信息;
处理器1210,用于根据所述第二NFC卡的数据确定第二密钥信息;在所述第一密钥信息与所述第二密钥信息不匹配的情况下,通过显示单元1206显示第四提示信息;其中,所述第四提示信息用于指示在与所述NFC读卡器建立握手连接后,以所述第二NFC卡的数据进行密钥认证失败。
在本申请实施例中的电子设备1100,接收目标装置发送的第一NFC信号;在所述第一NFC信号不符合所述第一NFC信号对应的目标响应条件的情况下,显示目标提示信息。这样,通过显示目标提示信息的方式,来告知用户当前与NFC读卡器或NFC卡等目标装置的数据交互失败,从而避免了用户需要反复多次进行认证操作,导致操作时间和操作步骤的增加,从而有利于提高操作效率。
应理解的是,本申请实施例中,输入单元1204可以包括图形处理器(Graphics Processing Unit,GPU)12041和麦克风12042,图形处理器12041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。显示单元1206可包括显示面板12061,可以采用液晶显示器、有机发光二极管等形式来配置显示面板12061。用户输入单元1207包括触控面板12071以及其他输入设备12072。触控面板12071,也称为触摸屏。触控面板12071可包括触摸检测装置和触摸控制器两个部分。其他输入设备12072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。存储器1209可用于存储软件程序以及各种数据,包括但不限于应用程序和操作系统。处理器1210可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器1210中。
本申请实施例还提供一种可读存储介质,所述可读存储介质上存储有程序或指令,该程序或指令被处理器执行时实现上述近场通信NFC的信息显示 方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
其中,所述处理器为上述实施例中所述的电子设备中的处理器。所述可读存储介质,包括计算机可读存储介质,如计算机只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等。
本申请实施例另提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现上述近场通信NFC的信息显示方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
应理解,本申请实施例提到的芯片还可以称为系统级芯片、系统芯片、芯片系统或片上系统芯片等。
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。此外,需要指出的是,本申请实施方式中的方法和装置的范围不限按示出或讨论的顺序来执行功能,还可包括根据所涉及的功能按基本同时的方式或按相反的顺序来执行功能,例如,可以按不同于所描述的次序来执行所描述的方法,并且还可以添加、省去、或组合各种步骤。另外,参照某些示例所描述的特征可在其他示例中被组合。
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本公开的范围。
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描 述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
在本申请所提供的实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本公开各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本申请各个实施例所述的方法。
可以理解的是,本公开实施例描述的这些实施例可以用硬件、软件、固件、中间件、微码或其组合来实现。对于硬件实现,模块、单元、子单元可以实现在一个或多个专用集成电路(Application Specific Integrated Circuits,ASIC)、数字信号处理器(Digital Signal Processor,DSP)、数字信号处理设备(DSP Device,DSPD)、可编程逻辑设备(Programmable Logic Device,PLD)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、通用处理器、控 制器、微控制器、微处理器、用于执行本公开所述功能的其它电子单元或其组合中。
对于软件实现,可通过执行本公开实施例所述功能的模块(例如过程、函数等)来实现本公开实施例所述的技术。软件代码可存储在存储器中并通过处理器执行。存储器可以在处理器中或在处理器外部实现。
上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。

Claims (15)

  1. 一种近场通信NFC的信息显示方法,包括:
    接收目标装置发送的第一NFC信号;其中,所述目标装置包括NFC读卡器或NFC卡;
    所述第一NFC信号不符合所述第一NFC信号对应的目标响应条件的情况下,显示目标提示信息。
  2. 根据权利要求1所述的近场通信NFC的信息显示方法,其中,所述目标装置为NFC卡的情况下,所述在所述第一NFC信号不符合所述第一NFC信号对应的目标响应条件的情况下,显示目标提示信息,包括:
    在接收到所述第一NFC信号之后的预定时长内,未接收到携带有目标信息内容的第二NFC信号的情况下,显示第一提示信息;
    其中,所述第一提示信息用于指示所述NFC卡是不符合第一预设协议条件的NFC卡。
  3. 根据权利要求1所述的近场通信NFC的信息显示方法,其中,所述目标装置为NFC卡的情况下,所述接收目标装置发送的第一NFC信号,包括:
    在与所述NFC卡进行握手连接的交互过程中,接收所述NFC卡发送的第一握手信号;
    所述在所述第一NFC信号不符合所述第一NFC信号对应的目标响应条件的情况下,显示目标提示信息,包括:
    在所述第一握手信号不符合第一预设协议条件的情况下,显示第二提示信息;
    其中,所述第二提示信息用于指示所述NFC卡是不符合第一预设协议条件的NFC卡。
  4. 根据权利要求1所述的近场通信NFC的信息显示方法,其中,所述目标装置为NFC读卡器的情况下,所述接收目标装置发送的第一NFC信号,包括:
    在以第二NFC卡的数据与所述NFC读卡器进行握手连接的交互过程中, 接收所述NFC读卡器发送的第二握手信号;
    所述在所述第一NFC信号不符合所述第一NFC信号对应的目标响应条件的情况下,显示目标提示信息,包括:
    在所述第二握手信号不符合第二预设协议条件的情况下,显示第三提示信息;
    其中,所述第三提示信息用于指示所述第二NFC卡是不符合所述NFC读卡器对应的协议条件的NFC卡。
  5. 根据权利要求1所述的近场通信NFC的信息显示方法,其中,所述目标装置为读卡器的情况下,所述接收目标装置发送的第一NFC信号,包括:
    在以第二NFC卡的数据与所述NFC读卡器建立握手连接后,接收所述NFC读卡器发送的第一NFC信号,所述第一NFC信号携带有第一密钥信息;
    所述在所述第一NFC信号不符合所述第一NFC信号对应的目标响应条件的情况下,显示目标提示信息,包括:
    根据所述第二NFC卡的数据确定第二密钥信息;
    在所述第一密钥信息与所述第二密钥信息不匹配的情况下,显示第四提示信息;
    其中,所述第四提示信息用于指示在与所述NFC读卡器建立握手连接后,以所述第二NFC卡的数据进行密钥认证失败。
  6. 一种近场通信NFC的信息显示装置,包括:
    接收模块,用于接收目标装置发送的第一NFC信号;其中,所述目标装置包括NFC读卡器或NFC卡;
    显示模块,用于在所述第一NFC信号不符合所述第一NFC信号对应的目标响应条件的情况下,显示目标提示信息。
  7. 根据权利要求6所述的近场通信NFC的信息显示装置,其中,所述目标装置为NFC卡的情况下,所述显示模块包括:
    第一显示单元,用于在接收到所述第一NFC信号之后的预定时长内,未接收到携带有目标信息内容的第二NFC信号的情况下,显示第一提示信息;
    其中,所述第一提示信息用于指示所述NFC卡是不符合第一预设协议条件的NFC卡。
  8. 根据权利要求6所述的近场通信NFC的信息显示装置,其中,所述目标装置为NFC卡的情况下,所述接收模块包括:
    第一接收单元,用于在与所述NFC卡进行握手连接的交互过程中,接收所述NFC卡发送的第一握手信号;
    所述显示模块包括:
    第二显示单元,用于在所述第一握手信号不符合第一预设协议条件的情况下,显示第二提示信息;
    其中,所述第二提示信息用于指示所述NFC卡是不符合第一预设协议条件的NFC卡。
  9. 根据权利要求6所述的近场通信NFC的信息显示装置,其中,所述目标装置为NFC读卡器的情况下,所述接收模块包括:
    第二接收单元,用于在以第二NFC卡的数据与所述NFC读卡器进行握手连接的交互过程中,接收所述NFC读卡器发送的第二握手信号;
    所述显示模块包括:
    第三接收单元,用于在所述第二握手信号不符合第二预设协议条件的情况下,显示第三提示信息;
    其中,所述第三提示信息用于指示所述第二NFC卡是不符合所述NFC读卡器对应的协议条件的NFC卡。
  10. 根据权利要求6所述的近场通信NFC的信息显示装置,其中,所述目标装置为读卡器的情况下,所述接收模块包括:
    第三接收单元,用于在以第二NFC卡的数据与所述NFC读卡器建立握手连接后,接收所述NFC读卡器发送的第一NFC信号,所述第一NFC信号携带有第一密钥信息;
    所述显示模块包括:
    确定单元,用于根据所述第二NFC卡的数据确定第二密钥信息;
    第四显示单元,用于在所述第一密钥信息与所述第二密钥信息不匹配的情况下,显示第四提示信息;
    其中,所述第四提示信息用于指示在与所述NFC读卡器建立握手连接后,以所述第二NFC卡的数据进行密钥认证失败。
  11. 一种电子设备,包括处理器,存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如权利要求1至5中任一项所述的近场通信NFC的信息显示方法的步骤。
  12. 一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如权利要求1至5中任一项所述的近场通信NFC的信息显示方法的步骤。
  13. 一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如权利要求1至5中任一项所述的近场通信NFC的信息显示方法。
  14. 一种计算机软件产品,所述计算机软件产品被存储在非易失的存储介质中,所述软件产品被配置成被至少一个处理器执行以实现如权利要求1至5中任一项所述的近场通信NFC的信息显示方法的步骤。
  15. 一种电子设备,所述电子设备被配置成用于执行如权利要求1至5中任一项所述的近场通信NFC的信息显示方法。
PCT/CN2021/106437 2020-07-15 2021-07-15 近场通信nfc的信息显示方法、装置及电子设备 WO2022012616A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010681292.5A CN111860016A (zh) 2020-07-15 2020-07-15 近场通信nfc的信息显示方法、装置及电子设备
CN202010681292.5 2020-07-15

Publications (1)

Publication Number Publication Date
WO2022012616A1 true WO2022012616A1 (zh) 2022-01-20

Family

ID=72983976

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/106437 WO2022012616A1 (zh) 2020-07-15 2021-07-15 近场通信nfc的信息显示方法、装置及电子设备

Country Status (2)

Country Link
CN (1) CN111860016A (zh)
WO (1) WO2022012616A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114726407A (zh) * 2022-05-17 2022-07-08 北京紫光青藤微系统有限公司 用于获取异常信息的方法、装置、控制器及存储介质

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111860016A (zh) * 2020-07-15 2020-10-30 维沃移动通信有限公司 近场通信nfc的信息显示方法、装置及电子设备
CN112487838B (zh) * 2020-12-10 2023-10-03 深圳市与飞科技有限公司 信息提示方法、装置、电子设备及存储介质
CN113392661A (zh) * 2021-07-01 2021-09-14 Oppo广东移动通信有限公司 卡片复制方法、装置、电子设备和可读性存储介质
CN116243759B (zh) * 2021-12-08 2024-04-02 荣耀终端有限公司 一种nfc通信方法、电子设备、存储介质及程序产品

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102103765A (zh) * 2009-12-16 2011-06-22 中兴通讯股份有限公司 一种门禁控制与信息显示系统、方法及终端
US9106267B1 (en) * 2011-12-15 2015-08-11 Sprint Communications Company L.P. Near field communication session feedback
CN105306771A (zh) * 2014-07-25 2016-02-03 佳能株式会社 要求用户认证的信息处理设备及其控制方法
CN108601004A (zh) * 2018-04-26 2018-09-28 努比亚技术有限公司 Nfc使用引导方法、移动终端及计算机可读存储介质
CN109360045A (zh) * 2018-09-21 2019-02-19 上海与德科技有限公司 一种信息确认方法、装置、服务器及存储介质
CN109858578A (zh) * 2018-04-20 2019-06-07 深圳如一探索科技有限公司 可穿戴设备复制门禁卡的方法和装置
WO2019210466A1 (zh) * 2018-05-02 2019-11-07 华为技术有限公司 一种nfc刷卡控制方法及终端设备
CN111860016A (zh) * 2020-07-15 2020-10-30 维沃移动通信有限公司 近场通信nfc的信息显示方法、装置及电子设备
CN112487838A (zh) * 2020-12-10 2021-03-12 深圳市欢太科技有限公司 信息提示方法、装置、电子设备及存储介质

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102001221B1 (ko) * 2012-12-24 2019-07-18 삼성전자주식회사 디바이스간 통신 방법 및 시스템
CN107240157B (zh) * 2017-05-12 2020-08-21 南京心视窗信息科技有限公司 近场通信安全控制方法、移动终端及计算机可读存储介质
CN109640297B (zh) * 2018-11-30 2022-02-18 北京红枣科技有限公司 无卡交互系统及模拟卡设备
CN110490285B (zh) * 2019-08-26 2023-11-28 北京小米支付技术有限公司 模拟卡片的方法、装置及存储介质

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102103765A (zh) * 2009-12-16 2011-06-22 中兴通讯股份有限公司 一种门禁控制与信息显示系统、方法及终端
US9106267B1 (en) * 2011-12-15 2015-08-11 Sprint Communications Company L.P. Near field communication session feedback
CN105306771A (zh) * 2014-07-25 2016-02-03 佳能株式会社 要求用户认证的信息处理设备及其控制方法
CN109858578A (zh) * 2018-04-20 2019-06-07 深圳如一探索科技有限公司 可穿戴设备复制门禁卡的方法和装置
CN108601004A (zh) * 2018-04-26 2018-09-28 努比亚技术有限公司 Nfc使用引导方法、移动终端及计算机可读存储介质
WO2019210466A1 (zh) * 2018-05-02 2019-11-07 华为技术有限公司 一种nfc刷卡控制方法及终端设备
CN109360045A (zh) * 2018-09-21 2019-02-19 上海与德科技有限公司 一种信息确认方法、装置、服务器及存储介质
CN111860016A (zh) * 2020-07-15 2020-10-30 维沃移动通信有限公司 近场通信nfc的信息显示方法、装置及电子设备
CN112487838A (zh) * 2020-12-10 2021-03-12 深圳市欢太科技有限公司 信息提示方法、装置、电子设备及存储介质

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
ANONYMOUS: ""NFC tag type not supported" message", 9 June 2016 (2016-06-09), XP055887029, Retrieved from the Internet <URL:https://stackoverflow.com/questions/37716640/nfc-tag-type-not-supported-message> *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114726407A (zh) * 2022-05-17 2022-07-08 北京紫光青藤微系统有限公司 用于获取异常信息的方法、装置、控制器及存储介质
CN114726407B (zh) * 2022-05-17 2022-08-26 北京紫光青藤微系统有限公司 用于获取异常信息的方法、装置、控制器及存储介质

Also Published As

Publication number Publication date
CN111860016A (zh) 2020-10-30

Similar Documents

Publication Publication Date Title
WO2022012616A1 (zh) 近场通信nfc的信息显示方法、装置及电子设备
KR101797643B1 (ko) 지령 정보의 송수신 방법 및 그 장치
US9904912B2 (en) Protecting transactions
US8108317B2 (en) System and method for restricting access to a terminal
KR20200002973A (ko) 디바이스 시동 방법 및 디바이스
CN105408910A (zh) 用于利用无线通信令牌在操作系统被引导之前对由用户对操作系统的访问进行验证的系统和方法
CN103838992A (zh) 一种指纹识别方法及终端
KR102061483B1 (ko) 데이터 처리 방법 및 시스템, 및 착용형 전자 디바이스
CN104239815A (zh) 基于虹膜识别的电子文档加密解密装置及方法
US10789372B2 (en) Primary device, an accessory device, and methods for processing operations on the primary device and the accessory device
US20220038899A1 (en) Method for duplicating near field communication card and electronic device therefor
KR102616421B1 (ko) 생체 인증을 이용한 결제 방법 및 그 전자 장치
CN103973437A (zh) 一种终端锁定时获取rsa密钥授权的方法、装置及系统
TW201028883A (en) Secure platform management device
WO2020073916A1 (zh) 一种存储设备的加密方法、装置及存储介质
US10262165B2 (en) Authentication of a smart pen and computing device
CN107437997B (zh) 一种射频通信装置及方法
CN104933379A (zh) 身份证信息获取方法、装置及系统
KR101879326B1 (ko) 지령 정보의 송수신 방법 및 그 장치
WO2023083090A1 (zh) 信息显示方法、装置、电子设备及可读存储介质
CN107516215B (zh) 可安全输入pin码的智能pos终端及方法
CN105471580B (zh) 一种复核签名方法和设备
WO2015081738A1 (zh) 处理交易数据的方法和智能卡
KR20200128334A (ko) 스마트 지갑 장치 및 그 작동 방법
CN110851881B (zh) 终端设备的安全检测方法及装置、电子设备及存储介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21841256

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21841256

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 21841256

Country of ref document: EP

Kind code of ref document: A1