CN105450834A - NFC state display method and NFC state display device - Google Patents
NFC state display method and NFC state display device Download PDFInfo
- Publication number
- CN105450834A CN105450834A CN201410425836.6A CN201410425836A CN105450834A CN 105450834 A CN105450834 A CN 105450834A CN 201410425836 A CN201410425836 A CN 201410425836A CN 105450834 A CN105450834 A CN 105450834A
- Authority
- CN
- China
- Prior art keywords
- nfc
- working mode
- identifier corresponding
- identifier
- communication
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 43
- 230000006854 communication Effects 0.000 claims abstract description 101
- 238000004891 communication Methods 0.000 claims abstract description 95
- 238000010295 mobile communication Methods 0.000 abstract description 30
- 238000010586 diagram Methods 0.000 description 5
- 238000005516 engineering process Methods 0.000 description 5
- 238000004088 simulation Methods 0.000 description 5
- 230000000694 effects Effects 0.000 description 4
- 230000001360 synchronised effect Effects 0.000 description 2
- 238000004590 computer program Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Landscapes
- Telephone Function (AREA)
Abstract
Embodiments of the invention disclose an NFC state display method and an NFC state display device, and relate to the technical field of communication. The problem that the operation process is complicated when users use the NFC function is solved. The method comprises the steps of acquiring the current work mode of NFC and displaying an identifier corresponding to the current work mode of NFC, wherein the identifier is used to represent the work mode of NFC. The method and the device are applicable to mobile communication terminals.
Description
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method and an apparatus for displaying an NFC state.
Background
In the field of communication technology, the development of wired communication technology has matured, the wireless communication technology has rapidly developed, the demand for short-distance communication between electronic products has become stronger, and the short-distance wireless communication technology has become a hot spot nowadays, so that researchers develop NFC (near field communication).
When the user uses the NFC, the NFC state display mode of the mobile communication terminal is single, only the NFC switch state is marked in the state bar, if the NFC switch is turned on, the NFC icon is displayed in the state bar, and when the NFC switch is turned off, the NFC icon in the state bar disappears.
The prior art has at least the following problems: only the on-off state of the NFC is displayed in the status bar, when a user uses a certain function of the NFC, whether a working mode corresponding to the function is started or not needs to be checked through a setting interface, and then corresponding operation can be carried out; or, the user uses a certain function of NFC to communicate, but the working mode corresponding to the function is not already started, which results in communication failure, and the user needs to enter a setting interface to open the working mode corresponding to the function, so that the operation process is complicated when the user uses NFC.
Disclosure of Invention
Embodiments of the present invention provide a method and an apparatus for displaying an NFC state, which can solve the problem that an operation process is complicated when a user uses an NFC function.
In order to achieve the above purpose, the embodiment of the invention adopts the following technical scheme:
in a first aspect, an embodiment of the present invention provides a method for displaying an NFC state, including:
acquiring a working mode of NFC currently started;
and displaying the identification corresponding to the currently started working mode of the NFC.
In a second aspect, an embodiment of the present invention provides an NFC-state display device, including:
the acquisition unit is used for acquiring the current working mode of the NFC;
and the display unit is used for displaying an identifier corresponding to the currently started working mode of the NFC, and the identifier is used for representing the working mode of the NFC.
In the prior art, only the on-off state of NFC is displayed in the status bar, but the specific working mode of NFC is not displayed. Compared with the prior art, according to the method and the device for displaying the NFC state provided by the embodiment of the invention, the mobile communication terminal firstly acquires the currently started working mode of the NFC and then displays the identifier corresponding to the currently started working mode of the NFC. Therefore, the mobile communication terminal displays the identification corresponding to the currently started working mode of the NFC in the status bar, and the user can know the icon information of the working mode of the NFC in the status bar, so that the operation is convenient, and the time of the user is saved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a flow chart of a method provided by an embodiment of the present invention;
FIG. 2 is a flow chart of a method provided by another embodiment of the present invention;
fig. 3 is a schematic diagram illustrating an effect of NFC menu switch setting according to another embodiment of the present invention;
fig. 4 is a schematic effect diagram of NFC operating mode display according to another embodiment of the present invention;
fig. 5 is a schematic diagram illustrating an NFC operating mode and an effect of a communication state according to another embodiment of the present invention;
FIG. 6 is a schematic structural diagram of an apparatus according to yet another embodiment of the present invention;
fig. 7 is a schematic structural diagram of an apparatus according to yet another embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
An embodiment of the present invention provides a method for displaying an NFC state, which is used in a mobile communication terminal, and as shown in fig. 1, the method includes:
101. the mobile communication terminal obtains the current working mode of NFC.
Before acquiring the currently started working mode of the NFC, the mobile communication terminal can select an identifier corresponding to the NFC working mode from a preset identifier library; and then setting a corresponding relation between the NFC working mode and the identification corresponding to the NFC working mode through a preset interface.
102. And the mobile communication terminal displays the identification corresponding to the currently started working mode of the NFC.
The mobile communication terminal selects an identifier corresponding to the communication state of the NFC working mode from a preset identifier library; then setting a corresponding relation between the communication state of the NFC working mode and the corresponding identification of the communication state of the NFC working mode through a preset interface; then when the NFC communicates through the currently started working mode, acquiring the communication state of the currently started working mode of the NFC; and finally, displaying an identifier corresponding to the communication state, wherein the identifier corresponding to the communication state is used for indicating communication success or communication failure.
Optionally, the mobile communication terminal may synthesize an identifier corresponding to the currently-turned-on operating mode of the NFC and an identifier corresponding to the communication state.
It should be noted that the mobile communication terminal may use different ring tones to indicate the communication status in each operating mode, so that the user can intuitively know the communication status, but when the mobile communication terminal is in the vibration and mute mode, the ring tone cannot be played, and the user cannot intuitively know the communication status. According to the embodiment of the invention, the corresponding communication state is represented in the state bar through different marks, so that a user can visually and accurately know the communication state in different scenes, and the use of the user is facilitated.
In the prior art, only the on-off state of NFC is displayed in the status bar, but the specific working mode of NFC is not displayed. Compared with the prior art, the embodiment of the invention selects the identifier corresponding to the set NFC working mode, then obtains the NFC working mode and displays the identifier corresponding to the NFC working mode; and selecting an identifier corresponding to the communication state of the set NFC working mode, acquiring the communication state of the NFC starting working mode in the communication process, and displaying the identifier of the communication state corresponding to the NFC starting working mode, so that a user can see the NFC on-off state and the NFC working mode only in the state bar, and can see the NFC communication state in the state bar of the mobile communication terminal in the communication process, the operation process is simple, and the time of the user is saved.
Another embodiment of the present invention provides a method for displaying an NFC state, which is used in a mobile communication terminal, and as shown in fig. 2, the method includes:
201. and the mobile communication terminal selects an identifier corresponding to the NFC working mode from a preset identifier library.
The identification library can be a gallery, or an icon resource customized by a user or downloaded on the internet, and the user can set the identifications of the different working modes of the NFC in the identification library according to own will.
202. The mobile communication terminal sets the corresponding relation between the NFC working mode and the identification corresponding to the NFC working mode through the preset interface.
The interface is provided by a mobile terminal system service layer and is set independently, and then the upper application program of the mobile terminal calls the interface to complete the setting of the corresponding relation between the NFC working mode and the identification corresponding to the NFC working mode.
203. The mobile communication terminal obtains the current working mode of NFC.
The mobile communication terminal can acquire the current working mode of the NFC through the interface. NFC has three modes of operation: card emulation mode, reader writer mode (ReadandWrite), and P2P (point to point) mode. The three operation modes can be set independently or in combination. Because the NFC card analog mode is frequently used, the NFC card analog mode is usually synchronized with the NFC master switch, and a switch may be set independently, so that the reader/writer mode and the P2P mode are not present and may be set independently from the NFC master switch.
For example, the NFC switch menu shown in fig. 3 is set in a combination mode in which the card emulation mode is synchronized with the NFC master switch, the switch state of NFC controls the reader/writer mode and the P2P mode, and the reader/writer mode and the P2P mode can be set only when the NFC master switch is turned on. For the case that the card simulation mode, the reader-writer mode and the P2P mode are set in combination and the card simulation mode sets the switch independently, the user can set the switch at will, or the user sets the switch according to the specific situation of the hardware device.
204. And the mobile communication terminal displays the identification corresponding to the current NFC starting working mode.
The mobile communication terminal completes the display of the identification through a preset interface. The identification is used for representing the work mode of the NFC, each work mode corresponds to a corresponding icon, and the NFC corresponds to the corresponding icon in the status bar under which work mode. But when a plurality of working modes are simultaneously started, the working modes can be displayed in a parallel or overlapping or interspersed mode.
For example, as shown in fig. 4, when the NFC is operated in different modes, the icon is displayed in the status bar, the lower rectangular part represents the P2P mode, when the P2P mode is turned on, the rectangular part is B, otherwise, the rectangular part is B; the upper rectangular part represents the reader/writer mode, when the reader/writer mode is on, the rectangular part is C, otherwise b is displayed. The reason why the card emulation is not separately provided here is that the NFC card emulation is frequently used, and therefore the card emulation function is turned on by default when the NFC master switch is turned on. And starting a plurality of working modes simultaneously, and setting other display modes of the corresponding identification of the NFC current starting working mode at will by a user.
205. And the mobile communication terminal selects an identifier corresponding to the communication state of the NFC working mode from a preset identifier library.
The selection process is the same as the selection process of the NFC operating mode in step 201, and is not described herein again.
206. The mobile communication terminal sets the corresponding relation between the communication state of the NFC working mode and the corresponding identification of the communication state of the NFC working mode through a preset interface.
The setting process is the same as the setting process of the NFC operating mode in step 202, and is not described herein again.
207. And the mobile communication terminal is synthesized with the identifier corresponding to the communication state on the identifier corresponding to the currently started working mode of the NFC.
The working mode of the NFC must be started, the identification corresponding to the working mode of the NFC and the identification corresponding to the communication state can be synthesized, and then the effect that a user thinks is attractive is achieved.
For example, fig. 5 depicts the icon form displayed in the status bar for NFC operation in different communication states. Where circles represent communication success and squares represent communication failure. The following figure illustrates the prompt information for 4 communication states, which are: the card simulation transaction is successful in the card simulation only mode; card emulation and P2P mode with P2P communication failure; the read-write tag fails in card emulation and reader-writer modes; when the card simulation mode, the reader-writer mode and the P2P mode are all started, the P2P communication is successful.
208. The mobile communication terminal acquires the communication state of the NFC current starting working mode.
The NFC communication state may include communication success and communication failure, and the NFC service may report a communication success or communication failure event.
209. And the mobile communication terminal displays the identification corresponding to the communication state.
The mobile communication terminal displays the identifier through a preset interface. . And the status bar dynamically displays the corresponding icon in real time according to the communication status event reported by the NFC service so as to inform the user of the result of the NFC service communication.
Optionally, the icon of the communication status may not be displayed all the time, and the displayed time may be set according to the user's needs.
It should be noted that steps 205 to 207 may be executed before step 204, that is, the NFC operating mode and the communication state corresponding to each operating mode are set simultaneously.
It should be noted that the mobile communication terminal may use different ring tones to indicate the communication status in each operating mode, so that the user can intuitively know the communication status, but when the mobile communication terminal is in the vibration and mute mode, the ring tone cannot be played, and the user cannot intuitively know the communication status. According to the embodiment of the invention, the corresponding communication state is represented in the state bar through different marks, so that a user can visually and accurately know the communication state in different scenes, and the use of the user is facilitated.
In the prior art, only the on-off state of NFC is displayed in the status bar, but the specific working mode of NFC is not displayed. Compared with the prior art, the embodiment of the invention selects the identifier corresponding to the set NFC working mode, then obtains the NFC working mode and displays the identifier corresponding to the NFC working mode; and selecting an identifier corresponding to the communication state of the set NFC working mode, acquiring the communication state of the NFC starting working mode in the communication process, and displaying the identifier of the communication state corresponding to the NFC starting working mode, so that a user can see the NFC on-off state and the NFC working mode only in the state bar, and can see the NFC communication state in the state bar of the mobile communication terminal in the communication process, the operation process is simple, and the time of the user is saved.
Still another embodiment of the present invention provides a device for displaying an NFC status, as shown in fig. 6, where the device 60 includes:
an obtaining unit 601, configured to obtain a currently-turned-on working mode of NFC;
the display unit 602 is configured to display an identifier corresponding to a currently-turned-on working mode of NFC, where the identifier is used to indicate the working mode of NFC.
Further, the obtaining unit 601 is further configured to obtain a communication state of the NFC currently enabled operating mode when the NFC is performing communication through the currently enabled operating mode;
the display unit 602 is further configured to display an identifier corresponding to the communication state, where the identifier corresponding to the communication state is used to indicate that communication is successful or communication is failed.
Further, as shown in fig. 7, the apparatus 60 may further include:
an adding unit 603, configured to add an identifier corresponding to the communication state to an identifier corresponding to a currently-started working mode of NFC;
the superimposing unit 604 is configured to superimpose an identifier corresponding to the currently-turned-on operating mode of the NFC with an identifier corresponding to the communication state.
Further, as shown in fig. 7, the apparatus 60 may further include:
a first selecting unit 605, configured to select an identifier corresponding to the NFC operating mode from a preset identifier library;
the first setting unit 606 is configured to set, through a preset interface, a correspondence between the NFC operating mode and the identifier corresponding to the NFC operating mode.
Further, as shown in fig. 7, the apparatus 60 may further include:
a second selecting unit 607, configured to select, from a preset identifier library, an identifier corresponding to the communication state of the NFC operating mode;
a second setting unit 608, configured to set, through a preset interface, a correspondence between the communication state of the NFC operating mode and the communication state corresponding identifier of the NFC operating mode.
In the prior art, only the on-off state of NFC is displayed in the status bar, but the specific working mode of NFC is not displayed. Compared with the prior art, the device 60 of the embodiment of the present invention selects the identifier corresponding to the NFC operating mode, then obtains the NFC operating mode, and displays the identifier corresponding to the NFC operating mode; and selecting the identifier corresponding to the communication state for setting the NFC working mode, acquiring the communication state of the NFC starting working mode in the communication process, and displaying the identifier corresponding to the NFC starting working mode, so that the user can see the NFC on-off state and the NFC working mode only in the state bar, and can see the NFC communication state in the state bar of the device 60 in the communication process, the operation process is simple, and the user time is saved.
The NFC state display device provided in the embodiment of the present invention can implement the method embodiment provided above, and for specific function implementation, reference is made to the description in the method embodiment, which is not repeated herein. The method and the device for displaying the NFC state provided by the embodiment of the invention can be applied to a mobile communication device, but are not limited thereto.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the apparatus embodiment, since it is substantially similar to the method embodiment, it is relatively simple to describe, and reference may be made to some descriptions of the method embodiment for relevant points.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-only memory (ROM), a Random Access Memory (RAM), or the like.
The above description is only for the specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present invention are included in the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
Claims (10)
1. A display method of an NFC state is characterized by comprising the following steps:
acquiring a currently started working mode of the NFC;
and displaying an identifier corresponding to the currently started working mode of the NFC, wherein the identifier is used for representing the working mode of the NFC.
2. The method according to claim 1, wherein after the displaying the identifier corresponding to the currently-on operating mode of the NFC, the method further comprises:
when the NFC is communicated through the currently started working mode, acquiring the communication state of the currently started working mode of the NFC;
and displaying the identifier corresponding to the communication state, wherein the identifier corresponding to the communication state is used for indicating communication success or communication failure.
3. The method according to claim 2, wherein before displaying the identifier corresponding to the communication status, the method further comprises:
adding an identifier corresponding to the communication state on an identifier corresponding to the currently started working mode of the NFC; or,
and superposing the identifier corresponding to the currently started working mode of the NFC with the identifier corresponding to the communication state.
4. The method according to claim 1, wherein before displaying the identifier corresponding to the currently-on operating mode of the NFC, the method further comprises:
selecting an identifier corresponding to the NFC working mode from a preset identifier library;
and setting the corresponding relation between the NFC working mode and the identification corresponding to the NFC working mode through a preset interface.
5. The method of claim 2, wherein prior to said displaying the identifier corresponding to the communication status, the method further comprises:
selecting an identifier corresponding to the communication state of the NFC working mode from a preset identifier library;
and setting a corresponding relation between the communication state of the NFC working mode and the corresponding identification of the communication state of the NFC working mode through a preset interface.
6. An NFC state display device, comprising:
the acquisition unit is used for acquiring the current working mode of the NFC;
and the display unit is used for displaying an identifier corresponding to the currently started working mode of the NFC, and the identifier is used for representing the working mode of the NFC.
7. The apparatus according to claim 6, wherein the obtaining unit is further configured to obtain a communication status of the NFC currently-turned-on operating mode when the NFC is communicating through the currently-turned-on operating mode;
the display unit is further configured to display an identifier corresponding to the communication state, where the identifier corresponding to the communication state is used to indicate communication success or communication failure.
8. The apparatus of claim 7, further comprising:
the adding unit is used for adding the identifier corresponding to the communication state on the identifier corresponding to the currently started working mode of the NFC; or,
and the superposition unit is used for superposing the identifier corresponding to the currently started working mode of the NFC and the identifier corresponding to the communication state.
9. The apparatus of claim 6, further comprising:
the first selection unit is used for selecting an identifier corresponding to the NFC working mode from a preset identifier library;
and the first setting unit is used for setting the corresponding relation between the NFC working mode and the identification corresponding to the NFC working mode through a preset interface.
10. The apparatus of claim 7, further comprising:
a second selection unit for selecting a communication state with the NFC operation mode from a preset identification library
A corresponding identifier;
and the second setting unit is used for setting the corresponding relation between the communication state of the NFC working mode and the corresponding identification of the communication state of the NFC working mode through a preset interface.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410425836.6A CN105450834A (en) | 2014-08-26 | 2014-08-26 | NFC state display method and NFC state display device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410425836.6A CN105450834A (en) | 2014-08-26 | 2014-08-26 | NFC state display method and NFC state display device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105450834A true CN105450834A (en) | 2016-03-30 |
Family
ID=55560595
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410425836.6A Pending CN105450834A (en) | 2014-08-26 | 2014-08-26 | NFC state display method and NFC state display device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105450834A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106650541A (en) * | 2016-12-30 | 2017-05-10 | 维沃移动通信有限公司 | Control method and mobile terminal |
CN114330396A (en) * | 2021-12-31 | 2022-04-12 | 福建新大陆支付技术有限公司 | External password keyboard and identity card information interaction method based on Android platform |
-
2014
- 2014-08-26 CN CN201410425836.6A patent/CN105450834A/en active Pending
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106650541A (en) * | 2016-12-30 | 2017-05-10 | 维沃移动通信有限公司 | Control method and mobile terminal |
CN114330396A (en) * | 2021-12-31 | 2022-04-12 | 福建新大陆支付技术有限公司 | External password keyboard and identity card information interaction method based on Android platform |
CN114330396B (en) * | 2021-12-31 | 2023-10-13 | 福建新大陆支付技术有限公司 | External password keyboard and identity card information interaction method based on Android platform |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112419693B (en) | Device control method, device, display device and computer readable storage medium | |
CN112737899A (en) | Intelligent device management method and device, storage medium and electronic device | |
CN104683436B (en) | control method, communication terminal and control system | |
CN108496379A (en) | Unmanned plane Activiation method, terminal, unmanned plane and machine readable storage medium | |
CN104331661A (en) | Method and system for switching encryption state of terminal | |
CN106507501A (en) | A kind of Bluetooth connecting method and device | |
CN105955734A (en) | Method and device for generating time reminder | |
CN103699304A (en) | Method and system for switching terminal control modes | |
CN105450834A (en) | NFC state display method and NFC state display device | |
CN107741803A (en) | Display methods, device, terminal and the readable storage medium storing program for executing of desktop icons | |
CN110875944A (en) | Communication connection method, device, terminal equipment and wireless communication system | |
CN104717349A (en) | Display method of terminal user interface and terminal | |
CN104247554A (en) | Information processing device, information processing method, and program | |
CN102883264B (en) | Positioning service privacy authentication method, application terminal and service capacity open platform | |
CN106161725A (en) | A kind of information processing method and electronic equipment | |
CN104363325A (en) | Terminal calling method and system | |
CN104133794B (en) | Mobile terminal and set top box pairing method and mobile terminal | |
CN114697047A (en) | Sub-device registration method in Internet of things, cloud server and gateway device | |
CN105867910A (en) | Dynamic wallpaper presenting method and apparatus for mobile terminal | |
CN104469684B (en) | Terminal positional information processing method and system | |
EP2930915A1 (en) | Method for setting functional module name of mobile terminal, and mobile terminal | |
CN105425936B (en) | Method and device for adapting terminal to external device and terminal | |
KR102025603B1 (en) | Test device and method for protocol testing with a playing card symbol | |
CN105898728A (en) | Mobile phone account member rights and interests binding method, mobile phone device, server and system | |
CN105094722A (en) | Control method and control device thereof for supporting attribute display of multi-screen system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20160330 |