Display method, electronic device and computer storage medium

By selecting whether to display the NFC card reading interface according to the device status perception, the problem of mobile terminals frequently popping up interfaces on the vehicle center console is solved, improving user experience and reducing power consumption.

CN117749936BActive Publication Date: 2024-12-17SHENZHEN XUNLIAN ZHIFU NETWORK CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410183535.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-02-19
Publication Date
2024-12-17
Estimated Expiration
2044-02-19

AI Technical Summary

Technical Problem

When the mobile terminal is on the vehicle center console, the NFC card reading interface is frequently popped up, affecting the user experience and increasing power consumption.

Method used

Select whether to display the NFC card reading interface according to the device status perception, avoid frequent pop-up of the interface when the device and the vehicle are close and stationary, and reduce unnecessary NFC communication and power consumption.

Benefits of technology

Improves user experience, reduces device power consumption, and avoids the problems of mismatched card and reduced charging efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117749936B_ABST
    Figure CN117749936B_ABST
Patent Text Reader

Abstract

The present application provides a display method, an electronic device and a computer storage medium, which is applied to a first device, and includes: receiving a first near field communication NFC signal sent by a second device; obtaining the state of the first device; judging whether to display an NFC card reader interface according to the state of the first device; when the first device is in the first state, the NFC card reader interface is displayed, and when the first device is in the second state, the NFC card reader interface is not displayed, the first state and the second state are different, wherein the second state is related to the second device, when the first device is in the second state, the distance between the first device and the second device is less than or equal to the first distance, and the motion state of the first device relative to the second device is a stationary state, for example, the second state is a state in which the first device remains close to the second device. Therefore, it is possible to select whether to display the NFC card reader interface based on the state perception of the device, thereby improving the user experience and reducing the power consumption of the device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a display method, an electronic device and a computer storage medium. Background Art

[0002] At present, the center console of the vehicle can integrate the near field communication (NFC) card reading area. When the mobile terminal (such as a mobile phone or wearable device) is placed on the center console of the vehicle, the mobile terminal can pop up the NFC card reading interface. The vehicle can authenticate the NFC car key that has been activated on the mobile terminal through the NFC card reading area to achieve the function of controlling (such as starting) the vehicle without the physical car key. However, when the mobile terminal remains on the center console of the vehicle, the mobile terminal will frequently pop up the NFC card reading interface, affecting the user experience and consuming high power. Summary of the invention

[0003] The present application discloses a display method, an electronic device and a computer storage medium, which can select whether to display an NFC card reading interface based on the state perception of the device, thereby improving the user experience and reducing the power consumption of the device.

[0004] In the first aspect, the present application provides a display method, which is applied to a first device, and the method includes: the first device (such as a mobile terminal such as a mobile phone integrated with a near field communication NFC module) receives a first near field communication NFC signal sent by a second device (such as a vehicle, a door, a payment device, etc. integrated with an NFC card reading area); the first device obtains the state of the first device, and determines whether to display the NFC card reading interface according to the obtained state of the first device; when the first device is in the first state, the first interface (that is, the NFC card reading interface) is displayed; when the first device is in the second state, the second interface is displayed, the first state and the second state are different, the first interface and the second interface are different (that is, the second interface is not the NFC card reading interface), and the second state is related to the second device, which can be understood as the second state is a state of performing multiple NFC communication processes with the second device.

[0005] In some examples, when the first device is in the second state, the distance between the first device and the second device is less than or equal to the first distance (for example, the distance between the NFC card reading area of ​​the first device and the second device is less than or equal to the first distance), and the motion state of the first device relative to the second device is a static state, which can be understood as when the distance between the first device and the second device (such as the NFC card reading area) is very close and the first device and the second device remain relatively static, that is, when the first device remains close to the second device (such as the NFC card reading area), the first device is in the second state. Based on the characteristics of NFC, it can be obtained that when the distance between the first device and the second device is close, an NFC communication process (such as an NFC card reading process) will be triggered, and when the first device and the second device remain close to each other, the second device will send an NFC signal to the first device multiple times (for example, periodically) to trigger the NFC communication process. For example, when the first device is in the second state, at a first moment, the first device receives a first NFC signal (for waking up the NFC module of the first device) sent by the second device, and at a second moment after the first moment, the first device will receive the first NFC signal sent by the second device again.

[0006] In the above method, after the first device receives the first NFC signal sent by the second device, it will first obtain its own state and determine whether to display the NFC card reading interface (displaying the NFC card reading interface can also be referred to as card pop-up) according to the obtained state. When the first device is in the second state, the NFC card reading interface will not be displayed, instead of displaying the NFC card reading interface as soon as the first NFC signal is received. Among them, when the first device is in the second state, it will be considered that it is currently in a scenario where the first device remains close to the second device, rather than a "one-time card sticking" scenario. Considering the usage habits of most users, when the first device remains close to the second device (that is, when it is in the second state), users often do not want to perform multiple NFC card readings. Therefore, when the first device is in the second state, the NFC card reading interface is not displayed, which can avoid the situation where the NFC card reading interface is frequently popped up due to the first device receiving the first NFC signal of the second device multiple times, which not only greatly improves the user experience, but also reduces unnecessary device power consumption.

[0007] In a possible implementation, the second state includes: a state in which the first device is wirelessly charged by the second device, and the first device receives the wireless charging input of the second device. For example, the NFC card reading area and the wireless charging area of ​​the second device are integrated together.

[0008] In the above method, the first device can determine whether to display the NFC card reader interface according to whether it is currently in a wireless charging state. When the first device is in a state of wireless charging through the second device, especially when the NFC card reading area and the wireless charging area of ​​the second device are integrated together, the first device can assume that the current user's purpose of being close to the first device and the second device is to wirelessly charge the first device through the second device rather than to perform NFC card reading. Therefore, the first device will not display the NFC card reader interface. This can avoid the situation where the NFC card reader interface frequently pops up on the first device when the user is wirelessly charging the first device, and more accurately suppresses the situation where the card is accidentally popped up due to receiving the first NFC signal, thereby greatly improving the user experience and solving the problem of reduced charging efficiency of the first device caused by this situation.

[0009] In one possible implementation, the second state includes: the first device and the second device are connected via a first short-range communication method, and the motion posture of the first device is a stationary posture, wherein the first short-range communication method and the NFC communication method are different, for example, Bluetooth, ultra-wideband UWB, star flash or infrared.

[0010] It can be understood that the motion posture of the first device is different from the motion state of the first device relative to the second device, wherein the motion posture of the first device is the posture of the first device itself moving in the space, such as rotation, translation, and stationary (i.e., remaining motionless), while the motion state of the first device relative to the second device represents whether the first device and the second device are relatively stationary or in relative motion.

[0011] In the above method, the second state includes that the first device and the second device are connected through the first short-range communication method. The first device may consider that the distance between the first device and the second device is relatively close, which can avoid the situation where the user of the first device performs NFC card reading at a distance far away from the second device. The second state also includes that the movement posture of the first device is a static posture. The first device may consider that the first device remains motionless, which can avoid the scenario where the user uses the first device to perform "one-time card sticking". Therefore, the first device does not display the NFC card reading interface when it is in the second state. In the scenario where the first device remains close to the second device, the false card ejection caused by receiving the first NFC signal can be accurately suppressed, thereby effectively improving the user experience and reducing power consumption waste.

[0012] In one possible implementation, the second state includes: the first digital key of the first device is connected to the second device, and the motion posture of the first device is a static posture, wherein the short-range communication method corresponding to the first digital key is different from the NFC communication method, and the first digital key is, for example, a Bluetooth key, a UWB key, a Star Flash key or an infrared key.

[0013] In the above method, the second state includes the connection between the first digital key of the first device and the second device. The first device can consider that the control of the second device through the first digital key has been achieved, and it can also be understood that the authentication of the first digital key by the second device (such as card reading) has been completed, so there is no need to perform the NFC card reading process. The second state also includes the movement posture of the first device being a static posture. The first device can consider that the first device remains motionless, which can avoid the scenario where the user uses the first device to "stick the card once". Therefore, the first device does not display the NFC card reading interface when it is in the second state. In the scenario where the first device remains close to the second device, the false card ejection caused by receiving the first NFC signal can be more accurately suppressed, thereby effectively improving the user experience and reducing power consumption.

[0014] In a possible implementation, after the first device receives a first NFC signal (e.g., signaling of the contactless card standard ISO14443-3 protocol) sent by a second device (e.g., a door or a payment device), when the first device is in a first state, the first device can perform an NFC key authentication process with the second device (including the first device sending a second NFC signal to the second device), and the first device can display a first interface (i.e., an NFC card reader interface), the second NFC signal includes information of a first NFC key (e.g., a door key or a payment key) of the first device, and the second NFC signal is used by the second device to authenticate the first NFC key. After the first device receives the first NFC signal sent by the second device, when the first device is in a second state, the first device will not perform an NFC key authentication process with the second device (i.e., the first device does not send information of the first device's NFC key to the second device), and the first device can display a second interface (i.e., not displaying the NFC card reader interface).

[0015] In the above method, after the first device receives the first NFC signal sent by the second device, it will first obtain its own status and determine whether to display the NFC card reader interface and whether to perform the NFC key authentication process based on the acquired status. When the first device is in the second status, the NFC card reader interface will not be displayed, and the NFC key authentication process will not be performed. Instead of displaying the NFC card reader interface and sending NFC key information as soon as the first NFC signal is received, the first device can avoid the situation where the NFC card reader interface frequently pops up and the NFC key information is sent multiple times due to the first device receiving the first NFC signal from the second device multiple times, thereby effectively reducing unnecessary signal transmission and greatly reducing unnecessary device power consumption.

[0016] In a possible implementation, after the first device receives a first NFC signal (e.g., signaling of the contactless card standard ISO14443-3 protocol) sent by the second device (e.g., a vehicle), the method further includes: the first device receives a third NFC signal (e.g., signaling of the ISO14443-4 protocol) from the second device, the third NFC signal including a first identifier (e.g., an application identifier AID); the first device obtains a status of the first device, and determines whether to display an NFC card reading interface and whether to perform an NFC key authentication process based on the obtained status of the first device and whether the NFC key corresponding to the first identifier (which can also be understood as an NFC key related to the second device) is activated; when the first device is in the first state, and / or the second NFC key (e.g., a car key) corresponding to the first identifier has been activated, the first device can perform an NFC key authentication process with the second device. The first device may display the first interface (i.e., the NFC card reader interface), the fourth NFC signal includes information about a third NFC key (e.g., a car key) of the first device, the fourth NFC signal is used by the second device to authenticate the third NFC key, and when the first device has activated the second NFC key, the third NFC key is the second NFC key, and when the first device has not activated the second NFC key, the third NFC key is not the second NFC key (i.e., the third NFC key does not correspond to the first identifier); when the first device is in the second state and the NFC key corresponding to the first identifier is not activated, the first device will not perform the NFC key authentication process with the second device (i.e., the first device does not send information about the NFC key of the first device to the second device), and the first device may display the second interface (i.e., the NFC card reader interface is not displayed).

[0017] In the above method, when the first device determines whether to display the NFC card reading interface and whether to perform the NFC key authentication process, it will not only make the judgment based on its own status, but also make the judgment based on whether the first device has activated the NFC key (that is, the NFC key related to the second device) corresponding to the first identifier (provided by the second device). This can accurately suppress the situation where the first device accidentally pops up the card and misauthenticates the NFC when the NFC key related to the second device is not activated, effectively improving the user experience and reducing power consumption.

[0018] In a second aspect, the present application provides an electronic device, including a transceiver (including an NFC module), a processor and a memory; the memory is used to store a computer program, and the processor calls the computer program, so that the electronic device executes the display method provided in the first aspect and any one of the embodiments of the first aspect.

[0019] In a third aspect, the present application provides a computer storage medium storing a computer program, which, when executed by a processor, is used to execute the display method provided in the first aspect and any one of the embodiments of the first aspect.

[0020] In a fourth aspect, the present application provides a computer program product. When the computer program product runs on a device, the device executes the display method provided in the first aspect and any one of the implementations of the first aspect.

[0021] In a fifth aspect, the present application provides an electronic device, the electronic device comprising a method or device for executing any aspect or implementation of the present application. The electronic device is, for example, a chip.

[0022] It should be understood that the description of technical features, technical solutions, beneficial effects or similar language in this application does not imply that all features and advantages can be realized in any single implementation. On the contrary, it is understood that the description of features or beneficial effects means that specific technical features, technical solutions or beneficial effects are included in at least one implementation. Therefore, the description of technical features, technical solutions or beneficial effects in this application does not necessarily refer to the same implementation. Furthermore, the technical features, technical solutions and beneficial effects described in this application can also be combined in any appropriate manner. Those skilled in the art will understand that this application can be implemented without one or more specific technical features, technical solutions or beneficial effects of a specific implementation. In other implementations, additional technical features and beneficial effects can also be identified in specific implementations that do not embody all implementations. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] The following is an introduction to the drawings used in this application.

[0024] Figure 1 It is a schematic diagram of the architecture of a communication system provided by the present application;

[0025] Figure 2 It is a schematic diagram of the architecture of another communication system provided by the present application;

[0026] Figure 3 It is a schematic diagram of the architecture of another communication system provided by the present application;

[0027] Figure 4 It is a hardware structure diagram of an electronic device provided by the present application;

[0028] Figure 5 It is a schematic diagram of the software architecture of an electronic device provided by this application;

[0029] Figure 6It is a flow chart of a display method provided by the present application;

[0030] Figure 7 It is a flowchart of another display method provided by the present application;

[0031] Figure 8 It is a flowchart of another display method provided by the present application;

[0032] Fig. 9 It is a flow chart of another display method provided by the present application. DETAILED DESCRIPTION

[0033] The technical solutions in the embodiments of the present application will be described below in conjunction with the accompanying drawings. The terms used in the implementation method of the embodiments of the present application are only used to explain the specific embodiments of the present application, and are not intended to limit the present application.

[0034] In the description of the embodiments of the present application, unless otherwise specified, “ / ” means or, for example, A / B can mean A or B; the “and / or” in the text is merely a description of the association relationship of associated objects, indicating that three relationships may exist, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of the present application, “multiple” refers to two or more than two.

[0035] In the following, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as suggesting or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features, and in the description of the embodiments of the present application, unless otherwise specified, "plurality" means two or more.

[0036] Figure 1 It is a schematic diagram of the architecture of a communication system 10 provided in an embodiment of the present application.

[0037] like Figure 1As shown, the communication system 10 may include an electronic device 100 and an electronic device 200. The electronic device 100 and the electronic device 200 may communicate with each other via a wired manner or a wireless manner. The wired manner may include, but is not limited to, a high definition multimedia interface (HDMI), a universal serial bus (USB), a coaxial cable, an optical fiber, etc. The wireless manner may include, but is not limited to, Bluetooth, wireless fidelity (Wi-Fi), near field communication technology (NFC), ultra wide band (UWB), infrared, short-range wireless communication technology specified by the SparkLink Alliance (for example, SparkLink low energy (SLE), SparkLink basic (SLB)), etc.

[0038] In the embodiment of the present application, both the electronic device 100 and the electronic device 200 include an NFC module, which can implement the NFC communication process. Figure 1 As shown, NFC signals can be transmitted between the electronic device 100 and the electronic device 200. Figure 1 Taking the electronic device 100 as a mobile phone and the electronic device 200 as a vehicle as an example, the center console of the electronic device 200 can integrate an NFC card reading area. When the electronic device 100 is close to the NFC card reading area of ​​the electronic device 200, the electronic device 200 can send an NFC signal (for example, for waking up the NFC module of the electronic device 100) (hereinafter referred to as a wake-up signal) to the electronic device 100, and the electronic device 100 can display an NFC card reading interface after receiving the NFC signal, for example Figure 1 The user interface 310 shown. The electronic device 200 may also send an NFC signal (which may be referred to as an authentication request signal) for detecting / authenticating the NFC key of the electronic device 100 to the electronic device 100. Accordingly, the electronic device 100 may reply to the electronic device 200 with an NFC signal (which may be referred to as an authentication response signal) including information about the NFC key of the electronic device 100, so that the electronic device 200 may detect / authenticate the NFC key of the electronic device 100. When the authentication is passed, the function of the electronic device 200 may be controlled (such as started) without a physical key. Among them, the user interface 310 may include the title "Car Key", indicating that the card reading interface of the NFC car key is currently triggered. The user interface 310 may include an icon 311 of the NFC card reading area, an icon 312 of the device, and prompt information 313 (including "Reading the card" and "Please keep the phone attached to the card").

[0039] Figure 2 It is a schematic diagram of the architecture of another communication system 10 provided in an embodiment of the present application.

[0040] like Figure 2 As shown, the communication system 10 may include an electronic device 100 and an electronic device 200. For details, see Figure 1 1 and 2. Description of electronic device 100 and electronic device 200 in FIG. Figure 2 The electronic device 100 shown may include a wallet application 101 and an NFC module 102. Figure 2 The electronic device 200 (vehicle) shown may include a center console 201 , and the center console 201 may include an NFC module 201A, and the NFC module 201A corresponds to an NFC card reading area.

[0041] In one implementation, when the NFC card reading areas of the electronic device 100 and the electronic device 200 are close to each other and remain relatively still for a long time, for example Figure 1 As shown, when the user in the driver's seat or the co-pilot's seat keeps the electronic device 100 (mobile phone) on the center console of the electronic device 200 (vehicle), the electronic device 200 can periodically poll (i.e., periodically send a wake-up signal). Specifically, as Figure 2 As shown, the electronic device 200 can periodically send a wake-up signal to the NFC module 102 of the electronic device 100 through the NFC module 201A. After receiving the wake-up signal each time, the NFC module 102 can report it to the wallet application 101 of the electronic device 100. Therefore, the wallet application 101 will frequently pop up and display the NFC card reading interface (for example, Figure 1 The user interface 310 shown in the figure) and, after sending the wake-up signal, the electronic device 200 can also send an authentication request signal to the NFC module 102 of the electronic device 100 through the NFC module 201A. The wallet application 101 can instruct the NFC module 102 to send an authentication response signal to the NFC module 201A based on the authentication request signal. Therefore, NFC signals related to the NFC key authentication process will be frequently transmitted between the electronic devices 100 and 200, affecting the user experience and consuming high power. It is understandable that when the user keeps the electronic device 100 on the electronic device 200, he may only want to authenticate the NFC key once, or may not want to authenticate the NFC key. For example, the center console of some vehicles integrates the NFC card reading area and the wireless charging area (for example Figure 1The NFC card reading area shown is also integrated with a wireless charging area). When a user wants to use the electronic device 200 to charge the electronic device 100, the electronic device 100 will be kept placed on the center console of the electronic device 200. At this time, the user may not want to authenticate the NFC key. Therefore, the frequent pop-up of the NFC card reading interface of the electronic device 100 will seriously affect the user experience, and the resulting power consumption problem will cause the charging efficiency of the electronic device 100 to decrease.

[0042] In another implementation, the preset time after the electronic device 200 authenticates the NFC key of the electronic device 100 is the suppression period, which is generally about 1 or 2 minutes. The electronic device 200 will not send a wake-up signal to the electronic device 100 during the suppression period. Therefore, the electronic device 100 will not pop up the NFC card reader interface during the suppression period, and the electronic device 100 and the electronic device 200 will not transmit NFC signals related to the NFC key authentication process. However, after the suppression period ends, the electronic device 200 will send a wake-up signal, causing the electronic device 100 to pop up the NFC card reader interface again. This implementation still cannot effectively solve the technical problems existing in the above implementation. For example, it can only avoid popping up the NFC card reader interface for a short period of time after the NFC key is authenticated, that is, it can only alleviate the frequency of the problem, but cannot effectively solve the problems of poor user experience and high power consumption. For another example, some electronic devices 100 have not opened the NFC key, so they cannot meet the authentication pass conditions to enter the suppression period, that is, the device that has not opened the NFC key cannot benefit. For another example, the manufacturer of the electronic device 200 needs to modify the electronic device 200, which is difficult to implement and has a long consumption cycle, and the stock equipment cannot benefit.

[0043] The present application embodiment provides a display method, which is applied to a communication system 10, wherein the communication system 10 includes an electronic device 100 and an electronic device 200. When a user brings the NFC card reading areas of the electronic device 100 and the electronic device 200 close to each other and keeps them relatively still, for example Figure 1When the electronic device 100 (mobile phone) shown is placed in the NFC card reading area of ​​the center console of the electronic device 200 (vehicle), the electronic device 200 can send an NFC signal (such as a wake-up signal or an authentication request signal) to the electronic device 100. After the electronic device 100 receives the NFC signal of the electronic device 200, it can determine whether the NFC card reading interface is currently displayed based on the state perception of the electronic device 100, and optionally whether the electronic device 100 has enabled the NFC key, and optionally determine whether to perform the authentication process of the NFC key. Compared with the above-mentioned short inhibition period, the embodiment of the present application can achieve a "permanent inhibition period" when the judgment result is no, so as to avoid the poor user experience caused by the repeated pop-up of the NFC card reading interface of the electronic device 100, and the high power consumption of the device. In addition, the capability of the above-mentioned display method is released with the electronic device 100 (for example, with the wallet application of the electronic device 100), even if the electronic device 100 with low performance and no NFC key is enabled, it also supports it, and does not depend on the modification of the electronic device 200 (such as a vehicle), so it can cover more electronic devices 100 and electronic devices 200, and the application scenarios are wider.

[0044] Among them, the electronic device 100 activates the NFC key, which can also be referred to as the electronic device 100 registering the NFC key or the electronic device 100 including the NFC key, etc. It can be understood that the NFC key can control the corresponding device (one NFC key can correspond to at least one device), for example, the vehicle 1 is started by the NFC car key 1, the vehicle 2 is started by the NFC car key 2, the gate 1 is opened by the NFC door key 1, and the gate 2 is opened by the NFC door key 2. An NFC key can have an identification information (such as an application identifier (AID)), and different identification information corresponds to different NFC keys. Optionally, the identification information of multiple NFC keys can be the same.

[0045] The NFC card reader interface is the card reader interface of the NFC module of the electronic device 100, which may also be referred to as a verification interface or a usage interface, etc. The NFC key may also be referred to as an NFC card, etc.

[0046] Figure 3 It is a schematic diagram of the architecture of another communication system 10 provided in an embodiment of the present application.

[0047] like Figure 3 As shown, the communication system 10 may include an electronic device 100 and an electronic device 200. For details, see Figure 1 1 and 2. Description of electronic device 100 and electronic device 200 in FIG. Figure 3The electronic device 100 shown may include a wallet application 101 , an NFC module 102 , a wireless charging module 103 , a Bluetooth module 104 , a UWB module 105 , a gyro sensor 106 , and an authentication module 107 . Figure 3 The electronic device 200 (vehicle) shown may include a center console 201, a Bluetooth module 202 and a UWB module 203. The center console 201 may include an NFC module 201A (corresponding to the NFC card reading area) and a wireless charging module 201B.

[0048] The wallet application 101 of the electronic device 100 can be used to manage digital keys such as NFC keys, UWB keys, and Bluetooth keys of the electronic device 100, any of which can be used to control other devices such as the electronic device 200. For example, the NFC / UWB / Bluetooth key of a car key can start a vehicle, and the NFC / UWB / Bluetooth key of a door key / access card can open a door. The wallet application 101 can also be used to call the authentication module 107 to determine whether to display an NFC card reader interface (e.g. Figure 1 The user interface 310 shown in the figure) can optionally determine whether to perform the authentication process of the NFC key.

[0049] The NFC module 102 of the electronic device 100 may be used to transmit NFC signals with the NFC module 201A of the electronic device 200 .

[0050] The wireless charging module 103 of the electronic device 100 can be used to wirelessly charge the wireless charging module 201B of the electronic device 200 (which can be referred to as being in a wireless charging state). In one embodiment, the electronic device 100 can be used as a charged device that receives a charging current, and the electronic device 200 can be used as a charging device that provides a charging current. For example, when the electronic device 100 is placed on the central console 201 of the electronic device 200, the electronic device 200 can send a charging current to the wireless charging module 103 of the electronic device 100 through the wireless charging module 201B, so as to achieve the effect that the electronic device 200 charges the electronic device 100. In one embodiment, the wireless charging module 103 can report its own state (e.g., whether it is in a wireless charging state) to the authentication module 107.

[0051] The Bluetooth module 104 of the electronic device 100 can be used to establish a Bluetooth connection with the Bluetooth module 202 of the electronic device 200. For example, when the electronic device 100 activates the Bluetooth key and the electronic device 100 and the electronic device 200 are close to each other, the Bluetooth key of the electronic device 100 can establish a Bluetooth connection with the electronic device 200. Optionally, the first connection can be achieved by manual operation of the user. Optionally, the Bluetooth key and the electronic device 200 that have established a Bluetooth connection can automatically establish a connection when the electronic device 100 and the electronic device 200 are close to each other. In one embodiment, the Bluetooth module 104 can report its own status (e.g., the connection status of the Bluetooth module 104 and / or the connection status of the Bluetooth key) to the authentication module 107.

[0052] The UWB module 105 of the electronic device 100 can be used to establish a UWB connection with the UWB module of the electronic device 200. For example, when the electronic device 100 activates the UWB key and the electronic device 100 and the electronic device 200 are close to each other, the UWB key of the electronic device 100 can establish a UWB connection with the electronic device 200. In one embodiment, the UWB module 105 can report its own status (e.g., the connection status of the UWB module 105 and / or the connection status of the UWB key) to the authentication module 107.

[0053] The gyro sensor 106 of the electronic device 100 may be used to determine the motion posture (also referred to as physical posture) of the electronic device 100. In one embodiment, the gyro sensor 106 may report detection information to the authentication module 107 so that the authentication module 107 determines the motion posture of the electronic device 100 according to the detection information.

[0054] The electronic device 100 can obtain the relative position of the electronic device 100 and the electronic device 200 through at least one module to determine whether the electronic device and the electronic device 200 remain relatively still, for example, by transmitting the respective positions of the Bluetooth module 104 and the electronic device 200 to determine the relative position of the electronic device 100 and the electronic device 200. Not limited to this, the relative position of the electronic device 100 and the electronic device 200 can also be obtained through other communication modules (such as UWB modules, NFC modules, etc.) and other sensors (such as proximity light sensors, gyroscope sensors, position sensors, etc.).

[0055] The authentication module 107 of the electronic device 100 can be used to obtain the status and / or detection information of at least one of the following modules: the wireless charging module 103, the Bluetooth module 104, the UWB module 105, and the gyroscope sensor 106. The authentication module 107 can determine whether to display the NFC card reader interface based on the acquired status and / or detection information, and optionally determine whether the NFC key is enabled on the electronic device 100, and optionally determine whether the NFC key authentication with the electronic device 200 is currently required. The judgment result of the authentication module 107 can be reported to the wallet application 101.

[0056] For example, when the NFC card reading areas of the electronic device 100 and the electronic device 200 are close to each other and remain relatively still for a long time, for example Figure 1 As shown, when the user in the driver's seat or the co-pilot's seat keeps the electronic device 100 (mobile phone) on the center console of the electronic device 200 (vehicle), the electronic device 200 can periodically poll. Figure 3 As shown, the electronic device 200 can periodically send a wake-up signal to the NFC module 102 of the electronic device 100 through the NFC module 201A. Each time the NFC module 102 receives the wake-up signal, it can report it to the wallet application 101 of the electronic device 100. At this time, the wallet application 101 can call the authentication module 107. The authentication module 107 can determine whether the NFC card reading interface is currently displayed based on the status and / or detection information of at least one module obtained, and report the determination result to the wallet application 101, so that the wallet application 101 displays the corresponding interface according to the determination result. Furthermore, after sending the wake-up signal, the electronic device 200 can also send an authentication request signal to the NFC module 102 of the electronic device 100 through the NFC module 201A, and the NFC module 102 will report the received authentication request signal to the wallet application 101. At this time, the wallet application 101 can call the authentication module 107, and the authentication module 107 can determine whether it is necessary to authenticate the NFC key with the electronic device 200 and whether to display the NFC card reader interface based on the status and / or detection information of at least one module obtained, and whether the electronic device 100 has activated the NFC key, and report the judgment result to the wallet application 101, so that the wallet application 101 performs corresponding operations according to the judgment result. When the authentication module 107 determines to authenticate the NFC key with the electronic device 200, the wallet application 101 can instruct the NFC module 102 to send an authentication response signal to the NFC module 201A, so that the electronic device 200 authenticates the NFC key of the electronic device 100 according to the authentication response signal.

[0057] Understandably, when the NFC card reading areas of electronic device 100 and electronic device 200 are close to each other and remain relatively still for a long time, even if electronic device 200 is still polling periodically, electronic device 100 will determine whether to display the NFC card reading interface based on state perception, so the NFC card reading interface will not be repeatedly popped up according to the frequency of polling of electronic device 200, effectively improving the user experience. In addition, electronic device 100 can make accurate judgments based on the status and / or detection information of multiple modules to avoid affecting the user experience of NFC keys in other scenarios, greatly improving the usability of NFC keys.

[0058] Figure 3 Taking the example of electronic device 100 and electronic device 200 including Bluetooth module and UWB module, in specific implementation, electronic device 100 and / or electronic device 200 may not include these communication modules, and electronic device 100 and / or electronic device 200 may also include communication modules of other communication technologies, such as star flash communication module, infrared communication module, etc., and the embodiment of the present application does not limit the number and type of communication modules included in electronic device 100 and electronic device 200. Correspondingly, electronic device 100 may also include star flash key, infrared key, etc., and the embodiment of the present application does not limit the number and type of digital keys included in electronic device 100.

[0059] Figure 3 The electronic device 100 includes a gyroscope sensor 106, and the motion posture of the electronic device 100 is determined by the detection information of the gyroscope sensor 106. In a specific implementation, other sensors may also be included, and the motion posture of the electronic device 100 may be determined by the detection information of other sensors, or the motion posture of the electronic device 100 may also be determined by an image taken by a camera. The embodiment of the present application does not limit the module in the electronic device 100 for determining the motion posture of the electronic device 100.

[0060] Figure 3 The electronic device 100 and the electronic device 200 include a wireless charging module as an example for illustration. In a specific implementation, the electronic device 100 and / or the electronic device 200 may not include a wireless charging module.

[0061] Figure 3Taking the electronic device 200 as a vehicle, the NFC module 201A and the wireless charging module 201B are integrated in the center console 201 as an example for illustration. In a specific implementation, the NFC module 201A and the wireless charging module 201B may also be integrated in other modules of the vehicle, or the electronic device 200 may also be in other forms. In this case, the NFC module 201A and the wireless charging module 201B may be integrated in modules of the corresponding form of the electronic device 200, or the NFC module 201A and the wireless charging module 201B may not be integrated together, and the embodiments of the present application are not limited to this.

[0062] Figure 1-Figure 3 The forms of the electronic device 100 and the electronic device 200 shown are for illustrative purposes only. In specific implementations, they may also be in other forms. For specific examples, please refer to the description of the electronic device 100 and the electronic device 200 below. The embodiments of the present application are not limited to this.

[0063] Next, the electronic device 100 and the electronic device 200 involved in the embodiments of the present application are exemplarily introduced.

[0064] In the present application, the electronic device 100 / electronic device 200 can be a mobile phone, a tablet computer, a handheld computer, a desktop computer, a laptop computer, an ultra-mobile personal computer (UMPC), a netbook, a cellular phone, a personal digital assistant (PDA), as well as smart home devices such as smart TVs and smart cameras, wearable devices such as smart bracelets, smart watches, and smart glasses, extended reality (XR) devices such as augmented reality (AR), virtual reality (VR), and mixed reality (MR), vehicles, vehicle-mounted devices or smart city devices. The embodiments of the present application do not impose any special restrictions on the specific types of electronic devices.

[0065] It is to be understood that the structure illustrated in the embodiments of the present application does not constitute a specific limitation on the electronic device. In other embodiments of the present application, the electronic device may include more or fewer components than shown in the figure, or combine certain components, or split certain components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

[0066] Figure 4 It is a schematic diagram of the hardware structure of an electronic device 100 provided in an embodiment of the present application.

[0067] like Figure 4As shown, the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.

[0068] The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.

[0069] The processor 110 may also be provided with a memory for storing instructions and data. In one embodiment, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.

[0070] In one embodiment, the processor 110 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.

[0071] The charging management module 140 is used to receive charging input from the charger. The charger can be a wireless charger or a wired charger. In some wired charging implementations, the charging management module 140 can receive charging input from the wired charger through the USB interface 130. In some wireless charging implementations, the charging management module 140 can receive wireless charging input through the wireless charging coil of the electronic device 100, such as receiving wireless charging input from the electronic device 200. While the charging management module 140 is charging the battery 142, it can also power the electronic device 100 through the power management module 141. In one implementation, the charging management module 140 can report to the processor 110 whether the electronic device 100 is in a wireless charging state, so that the processor 110 can determine whether to display the NFC card reader interface.

[0072] The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140, and supplies power to the processor 110, the internal memory 121, the display screen 194, the camera 193, and the wireless communication module 160. The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle number, battery health status (leakage, impedance), etc. In another embodiment, the power management module 141 can also be set in the processor 110. In another embodiment, the power management module 141 and the charging management module 140 can also be set in the same device.

[0073] The wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.

[0074] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of the antennas. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In another embodiment, the antenna can be used in combination with a tuning switch.

[0075] The mobile communication module 150 can provide wireless communication solutions including second generation (2G) / third generation (3G) / fourth generation (4G) / fifth generation (5G) / sixth generation (6G) applied to the electronic device 100. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, filter, amplify and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In one embodiment, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In one embodiment, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110.

[0076] The modem processor may include a modulator and a demodulator. Among them, the modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to a speaker 170A, a receiver 170B, etc.), or displays an image or video through a display screen 194. In one embodiment, the modem processor may be an independent device. In another embodiment, the modem processor may be independent of the processor 110 and be set in the same device as the mobile communication module 150 or other functional modules.

[0077] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared technology (IR), UWB, star flash, etc., which are applied to the electronic device 100. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the frequency of the electromagnetic wave signal and filters it, and sends the processed signal to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate the frequency of it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.

[0078] In one embodiment, the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology. The GNSS may include a global positioning system (GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS) and / or a satellite based augmentation system (SBAS).

[0079] In one embodiment, the wireless communication module 160 can report to the processor 110 the status of the wireless communication connection between the electronic device 100 and the electronic device 200, for example, whether the electronic device 100 and the electronic device 200 have established a wireless communication connection, the type of the established wireless communication connection (such as Bluetooth, UWB, Star Flash), whether the digital key and the electronic device 200 have established a connection when the electronic device 100 has activated a digital key for wireless communication, etc., so that the processor 110 can determine whether to display the NFC card reader interface.

[0080] The electronic device 100 implements the display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.

[0081] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, a quantum dot light-emitting diode (QLED), etc. In one embodiment, the electronic device 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.

[0082] The electronic device 100 can realize the shooting function through ISP, camera 193, video codec, GPU, display screen 194 and application processor.

[0083] The ISP is used to process the data fed back by the camera 193. For example, when taking a photo, the shutter is opened, and the light is transmitted to the camera photosensitive element through the lens. The light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to the ISP for processing and converts it into an image visible to the naked eye. The ISP can also perform algorithm optimization on the noise, brightness, etc. of the image. The ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In one embodiment, the ISP can be set in the camera 193.

[0084] The camera 193 is used to capture still images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then passes the electrical signal to the ISP to be converted into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV or other format. In one embodiment, the electronic device 100 may include 1 or N cameras 193, where N is a positive integer greater than 1.

[0085] In one embodiment, the camera 193 can send the captured image to the processor 110, and the processor 110 can obtain the relative position of the electronic device 100 and the electronic device 200, the relative motion state of the electronic device 100 and the electronic device 200, the motion posture of the electronic device 100 and other states of the electronic device 100 based on the captured image, and determine whether to display the NFC card reading interface based on the acquired state.

[0086] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function, such as storing music, video and other files in the external memory card.

[0087] The internal memory 121 can be used to store computer executable program codes, which include instructions. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the electronic device 100 (such as audio data, a phone book, etc.), etc. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc. The processor 110 executes various functional applications and data processing of the electronic device 100 by running instructions stored in the internal memory 121, and / or instructions stored in a memory provided in the processor.

[0088] The electronic device 100 can implement audio functions such as music playing and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.

[0089] The audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. The audio module 170 can also be used to encode and decode audio signals. In one embodiment, the audio module 170 can be arranged in the processor 110, or some functional modules of the audio module 170 can be arranged in the processor 110.

[0090] The speaker 170A, also called a "speaker", is used to convert an audio electrical signal into a sound signal. The electronic device 100 can listen to music or listen to a hands-free call through the speaker 170A.

[0091] The receiver 170B, also called a "earpiece", is used to convert audio electrical signals into sound signals. When the electronic device 100 receives a call or voice message, the voice can be received by placing the receiver 170B close to the human ear.

[0092] Microphone 170C, also called "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can speak by approaching the microphone 170C with his mouth to input the sound signal into the microphone 170C. The electronic device 100 can be provided with at least one microphone 170C.

[0093] The pressure sensor 180A is used to sense pressure signals and can convert pressure signals into electrical signals. When a touch operation is applied to the display screen 194, the electronic device 100 detects the intensity of the touch operation according to the pressure sensor 180A. The electronic device 100 can also calculate the touch position according to the detection signal of the pressure sensor 180A.

[0094] The gyro sensor 180B can be used to determine the motion posture of the electronic device 100. In one embodiment, the angular velocity of the electronic device 100 around three axes (i.e., x, y, and z axes) can be determined by the gyro sensor 180B. The gyro sensor 180B can be used for anti-shake shooting. For example, when the shutter is pressed, the gyro sensor 180B detects the angle of the electronic device 100 shaking, calculates the distance that the lens module needs to compensate based on the angle, and allows the lens to offset the shaking of the electronic device 100 through reverse movement to achieve anti-shake. The gyro sensor 180B can also be used for navigation and somatosensory game scenes.

[0095] The air pressure sensor 180C is used to measure air pressure.

[0096] The magnetic sensor 180D includes a Hall sensor.

[0097] The acceleration sensor 180E can detect the magnitude of the acceleration of the electronic device 100 in all directions (generally three axes). When the electronic device 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of the electronic device and is applied to applications such as horizontal and vertical screen switching and pedometers.

[0098] The distance sensor 180F is used to measure the distance.

[0099] The proximity light sensor 180G may include, for example, a light emitting diode (LED) and a light detector, such as a photodiode. The light emitting diode may be an infrared light emitting diode. The electronic device 100 emits infrared light outward through the light emitting diode. The electronic device 100 uses the photodiode to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object near the electronic device 100. When insufficient reflected light is detected, the electronic device 100 can determine that there is no object near the electronic device 100. The electronic device 100 can use the proximity light sensor 180G to detect the relative position and relative motion state of the electronic device 100 and the electronic device 200.

[0100] The ambient light sensor 180L is used to sense the brightness of ambient light.

[0101] The fingerprint sensor 180H is used to collect fingerprints.

[0102] The temperature sensor 180J is used to detect the temperature.

[0103] The touch sensor 180K is also called a "touch control device". The touch sensor 180K can be set on the display screen 194. The touch sensor 180K and the display screen 194 form a touch screen, also called a "touch control screen". The touch sensor 180K is used to detect touch operations acting on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 194. In another embodiment, the touch sensor 180K can also be set on the surface of the electronic device 100, which is different from the position of the display screen 194.

[0104] Bone conduction sensor 180M can obtain vibration signals.

[0105] In one embodiment, the gyroscope sensor 180B and / or the acceleration sensor 180E can report detection information to the processor 110 so that the processor 110 can obtain the motion posture of the electronic device 100 and the relative motion state of the electronic device 100 and the electronic device 200, so that the processor 110 can determine whether to display the NFC card reading interface.

[0106] The key 190 includes a power key, a volume key, etc. The key 190 may be a mechanical key or a touch key. The electronic device 100 may receive key input and generate key signal input related to user settings and function control of the electronic device 100.

[0107] Motor 191 can generate vibration prompts.

[0108] Indicator 192 may be an indicator light, which may be used to indicate charging status, power changes, messages, missed calls, notifications, etc.

[0109] The SIM card interface 195 is used to connect a SIM card.

[0110] The software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. For example, the software system of the layered architecture may be an Android system, or a harmony operating system (OS), or other software systems. The embodiment of the present application takes the Android system of the layered architecture as an example to illustrate the software structure of the electronic device 100.

[0111] Figure 5 It is a schematic diagram of the software architecture of an electronic device 100 provided in an embodiment of the present application.

[0112] The layered architecture divides the software into several layers, each with clear roles and division of labor. The layers communicate with each other through software interfaces. In one embodiment, the Android system is divided into four layers, from top to bottom: the application layer, the application framework layer, the Android runtime and system library, and the kernel layer.

[0113] The application layer can include a series of application packages.

[0114] like Figure 5 As shown, the application package may include wallet, camera, music, settings, calls, navigation, Bluetooth, video, short messages, browsers and other applications. The applications in this application may also be replaced by other software such as applets and atomic services. The wallet application in the embodiment of this application can be used to manage at least one NFC key. Different NFC keys can be used to control different devices. Different NFC keys can also be used to control different functions of the same device. The embodiment of this application does not limit the functions of NFC keys. Not limited to this, the wallet application can also be used to manage digital keys such as Bluetooth keys, UWB keys, and Star Flash keys. Not limited to this, NFC keys can also be managed through other applications, such as settings applications.

[0115] The application framework layer provides an application programming interface (API) and a programming framework for the applications in the application layer. The application framework layer includes some predefined functions.

[0116] like Figure 5 As shown, the application framework layer may include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, an authentication module, and the like.

[0117] The window manager is used to manage window programs. The window manager can obtain the display screen size, determine whether there is a status bar, lock the screen, capture the screen, etc.

[0118] Content providers are used to store and retrieve data and make it accessible to applications. The data may include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.

[0119] The view system includes visual controls, such as controls for displaying text, controls for displaying images, etc. The view system can be used to build applications. A display interface can be composed of one or more views. For example, a display interface including a text notification icon can include a view for displaying text and a view for displaying images.

[0120] The phone manager is used to provide communication functions of the electronic device 100, such as management of call status (including connecting, hanging up, etc.).

[0121] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.

[0122] The notification manager enables applications to display notification information in the status bar, which can be used to convey notification-type messages and can disappear automatically after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc. The notification manager can also be a notification that appears in the top status bar of the system in the form of a chart or scroll bar text, such as a notification of an application running in the background, or a notification that appears on the screen in the form of a dialog window. For example, a text message is prompted in the status bar, a prompt sound is emitted, the electronic device 100 vibrates, an indicator light flashes, etc.

[0123] The authentication module is used to obtain the status of the electronic device 100, and optionally whether the electronic device 100 has activated the NFC key, and determine whether to display the NFC card reader interface, and optionally determine whether to perform the NFC key authentication process with the electronic device 200.

[0124] Android Runtime includes core libraries and virtual machines. Android runtime is responsible for scheduling and management of the Android system.

[0125] The core library consists of two parts: one part is the function that needs to be called by the Java language, and the other part is the Android core library.

[0126] The application layer and the application framework layer run in a virtual machine. The virtual machine executes the Java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.

[0127] The system library can include multiple functional modules, such as surface manager, media library, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), etc.

[0128] The surface manager is used to manage the display subsystem and provide the fusion of 2D and 3D layers for multiple applications.

[0129] The media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.

[0130] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.

[0131] A 2D graphics engine is a drawing engine for 2D drawings.

[0132] The kernel layer is the layer between hardware and software. The kernel layer contains at least display driver, camera driver, audio driver, and sensor driver.

[0133] The following is an illustrative description of the software and hardware workflow of the electronic device 100 in conjunction with an NFC card reading scenario.

[0134] When the wireless communication module 160 receives the wake-up signal sent by the electronic device 200, the corresponding hardware interrupt is sent to the kernel layer. The kernel layer processes the wake-up signal into an original input event (including the specific content of the wake-up signal, the timestamp of receiving the wake-up signal, and other information). The original input event is stored in the kernel layer. The application framework layer obtains the original input event from the kernel layer and identifies the application corresponding to the input event (assuming it is a wallet application). The wallet application then calls the interface of the application framework layer, controls the display driver by calling the kernel layer, and displays the NFC card reading interface through the display screen 194.

[0135] Based on the above embodiments, the display method provided by the embodiments of the present application is introduced. The method can be applied to Figure 1 The communication system 10 shown. The method can be applied to Figure 3 The communication system 10 shown. The method can be applied to Figure 4 The electronic device 100 shown. The method can be applied to Figure 5 An electronic device 100 is shown.

[0136] The following embodiments are illustrated by taking the gyroscope sensor 106 to detect the physical posture of the electronic device 100 as an example. The following embodiments are illustrated by taking the electronic device 100 including a Bluetooth module / UWB module and being able to establish a Bluetooth / UWB connection with other devices (such as the electronic device 200) as an example.

[0137] Figure 6 : is a flow chart of a display method provided by an embodiment of the present application. The method may include but is not limited to the following steps:

[0138] S101: When a user brings electronic device 100 and electronic device 200 close to each other, electronic device 100 and electronic device 200 may establish a Bluetooth / UWB connection. Optionally, Bluetooth module 104 / UWB module 105 of electronic device 100 and Bluetooth module 202 / UWB module 203 of electronic device 200 may establish a Bluetooth / UWB connection.

[0139] In one embodiment, S101 is an optional step. In one embodiment, when the electronic device 100 has activated the Bluetooth / UWB key corresponding to the electronic device 200, if the user brings the electronic device 100 and the electronic device 200 close together, the electronic device 100 can establish a Bluetooth / UWB connection with the electronic device 200 through the Bluetooth / UWB key.

[0140] S102: When the user places the electronic device 100 on the NFC card reading area of ​​the electronic device 200, the NFC module 201A of the electronic device 200 may be enabled to transmit NFC signals.

[0141] S103 : The NFC module 201A of the electronic device 200 sends an NFC signal 1 to the NFC module 102 of the electronic device 100 .

[0142] In one embodiment, NFC signal 1 may be a signaling of the contactless card standard ISO / IEC 14443-3 protocol. In some examples, NFC signal 1 is a request signal (request A, REQA) or a wakeup signal (wakeup A, WUPA). NFC signal 1 may be used to request the NFC card type of the electronic device 100, which is distinguished by the way in which the NFC card (the electronic device 100 in the embodiment of the present application) sends a signal to the card reader (the electronic device 100 in the embodiment of the present application), and may be divided into type A (type A) and type B (type B). A type A card may send a signal via a 13.65 megahertz (MHz) carrier, the encoding method is Miller encoding, and the carrier amplitude modulation method is 100% amplitude shift keying (ASK). A type B card may send a signal via a 13.65MHz carrier, the encoding method is nonreturn to zero (NRA), and the carrier amplitude modulation method is 10% ASK. Not limited to the above example, in a specific implementation, there may be other NFC card types, such as a felica type, which may also be referred to as type F.

[0143] In one implementation, the NFC module 102 of the electronic device 100 may wake up after receiving the NFC signal 1 to transmit the NFC signal.

[0144] S104 : In response to the NFC signal 1 , the NFC module 102 of the electronic device 100 sends an NFC signal 2 to the NFC module 201A of the electronic device 200 .

[0145] In one embodiment, the NFC signal 2 may include that the NFC key of the electronic device 100 is a virtual key or a physical key. The electronic device 100 in the embodiment of the present application is, for example, a mobile terminal such as a mobile phone or a wearable device. Therefore, the NFC key included in the electronic device 100 is a virtual key, but not limited to this. In another embodiment, the electronic device 100 may also include a physical NFC key, or the electronic device 100 is a physical NFC key.

[0146] In one implementation, the NFC signal 2 may be a signaling of the ISO / IEC 14443-3 protocol. In some examples, the NFC signal 2 is a request response signal (answer to request A, ATQA) of the NFC signal 1 .

[0147] S105: After receiving the NFC signal 1, the NFC module 102 of the electronic device 100 sends a corresponding notification to the wallet application 101. For example, the NFC module 102 may broadcast a notification of receiving the NFC signal 1 to the application of the electronic device 100.

[0148] S106 : The wallet application 101 of the electronic device 100 obtains the connection status of the electronic device 100 from the Bluetooth module 104 / UWB module 105 .

[0149] In one embodiment, the connection status of the electronic device 100 may include whether a Bluetooth / UWB connection is established with the electronic device 200. Optionally, when the electronic device 100 has activated the Bluetooth / UWB key corresponding to the electronic device 200, the connection status of the electronic device 100 may include whether a Bluetooth / UWB connection is established with the electronic device 200 through the Bluetooth / UWB key corresponding to the electronic device 200. It can be understood that since a short-range communication connection such as a Bluetooth / UWB connection can only be successfully established when the distance between the electronic device 100 and the electronic device 200 is relatively close, therefore, when the electronic device 100 and the electronic device 200 have established a Bluetooth / UWB connection, it indicates that the electronic device 100 is near the electronic device 200.

[0150] S107 : The wallet application 101 of the electronic device 100 obtains the motion posture of the electronic device 100 from the gyro sensor 106 .

[0151] In one embodiment, when it is obtained in S106 that the electronic device 100 has established a Bluetooth / UWB connection with the electronic device 200, the wallet application 101 can obtain the motion posture of the electronic device 100 (i.e., execute S107) to determine whether the electronic device 100 is in a static posture. It can be understood that NFC is a short-range communication method. For the electronic device 100 and the electronic device 200 to transmit NFC signals, the distance between the two needs to be close. When the connection state of the electronic device 100 is that the Bluetooth / UWB connection has been established with the electronic device 200, it indicates that the electronic device 100 is near the electronic device 200 and meets the basic conditions for transmitting NFC signals. In this case, executing S107 again can avoid the waste of power consumption caused by meaninglessly executing other judgments (S107) when the distance between the electronic device 100 and the electronic device 200 is far.

[0152] S108: The wallet application 101 of the electronic device 100 determines whether to display the NFC card reading interface according to the motion posture and connection status of the electronic device 100.

[0153] S109: When the electronic device 100 is in a stationary position and has established a Bluetooth / UWB connection with the electronic device 200, the wallet application 101 of the electronic device 100 does not display the NFC card reading interface, otherwise it displays the NFC card reading interface.

[0154] In one embodiment, when the electronic device 100 is in a static posture and has established a Bluetooth / UWB connection with the electronic device 200 (which can be considered to be in a specific scenario), the electronic device 100 may not display the NFC card reader interface, for example, keeping the original display interface unchanged. The above-mentioned specific scenarios can exclude scenarios where the user uses an NFC key, for example, exclude scenarios where the user uses other digital keys at a distance from the electronic device 200 (in such scenarios, it is impossible to establish a connection with the electronic device 200 using a near-field communication method such as Bluetooth / UWB), and for example, exclude scenarios where the user uses an NFC bus card for "one-time card authentication" such as boarding a bus near the electronic device 200 (in such scenarios, the electronic device 100 will not be in a static posture). Therefore, the mis-popping of the card in a specific scenario where the NFC signal 1 is received can be accurately suppressed.

[0155] In another embodiment, when the electronic device 100 is not in a static posture (i.e., in motion), and / or has not established a Bluetooth / UWB connection with the electronic device 200, it can be considered that it is not in the above-mentioned specific scenario, and the user may use the NFC key. Then the electronic device 100 can display the NFC card reader interface, so as to avoid affecting the normal card usage experience of digital keys such as access control. In some examples, when the electronic device 100 displays the NFC card reader interface, the NFC key of the electronic device 100 can be displayed in the NFC card reader interface, which can be understood as the electronic device 100 setting the NFC key at the top layer of multiple cards / multiple digital keys, and the electronic device 100 can set the displayed NFC key information to an accessible / readable state for other devices to read and authenticate the NFC key.

[0156] S110 : The NFC module 201A of the electronic device 200 determines to initiate authentication of the NFC key according to the NFC signal 2 .

[0157] In one implementation, after receiving the NFC signal 2 in response to the NFC signal 1, the NFC module 201A determines to initiate authentication of the NFC key, and thus executes S111.

[0158] In one implementation, when the NFC signal 2 includes that the NFC key of the electronic device 100 is a virtual key, the NFC module 201A determines to initiate authentication of the NFC key, and thus executes S111.

[0159] S111 : the NFC module 201A of the electronic device 200 sends an NFC signal 3 (including AID1 ) to the NFC module 102 of the electronic device 100 .

[0160] In one implementation, the NFC signal 3 may be a signaling of the ISO / IEC 14443-4 protocol, used to request detection / authentication of the NFC key of the electronic device 100 .

[0161] In one implementation, AID1 is the identifier of the NFC key corresponding to the electronic device 200 , and the electronic device 200 may send an NFC signal 3 including AID1 to the electronic device 100 to request detection / authentication of the NFC key corresponding to AID1 in the electronic device 100 .

[0162] S112: After receiving the NFC signal 3, the NFC module 102 of the electronic device 100 sends a corresponding notification to the wallet application 101. For example, the NFC module 102 may broadcast a notification of receiving the NFC signal 3 to the application of the electronic device 100.

[0163] S113 : The wallet application 101 of the electronic device 100 obtains the connection status of the electronic device 100 from the Bluetooth module 104 / UWB module 105 .

[0164] S114 : The wallet application 101 of the electronic device 100 obtains the motion posture of the electronic device 100 from the gyro sensor 106 .

[0165] The description of S113 and S114 can refer to the description of S106 and S107 above, the difference is that S106 and S107 are executed after the wallet application 101 receives the notification of NFC signal 1 entering the field, and S113 and S114 are executed after the wallet application 101 receives the notification of NFC signal 3 entering the field.

[0166] S115: The wallet application 101 of the electronic device 100 determines whether to display the NFC card reading interface and whether to perform the NFC key authentication process according to the movement posture, connection status, and whether the NFC key corresponding to AID1 of the electronic device 100 is activated (the judgment results can be seen in the following cases A and B).

[0167] S116: In situation A, when the electronic device 100 is in a stationary state, has established a Bluetooth / UWB connection with the electronic device 200, and the NFC key corresponding to AID1 is not activated, the wallet application 101 of the electronic device 100 does not display the NFC card reading interface and does not perform the NFC key authentication process.

[0168] In one embodiment, when the electronic device 100 is in a stationary posture and has established a Bluetooth / UWB connection with the electronic device 200, it can be considered to be in a specific scenario, and the specific scenario can exclude the scenario where the user uses the NFC key. In the specific scenario, if the electronic device 100 has not activated the NFC key corresponding to AID1, the electronic device 100 may not display the NFC card reader interface, for example, keep the original display interface unchanged, and do not perform the NFC key authentication process with the electronic device 200, for example, do not execute S117 and S118 of the following situation B.

[0169] S117: In situation B, when the electronic device 100 satisfies at least one of the following conditions: not in a static posture, not establishing a Bluetooth / UWB connection with the electronic device 200, and the NFC key corresponding to AID1 has been activated, the wallet application 101 of the electronic device 100 sends an NFC signal 4 to the NFC module 201A of the electronic device 200 through the NFC module 102.

[0170] In one embodiment, when the electronic device 100 satisfies at least one of the following: it is not in a static posture (i.e., in motion), has not established a Bluetooth / UWB connection with the electronic device 200, and has activated the NFC key (which may be referred to as NFC key 1) corresponding to AID1, it can be considered that it is not in a specific scene and / or there is an NFC key 1 corresponding to the electronic device 200, and the user has the possibility of using the NFC key, then the electronic device 100 can perform the authentication process of the NFC key 1. In some examples, when the electronic device 100 has activated the NFC key 1 corresponding to AID1, the electronic device 100 can respond to the NFC signal 3 (including AID1) and send an NFC signal 4 to the electronic device 200, and the NFC signal 4 includes the information of the NFC key 1 corresponding to AID1. In other examples, when the electronic device 100 has not activated the NFC key corresponding to AID1, the electronic device 100 can also send other NFC key information in the NFC signal 4. In other examples, when the electronic device 100 has not activated the NFC key corresponding to AID1, the electronic device 100 may not send the NFC key information in the NFC signal 4, for example, the NFC signal 4 indicates that the NFC key corresponding to AID1 has not been activated.

[0171] S118 : The NFC module 201A of the electronic device 200 authenticates the NFC key according to the NFC signal 4 .

[0172] S118 is an optional step. In one embodiment, when the NFC signal 4 includes information of an NFC key (e.g., NFC key 1), the NFC module 201A of the electronic device 200 can authenticate the NFC key according to the information of the NFC key therein after receiving the NFC signal 4. When the authentication is successful, the electronic device 100 can control the electronic device 200, such as starting the electronic device 200.

[0173] S119: In situation B, when the electronic device 100 satisfies at least one of the following conditions: not in a static posture, not establishing a Bluetooth / UWB connection with the electronic device 200, and the NFC key corresponding to AID1 has been activated, the wallet application 101 of the electronic device 100 can display an NFC card reading interface.

[0174] In one embodiment, in situation B, it can be considered that the electronic device 100 is not in a specific scenario and / or there is an NFC key 1 corresponding to the electronic device 200, and the user may use the NFC key, then the electronic device 100 can display the NFC card reader interface. For instructions on the electronic device 100 displaying the NFC card reader interface, please refer to the instructions for displaying the NFC card reader interface in S109 above, wherein the NFC key displayed by the electronic device 100 on the NFC card reader interface may be the NFC key indicated by the NFC signal 4. Exemplarily, if the electronic device 100 has activated the NFC key 1 corresponding to AID1, the NFC key 1 can be displayed on the NFC card reader interface, and the electronic device 100 can set the information of the NFC key 1 to a readable state for other devices to read and authenticate the NFC key 1 (such as the instructions of S117 and S118).

[0175] Figure 7 : is a flow chart of another display method provided by an embodiment of the present application. The method may include but is not limited to the following steps:

[0176] S201: When the user places the electronic device 100 on the NFC card reading area of ​​the electronic device 200, the NFC module 201A of the electronic device 200 may be enabled to transmit NFC signals.

[0177] S202 : The NFC module 201A of the electronic device 200 sends an NFC signal 1 to the NFC module 102 of the electronic device 100 .

[0178] S203 : In response to the NFC signal 1 , the NFC module 102 of the electronic device 100 sends an NFC signal 2 to the NFC module 201A of the electronic device 200 .

[0179] S204: After receiving the NFC signal 1, the NFC module 102 of the electronic device 100 sends a corresponding notification to the wallet application 101. For example, the NFC module 102 may broadcast a notification of receiving the NFC signal 1 to the application of the electronic device 100.

[0180] S202-S204 and Figure 6 Similar to S103-S105, please refer to Figure 6 Description of S103-S105.

[0181] S205: The wallet application 101 of the electronic device 100 obtains from the wireless charging module 103 whether the electronic device 100 is in a wireless charging state.

[0182] In one implementation, the wallet application 101 may specifically obtain whether the electronic device 100 is in the following wireless charging state: the electronic device 100 is a charged device receiving a charging current, and the electronic device 200 is a charging device providing a charging current, that is, the electronic device 200 is in a state of charging the electronic device 100.

[0183] S206: The wallet application 101 of the electronic device 100 determines whether to display the NFC card reading interface according to whether the electronic device 100 is in a wireless charging state.

[0184] S207: When the electronic device 100 is in the wireless charging state, the wallet application 101 of the electronic device 100 does not display the NFC card reading interface, otherwise it displays the NFC card reading interface.

[0185] In one embodiment, when the electronic device 100 is in a wireless charging state (for example, the wireless charging state described in S205), it can be considered to be in a specific scenario. The specific scenario can exclude the scenario in which the user uses other keys, for example, the scenario in which the user uses digital keys such as access cards and bus cards is excluded. For example, the scenario in which the user uses other digital keys at a distance from the electronic device 200 is excluded (in this scenario, the electronic device 200 cannot charge the electronic device 100). Therefore, the mis-emergence of the card in the specific scenario of receiving the NFC signal 1 can be accurately suppressed.

[0186] In another embodiment, when the electronic device 100 is not in a wireless charging state (for example, the wireless charging state described in S205), it can be considered that it is not in the above-mentioned specific scenario, and the user may use the NFC key. Then, the electronic device 100 can display the NFC card reading interface, so as to avoid affecting the normal card usage experience of digital keys such as access control.

[0187] S208 : The NFC module 201A of the electronic device 200 determines to initiate NFC key authentication according to the NFC signal 2 .

[0188] S209 : The NFC module 201A of the electronic device 200 sends an NFC signal 3 (including AID1 ) to the NFC module 102 of the electronic device 100 .

[0189] S210: After receiving the NFC signal 3, the NFC module 102 of the electronic device 100 sends a corresponding notification to the wallet application 101. For example, the NFC module 102 may broadcast a notification of receiving the NFC signal 3 to the application of the electronic device 100.

[0190] S208-S210 and Figure 6 The above steps are similar to S110-S112, and for details, please refer to the description of S110-S112.

[0191] S211 : The wallet application 101 of the electronic device 100 obtains from the wireless charging module 103 whether the electronic device 100 is in a wireless charging state.

[0192] The description of S211 can refer to the description of S205 above, the difference is that S205 is executed after the wallet application 101 receives the notification of NFC signal 1 entering the field, and S211 is executed after the wallet application 101 receives the notification of NFC signal 3 entering the field.

[0193] S212: The wallet application 101 of the electronic device 100 determines whether to display the NFC card reading interface and whether to perform the NFC key authentication process according to whether the electronic device 100 is in a wireless charging state and whether the NFC key corresponding to AID1 is activated (the judgment results can be seen in the following cases A and B).

[0194] S213: In case A, when the electronic device 100 is in a wireless charging state and the NFC key corresponding to AID1 is not activated, the wallet application 101 of the electronic device 100 does not display the NFC card reading interface and does not perform the NFC key authentication process.

[0195] In one embodiment, when the electronic device 100 is in a wireless charging state, it can be considered to be in a specific scenario, and the specific scenario can exclude the scenario where the user uses other keys. In the specific scenario, if the electronic device 100 has not activated the NFC key corresponding to AID1, the electronic device 100 may not display the NFC card reader interface, for example, keep the original display interface unchanged, and do not perform the NFC key authentication process with the electronic device 200, for example, do not execute S214 and S215 of the following situation B.

[0196] S214: In situation B, when the electronic device 100 is not in a wireless charging state and / or the NFC key corresponding to AID1 has been activated, the wallet application 101 of the electronic device 100 sends an NFC signal 4 to the NFC module 201A of the electronic device 200 through the NFC module 102.

[0197] In one embodiment, when the electronic device 100 is not in a wireless charging state, and / or the NFC key corresponding to AID1 (referred to as NFC key 1) has been activated, it can be considered that it is not in a specific scene and / or the NFC key 1 corresponding to the electronic device 200 exists, and the user may use the NFC key, then the electronic device 100 can perform the authentication process of the NFC key 1. For specific examples, see Figure 6 Example of S117.

[0198] S215 : The NFC module 201A of the electronic device 200 authenticates the NFC key according to the NFC signal 4 .

[0199] S215 and Figure 6 Similar to S118, please refer to Figure 6 Description of S118.

[0200] S216: In case B, when the electronic device 100 is not in a wireless charging state, and / or the NFC key corresponding to AID1 has been activated, the wallet application 101 of the electronic device 100 can display an NFC card reading interface.

[0201] S216 and Figure 6 Similar to S119, please refer to Figure 6 Description of S119.

[0202] Not limited to Figure 6 and Figure 7 In some other embodiments, the electronic device 200 may not send the NFC signal 3. In this case, the NFC signal 1 may be used to initiate the authentication of the NFC key. For a specific process example, see Figure 8 . Figure 8 The electronic device 100 determines whether to display the NFC card reading interface (corresponding to the NFC card reading interface) according to the motion posture and connection status of the electronic device 100. Figure 6 ) is used as an example to illustrate that the electronic device 100 can also determine whether to display the NFC card reading interface (corresponding to Figure 7 ), the process and Figure 8 Similar, no further elaboration.

[0203] Figure 8 : is a flow chart of another display method provided by an embodiment of the present application. The method may include but is not limited to the following steps:

[0204] S301: When the user brings the electronic device 100 and the electronic device 200 close to each other, the electronic device 100 and the electronic device 200 may establish a Bluetooth / UWB connection. Optionally, the Bluetooth module 104 / UWB module 105 of the electronic device 100 and the Bluetooth module 202 / UWB module 203 of the electronic device 200 establish a Bluetooth / UWB connection.

[0205] In one embodiment, S301 is an optional step. S301 and Figure 6 Similar to S101, please refer to Figure 6 Description of the S101.

[0206] S302: When the user places the electronic device 100 on the NFC card reading area of ​​the electronic device 200, the NFC module 201A of the electronic device 200 may be enabled to transmit NFC signals.

[0207] S303 : The NFC module 201A of the electronic device 200 sends an NFC signal 5 to the NFC module 102 of the electronic device 100 .

[0208] S303 and Figure 6 Similar to S103, please refer to Figure 6 The description of S103 of S103, wherein the NFC signal 5 of S303 corresponds to the NFC signal 1 of S103.

[0209] S304 : In response to the NFC signal 5 , the NFC module 102 of the electronic device 100 sends an NFC signal 6 to the NFC module 201A of the electronic device 200 .

[0210] S304 and Figure 6 Similar to S104, please refer to Figure 6 The description of S104 , wherein the NFC signal 6 of S304 corresponds to the NFC signal 2 of S104 .

[0211] S305: After receiving the NFC signal 5, the NFC module 102 of the electronic device 100 sends a corresponding notification to the wallet application 101. For example, the NFC module 102 may broadcast a notification of receiving the NFC signal 5 to the application of the electronic device 100.

[0212] S306 : The wallet application 101 of the electronic device 100 obtains the connection status of the electronic device 100 from the Bluetooth module 104 / UWB module 105 .

[0213] S307 : The wallet application 101 of the electronic device 100 obtains the motion posture of the electronic device 100 from the gyro sensor 106 .

[0214] S306-S307 and Figure 6 Similar to S106-S107, please refer to Figure 6 Description of S106-S107.

[0215] S308: The wallet application 101 of the electronic device 100 determines whether to display the NFC card reader interface and whether to perform the NFC key authentication process according to the motion posture and connection status of the electronic device 100 (the judgment results can be seen in the following cases A and B).

[0216] S309: In case A, when the electronic device 100 is in a stationary position and has established a Bluetooth / UWB connection with the electronic device 200, the wallet application 101 of the electronic device 100 does not display the NFC card reading interface and does not perform the NFC key authentication process.

[0217] In one embodiment, when the electronic device 100 is in a stationary posture and has established a Bluetooth / UWB connection with the electronic device 200, it can be considered to be in a specific scenario, and the specific scenario can exclude the scenario where the user uses the NFC key. The electronic device 100 may not display the NFC card reader interface, for example, keep the original display interface unchanged, and do not perform the NFC key authentication process with the electronic device 200, for example, do not execute S310 and S311 of the following situation B.

[0218] S310: In situation B, when the electronic device 100 is not in a stationary posture and / or no Bluetooth / UWB connection is established with the electronic device 200, the wallet application 101 of the electronic device 100 sends an NFC signal 7 to the NFC module 201A of the electronic device 200 through the NFC module 102.

[0219] In one embodiment, when the electronic device 100 is not in a static posture (i.e., in motion), and / or has not established a Bluetooth / UWB connection with the electronic device 200, it can be considered that it is not in a specific scene, and the user may use the NFC key, then the electronic device 100 can perform the NFC key authentication process. In some examples, the electronic device 100 can send an NFC signal 7 including information of the NFC key to the electronic device 200, wherein, in one case, the NFC key may be requested by the electronic device 200, for example, the NFC signal 5 includes an identifier of the NFC key (such as AID) for the electronic device 100 to determine the NFC key and send the information of the NFC key to the electronic device 200, and in another case, the NFC key may also be automatically identified by the electronic device 100, for example, the electronic device 100 obtains the NFC key according to the type of the electronic device 200. In other examples, when the electronic device 100 is not activated or the NFC key corresponding to the electronic device 200 is not obtained, the electronic device 100 may not send the information of the NFC key in the NFC signal 7, for example, the NFC signal 7 indicates that the NFC key is not activated / not obtained.

[0220] S311 : The NFC module 201A of the electronic device 200 authenticates the NFC key according to the NFC signal 7 .

[0221] S311 is an optional step. S311 and Figure 6 Similar to S118, please refer to Figure 6 The description of S118, wherein the NFC signal 7 in S311 corresponds to the NFC signal 4 in S118.

[0222] S312: In case B, when the electronic device 100 is not in a static posture and / or has not established a Bluetooth / UWB connection with the electronic device 200, the wallet application 101 of the electronic device 100 may display an NFC card reading interface.

[0223] In one embodiment, when the electronic device 100 is not in a static posture (i.e., in motion), and / or has not established a Bluetooth / UWB connection with the electronic device 200, it can be considered that it is not in the above-mentioned specific scenario, and the user may use the NFC key, then the electronic device 100 can display the NFC card reader interface. For instructions on the electronic device 100 displaying the NFC card reader interface, please refer to Figure 6 In S109 , an explanation of displaying an NFC card reading interface is provided, wherein the NFC key displayed by the electronic device 100 on the NFC card reading interface may be the NFC key indicated by the NFC signal 7 .

[0224] For example, Figure 6 and Figure 7The NFC key shown is a car key, and the electronic device 200 is a vehicle. Figure 8 The NFC key shown is a door key or a payment key (such as an electronic bank card, an electronic travel card, etc.).

[0225] Fig. 9 : is a flow chart of another display method provided by an embodiment of the present application. The method may include but is not limited to the following steps:

[0226] S401: The first device (ie, the electronic device 100 ) receives a first NFC signal sent by the second device (ie, the electronic device 200 ).

[0227] In one embodiment, the first NFC signal is Figure 6 or Figure 7 In another embodiment, the first NFC signal is Figure 8 NFC signal 5 in. For example, the first NFC signal is used to wake up the NFC module of the first device.

[0228] S402: The first device obtains a state of the first device.

[0229] In one embodiment, the first device can detect its own state by itself, for example, by using a sensor module, a camera, a communication module, etc. of the first device. In another embodiment, the first device can also obtain the state of the first device from other devices (such as devices connected to the first device). The state of the first device includes, for example but not limited to: whether to perform wireless charging with other devices, the motion posture of the first device (such as rotation, translation, and stationary), the relative position of other devices (which can represent the relative motion state with other devices), and the connection state of other devices.

[0230] In one implementation, the first device may determine whether to display the NFC card reading interface according to the acquired state of the first device, as shown in S403 and S404 below.

[0231] S403: When the first device is in the first state, the first device displays a first interface (NFC card reading interface).

[0232] S404: When the first device is in the second state, the first device displays a second interface (not an NFC card reading interface).

[0233] In one embodiment, the first state is different from the second state, and the first interface is different from the second interface. The second state is related to the second device. When the first device is in the second state, the distance between the first device and the second device is less than or equal to the first distance (for example, the distance between the NFC card reading area of ​​the first device and the second device is less than or equal to the first distance), and the movement state of the first device relative to the second device is a static state. The second state can be understood as a state in which the first device remains close to the second device (for example, the NFC card reading area of ​​the second device). In addition, the second state is a state in which the first device and the second device perform multiple NFC communication processes. When the first device is in the second state, the second device will send the first NFC signal to the first device multiple times (for example, periodically). If the first device does not execute the display method provided in this application, the first device will display the NFC card reading interface each time it receives the first NFC signal. If the first device executes the display method provided in this application, the first device will determine whether to display the NFC card reading interface each time it receives the first NFC signal.

[0234] Among them, the movement state of the first device relative to the second device is a static state, which means that the first device and the second device remain relatively static and do not move relative to each other. For example, the first device is a mobile phone, the second device is a vehicle, and the first device is placed flat on the NFC card reading area of ​​the second device. When the second device is in a driving state, although the first device will move synchronously with the movement of the second device (move relative to the ground), the relative positions of the first device and the second device remain unchanged, and the first device always remains flat on the NFC card reading area of ​​the first device, and will not be flipped over, picked up, etc.

[0235] In some examples, the second state includes: the first device and the second device are connected via a first short-range communication method (for example, the first digital key of the first device is connected to the second device), and the motion posture of the first device is a static posture, then the first state includes: the first device and the second device are not connected via the first short-range communication, and / or, the motion posture of the first device is not a static posture, the above-mentioned first short-range communication method is different from the NFC communication method, such as but not limited to Bluetooth, UWB, Star Flash, infrared, etc., the above-mentioned first digital key corresponds to the first short-range communication method, such as but not limited to Bluetooth key, UWB key, Star Flash key, infrared key and other digital keys. In this case, the description of S401-S404 can be found in Figure 6 S103-S109 or Figure 8 The motion posture of the first device is the motion posture of the first device itself in the space, such as rotation, translation, and stationary (ie, keeping still).

[0236] It is understandable that, considering that there is a certain error when detecting the motion state of the first device relative to the second device (for example, through gyroscope sensors, infrared modules, etc.), and considering the actual application scenarios of the first device and the second device, the motion state of the first device relative to the second device is a stationary state, which does not mean that the amplitude of the change in the relative position of the first device and the second device is 0. The amplitude of the change in the relative position of the first device and the second device is less than a certain range (for example, 1 mm) (for example, the first device moves in the NFC card reading area of ​​the second device) can be understood as the motion state of the first device relative to the second device is a stationary state, that is, the relative position of the first device and the second device remains unchanged (it can also be called keeping relatively still). Similarly, the motion posture of the first device is a static posture, which does not mean that the amplitude of the change in the position of the first device is 0. The amplitude of the change in the position of the first device is less than a certain range (for example, the first device moves in the NFC card reading area of ​​the second device) can be understood as the motion posture of the first device is a static posture, but when the motion posture of the first device is a static posture, the first device will not rotate or other movements.

[0237] In some other examples, the second state includes: a state in which the first device is wirelessly charged by the second device (also referred to as a state in which the second device charges the first device), that is, a wireless charging state in which the first device is a charged device that receives a charging current / charging input and the second device is a charging device that provides a charging power source / charging input. Optionally, at this time, the NFC card reading area and the wireless charging area of ​​the electronic device 200 are integrated together. At this time, the description of S401-S404 can be found in Figure 7 Description of S202-S207.

[0238] In one embodiment, in S403, when the first device is in the first state, the first device may display the NFC card reader interface, and the first device may perform an authentication process of the first NFC key of the first device with the second device (for example, the first device sends a second NFC signal including information of the first NFC key to the second device for the second device to perform authentication). In S404, when the first device is in the second state, the first device may not display the NFC card reader interface, and the first device will not perform an authentication process of the NFC key with the second device (for example, the first device does not send information of the NFC key of the first device to the second device). At this time, the description of S403 can be found in Figure 8 For the description of S310-S312 under case B and S404, please refer to Figure 8 Description of S309 under case A.

[0239] In another embodiment, after S401, for example, after S403 or S404, the method further includes: the first device receives a third NFC signal (including the first identifier) ​​sent by the second device, and then obtains the state of the first device; the first device can determine whether to display the NFC card reading interface and whether to perform the NFC key authentication process according to the state of the first device. When the first device is in the first state, and / or the second NFC key corresponding to the first identifier has been activated, the first device and the second device perform the NFC key authentication process (for example, the first device sends a fourth NFC signal including information of the third NFC key to the second device for the second device to perform authentication), and the first device displays the NFC card reading interface, wherein the third NFC key is the second NFC key when the first device has activated the second NFC key corresponding to the first identifier, and does not correspond to the first identifier when the third NFC key is not activated. When the first device is in the second state, and the NFC key corresponding to the first identifier has not been activated, the first device will not perform the NFC key authentication process with the second device (for example, the first device does not send the information of the NFC key of the first device to the second device), and the first device will not display the NFC card reading interface. At this time, the description of the first device being in the first state can be found in Figure 6 For the description of S117-S119 under situation B, the description of the first device being in the second state can be found in Figure 6 Alternatively, the description of the first device being in the first state can be found in Figure 7 For the description of S214-S216 under situation B, the description of the first device being in the second state can be found in Figure 7 Description of S213 under case A.

[0240] For the convenience of description, the embodiments of the present application are described in detail. Figure 6 , Figure 7 , Figure 8 and Fig. 9 The order of execution of the above one or more steps is not limited to the above order. The embodiment of the present application does not limit the order of execution, execution time, execution number, etc. of the above one or more steps. For example, Figure 6 In the embodiment, the order of S104 and S105 is not limited, the order of S106 and S107 is not limited, and the order of S117 and S119 is not limited.

[0241] For the convenience of description, the embodiments of the present application are described in detail. Figure 6 , Figure 7 , Figure 8 and Fig. 9 The steps are described in detail, and are not intended to be limited to being performed by all the above steps. The embodiment of the present application may include some or all of the above steps, for example, Figure 8In step S402 , after receiving the second NFC signal sent by the second device, the first device may not obtain the state of the first device, but directly use the state obtained in step S402 .

[0242] The methods provided in the embodiments of the present application may be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiments of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, a network device, a user device or other programmable device. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via a wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) method. The computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server or data center that includes one or more available media integrated therein. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a magnetic tape), an optical medium (e.g., a digital video disc (DWD), or a semiconductor medium (e.g., a solid state drive (SSD)). As mentioned above, the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them; although the present application is described in detail with reference to the above embodiments, a person skilled in the art should understand that the technical solutions described in the above embodiments can still be modified, or some of the technical features can be replaced by equivalents; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the scope of the technical solutions of the embodiments of the present application.

Claims

1. A display method, characterized in that: Applied to a first device, the method includes: Receiving a first near field communication NFC signal sent by a second device; Acquire the state of the first device, where the state includes at least one of the following: whether the first device is in a charging state, a motion state of the first device, or a connection state of the first device; When the first device is in a first state, a first interface is displayed, where the first interface is an NFC card reading interface; When the first device is in a second state, a second interface is displayed, the first state and the second state are different, the first interface and the second interface are different, wherein, when the first device is in the first state, the first device can transmit an NFC signal, and when the first device is in the second state, the first device can receive an NFC signal, and the second state includes the motion state of the first device being a stationary state.

2. The method according to claim 1, characterized in that When the first device is in the second state, the distance between the first device and the second device is less than or equal to a first distance, and the motion state of the first device relative to the second device is a stationary state.

3. The method according to claim 2, characterized in that The second state includes: a state in which the first device is charged by the second device; or The second state includes: the first device and the second device are connected via a first short-range communication mode, and the motion posture of the first device is a static posture, wherein the first short-range communication mode is different from the NFC communication mode.

4. The method according to claim 3, characterized in that The second state includes: the first digital key of the first device is connected to the second device, the motion posture of the first device is a static posture, and the short-range communication mode and NFC communication mode corresponding to the first digital key are different.

5. The method according to any one of claims 1 to 4, characterized in that: When the first device is in the first state, displaying a first interface includes: When the first device is in the first state, sending a second NFC signal to the second device and displaying the first interface, the second NFC signal includes information of a first NFC key of the first device, and the second NFC signal is used by the second device to authenticate the first NFC key; When the first device is in the second state, displaying the second interface includes: When the first device is in the second state, the first device does not send the information of the NFC key of the first device to the second device, and displays the second interface.

6. The method according to any one of claims 1 to 4, characterized in that: After receiving the first near field communication NFC signal sent by the second device, the method further includes: receiving a third NFC signal sent by the second device, where the third NFC signal includes the first identifier; Obtaining a status of the first device; When the first device is in the first state and / or the second NFC key corresponding to the first identifier has been activated, a fourth NFC signal is sent to the second device, and the first interface is displayed, the fourth NFC signal includes information of the third NFC key of the first device, the fourth NFC signal is used by the second device to authenticate the third NFC key, and the third NFC key is the second NFC key when the first device has activated the second NFC key; When the first device is in the second state and the NFC key corresponding to the first identifier is not activated, the first device does not send the NFC key information of the first device to the second device, and the first device displays the second interface.

7. The method according to claim 5, characterized in that The first NFC key is a door key or a payment key.

8. The method according to claim 6, characterized in that The second NFC key or the third NFC key is a car key.

9. The method according to claim 4, characterized in that The first digital key is a Bluetooth key, an ultra-wideband UWB key, a star flash key, or an infrared key.

10. An electronic device, characterized in that: The method comprises a transceiver, a processor and a memory, wherein the transceiver comprises an NFC module, the memory is used to store a computer program, and the processor calls the computer program to execute the method according to any one of claims 1 to 9.

11. A computer storage medium, characterized in that: The computer storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 9 is implemented.