CN112822666B - Communication method, communication device, electronic equipment and storage medium - Google Patents

Communication method, communication device, electronic equipment and storage medium Download PDF

Info

Publication number
CN112822666B
CN112822666B CN202011614837.7A CN202011614837A CN112822666B CN 112822666 B CN112822666 B CN 112822666B CN 202011614837 A CN202011614837 A CN 202011614837A CN 112822666 B CN112822666 B CN 112822666B
Authority
CN
China
Prior art keywords
signal strength
information
signal intensity
antenna
threshold value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011614837.7A
Other languages
Chinese (zh)
Other versions
CN112822666A (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.)
Gree Electric Appliances Inc of Zhuhai
Original Assignee
Gree Electric Appliances Inc of Zhuhai
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 Gree Electric Appliances Inc of Zhuhai filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN202011614837.7A priority Critical patent/CN112822666B/en
Publication of CN112822666A publication Critical patent/CN112822666A/en
Application granted granted Critical
Publication of CN112822666B publication Critical patent/CN112822666B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B17/00Monitoring; Testing
    • H04B17/30Monitoring; Testing of propagation channels
    • H04B17/309Measuring or estimating channel quality parameters
    • H04B17/318Received signal strength
    • 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)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • Electromagnetism (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Telephone Function (AREA)

Abstract

In the embodiment of the invention, information of signal intensity of an antenna is obtained, whether the signal intensity is larger than a preset signal intensity threshold value or not is judged, and if not, information for moving a mobile terminal is output. According to the embodiment of the invention, after the information of the signal intensity of the antenna is acquired, whether the signal intensity is greater than the preset signal intensity threshold value or not is determined according to the signal intensity information, so that whether card swiping failure is caused by card swiping position deviation or not can be accurately known, and the user experience is improved.

Description

Communication method, communication device, electronic equipment and storage medium
Technical Field
The present invention relates to the field of near field communication technologies, and in particular, to a communication method and apparatus, an electronic device, and a storage medium.
Background
Along with the rapid development of the near field communication technology, it is more and more common to swipe a card through a mobile terminal to simulate cards such as bank cards, bus cards, and entrance guards on card readers such as a point of sale terminal (POS), but the problem of card swiping failure is caused by the fact that the card swiping position is deviated easily in the card swiping process through the mobile terminal and the antenna position is not known.
Disclosure of Invention
The embodiment of the invention provides a communication method, a communication device, electronic equipment and a storage medium, which are used for solving the problem that in the prior art, whether card swiping failure is caused by card swiping position deviation or not cannot be correctly known, and user experience is influenced.
The invention provides a communication method, which comprises the following steps:
acquiring information of signal strength of an antenna;
judging whether the signal intensity is greater than a preset signal intensity threshold value or not;
and if not, outputting the information for moving the mobile terminal.
Further, the acquiring information of the signal strength of the antenna includes:
information of the signal strength of the antenna is obtained from the near field communication controller interface NCI.
Further, the method further comprises:
and if the signal intensity is greater than a preset signal intensity threshold value, outputting information of successful card swiping.
Further, the determining whether the signal strength is greater than a preset signal strength threshold value includes:
determining a quotient of the signal strength and a stored signal strength maximum;
and judging whether the quotient is larger than a preset proportion threshold value or not.
Further, after the outputting the information that the card swiping is successful, the method further comprises:
storing information of the signal strength;
and judging whether the updating condition of the signal strength threshold value is met, if so, updating the stored maximum value of the signal strength according to the stored information of each signal strength.
Further, the information of the signal strength is a signal strength indication or a gain value.
The present invention provides a communication apparatus, comprising:
the extraction module is used for acquiring the information of the signal intensity of the antenna;
the judging module is used for judging whether the signal intensity is greater than a preset signal intensity threshold value or not;
and the output module is used for outputting the information for moving the mobile terminal when the judgment module judges that the mobile terminal is not moved.
Further, the extracting module is specifically configured to obtain information of the signal strength of the antenna from the near field communication controller interface NCI.
Further, the output module is further configured to output information that the card swiping is successful if the signal strength is greater than a preset signal strength threshold value.
Further, the determining module is specifically configured to determine a quotient of the signal strength and a stored maximum value of the signal strength; and judging whether the quotient is larger than a preset proportion threshold value or not.
Further, the apparatus further comprises:
the processing module is used for storing the information of the signal intensity; and judging whether the updating condition of the signal strength threshold value is met, if so, updating the stored maximum value of the signal strength according to the stored information of each signal strength.
The invention provides an electronic device comprising a processor for implementing the steps of the communication method as described in any one of the above when executing a computer program stored in a memory.
The present invention provides a computer-readable storage medium storing a computer program executable by a terminal, the program, when run on the terminal, causing the terminal to perform the steps of any of the communication methods described above.
In the embodiment of the invention, the information of the signal strength of the antenna is obtained, whether the signal strength is greater than a preset signal strength threshold value or not is judged, and if not, the information of moving the mobile terminal is output. According to the embodiment of the invention, after the information of the signal intensity of the antenna is acquired, whether the signal intensity is greater than the preset signal intensity threshold value or not is determined according to the signal intensity information, so that whether card swiping failure is caused by card swiping position deviation or not can be accurately known, and the user experience is improved.
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 description of the embodiments will be briefly introduced 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 to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic diagram of a communication process according to an embodiment of the present invention;
fig. 2a is a schematic diagram of an NFC antenna with a misaligned relative position and a close distance according to an embodiment of the present invention;
fig. 2b is a schematic diagram of an NFC antenna that is located at a correct position but far away from the position according to an embodiment of the present invention;
fig. 2c is a schematic diagram of an NFC antenna with a positive relative position and a short distance according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a communication device according to an embodiment of the present invention;
fig. 4 is an electronic device according to an 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 that can be derived from the embodiments of the present invention by a person skilled in the art are within the scope of the present invention.
In order to correctly recognize whether card swiping failure is caused by card swiping position deviation and improve user experience, the embodiment of the invention provides a communication method, a communication device, electronic equipment and a storage medium.
Example 1:
fig. 1 is a schematic diagram of a communication process provided in an embodiment of the present invention, where the process includes the following steps:
s101: information of the signal strength of the antenna is obtained.
The communication method provided by the embodiment of the invention is applied to the mobile terminal.
The mobile terminal is used for communicating with a card reader such as a point-of-sale terminal, and in order to determine whether the mobile terminal is successfully communicated with the card reader such as the point-of-sale terminal, that is, to determine whether the relative position of the antenna of the mobile terminal and the antenna of the card reader such as the point-of-sale terminal is in a right position state, the mobile terminal may perform the determination based on the acquired information of the signal intensity of the antenna.
S102: and judging whether the signal intensity is greater than a preset signal intensity threshold value, if not, performing S103, and if so, performing S104.
In the embodiment of the present invention, after the information of the signal intensity of the antenna is acquired, in order to determine whether the relative position between the antenna of the current mobile terminal and the antenna of the card reader such as the point-of-sale terminal is in the correct position state, that is, whether the communication between the mobile terminal and the card reader such as the point-of-sale terminal is successful or not, a signal intensity threshold may be preset, and whether the communication is successful or not may be determined by determining whether the acquired signal intensity of the antenna is greater than the preset signal intensity threshold.
S103: and outputting the information for moving the mobile terminal.
If the signal intensity of the antenna is not greater than the preset signal intensity threshold value, it is determined that the currently received signal intensity is weak, and the relative position between the antenna of the mobile terminal and the antenna of the card reader such as the point-of-sale terminal is not in a normal position, which may cause a communication failure between the mobile terminal and the card reader such as the point-of-sale terminal. Therefore, in order to ensure successful communication of the card readers such as the point-of-sale terminals of the mobile terminal, in the embodiment of the invention, information for moving the mobile terminal can be output, and the position of the mobile terminal is moved, so that the relative position of the antenna of the mobile terminal and the antenna of the card reader such as the point-of-sale terminal is changed, and the subsequent communication between the mobile terminal and the card reader such as the point-of-sale terminal is successful.
The information for moving the mobile terminal may be output in a manner of "please move the mobile phone and then perform a card swiping operation", and the output information for moving the mobile terminal may be output in a form of text or voice. Specifically, if the information for outputting the information for moving the mobile terminal may be "please move the mobile phone and then perform the card swiping operation", and the manner for outputting the information for moving the mobile terminal may be text output, text content of "please move the mobile phone and then perform the card swiping operation" may be displayed on a display page of the mobile terminal, and if the information for outputting the information for moving the mobile terminal may be "please move the mobile phone and then perform the card swiping operation", and the manner for outputting the information for moving the mobile terminal may be voice output, a voice of "please move the mobile phone and then perform the card swiping operation" may be sent through a microphone of the mobile terminal.
S104: and outputting the information of successful card swiping.
If the signal intensity of the antenna is determined to be greater than the preset signal intensity threshold value, it is indicated that the currently received signal intensity is strong, the relative position of the antenna of the current mobile terminal and the antenna of the card reader such as the point-of-sale terminal is in a normal state, and the mobile terminal and the card reader such as the point-of-sale terminal can successfully communicate. And directly outputting the information of successful card swiping, wherein the information of successful card swiping can be output in a text mode or in a voice mode. Specifically, if the card swiping success information can be output in a text manner, the text content of the "card swiping success" can be displayed on the display page of the mobile terminal, and if the card swiping success information is output in a voice manner, the voice of the "card swiping success" can be sent out through the loudspeaker of the mobile terminal.
In the embodiment of the invention, the information of the signal strength of the antenna is obtained, whether the signal strength is greater than a preset signal strength threshold value or not is judged, and if not, the information of moving the mobile terminal is output. According to the embodiment of the invention, after the information of the signal intensity of the antenna is acquired, whether the signal intensity is greater than the preset signal intensity threshold value or not is determined according to the information of the signal intensity, so that whether card swiping failure is caused by card swiping position deviation or not can be accurately known, and the user experience is improved.
Example 2:
in order to obtain the information of the signal strength of the antenna, on the basis of the above embodiment, in an embodiment of the present invention, the obtaining the information of the signal strength of the antenna includes:
information of the signal strength of the antenna is obtained from a near field communication Controller Interface (NCI).
In the embodiment of the present invention, in the process of acquiring the information on the signal strength of the antenna, the mobile terminal may directly acquire the information on the signal strength of the antenna at the NFC controller interface, or may not directly acquire the information on the signal strength of the antenna at the NFC controller interface NCI, in order to acquire the information on the signal strength of the antenna, it is necessary to determine whether to acquire the information on the signal strength of the antenna from the NFC controller interface NCI, if so, directly determine whether the signal strength is greater than a preset signal strength threshold, if not, receive the information on the signal strength of the antenna from the NCI, the NFC in the mobile terminal may report the information on the signal strength of the antenna in an active broadcast manner, and after acquiring the information on the signal strength of the antenna, the mobile terminal performs the step of determining whether the signal strength is greater than the preset signal strength threshold.
Example 3:
in order to determine whether the mobile terminal is capable of successfully communicating, on the basis of the foregoing embodiments, in an embodiment of the present invention, the determining whether the signal strength is greater than a preset signal strength threshold includes:
determining a quotient of the signal strength and a stored signal strength maximum;
and judging whether the quotient is larger than a preset proportion threshold value or not.
In the embodiment of the present invention, after the information of the signal intensity of the antenna is acquired, in order to determine whether the relative position between the antenna of the current mobile terminal and the antenna of the card reader such as the point-of-sale terminal is in the correct position state, that is, whether the communication between the mobile terminal and the card reader such as the point-of-sale terminal is successful or not, a signal intensity threshold may be preset, and whether the communication is successful or not may be determined by determining whether the acquired signal intensity of the antenna is greater than the preset signal intensity threshold. The determining whether the signal strength of the acquired antenna is greater than the preset signal strength threshold may be determining a difference between the signal strength of the antenna and the stored maximum signal strength value, determining whether the difference is less than the preset difference threshold, or determining a quotient between the signal strength of the antenna and the stored maximum signal strength value, and determining whether the quotient is greater than a preset proportional threshold.
In the embodiment of the present invention, whether the mobile terminal can successfully communicate is determined based on a comparison between a quotient of the obtained signal intensity of the antenna and a maximum value of the signal intensity stored in the mobile terminal and a preset proportional threshold, wherein each maximum value of the signal intensity corresponding to each card reader such as a point-of-sale terminal is different, but each maximum value of the signal intensity corresponding to any two card readers such as two point-of-sale terminals is within a preset difference range, so as to conveniently and accurately determine the maximum value of the signal intensity, the maximum values of the signal intensity corresponding to each card reader such as each point-of-sale terminal can be unified, specifically, in an initial state, that is, when the mobile terminal swipes for the first time, the maximum value of the signal intensity stored in the mobile terminal is unifiedThe maximum value of the signal intensity may be an average value of maximum signal intensities of the card readers such as the conventional point-of-sale terminals, for example, taking four conventional point-of-sale terminals as an example, if the maximum values of the information of the signal intensity that the four conventional point-of-sale terminals can provide are x respectively 1 、x 2 、x 3 、x 4 The maximum value of the signal strength information stored in the mobile terminal is
Figure BDA0002876254030000071
Wherein the signal strength maximum may be preconfigured into the mobile terminal.
After the signal strength of the current antenna is obtained, determining a quotient of the signal strength and the stored maximum signal strength, and determining whether the quotient is greater than a preset proportional threshold, where the quotient may be greater than 0 and less than or equal to 1, or greater than 1, specifically, if the signal strength is greater than the stored maximum signal strength, the quotient is greater than 1, and if the signal strength is less than the stored maximum signal strength, the quotient is less than 1.
Further, the quotient may be multiplied by 100%. It is also determined whether the percentage is greater than a preset percentage threshold based on the determined percentage.
Example 4:
in order to obtain information of signal strength of an antenna, on the basis of the foregoing embodiments, in an embodiment of the present invention, after the outputting information of card swiping success, the method further includes:
saving the signal information of intensity;
and judging whether the updating condition of the signal strength threshold value is met, if so, updating the stored maximum value of the signal strength according to the stored information of each signal strength.
In the embodiment of the invention, after the information of successful card swiping is output, the information of the signal intensity is stored, since the maximum value of the signal intensity pre-stored in the mobile terminal is determined according to the average value of the maximum signal intensity of the card readers such as the conventional point-of-sale terminals when the mobile terminal is in the initial state, that is, the mobile terminal swipes the card for the first time, in order to improve the accuracy of the maximum signal intensity of the card readers such as the point-of-sale terminals, the information of the signal intensity is stored after the mobile terminal is determined to be successful in card swiping, and the stored maximum value of the signal intensity is updated when the update condition of the limited intensity threshold is met.
The condition for satisfying the update of the signal strength threshold may be that the number of the saved signal strength information reaches a preset number threshold, or a time threshold is preset, and the time interval between the current time and the last time of update reaches the time threshold.
Specifically, after determining that the update condition of the signal strength threshold is satisfied, the stored maximum signal strength value is updated according to the stored information of each signal strength, and specifically, according to the stored information of the signal strength, the stored maximum signal strength value is updated by determining an average value of the signal strengths according to the stored signal strengths and the currently stored maximum signal strength value, and using the average value as the updated maximum signal strength value, or by searching for a maximum value of the stored signal strengths and the currently stored maximum signal strength value, and using the maximum value as the updated maximum signal strength value.
Example 5:
in order to determine whether the mobile terminal is capable of successfully communicating, in the embodiment of the present invention, on the basis of the above embodiment, the information of the signal strength is a signal strength indicator or a gain value.
When the relative position between the antenna of the mobile terminal and the antenna of the card reader such as the point-of-sale terminal is not in the normal state, the farther the distance between the antenna of the mobile terminal and the card reader such as the point-of-sale terminal is, the more the relative position between the antenna and the card reader such as the point-of-sale terminal is, the lower the coupling degree of the antenna is, the smaller the Field strength induction value is, the smaller the received signal strength indication or gain value is, the closer the distance between the antenna of the mobile terminal and the card reader such as the point-of-sale terminal is, the more the relative position between the antenna and the card reader such as the point-of-sale terminal is, the higher the coupling degree of the antenna is, the larger the Field strength induction value is, and the larger the received signal strength indication or gain value is, so as to determine whether the mobile terminal can successfully communicate, the information of the signal strength indication or gain value can be provided by a Near Field Communication Chip (NFCC), and the mobile terminal and the card reader such as the point-of-sale terminal and the like can successfully communicate on the basis of Near Field Communication.
Fig. 2a is a schematic diagram of an NFC antenna with a misaligned relative position and a short distance according to an embodiment of the present invention, fig. 2b is a schematic diagram of an NFC antenna with a correct relative position and a long distance according to an embodiment of the present invention, and fig. 2c is a schematic diagram of an NFC antenna with a correct relative position and a short distance according to an embodiment of the present invention, which are described with reference to fig. 2a, fig. 2b, and fig. 2 c.
In fig. 2a, 2b and 2c, the information on the x-axis, y-axis and z-axis represents the coordinate information of the antenna corresponding to the x-axis, y-axis and z-axis, respectively.
According to the coordinate information on the x-axis, the y-axis and the z-axis of the antennas at the two ends of the card readers such as the mobile terminal and the point-of-sale terminal in fig. 2a, it is determined that the relative positions of the antennas at the two ends of the mobile terminal and the card readers such as the point-of-sale terminal in the current state are staggered, the distance is short, the coupling degree is low, the induction field intensity is small, and the corresponding signal intensity indication or gain value is small.
According to the coordinate information on the x-axis, the y-axis and the z-axis of the antennas at the two ends of the card readers such as the mobile terminal and the point-of-sale terminal in fig. 2b, the relative positions and the distances of the antennas at the two ends of the card readers such as the mobile terminal and the point-of-sale terminal in the current state are determined to be normal, the coupling degree is low, the induction field intensity is small, and the corresponding signal intensity indication or gain value is small.
According to the coordinate information on the x-axis, the y-axis and the z-axis of the antennas at the two ends of the card readers such as the mobile terminal and the point-of-sale terminal in fig. 2c, the relative positions of the antennas at the two ends of the card readers such as the mobile terminal and the point-of-sale terminal in the current state are determined to be normal, when the distance is short, the coupling degree is high, the induction field is strong, and the corresponding signal intensity indication or gain value is also large.
In the process of determining whether the mobile terminal can successfully communicate, if the signal strength information is the signal strength indication, after the signal strength indication is obtained, a quotient of the current signal strength indication and the stored maximum value of the signal strength indication is determined, whether the quotient is greater than a preset proportional threshold value or not is judged, if not, the quotient indicates that the relative position of the antenna of the current mobile terminal and the antenna of the card reader such as the point-of-sale terminal is not in a normal state or the relative position of the antenna of the current mobile terminal and the antenna of the card reader such as the point-of-sale terminal is in a normal state but is far away from the antenna of the current mobile terminal and the antenna of the card reader such as the point-of-sale terminal.
If the information of the signal intensity is a gain value, after the gain value is acquired, determining a quotient of a current gain value and a maximum value of a stored gain value, judging whether the quotient is greater than a preset proportional threshold value, if not, indicating that the relative position of the antenna of the current mobile terminal and the antenna of the card reader such as the point-of-sale terminal is not in a correct state, or the relative position of the antenna of the current mobile terminal and the antenna of the card reader such as the point-of-sale terminal is in a correct state but is far away from the antenna of the current mobile terminal and the antenna of the card reader such as the point-of-sale terminal.
Example 6:
fig. 3 is a schematic structural diagram of a communication device according to an embodiment of the present invention, where the device includes:
an extracting module 301, configured to obtain information of signal strength of an antenna;
a determining module 302, configured to determine whether the signal strength is greater than a preset signal strength threshold;
and an output module 303, configured to output information for moving the mobile terminal when the determination module determines that the mobile terminal is not moving.
In a possible implementation, the extracting module 301 is specifically configured to obtain information of the signal strength of the antenna from the nfc controller interface NCI.
In a possible implementation manner, the output module 303 is further configured to output a card swiping success message if the signal strength is greater than a preset signal strength threshold.
In a possible implementation manner, the determining module 302 is specifically configured to determine a quotient of the signal strength and a stored maximum value of the signal strength; and judging whether the quotient is larger than a preset proportion threshold value or not.
In a possible embodiment, the apparatus further comprises:
a processing module 304, configured to store information about the signal strength; and judging whether the updating condition of the signal strength threshold value is met, if so, updating the stored maximum value of the signal strength according to the stored information of each signal strength.
Example 7:
on the basis of the foregoing embodiments, some embodiments of the present invention further provide an electronic device, as shown in fig. 4, including: the system comprises a processor 401, a communication interface 402, a memory 403 and a communication bus 404, wherein the processor 401, the communication interface 402 and the memory 403 are communicated with each other through the communication bus 404.
The memory 403 has stored therein a computer program which, when executed by the processor 401, causes the processor 401 to perform the steps of:
acquiring information of signal strength of an antenna;
judging whether the signal intensity is greater than a preset signal intensity threshold value or not;
and if not, outputting the information for moving the mobile terminal.
Further, the processor 401 is further configured to obtain information of the signal strength of the antenna from the near field communication controller interface NCI.
Further, the processor 401 is further configured to output a card swiping success message if the signal strength is greater than a preset signal strength threshold.
Further, the processor 401 is further configured to determine a quotient of the signal strength and a maximum value of the saved signal strength; and judging whether the quotient is larger than a preset proportion threshold value or not.
Further, the processor 401 is further configured to store the information of the signal strength; and judging whether the updating condition of the signal strength threshold value is met, if so, updating the stored maximum value of the signal strength according to the stored information of each signal strength.
The communication bus mentioned in the above server may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface 402 is used for communication between the above-described electronic apparatus and other apparatuses.
The Memory may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. Alternatively, the memory may be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a central processing unit, a Network Processor (NP), and the like; but may also be a Digital instruction processor (DSP), an application specific integrated circuit, a field programmable gate array or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or the like.
Example 8:
on the basis of the foregoing embodiments, an embodiment of the present invention further provides a computer-readable storage medium, in which a computer program executable by an electronic device is stored, and when the program is run on the electronic device, the electronic device is caused to execute the following steps:
the memory having stored therein a computer program that, when executed by the processor, causes the processor to perform the steps of:
acquiring information of signal strength of an antenna;
judging whether the signal intensity is greater than a preset signal intensity threshold value or not;
and if not, outputting the information for moving the mobile terminal.
Further, the acquiring information of the signal strength of the antenna includes:
information of the signal strength of the antenna is obtained from the near field communication controller interface NCI.
Further, the method further comprises:
and if the signal intensity is greater than a preset signal intensity threshold value, outputting information of successful card swiping.
Further, the determining whether the signal strength is greater than a preset signal strength threshold value includes:
determining a quotient of the signal strength and a stored signal strength maximum;
and judging whether the quotient is larger than a preset proportion threshold value or not.
Further, after the outputting the information that the card swiping is successful, the method further comprises:
storing information of the signal strength;
and judging whether the updating condition of the signal strength threshold value is met, if so, updating the stored maximum value of the signal strength according to the stored information of each signal strength.
Further, the information of the signal strength is a signal strength indication or a gain value.
In the embodiment of the invention, the information of the signal strength of the antenna is obtained, whether the signal strength is greater than a preset signal strength threshold value or not is judged, and if not, the information of moving the mobile terminal is output. According to the embodiment of the invention, after the information of the signal intensity of the antenna is acquired, whether the signal intensity is greater than the preset signal intensity threshold value or not is determined according to the signal intensity information, so that whether the card swiping failure is caused by the card swiping position deviation or not can be accurately known, and the user experience is improved.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (7)

1. A method of communication, the method comprising:
acquiring information of signal strength of an antenna;
judging whether the signal intensity is greater than a preset signal intensity threshold value or not;
if not, outputting information for moving the mobile terminal;
wherein the method further comprises:
if the signal intensity is larger than a preset signal intensity threshold value, outputting information of successful card swiping;
after the information that the card swiping is successful is output, the method further comprises the following steps:
storing information of the signal strength;
judging whether the updating condition of the signal intensity threshold value is met, if so, updating the stored maximum value of the signal intensity according to the stored information of each signal intensity; determining an average value of the signal intensity according to each stored signal intensity and the currently stored maximum value of the signal intensity, and taking the average value as the updated maximum value of the signal intensity;
wherein, the update condition satisfying the signal strength threshold includes: the quantity of the stored signal strength information reaches a preset quantity threshold value, or a time threshold value is preset, and the time interval between the current time and the last updated time reaches the time threshold value;
wherein the determining whether the signal strength is greater than a preset signal strength threshold comprises:
determining a quotient of the signal strength and a stored signal strength maximum;
and judging whether the quotient is larger than a preset proportion threshold value or not.
2. The method of claim 1, wherein the obtaining information of the signal strength of the antenna comprises:
information of the signal strength of the antenna is obtained from the near field communication controller interface NCI.
3. The method of claim 1, wherein the signal strength information is a signal strength indication or a gain value.
4. A communications apparatus, the apparatus comprising:
the extraction module is used for acquiring the information of the signal intensity of the antenna;
the judging module is used for judging whether the signal intensity is greater than a preset signal intensity threshold value or not;
the output module is used for outputting information for moving the mobile terminal when the judgment module judges that the mobile terminal is not moved;
the output module is further configured to output information that the card swiping is successful if the signal intensity is greater than a preset signal intensity threshold;
wherein the apparatus further comprises:
the processing module is used for storing the information of the signal intensity; judging whether the updating condition of the signal strength threshold value is met, if so, updating the stored maximum signal strength value according to the stored information of each signal strength; determining an average value of the signal intensity according to each stored signal intensity and the currently stored maximum value of the signal intensity, and taking the average value as the updated maximum value of the signal intensity; wherein, the update condition satisfying the signal strength threshold includes: the quantity of the stored signal strength information reaches a preset quantity threshold value, or a time threshold value is preset, and the time interval between the current time and the last updated time reaches the time threshold value;
the judging module is specifically configured to determine a quotient of the signal strength and a stored maximum value of the signal strength; and judging whether the quotient is larger than a preset proportion threshold value or not.
5. The device according to claim 4, wherein the extraction module is specifically configured to obtain information about the signal strength of the antenna from a near field communication controller interface NCI.
6. An electronic device, characterized in that the electronic device comprises a processor for implementing the steps of the method according to any of claims 1-3 when executing a computer program stored in a memory.
7. A computer-readable storage medium, characterized in that it stores a computer program executable by a terminal, which program, when run on the terminal, causes the terminal to carry out the steps of the method of any one of claims 1 to 3.
CN202011614837.7A 2020-12-30 2020-12-30 Communication method, communication device, electronic equipment and storage medium Active CN112822666B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011614837.7A CN112822666B (en) 2020-12-30 2020-12-30 Communication method, communication device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011614837.7A CN112822666B (en) 2020-12-30 2020-12-30 Communication method, communication device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112822666A CN112822666A (en) 2021-05-18
CN112822666B true CN112822666B (en) 2023-04-07

Family

ID=75855459

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011614837.7A Active CN112822666B (en) 2020-12-30 2020-12-30 Communication method, communication device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112822666B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114866116B (en) * 2022-07-05 2022-09-27 深圳市汇顶科技股份有限公司 Near field communication method and near field communication device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104169942A (en) * 2013-01-10 2014-11-26 罗魏熙 Card swiping method and device for determining mobile terminal for swiping card, utilizing intensity of ultrasonic signal
CN110915144A (en) * 2018-05-02 2020-03-24 华为技术有限公司 NFC card swiping control method and terminal equipment

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102254135B (en) * 2011-06-21 2014-01-29 国民技术股份有限公司 Method, device and system for control distance
US20150105070A1 (en) * 2013-10-10 2015-04-16 Qualcomm Incorporated Method To Improve Cell Selection Procedures in a Single SIM/Multi-SIM Environment
CN108604342B (en) * 2017-01-20 2022-04-12 华为技术有限公司 NFC-based data transmission method and mobile device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104169942A (en) * 2013-01-10 2014-11-26 罗魏熙 Card swiping method and device for determining mobile terminal for swiping card, utilizing intensity of ultrasonic signal
CN110915144A (en) * 2018-05-02 2020-03-24 华为技术有限公司 NFC card swiping control method and terminal equipment

Also Published As

Publication number Publication date
CN112822666A (en) 2021-05-18

Similar Documents

Publication Publication Date Title
US11741455B2 (en) Systems and methods for providing near field communications
CN104428822B (en) Contactless payment method, apparatus and system
US10936833B2 (en) NFC configuration method, mobile terminal, and computer-readable storage medium
CN108876349B (en) Electronic device, payment channel determination method, and storage medium
CN113541741B (en) Analog card switching method and device, electronic equipment and storage medium
CN112996020B (en) Bluetooth-based automatic test method and device and Bluetooth test terminal
CN108764920A (en) Off-line trading method and device based on block chain
CN105938596B (en) Apparatus and method for facilitating transactions
CN112822666B (en) Communication method, communication device, electronic equipment and storage medium
US20140229372A1 (en) Smart card having multiple payment instruments
CN110536274B (en) NFC device control method and device, NFC device and storage medium
CN110009361A (en) A kind of settlement method and device
CN107046547B (en) Abnormal operation identification method and device
CN116887236A (en) Near field communication interaction method, user terminal, card swiping terminal, medium and product
US20170330057A1 (en) Method and System for Identifying a Payment Card Design
CN110889689A (en) Transaction request processing method and device, electronic equipment and readable storage medium
CN111144863A (en) Processing method and device for bank card information change of withholding account and related equipment
CN108234729B (en) Method for adjusting verification model, verification method, server and storage medium
CN108197515A (en) Card Reader control method and device, terminal installation and computer readable storage medium
US20170228722A1 (en) Real-time valuation display for transaction cards
CN113128993A (en) Payment method, payment device, electronic equipment and storage medium
CN112835641A (en) Configuration method and device for application program running function
US20190246256A1 (en) Method for providing service using near field communication and electronic device for supporting the same
CN114359904B (en) Image recognition method, image recognition device, electronic equipment and storage medium
CN117956406A (en) NFC alignment guide method, target alignment position determining method and NFC 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