CN110636526A - NFC communication detection method and device, computer readable storage medium and terminal - Google Patents

NFC communication detection method and device, computer readable storage medium and terminal Download PDF

Info

Publication number
CN110636526A
CN110636526A CN201910922397.2A CN201910922397A CN110636526A CN 110636526 A CN110636526 A CN 110636526A CN 201910922397 A CN201910922397 A CN 201910922397A CN 110636526 A CN110636526 A CN 110636526A
Authority
CN
China
Prior art keywords
communication
nfc
historical
nfc antenna
interruption
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.)
Granted
Application number
CN201910922397.2A
Other languages
Chinese (zh)
Other versions
CN110636526B (en
Inventor
俞斌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Weihai Daoheng Automation Technology Co ltd
Original Assignee
TCL Mobile Communication Technology Ningbo Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by TCL Mobile Communication Technology Ningbo Ltd filed Critical TCL Mobile Communication Technology Ningbo Ltd
Priority to CN201910922397.2A priority Critical patent/CN110636526B/en
Publication of CN110636526A publication Critical patent/CN110636526A/en
Application granted granted Critical
Publication of CN110636526B publication Critical patent/CN110636526B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/08Testing, supervising or monitoring using real traffic
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)

Abstract

The embodiment of the application discloses an NFC communication detection method, an NFC communication detection device, a computer readable storage medium and a terminal, wherein the NFC communication detection method comprises the following steps: when signal transmission is carried out through the NFC antenna, acquiring the historical communication times of the NFC antenna, and processing the historical communication times according to a preset rule to obtain a first communication time; when detecting that the NFC antenna signal is interrupted, processing the first communication times according to an interruption detection result to obtain a second communication time, wherein the interruption detection result comprises: and (5) normally interrupting or abnormally interrupting, and updating the historical communication times according to the second communication times. The application scheme can effectively improve the use efficiency of the NFC antenna of the terminal.

Description

NFC communication detection method and device, computer readable storage medium and terminal
Technical Field
The application relates to the field of mobile terminal application, in particular to an NFC communication detection method, an NFC communication detection device, a computer readable storage medium and a terminal.
Background
With the development and popularization of NFC (Near Field Communication), NFC is increasingly used in mobile terminals, for example, NFC can be used as airport boarding verification, entrance keys of buildings, transportation card, credit card, and payment card, which brings great convenience to users.
Since NFC is a wireless technology, signals need to be transmitted through radio waves, and radio waves in corresponding frequency bands also need to be received, and whether signal receiving and sending of NFC are smooth or not directly depends on an NFC antenna. In the prior art, in order to achieve better NFC usage effect, a mobile terminal manufacturer generally sets a fingerprint antenna in a rear cover when the mobile terminal is used specifically, so that the antenna area is maximized and the communication effect is optimal. The antenna arranged on the rear cover is communicated with the mobile terminal mainboard through the metal contact on the rear cover. However, in consideration of the mobility of the mobile terminal, accidents such as falling and collision are likely to occur, and the NFC antenna may have instant poor contact in the above accidents, which affects the NFC function. At the moment, normal NFC communication is interrupted, and the interruption time is often very short and is hardly perceived by a user; but such interruptions will necessarily affect mobile terminal performance if accumulated over time.
Therefore, there are drawbacks to the prior art, and improvements and developments are needed.
Disclosure of Invention
The embodiment of the application provides an NFC communication detection method and device, a computer readable storage medium and a terminal, and the use efficiency of an NFC antenna of the terminal can be effectively improved.
The embodiment of the application provides an NFC communication detection method, which comprises the following steps:
acquiring historical communication times of an NFC antenna when signal transmission is carried out through the NFC antenna;
processing the historical communication times according to a preset rule to obtain a first communication time;
when the NFC antenna signal is detected to be interrupted, processing the first communication times according to an interruption detection result to obtain a second communication time, wherein the interruption detection result comprises: normal interrupts or abnormal interrupts;
and updating the historical communication times according to the second communication times.
Correspondingly, this application embodiment also provides an NFC communication detection device, including:
the first processing unit is used for processing the historical communication times according to a preset rule to obtain first communication times;
the second processing unit is configured to, when a signal interruption is detected, process the first communication frequency according to an interruption detection result to obtain a second communication frequency, where the interruption detection result includes: normal interrupts or abnormal interrupts;
and the updating unit is used for updating the historical communication times according to the second communication times.
Accordingly, the present application further provides a computer-readable storage medium, where a plurality of instructions are stored, and the instructions are adapted to be loaded by a processor to perform the steps in the NFC communication detection method as described above.
Correspondingly, an embodiment of the present application further provides a terminal, which includes a processor and a memory, where the memory stores a plurality of instructions, and the processor loads the instructions to execute the steps in the NFC communication detection method described above.
According to the scheme, when signal transmission is carried out through the NFC antenna, the historical communication times of the NFC antenna are obtained, and the historical communication times are processed according to a preset rule to obtain first communication times; when detecting that the NFC antenna signal is interrupted, processing the first communication times according to an interruption detection result to obtain a second communication time, wherein the interruption detection result comprises: and (5) normally interrupting or abnormally interrupting, and updating the historical communication times according to the second communication times. The application scheme can effectively improve the use efficiency of the NFC antenna of the terminal.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic flowchart of an NFC communication detection method according to an embodiment of the present application.
Fig. 2 is a schematic flowchart of another NFC communication detection method according to an embodiment of the present application.
Fig. 3 is a block diagram of a structure of an NFC communication detection apparatus according to an embodiment of the present application.
Fig. 4 is a block diagram of a structure of another NFC communication detection apparatus according to an embodiment of the present disclosure.
Fig. 5 is an operation interface diagram of an NFC communication detection method according to an embodiment of the present application.
Fig. 6 is a schematic structural diagram of NFC antenna connection detection provided in an embodiment of the present application.
Fig. 7 is a schematic structural diagram of a terminal according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described clearly and completely with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Based on the above problems, embodiments of the present application provide a method and an apparatus for detecting NFC communication, a computer-readable storage medium, and a terminal, which can effectively improve the usage efficiency of an NFC antenna of the terminal. The following are detailed below. It should be noted that the following description of the embodiments is not intended to limit the preferred order of the embodiments.
Referring to fig. 1, fig. 1 is a schematic flowchart illustrating an NFC communication detection method according to an embodiment of the present disclosure. The NFC communication detection method can be applied to a mobile terminal such as a mobile phone. The specific flow of the NFC communication detection method may be as follows:
101. when signal transmission is performed through the NFC antenna, the historical communication times of the NFC antenna are acquired.
In this embodiment, the terminal may be installed with NFC application software supporting an NFC function, where the NFC application software may be installed in the terminal in advance, or may be downloaded from a third-party device or a server and installed for use when the terminal starts an NFC function application. The third-party device is not limited in the embodiment. Specifically, the NFC antenna may turn on a signal transmission function through NFC application software.
Among these, NFC is a short range high frequency radio technology that operates within a 20 centimeter distance at a frequency of 13.56 MHz. The transmission speed is 106 kbit/s, 212 kbit/s or 424 kbit/s. NFC employs both active and passive read modes. The NFC antenna is a near-field coupling antenna, and because the wavelength of 13.56Mhz is long and the reading and writing distance is short, the appropriate coupling mode is magnetic field coupling, and the coil is the appropriate coupling mode. In the industry, a Flexible Printed Circuit (FPC) method is generally used as an antenna for a mobile phone. A new technology is that the magnetic film and the FPC are integrated, namely the magnetic FPC.
Specifically, when the NFC antenna starts to perform signal transmission, the historical communication times of the NFC antenna are obtained, where the historical communication times are the times of abnormal interruption of the NFC antenna in the signal transmission process. The historical communication times can be obtained from a memory, for example, a first counter can be arranged in the terminal memory, and the historical communication times are recorded by the first counter.
The abnormal interruption means that the NFC antenna does not terminate signal transmission under the control of the NFC application software in the communication process. For example, the terminal may collide or fall during use, and the collision or fall may cause the NFC antenna to disconnect from the physical connection with the terminal, thereby disconnecting the signal transmission with the outside. Then, the recording of the abnormal connection interruption times of the NFC antenna can provide help for the fault analysis of the mobile terminal service point.
The historical communication times of the NFC antenna are obtained, and may be any value, for example, the historical communication times may be 1, 2, 3, 4, and so on.
In some embodiments, when the NFC antenna is initially used, i.e., the NFC antenna initially performs signal transmission, there may be no historical number of communications for the NFC antenna. For example, when the NFC antenna performs signal transmission for the first time, the acquired historical number of communications of the NFC antenna may be 0. By acquiring the historical communication times of the NFC antenna, the historical communication times of the NFC can be updated in time, so that the abnormal interruption times of the NFC antenna can be acquired, and the abnormal connection interruption record of the NFC can be given when the mobile terminal is sent for repair due to faults.
102. And processing the historical communication times according to a preset rule to obtain a first communication time.
In this embodiment, the preset rule may be a calculation manner, where the calculation manner may refer to performing an add operation on the preprocessed data. For example, the number of acquired historical communications may be 1, and the process of adding one to the number of historical communications according to the calculation method may be expressed as 1+1 to 2, and the obtained calculation result is 2. Then, the calculation result of 2 times is the first number of communications.
The first communication frequency is a value obtained by updating the historical communication frequency for the first time when the NFC antenna starts to transmit signals under the control of NFC application software. When the update of the first communication times is completed, the updated value may be recorded in the first counter, and the first communication times may be stored in the memory.
103. When the NFC antenna signal interruption is detected, processing the first communication times according to the interruption detection result to obtain second communication times, wherein the interruption detection result comprises: normal interrupts or abnormal interrupts.
In this embodiment, the signal interruption of the NFC antenna may include two interruption results, where the interruption results may be a normal interruption and an abnormal interruption. The normal interruption may be that the NFC antenna terminates signal transmission with the outside through control of the NFC application software during communication. For example, the NFC antenna signal transmission function is started through the NFC application software, and when the current NFC signal transmission is completed, the communication function of the NFC antenna may be ended through the NFC application software.
In some implementations, if the interrupt detection result is a normal interrupt, a subtraction process is performed on the first communication times to obtain second communication times. The second communication frequency may be an abnormal interruption frequency of the NFC antenna obtained after the NFC antenna processes the first communication frequency in a communication process with the outside. For example, the first number of communications may be 2, and if the first number of communications is 2, the subtraction processing may be performed on the first number of communications, that is, 2-1 is 1, and the obtained processing result 1 is the second number of communications, that is, the number of abnormal interruptions of the NFC antenna 1. When the processing of the first number of communications is completed, the processed value may be recorded in a first counter, i.e., the second number of communications may be stored in the memory. By dividing different interrupt results, different processing is carried out according to different interrupt results, and the number of abnormal interrupt times in the communication process of the NFC antenna can be effectively recorded.
In some embodiments, if the interrupt detection result is an abnormal interrupt, the first communication times is used as the second communication times. For example, the first communication frequency may be 2 times, and then 2 times of the first communication frequency is the second communication frequency, and 2 times is the number of abnormal interruptions of the NFC antenna.
In some embodiments, if the interrupt detection result is an abnormal interrupt, the current time information is obtained, and the time information is recorded in the interrupt schedule. Specifically, the time information may be stored in a memory. For example, a time saving table may be set in the memory, and the acquired current time information may be stored in the time length saving table in the memory.
The time information may be a time value at which an NFC antenna is abnormally interrupted during signal transmission, for example, the time value may be 12 hours, 30 minutes, 8 seconds, and the like. Specifically, the acquired time values are stored in an interruption time table, wherein the interruption time table can store all the time values acquired during abnormal interruption, and the time values of all the abnormal interruption times in the use process of the NFC antenna are completely recorded, so that help can be provided for analyzing the fault problem of the NFC antenna.
104. And updating the historical communication times according to the second communication times.
In the present embodiment, the historical number of communications is updated according to the second number of communications. Specifically, in the NFC antenna signal transmission process, when the second communication frequency, that is, the number of abnormal interrupts is determined, the number of abnormal interrupts may be updated as the historical communication frequency, and the updated historical communication frequency is stored in the memory, so that the latest number of abnormal interrupts is obtained when the NFC antenna performs signal transmission next time.
For example, the second number of communications may be 2, and the second number of communications 2 may be set as the historical number of communications, the updated historical number of communications may be recorded in the first counter, and the historical number of communications may be stored in the memory.
In some embodiments, when the historical communication times reach a preset communication threshold, the system generates and displays a prompt message that the NFC antenna signal transmission has a fault. The preset communication threshold may be set according to the length of the usage period of the NFC antenna. For example, the preset communication threshold may be 10, 20, 30 times, and so on.
Specifically, in the NFC antenna signal transmission process, after the historical communication frequency is updated, the obtained historical communication frequency exceeds a preset communication threshold, for example, the preset communication threshold may be 20 times, the historical communication frequency may be 21 times, and then the historical communication frequency is greater than the preset communication threshold. The terminal generates a prompt message, the content of the prompt message may be 'the NFC antenna signal transmission is faulty', and the prompt message may also be displayed on the terminal screen. According to the prompt message, the user can know that the NFC antenna has the fault problem and can send repair in time.
In this embodiment, when signal transmission is performed through the NFC antenna, acquiring a historical communication frequency of the NFC antenna, and processing the historical communication frequency according to a preset rule to obtain a first communication frequency; when detecting that the NFC antenna signal is interrupted, processing the first communication times according to an interruption detection result to obtain a second communication time, wherein the interruption detection result comprises: and (5) normally interrupting or abnormally interrupting, and updating the historical communication times according to the second communication times. According to the scheme, the historical communication times are updated and stored through the preset rules, the abnormal interruption times of the NFC antenna are acquired in real time, and the use efficiency of the terminal NFC antenna at the terminal can be effectively improved.
Referring to fig. 2, fig. 2 is a schematic flowchart illustrating another NFC communication detection method according to an embodiment of the present application. In this embodiment, a mobile phone may be taken as a terminal for example description, where an NFC chip is built in the mobile phone, and may support the use of an NFC function. The specific scene application of the NFC communication detection method may be as follows:
201. the mobile phone controls the NFC antenna to start signal transmission through the NFC application software.
In this embodiment, the NFC application software may be downloaded by a user through a mobile phone and installed on the mobile phone for use. The NFC technology can enable the mobile phone to be used as an access card, a transportation card, a payment card, a credit card and the like, and correspondingly, different NFC application software can be used when the functions are achieved by the mobile phone. For example, the NFC application software may be NFC transportation software, and the NFC transportation software may use the mobile phone as a transportation card.
Specifically, the mobile phone controls the NFC antenna to start signal transmission through the NFC application software, for example, the user opens the NFC application software installed on the mobile phone to control the NFC antenna to start signal transmission. A user may quickly control the use of the NFC antenna through the NFC application software.
202. When the NFC antenna starts to transmit signals, the mobile phone acquires the historical communication times of the NFC antenna.
In this embodiment, please refer to fig. 6, and fig. 6 is a schematic diagram of an NFC antenna connection detection structure provided in this embodiment. When the NFC antenna is connected, the P1 is connected with the P2 to trigger the connection of the NFC antenna detection module, and when the NFC antenna is disconnected, the P1 is disconnected with the P2 to trigger the disconnection of the NFC antenna detection module. Wherein, the dotted frame in fig. 6 is an elastic structure.
Specifically, when the mobile phone detects that the NFC antenna starts to perform signal transmission, the mobile phone obtains the historical communication times of the NFC antenna from the data storage of the NFC. The data memory of the NFC is stored with the use record of the NFC module in the mobile phone and the related data information generated in the use process. For example, the related data information may be the connection number, normal interruption number, abnormal interruption number, and the like of the NFC antenna.
The historical communication times are the abnormal interruption times of the NFC antenna determined when the NFC antenna carries out signal transmission last time.
203. The mobile phone processes the historical communication times according to a preset rule to obtain a first communication time.
In this embodiment, the preset rule may be a calculation method. The calculation mode may be that the mobile phone performs an addition process on the target processing data. For example, the number of historical communications acquired by the mobile phone may be 10, the number of historical communications processed by the mobile phone according to the calculation method may be 10+1 to 11, and the obtained calculation result may be 11. Then, the calculation result of 11 times is the first number of communications. The first communication frequency is a value obtained by updating the historical communication frequency for the first time when the NFC antenna starts to transmit signals under the control of NFC application software.
204. When the mobile phone detects that the NFC antenna signal is interrupted, determining whether the interruption of the NFC antenna is normal, if yes, executing step 205; if not, go to step 206.
In this embodiment, when the mobile phone detects that the NFC antenna is disconnected from the outside, it is determined whether the disconnection condition of the NFC antenna is normal disconnection. The normal disconnection refers to normal disconnection of the antenna by the NFC controlled by the NFC application software of the mobile phone. Then, the abnormal disconnection may be but is not an NFC disconnection antenna initiated by the NFC application software if the NFC disconnection antenna is abnormal, such as a drop or the like, causing a connection interruption.
In some embodiments, if the disconnection of the NFC antenna is controlled by the NFC application software, and belongs to a normal interruption, step 205 is performed according to a result of the normal interruption.
In some embodiments, if the disconnection of the NFC antenna is not controlled by the NFC application software, or if the NFC antenna is interrupted in communication due to dropping or the like in the use process of the mobile phone, which belongs to the abnormal interruption, step 206 is executed according to the abnormal interruption result.
In some embodiments, if the interrupt detection result is an abnormal interrupt, the current time information is obtained, and the time information is recorded in the interrupt schedule. For example, the time value may be 11 hours, 11 minutes, 11 seconds, or the like. Specifically, the acquired time value is stored in the interrupt schedule. By recording the interruption time, the user can acquire the relevant information record of the NFC interruption more quickly when checking the problem of the mobile phone.
205. And the mobile phone processes the first communication times to obtain second communication times.
In this embodiment, the mobile phone may process the first number of times of communication through another calculation method, where the calculation method may be that the mobile phone performs one-less processing on the target processing data. For example, the first communication frequency may be 11 times, and if the first communication frequency is 11 times, the subtraction processing may be performed on the first communication frequency, that is, 11-1 is 10 times, and if the obtained processing result is 10 times, the obtained processing result is the second communication frequency, and if the obtained processing result is 10 times, the obtained processing result is the number of abnormal interruptions of the NFC antenna in the present communication process.
206. The mobile phone takes the first communication times as second communication times.
In this embodiment, the mobile phone may not process the first communication times, and may directly replace the first communication times with the second communication times. For example, the first communication time may be 2 times, and then 2 times of the first communication time is the second communication time, and then 2 times is the number of abnormal interruptions of the NFC antenna.
207. And the mobile phone updates the historical communication times according to the second communication times.
In this embodiment, the mobile phone updates the historical communication times according to the second communication times. Specifically, in the NFC antenna signal transmission process, when the second communication frequency, that is, the number of abnormal interrupts is determined, the number of abnormal interrupts may be updated as the historical communication frequency, and the updated historical communication frequency is stored in the memory, so that the latest number of abnormal interrupts is obtained when the NFC antenna performs signal transmission next time. For example, if the second communication frequency may be 2 times, the second communication frequency 2 times may be set as the historical communication frequency, and the historical communication frequency 2 times may be stored.
In some embodiments, when the historical communication times reach a preset communication threshold, the system generates and displays a prompt message that the NFC antenna signal transmission has a fault. The preset communication threshold may be set according to the length of the usage period of the NFC antenna. For example, the preset communication threshold may be 10, 20, 30 times, and so on.
Specifically, in the NFC antenna signal transmission process, after the historical communication frequency is updated, the obtained historical communication frequency exceeds a preset communication threshold, for example, the preset communication threshold may be 20 times, the historical communication frequency may be 21 times, and then the historical communication frequency is greater than the preset communication threshold. The terminal may generate a prompt message.
Specifically, the prompt message may be presented on the terminal screen in a form of a pop-up box, please refer to fig. 5, and the content of the prompt message may be "there is a failure in signal transmission of the NFC antenna". Here, a button may be provided in the upper right corner of the prompt message, for example, the button may be provided as an "x" shaped button as shown in fig. 5. Specifically, the user may close the dialog box for prompting the message by clicking the button, and then perform the next operation.
In this embodiment, when signal transmission is performed through the NFC antenna, acquiring a historical communication frequency of the NFC antenna, and processing the historical communication frequency according to a preset rule to obtain a first communication frequency; when detecting that the NFC antenna signal is interrupted, processing the first communication times according to an interruption detection result to obtain a second communication time, wherein the interruption detection result comprises: and (5) normally interrupting or abnormally interrupting, and updating the historical communication times according to the second communication times. According to the scheme, the abnormal communication connection times and records are acquired through connection interruption detection of the NFC antenna, stable operation of the system can be guaranteed, the abnormal connection interruption records of the NFC can be given when the mobile terminal is sent for maintenance, assistance is provided for fault analysis of a maintenance point of the mobile terminal, and the use efficiency of the NFC antenna at the terminal of the terminal can be effectively improved.
Referring to fig. 3, fig. 3 is a block diagram of an NFC communication detection apparatus according to an embodiment of the present application, including:
the first processing unit 301 is configured to process the historical communication times according to a preset rule to obtain a first communication time;
a second processing unit 302, configured to, when a signal interruption is detected, process the first communication frequency according to an interruption detection result to obtain a second communication frequency, where the interruption detection result includes: normal interrupts or abnormal interrupts;
an updating unit 303, configured to update the historical communication times according to the second communication times.
Referring to fig. 4, in some embodiments, the second processing unit 302 includes:
a first processing subunit 3021, configured to perform, if the interrupt detection result is a normal interrupt, a subtraction process on the first communication frequency to obtain a second communication frequency;
the second processing subunit 3022 is configured to, if the interrupt detection result is an abnormal interrupt, use the first communication frequency as a second communication frequency.
According to the embodiment of the application, when signal transmission is carried out through the NFC antenna, the historical communication times of the NFC antenna is obtained, the historical communication times are processed according to the preset rule, the first communication times are obtained, when the NFC antenna signal is detected to be interrupted, the first communication times are processed according to the interruption detection result, the second communication times are obtained, and the interruption detection result comprises: and normally interrupting or abnormally interrupting, and finally updating the historical communication times according to the second communication times. According to the scheme, the historical communication times are updated and stored through the preset rules, the abnormal interruption times of the NFC antenna are acquired in real time, and the use efficiency of the NFC antenna at the terminal of the terminal can be effectively improved.
The embodiment of the application also provides a terminal. As shown in fig. 7, the terminal may include Radio Frequency (RF) circuitry 601, memory 602 including one or more computer-readable storage media, input unit 603, display unit 604, sensor 605, audio circuitry 606, Wireless Fidelity (WiFi) module 607, processor 608 including one or more processing cores, and power supply 609. Those skilled in the art will appreciate that the terminal structure shown in fig. 7 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components. Wherein:
the RF circuit 601 may be used for receiving and transmitting signals during the process of transmitting and receiving information, and in particular, for processing the received downlink information of the base station by one or more processors 608; in addition, data relating to uplink is transmitted to the base station. In general, the RF circuit 601 includes, but is not limited to, an antenna, at least one Amplifier, a tuner, one or more oscillators, a Subscriber Identity Module (SIM) card, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, the RF circuit 601 may also communicate with networks and other devices via wireless communications.
The memory 602 may be used to store software programs and modules, and the processor 608 executes various functional applications and data processing by operating the software programs and modules stored in the memory 602. The memory 602 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function (such as a sound playing function, an image playing function, etc.), and the like. Further, the memory 602 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 602 may also include a memory controller to provide the processor 608 and the input unit 603 access to the memory 602.
The input unit 603 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, in one particular embodiment, input unit 603 may include a touch-sensitive surface as well as other input devices. The touch-sensitive surface, also referred to as a touch screen or a touch pad, may collect touch operations by a user (e.g., operations by a user on or near the touch-sensitive surface using a finger, a stylus, or any other suitable object or attachment) thereon or nearby, and drive the corresponding communication device according to a predetermined program. The input unit 603 may include other input devices in addition to the touch-sensitive surface. In particular, other input devices may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 604 may be used to display information input by or provided to the user and various graphical user interfaces of the server, which may be made up of graphics, text, icons, video, and any combination thereof. The display unit 604 may include a display panel, and optionally, the display panel may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. Further, the touch-sensitive surface may overlay the display panel, and when a touch operation is detected on or near the touch-sensitive surface, the touch operation is transmitted to the processor 608 to determine the type of touch event, and the processor 608 then provides a corresponding visual output on the display panel according to the type of touch event. Although in FIG. 7 the touch-sensitive surface and the display panel are two separate components to implement input and output functions, in some embodiments the touch-sensitive surface may be integrated with the display panel to implement input and output functions.
The terminal may also include at least one sensor 605, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that adjusts the brightness of the display panel according to the brightness of ambient light, and a proximity sensor that turns off the display panel and the backlight when the server moves to the ear.
Audio circuitry 606, speakers, and microphones may provide an audio interface between the user and the server. The audio circuit 606 may transmit the electrical signal converted from the received audio data to a speaker, and convert the electrical signal into a sound signal for output; on the other hand, the microphone converts the collected sound signal into an electrical signal, which is received by the audio circuit 606 and converted into audio data, which is then processed by the audio data output processor 608, and then passed through the RF circuit 601 to be sent to, for example, a terminal, or the audio data is output to the memory 602 for further processing. The audio circuitry 606 may also include an ear-bud jack to provide communication of peripheral headphones with the server.
WiFi belongs to short-distance wireless transmission technology, and the terminal can help a user to receive and send e-mails, browse webpages, access streaming media and the like through the WiFi module 607, and provides wireless broadband internet access for the user. Although fig. 7 shows the WiFi module 607, it is understood that it does not belong to the essential constitution of the terminal, and may be omitted entirely as needed within the scope of not changing the essence of the application.
The processor 608 is a control center of the terminal, communicates various parts of the entire handset using various interfaces and lines, performs various functions of the server and processes data by operating or executing software programs and modules stored in the memory 602 and calling data stored in the memory 602, thereby performing overall monitoring of the handset. Optionally, processor 608 may include one or more processing cores; preferably, the processor 608 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 608.
The terminal also includes a power supply 609 (e.g., a battery) for powering the various components, which may preferably be logically connected to the processor 608 via a power management system that may be used to manage charging, discharging, and power consumption. The power supply 609 may also include any component of one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and the like.
Specifically, in this embodiment, the processor 608 in the terminal loads the executable file corresponding to the process of one or more application programs into the memory 602 according to the following instructions, and the processor 608 runs the application programs stored in the memory 602, thereby implementing various functions:
acquiring historical communication times of an NFC antenna when signal transmission is carried out through the NFC antenna;
processing the historical communication times according to a preset rule to obtain a first communication time;
when the NFC antenna signal is detected to be interrupted, processing the first communication times according to an interruption detection result to obtain a second communication time, wherein the interruption detection result comprises: normal interrupts or abnormal interrupts;
and updating the historical communication times according to the second communication times.
According to the scheme, when signal transmission is carried out through the NFC antenna, the historical communication times of the NFC antenna are obtained, and the historical communication times are processed according to a preset rule to obtain first communication times; when detecting that the NFC antenna signal is interrupted, processing the first communication times according to an interruption detection result to obtain a second communication time, wherein the interruption detection result comprises: and normal interruption or abnormal interruption is performed, and the historical communication times are updated according to the second communication times, so that the use efficiency of the NFC antenna of the terminal can be effectively improved.
It will be understood by those of ordinary skill in the art that all or part of the steps of the methods of the above embodiments may be performed by instructions or by instructions controlling associated hardware, which may be stored in a computer-readable storage medium and loaded and executed by a processor.
To this end, embodiments of the present application provide a computer-readable storage medium, where a plurality of instructions are stored, where the instructions can be loaded by a processor to perform steps in any one of the NFC communication detection methods provided in the embodiments of the present application. For example, the instructions may perform the steps of:
acquiring historical communication times of an NFC antenna when signal transmission is carried out through the NFC antenna; processing the historical communication times according to a preset rule to obtain a first communication time; when the NFC antenna signal is detected to be interrupted, processing the first communication times according to an interruption detection result to obtain a second communication time, wherein the interruption detection result comprises: normal interrupts or abnormal interrupts; and updating the historical communication times according to the second communication times.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
Wherein the computer-readable storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
Since the instructions stored in the computer-readable storage medium may execute the steps in any NFC communication detection method provided in the embodiment of the present application, beneficial effects that can be achieved by any NFC communication detection method provided in the embodiment of the present application may be achieved, for details, see the foregoing embodiment, and are not described herein again.
The NFC communication detection method, the NFC communication detection device, the computer-readable storage medium, and the terminal provided in the embodiments of the present application are described in detail above, and a specific example is applied in the present application to explain the principle and the implementation of the present application, and the description of the above embodiments is only used to help understand the method and the core idea of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (10)

1. An NFC communication detection method, comprising:
acquiring historical communication times of an NFC antenna when signal transmission is carried out through the NFC antenna;
processing the historical communication times according to a preset rule to obtain a first communication time;
when the NFC antenna signal is detected to be interrupted, processing the first communication times according to an interruption detection result to obtain a second communication time, wherein the interruption detection result comprises: normal interrupts or abnormal interrupts;
and updating the historical communication times according to the second communication times.
2. The method according to claim 1, wherein the processing the first number of times of communication according to the result of the interrupt detection to obtain the second number of times of communication: the method comprises the following steps:
if the interruption detection result is normal interruption, executing subtraction processing on the first communication times to obtain second communication times;
and if the interruption detection result is abnormal interruption, taking the first communication times as second communication times.
3. The method according to claim 1, wherein the processing the historical communication times according to a preset rule to obtain a first communication time comprises:
and executing addition processing on the historical communication times to obtain a first communication time.
4. The method of claim 1, wherein the updating the historical number of communications based on the second number of communications comprises:
taking the second communication times as the historical communication times;
and recording the updated historical communication times.
5. The method of claim 1, further comprising:
and when the detection result is abnormal interruption, acquiring current time information and recording the time information in an interruption time table.
6. The method of claim 1, further comprising:
and when the historical communication times reach a preset communication threshold value, generating and displaying prompt information of faults in the NFC antenna signal transmission.
7. An NFC communication detection device, comprising:
the device comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring the historical communication times of an NFC antenna when signal transmission is carried out through the NFC antenna;
the first processing unit is used for processing the historical communication times according to a preset rule to obtain first communication times;
the second processing unit is configured to, when a signal interruption is detected, process the first communication frequency according to an interruption detection result to obtain a second communication frequency, where the interruption detection result includes: normal interrupts or abnormal interrupts;
and the updating unit is used for updating the historical communication times according to the second communication times.
8. The apparatus of claim 7, wherein the second processing unit comprises: a first processing subunit and a second processing subunit;
the first processing subunit is configured to, if the interrupt detection result is a normal interrupt, perform subtraction processing on the first communication frequency to obtain a second communication frequency;
and the second processing subunit is configured to, if the interrupt detection result is an abnormal interrupt, use the first communication frequency as a second communication frequency.
9. A computer-readable storage medium storing instructions adapted to be loaded by a processor to perform the steps of the NFC communication detection method according to any one of claims 1 to 6.
10. A terminal comprising a processor and a memory, the memory storing a plurality of instructions, the processor loading the instructions to perform the steps in the NFC communication detection method of any of claims 1 to 6.
CN201910922397.2A 2019-09-27 2019-09-27 NFC communication detection method, NFC communication detection device, computer-readable storage medium and terminal Active CN110636526B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910922397.2A CN110636526B (en) 2019-09-27 2019-09-27 NFC communication detection method, NFC communication detection device, computer-readable storage medium and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910922397.2A CN110636526B (en) 2019-09-27 2019-09-27 NFC communication detection method, NFC communication detection device, computer-readable storage medium and terminal

Publications (2)

Publication Number Publication Date
CN110636526A true CN110636526A (en) 2019-12-31
CN110636526B CN110636526B (en) 2023-10-24

Family

ID=68972983

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910922397.2A Active CN110636526B (en) 2019-09-27 2019-09-27 NFC communication detection method, NFC communication detection device, computer-readable storage medium and terminal

Country Status (1)

Country Link
CN (1) CN110636526B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112487838A (en) * 2020-12-10 2021-03-12 深圳市欢太科技有限公司 Information prompting method and device, electronic equipment and storage medium
CN115208860A (en) * 2022-07-06 2022-10-18 抖音视界(北京)有限公司 Interrupt rate determination method, interrupt rate determination device, electronic device, processing device, and medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104581790A (en) * 2015-02-06 2015-04-29 北京邮电大学 Method and device for detecting interruption of low-power wireless access node
CN104809839A (en) * 2015-04-22 2015-07-29 广东欧珀移动通信有限公司 Anti-theft monitoring method and system based on NFC
CN107635278A (en) * 2017-09-29 2018-01-26 努比亚技术有限公司 Wi Fi control methods, mobile terminal and computer-readable recording medium
CN107889092A (en) * 2017-11-30 2018-04-06 广东欧珀移动通信有限公司 Bluetooth devices control method, device, terminal device and storage medium
CN108811178A (en) * 2018-05-31 2018-11-13 阿里巴巴集团控股有限公司 A kind of data interactive method, device and equipment
CN109639370A (en) * 2018-12-03 2019-04-16 惠州Tcl移动通信有限公司 Near-field communication aerial detection method, device, mobile terminal and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104581790A (en) * 2015-02-06 2015-04-29 北京邮电大学 Method and device for detecting interruption of low-power wireless access node
CN104809839A (en) * 2015-04-22 2015-07-29 广东欧珀移动通信有限公司 Anti-theft monitoring method and system based on NFC
CN107635278A (en) * 2017-09-29 2018-01-26 努比亚技术有限公司 Wi Fi control methods, mobile terminal and computer-readable recording medium
CN107889092A (en) * 2017-11-30 2018-04-06 广东欧珀移动通信有限公司 Bluetooth devices control method, device, terminal device and storage medium
CN108811178A (en) * 2018-05-31 2018-11-13 阿里巴巴集团控股有限公司 A kind of data interactive method, device and equipment
CN109639370A (en) * 2018-12-03 2019-04-16 惠州Tcl移动通信有限公司 Near-field communication aerial detection method, device, mobile terminal and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112487838A (en) * 2020-12-10 2021-03-12 深圳市欢太科技有限公司 Information prompting method and device, electronic equipment and storage medium
CN115208860A (en) * 2022-07-06 2022-10-18 抖音视界(北京)有限公司 Interrupt rate determination method, interrupt rate determination device, electronic device, processing device, and medium

Also Published As

Publication number Publication date
CN110636526B (en) 2023-10-24

Similar Documents

Publication Publication Date Title
CN103488939B (en) Method, device and terminal for prompting user
CN107231159B (en) Radio frequency interference processing method, device, storage medium and terminal
CN111343682B (en) Network switching method, device, storage medium and terminal
CN111158455A (en) Power consumption control method and device, storage medium and terminal
CN106371964B (en) Method and device for prompting message
CN106294168B (en) A kind of method and system carrying out Application testing
CN104093123A (en) Application program information pushing method, device and system and mobile terminal
CN111093259A (en) Bluetooth power adjustment method, device, storage medium and terminal
CN110912574B (en) SIM card detection method, device, storage medium and terminal
CN110930964B (en) Display screen brightness adjusting method and device, storage medium and terminal
CN111273955B (en) Thermal restoration plug-in optimization method and device, storage medium and electronic equipment
CN110688051B (en) Screen recording operation method and device, computer readable storage medium and terminal
CN110636526B (en) NFC communication detection method, NFC communication detection device, computer-readable storage medium and terminal
CN110022405B (en) Radio frequency parameter adjusting method, device and storage medium
CN107622234B (en) Method and device for displaying budding face gift
CN104468961A (en) Method and device for prompting position of terminal
CN110888093A (en) Display screen connection detection method and device, computer readable storage medium and terminal
CN105635379B (en) Noise suppression method and device
CN110471622B (en) SD card data writing method and device, storage medium and terminal
CN112542867A (en) Mobile terminal power supply control method and device, terminal equipment and storage medium
CN111093148A (en) Signal frequency adjusting method and device, storage medium and terminal
CN111629263A (en) Display picture compensation method and device, electronic equipment and storage medium
CN111290672A (en) Image display method and device, storage medium and terminal
CN111106846A (en) Method, system and mobile terminal for reducing SAR value
CN111984107B (en) Method and device for processing power supply abnormity of terminal equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20240506

Address after: Room 2103, Room G001, Building 1, No. 213 Funing Road, Zumiao Street, Chancheng District, Foshan City, Guangdong Province, 528000 (Residence Declaration)

Patentee after: Foshan Runqianyu Intellectual Property Service Co.,Ltd.

Country or region after: China

Address before: 10 / F, No.5 Lane 999, Yangfan Road, high tech Zone, Ningbo City, Zhejiang Province

Patentee before: TCL mobile communication technology (Ningbo) Co.,Ltd.

Country or region before: China

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20240603

Address after: Room 10-6 # 422, Futian Road, Torch High tech Industrial Development Zone, Weihai City, Shandong Province, 264200

Patentee after: Weihai Daoheng Automation Technology Co.,Ltd.

Country or region after: China

Address before: Room 2103, Room G001, Building 1, No. 213 Funing Road, Zumiao Street, Chancheng District, Foshan City, Guangdong Province, 528000 (Residence Declaration)

Patentee before: Foshan Runqianyu Intellectual Property Service Co.,Ltd.

Country or region before: China

TR01 Transfer of patent right
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: NFC communication detection method, device, computer-readable storage medium, and terminal

Granted publication date: 20231024

Pledgee: Weihai City Commercial Bank Limited by Share Ltd. high tech branch

Pledgor: Weihai Daoheng Automation Technology Co.,Ltd.

Registration number: Y2024980024353

PE01 Entry into force of the registration of the contract for pledge of patent right