Radio frequency field transmission power adjustment method and device, equipment, storage medium
By adjusting the radio frequency field transmission power of the near-field communication equipment, the problem of insufficient connection distance due to the radio frequency field was solved, thus improving the communication performance between devices.
Patent Information
- Application Number
- CN202311547846.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-16
- Publication Date
- 2026-01-30
- Estimated Expiration
- 2043-11-16
AI Technical Summary
In near-field communication, if the transmit power of the radio frequency field does not meet the connection distance requirements, the devices will be unable to connect, affecting communication performance.
By generating an initial transmit power radio frequency field and adjusting it to the target transmit power based on the connection status between the first and second devices, a connection can be established between the devices at the current connection distance.
This ensures that the transmit power of the radio frequency field meets the connection distance requirements between devices, thereby improving communication performance.
Smart Images

Figure CN117544186B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] Embodiments of the present application relate to the near field communication technology, and in particular, to a radio frequency field transmission power adjustment method and device, equipment and storage medium. BACKGROUND
[0002] Near field communication (NFC) is a short-range (usually less than 10 cm) wireless data transmission technology. Near field communication is a wireless data transmission between two electronic devices through a signal with a frequency close to 13.56 MHz, and an electronic device conforming to the near field communication standard is called a near field communication device. On the one hand, near field communication is more secure than long-range communication. On the other hand, one electronic device (for example, a card reader) can provide power to another electronic device (for example, a card) through its radio frequency field, so that an electronic device without an internal power supply can also be a near field communication device. Based on the above advantages, near field communication devices are widely used in subway, bus and other application scenarios.
[0003] However, when the electronic device providing power in near field communication provides power to another electronic device through its radio frequency field, if the transmission power of the radio frequency field does not meet the requirement of the connection distance between near field communication devices, the devices cannot be connected, thereby affecting the communication performance between near field communication devices.
[0004] Therefore, how to make the transmission power of the radio frequency field meet the requirement of the connection distance between near field communication devices has become a technical problem to be solved. SUMMARY
[0005] Therefore, the embodiments of the present application provide a radio frequency field transmission power adjustment method and device, equipment and storage medium, which can make the transmission power of the radio frequency field meet the requirement of the connection distance between near field communication devices, and improve the communication performance between near field communication devices.
[0006] According to a first aspect of the embodiments of the present application, a radio frequency field transmission power adjustment method is provided, applied to a first device in near field communication, the first device and a second device implement near field communication connection, and the method comprises: generating the radio frequency field, the transmission power of the radio frequency field being an initial transmission power, and making the second device send a response signal to the first device by inducting the radio frequency field; and adjusting the initial transmission power to a target transmission power according to the response signal sent by the second device and the connection between the second device, the target transmission power being used to make the second device and the first device establish connection at a current connection distance.
[0007] According to a second aspect of the embodiments of the present application, a device for adjusting the transmission power of a radio frequency field is provided, which is applied to a first device for near field communication, and the first device and a second device are connected through near field communication. The device comprises: a generating module, configured to generate the radio frequency field, and the transmission power of the radio frequency field is an initial transmission power, so that the second device sends a response signal to the first device by inducting the radio frequency field; and an adjusting module, configured to adjust the initial transmission power to a target transmission power according to the response signal sent by the second device and the connection between the second device and the first device, and the target transmission power is used to establish a connection between the second device and the first device at a current connection distance.
[0008] According to a third aspect of the embodiments of the present application, an electronic device is provided, which comprises a processor, a memory, a communication interface and a communication bus, the processor, the memory and the communication interface complete communication with each other through the communication bus; the memory is used to store at least one executable instruction, and the executable instruction makes the processor perform operations corresponding to the method of the first aspect.
[0009] According to a fourth aspect of the embodiments of the present application, a storage medium is provided, and the storage medium stores a computer program, and the computer program is executed by a processor to realize operations corresponding to the method of the first aspect.
[0010] The first device of the embodiments of the present application provides a radio frequency field with an initial transmission power, adjusts the initial transmission power to a target transmission power according to the connection between the first device and the second device, and thus establishes a connection between the first device and the second device at a current connection distance. The embodiments of the present application can adjust the transmission power of the radio frequency field of the first device, so that the transmission power of the radio frequency field of the first device meets the requirements of the connection distance between the first device and various second devices, and the communication performance between the first device and the second device is improved. BRIEF DESCRIPTION OF DRAWINGS
[0011] In order to more clearly illustrate the technical solutions of the embodiments of the present application or the prior art, the drawings needed in the embodiments or the prior art description will be briefly introduced. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art according to these drawings.
[0012] Figure 1 An interaction diagram of the first device and the second device in an embodiment of the present application;
[0013] Figure 2 A flowchart of an embodiment of the method for adjusting the transmission power of the radio frequency field of the present application;
[0014] Figure 3Card discovery flowchart for the method of adjusting the transmitting power of a radio frequency field of the present application;
[0015] Figure 4 Flowchart for another embodiment of the method of adjusting the transmitting power of a radio frequency field of the present application;
[0016] Figure 5 Flowchart for another embodiment of the method of adjusting the transmitting power of a radio frequency field of the present application;
[0017] Figure 6 Flowchart for another embodiment of the method of adjusting the transmitting power of a radio frequency field of the present application;
[0018] Figure 7 Flowchart for another embodiment of the method of adjusting the transmitting power of a radio frequency field of the present application;
[0019] Figure 8 Flowchart for the steps performed in a specific application scenario of an embodiment of the present application;
[0020] Figure 9 Flowchart for the steps performed in another specific application scenario of an embodiment of the present application;
[0021] Figure 10 Structural diagram of a device for adjusting the transmitting power of a radio frequency field of an embodiment of the present application;
[0022] Figure 11 Structural diagram of an electronic device provided by an embodiment of the present application. DETAILED DESCRIPTION
[0023] The technical solutions in the embodiments of the present application will be described below with reference to the drawings. In the embodiments of the present application, the same reference signs represent the same components, and for brevity, the detailed description of the same components will be omitted in different embodiments. It should be understood that the thickness, length, width and other dimensions of various components in the embodiments of the present application shown in the drawings, and the overall thickness, length, width and other dimensions of integrated devices are only exemplary and should not constitute any limitation on the present application.
[0024] It should be noted that, in the absence of conflicts, the various embodiments described in the present application and / or the technical features in the various embodiments can be combined with each other in any manner, and the technical solutions obtained after combination should also fall within the protection scope of the present application.
[0025] It should be understood that the specific examples in the embodiments of the present application are only to help those skilled in the art better understand the embodiments of the present application, and do not limit the scope of the embodiments of the present application.
[0026] It should also be understood that, in various embodiments of the present application, the magnitude of the serial number of various processes does not mean the order of execution, the execution order of various processes should be determined according to its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0027] It should also be understood that the terms used in the embodiments of the present application and the appended claims are only for the purpose of describing specific embodiments, and are not intended to limit the embodiments of the present application. For example, the singular forms "a", "an" and "the" used in the embodiments of the present application and the appended claims are also intended to include the plural forms, unless the context clearly indicates otherwise.
[0028] As used herein, terms such as "first", "second", and "third" describe various components, elements, regions, layers and / or sections, but such components, elements, regions, layers and / or sections should not be limited by such terms. Such terms are only used to distinguish one component, element, region, layer or section from another. The terms "first", "second" and "third" used herein do not imply a sequence or order unless explicitly indicated by the context.
[0029] In addition, for ease of description, spatial relative terms such as "under", "lower", "above", "upper" and the like can be used herein to describe the relationship of one component or member to another component or member illustrated in the figure. In addition to the orientation depicted in the figure, the spatial relative terms also encompass different orientations of the device in use or operation. The device can be oriented in other ways (rotated 90 degrees or in other orientations) and therefore the spatial relative descriptors used herein can be equally interpreted.
[0030] Near field communication is an asymmetric radio frequency standard, and a near field communication device usually includes a first device providing power and a second device. The first device provides power to the second device through the radio frequency field, and whether the second device has an internal power supply is not limited. For example, in subway, bus and other application scenarios, the first device is usually a card reader, and the second device is a card without internal power supply. In addition, the second device can also be a card with internal power supply provided on a smart mobile device such as a mobile phone.
[0031] The following will be described by taking the first device as a card reader and the second device as a card as an example. The card can be a physical card or a card provided on a smart mobile device such as a mobile phone.
[0032] The card reader generates a 13.56MHz radio frequency field and modulates the radio frequency field to achieve data transmission. The card senses the radio frequency field and transmits a response signal by modulating the load or analog load of the radio frequency field.
[0033] In order to establish a connection between the card reader and the card, the card reader needs to meet the following conditions:
[0034] Firstly, a strong enough radio frequency field needs to be generated. The power amplifier of the card reader transmitter outputs a strong enough radio frequency field to provide power for the card, so that the card can send a response signal to the card reader by sensing the radio frequency field. In addition, the power amplifier of the card reader transmitter outputs a strong enough radio frequency field to provide power for the card reader itself.
[0035] Secondly, the receiver of the card reader must also be able to accurately sense the response signal sent by the card. The receiver of the card reader senses both the response signal sent by the card and the radio frequency field generated by the power amplifier (PA) of the card reader transmitter. The receiver of the card reader will adjust its sensitivity according to the strength of the sensed signal. If the sensed signal strength is large, it will lower its sensitivity. Therefore, when the radio frequency field output by the power amplifier is relatively strong, much larger than the response signal sent by the card, the receiver of the card reader will lower the sensitivity of the receiver. This will result in the receiver of the card reader being unable to accurately sense the response signal sent by the card. That is, as the radio frequency field output by the power amplifier increases, the sensitivity of the receiver of the card reader will decrease.
[0036] Therefore, the card reader generates a strong enough radio frequency field to power the card, but the radio frequency field strength of the card reader cannot be too large to affect the sensitivity of the receiver of the card reader.
[0037] For cards that need the radio frequency field of the card reader to provide power, some need less power provided by the radio frequency field to operate, and some need more power provided by the radio frequency field to operate. For cards that need less power provided by the radio frequency field to operate, when the transmission power of the radio frequency field of the card reader is high, the radio frequency field strength of the card reader is too large, which affects the sensitivity of the receiver of the card reader, resulting in that the card reader and the card can only choose a short connection distance. For cards that need more power provided by the radio frequency field to operate, when the transmission power of the radio frequency field of the card reader is low, the card cannot obtain power by sensing the radio frequency field, which will also result in that the card reader and the card can only choose a short connection distance. Therefore, it is difficult for the card reader to increase the connection distance with various cards at the same time.
[0038] In view of the above problems, an embodiment of the present application provides a transmission power adjustment method of a radio frequency field, applied to a first device in near field communication. Referring to Figure 1 , the first device and a second device implement near field communication connection. The first device provides power for the second device through a radio frequency field. Whether the second device has an internal power source is not limited.
[0039] Exemplarily, the first device is a card reader, and the second device is a card.
[0040] Referring to Figure 2 , the method comprises:
[0041] Step S1: generating the radio frequency field, the transmitting power of the radio frequency field being an initial transmitting power, and enabling the second device to send a response signal to the first device by inducting the radio frequency field.
[0042] Step S2: adjusting the initial transmitting power to a target transmitting power according to the connection between the response signal sent by the second device and the second device, the target transmitting power being used for enabling the second device to establish a connection with the first device at a current connection distance.
[0043] The first device of the embodiment of the present application provides a radio frequency field with an initial transmitting power, and adjusts the initial transmitting power to a target transmitting power according to the connection between the first device and the second device, thereby enabling the first device to establish a connection with the second device at a current connection distance. The embodiment of the present application can enable the transmitting power of the radio frequency field of the first device to meet the requirement of the connection distance between the first device and various second devices by adjusting the transmitting power of the radio frequency field of the first device, and improves the communication performance between the first device and the second device.
[0044] In a specific implementation of the present application, the initial transmitting power is determined according to the type of the second device.
[0045] Specifically, when the first device is a card reader and the second device is a card without an internal power supply, the card in near field communication includes an NFC A card, an NFC B card, an NFC F card and an NFC V card.
[0046] Generally, a card reader attempts to establish a connection with each kind of card supported by the card reader, and the card reader cannot know the type of the card before establishing the connection. Therefore, the embodiment of the present application cannot know which one of the NFC A card, the NFC B card, the NFC F card and the NFC V card the type of the card belongs to before the card reader establishes a connection with the card.
[0047] The NFC card types defined by near field communication include four kinds, and the four kinds of card technologies all define respective initialization processes, and also define the basic data format, transmission rate, encoding mode and modulation mode of NFC communication. A card reader (polling device) discovers a card (listening device) by sending a polling command of a certain card. For example, when the card reader (polling device) sends a polling command of an NFC A card, only the NFC A card (listening device) will respond, and other cards (listening devices) will not respond. The card reader (polling device) sends the polling command according to a configured parameter, which is set by a person skilled in the art according to needs. Exemplarily, see Figure 3The order of the polling command is set as NFC A card, NFC B card, NFC F card and NFC V card, and those skilled in the art can also set the polling command in other orders or poll only part of the four cards.
[0048] Specifically, the card reader discovers the type of the existing card according to the polling command, and then sets the initial transmission power according to the type of the card. The card reader attempts to establish a connection with the card of different types through the initial transmission power.
[0049] The radio frequency field generated by the card reader is strong enough to power the card, but the radio frequency field strength of the card reader cannot be too large to affect the sensitivity of the receiver of the card reader. The card reader establishes a connection with cards of different types, and often has different requirements for the strength of the radio frequency field generated by the card reader and the sensitivity of the receiver of the card reader.
[0050] For example, the card reader establishes a connection with the NFC B card, and the power amplifier of the transmitter of the card reader usually needs to output a radio frequency field with high power to provide power for the NFC B card. The card reader establishes a connection with the NFC A card, and before the sensitivity of the receiver of the card reader is met, the power amplifier of the transmitter of the card reader needs to output a radio frequency field with low power to provide power for the NFC A card. The card reader establishes a connection with the NFC F card and the NFC V card, and the sensitivity of the receiver of the card reader is required to be high during the connection process, but the requirement for power is low.
[0051] In another specific implementation of the present application, the initial transmission power is determined according to the position of the first device.
[0052] Because the position of the first device is different, the transmission power of the radio frequency field required by the first device is also different. The initial transmission power is set according to the position of the first device in the embodiment of the present application, which can make the initial transmission power closer to the target transmission power, and facilitate faster adjustment of the initial transmission power to the target transmission power.
[0053] For example, the card reader on the Beijing subway requires a higher radio frequency field transmission power, and a higher initial transmission power is set to quickly adjust the initial transmission power to the target transmission power.
[0054] Specifically, the position of the first device is obtained by an external device in communication with the first device.
[0055] For example, the external device can be a mobile phone, and the position of the card reader can be received from the mobile phone. For example, the map application of the mobile phone or other applications of the mobile phone with positioning function can obtain the position of the card reader.
[0056] If the second device is a fixed device, i.e., the installation position is fixed, the initial transmission power does not need to be set through the position of the first device.
[0057] In another specific implementation of the present application, the initial transmission power is determined according to the type of the second device and the position of the first device.
[0058] The present application determines the initial transmission power according to the type of the second device and the position of the first device, so that the initial transmission power is closer to the target transmission power, and the transmission power can be adjusted to the target transmission power more quickly.
[0059] In another specific implementation of the present application, the initial transmission power is set as the maximum transmission power selectable by the first device.
[0060] For example, when the card reader of the present application establishes a connection with the NFC B card, the maximum transmission power selectable by the card reader for the NFC B card is used as the initial transmission power, and the initial transmission power is adjusted, so as to avoid repeated increase or decrease in the adjustment of the transmission power, and the adjustment of the transmission power is more convenient.
[0061] For another example, when the card reader of the present application located in Beijing establishes a connection with the card, the maximum transmission power selectable by the card reader in Beijing is used as the initial transmission power, and the initial transmission power is adjusted, so as to avoid repeated increase or decrease in the adjustment of the transmission power, and the adjustment of the transmission power is more convenient.
[0062] Specifically, the present application can determine the initial transmission power according to at least one of the type of the second device and the position of the first device, and then select the maximum transmission power therefrom as the initial transmission power. The present application can also directly select the maximum transmission power of the first device as the initial transmission power.
[0063] For example, the present application can directly select the maximum transmission power that can be set by the card reader as the initial transmission power, without considering the type of the card and the position of the card reader.
[0064] In another specific implementation of the present application, referring to Figure 4 , the step S2 comprises:
[0065] Step S21: If the first device fails to establish a connection with the second device, the initial transmission power is adjusted by a first predetermined amount until the first device establishes a connection with the second device, and the transmission power of the established connection is used as the target transmission power.
[0066] Specifically, when the first device fails to establish a connection with the second device, the first device continues to attempt to establish a connection between the first device and the second device using different transmission power, and the first predetermined amount can be a fixed value or a variable value. The initial transmission power adjusted by the first predetermined amount can gradually decrease, or gradually increase, or decrease and then increase, or increase and then decrease.
[0067] For example, when the first device generates a radio frequency field with a maximum transmission power, the transmission power is gradually reduced by the first predetermined amount, and each reduction can be 20%, until the first device establishes a connection with the second device and obtains a target transmission power. Alternatively, the transmission power is first reduced by 50%, and then reduced by 25%, until the first device establishes a connection with the second device and obtains a target transmission power.
[0068] The embodiment of the present application can more simply adjust the transmission power by generating a radio frequency field with a maximum transmission power by the first device, and then reducing the transmission power by the first predetermined amount each time.
[0069] A person skilled in the art can set the first predetermined amount and the way of adjusting the initial transmission power by the first predetermined amount according to needs.
[0070] Specifically, the first predetermined amount is determined according to at least one of the type of the second device and the position of the first device.
[0071] The embodiment of the present application determines the first predetermined amount according to at least one of the type of the second device and the position of the first device, so as to simplify the adjustment process of the transmission power.
[0072] The following is an example of setting the initial transmission power and the first predetermined amount according to the type of the second device.
[0073] Referring to Figure 5 The present embodiment is applied to a card reader as the first device and a card as the second device, and the method comprises the following steps.
[0074] Step 501: The card reader generates a radio frequency field with a maximum transmission power that can be selected by the card reader, or selects to generate a radio frequency field with a maximum transmission power according to the type of the card that can be connected or the position of the card reader.
[0075] The maximum transmission power is the initial transmission power.
[0076] Step 502: Determine whether the card reader establishes a connection with the card.
[0077] Step 503: If the card reader and the card do not establish a connection, the card reader adjusts the initial transmission power by a first predetermined amount until the card reader and the card establish a connection.
[0078] The card reader adjusts the initial transmission power by the first predetermined amount until the first device and the second device establish a connection, and the transmission power at which the connection is established is taken as the target transmission power.
[0079] For example, the card reader needs to establish a connection with the card B at a connection distance of 24 mm. The card reader generates a radio frequency field using 2.5 W as the initial transmission power for the first connection attempt. If the card type of the card B at this time is an NFC B card, the card reader can successfully establish a connection with the card B at a connection distance of 24 mm.
[0080] The card reader needs to establish a connection with the card B at a connection distance of 45 mm. The card reader generates a radio frequency field using 2.5 W as the initial transmission power for the first connection attempt. If the card type of the card B at this time is an NFC B card, the card reader cannot establish a connection with the card B at a connection distance of 45 mm. At this time, the transmission power of the card reader is lowered by 10%, 20%, or 30% respectively according to the first preset amount, i.e., the transmission power is adjusted to 2.25 W (2.5*90%), 1.8 W (2.25*80%), or 1.44 W (1.8*80%) respectively, until the transmission power is adjusted to 1.44 W, and the card reader can successfully establish a connection with the card B at a connection distance of 45 mm.
[0081] The first preset amount is set by the person skilled in the art as needed. If the first preset amount is set too large, the transmission power can be quickly lowered, but it can be adjusted too low and cannot provide a strong enough radio frequency field to the card. If the first preset amount is set too small, the transmission power will be slowly lowered, and the adjustment speed can be slow.
[0082] In addition, the first predetermined amount can also be determined by the position of the card reader. If a larger radio frequency field transmission power is needed according to the position of the card reader, the first predetermined amount can be set to a smaller value, so that the first predetermined amount of a single adjustment is not too large in the process of adjusting the transmission power from the maximum transmission power to the target transmission power, which can cause the radio frequency field transmission power to be adjusted too low and cannot provide a strong enough radio frequency field to the card.
[0083] The first predetermined amount can also be set by the type of the card and the position of the card reader, so that the target transmission power can be more quickly and accurately reached, and the adjustment process of the transmission power is simplified.
[0084] In another specific implementation of the present application, referring to Figure 6 , the step S2 comprises:
[0085] Step S22: If the first device fails to establish a connection with the second device, adjusting the initial transmission power according to the power of the response signal sent by the second device and historical connection data until the first device establishes a connection with the second device, taking the transmission power of the established connection as the target transmission power, the historical connection data being the power of the response signal sent by the second device when the first device establishes a previous connection with the second device.
[0086] The near field communication technology has no method of forward error correction or retry request. Therefore, the near field communication technology has relatively low tolerance for bit error ratio (BER). This requires that the ratio of bit energy to power spectral density of white noise (Eb / No) required for the first device to establish a connection with the second device can be 20 dB or higher. The ratio of the response signal power sensed by the first device (for example, the receiver of the card reader) to the sensed noise power must be greater than 100 times to establish a connection between the first device and the second device.
[0087] Generally, the first device (for example, the receiver of the card reader) can determine the surrounding noise condition through simulation and calculation in the design process or through product measurement in a laboratory environment. In addition, the required ratio of bit energy to power spectral density of white noise can also be determined through simulation and calculation or measurement in the laboratory. Since the noise energy is relatively known, and the required ratio of response signal power to noise for establishing a connection is so large, the measured power of the response signal can be significantly higher than the noise level, but still far lower than the required power of the response signal for establishing a connection.
[0088] Therefore, although the first device fails to establish a connection with the second device, the response signal sent by the second device can still be sensed, but the first device cannot successfully decode the response signal because the response signal is not large enough compared with the noise level. In this case, the power of the response signal that fails to establish a connection and the transmission power of the radio frequency field of the first device corresponding to the response signal can be determined. The embodiments of the present application compare the determined power of the response signal with the power of the response signal when the first device establishes a connection with the second device, and then at least one adjustment can be made to the initial transmission power corresponding to the response signal until the first device establishes a connection with the second device, taking the transmission power of the established connection as the target transmission power.
[0089] The embodiments of the present application can directly adjust the initial transmission power to the target transmission power, avoiding repeated adjustments, simplifying the adjustment process and accelerating the adjustment speed.
[0090] The embodiment of the present application adjusts the initial transmission power according to the power of the response signal sent by the second device and the historical connection data, can quickly adjust the initial transmission power to the target transmission power, and enables the first device to establish a connection with the second device.
[0091] In another specific implementation of the present application, referring to Figure 7 , the step S2 further includes:
[0092] Step S23: If the first device establishes a connection with the second device and the power of the response signal sent by the second device is greater than or equal to the power threshold, the target transmission power is adjusted to the stable transmission power.
[0093] The stable transmission power is used to enable the second device to enter a stable connection state with the first device. The power threshold is set according to the ratio of the bit energy of the second device to the power spectral density of white noise.
[0094] If the first device establishes a connection with the second device and the power of the response signal sent by the second device is greater than or equal to the power threshold, it indicates that the ratio of the response signal sent by the second device to the noise level is close to or exceeds the ratio of the bit energy required by the second device to the power spectral density of white noise. However, the connection between the first device and the second device may not have entered a stable state. By adjusting the target transmission power to the stable transmission power, the reliability of the connection between the first device and the second device is further improved.
[0095] Specifically, the step S23 is specifically: adjusting the target transmission power to the stable transmission power at a safe time.
[0096] If the ratio of the response signal sent by the second device to the noise level is close to the ratio of the bit energy required by the second device to the power spectral density of white noise, adjusting the target transmission power to the stable transmission power at a safe time can further improve the sensitivity of the card reader receiver, and can make the connection between the first device and the second device more reliable.
[0097] In another specific implementation of the present application, referring to Figure 8 , the step S2 further includes:
[0098] Step S24: If the first device fails to establish a connection with the second device and the response signal sent by the second device is not received, the initial transmission power is adjusted by a second predetermined amount until the first device establishes a connection with the second device, the transmission power of the established connection is taken as the target transmission power, or the connection between the first device and the second device is given up.
[0099] Specifically, if the first device fails to establish a connection with the second device, and the first device also fails to receive the response signal sent by the second device, there can be two reasons.
[0100] One reason is that the sensitivity of the first device (e.g., the receiver of the card reader) cannot receive the response signal. In this case, the initial transmission power needs to be adjusted to a lower level so that the sensitivity of the first device can receive the response signal, thereby establishing a connection between the first device and the second device, avoiding the situation that the first device fails to establish a connection with the second device. The embodiment of the application adjusts the initial transmission power to a second predetermined amount, which is greater than the first predetermined amount. Since the initial transmission power has affected the sensitivity of the first device at this time, a second predetermined amount greater than the first predetermined amount is needed to significantly reduce the initial transmission power, so as to determine whether it is due to the low sensitivity of the first device that the response signal cannot be received.
[0101] The other reason is that the radio frequency field of the first device (e.g., the receiver of the card reader) cannot meet the power demand of the second device, i.e., the first device cannot provide a strong enough radio frequency field. In this case, the connection between the first device and the second device needs to be abandoned, avoiding the waste of resources caused by the first device continuing to connect the second device.
[0102] The following will be described through another specific example to illustrate the implementation of the embodiment of the application.
[0103] Referring to Figure 9 , the specific implementation is applied to a card reader as the first device and a card as the second device, and the method comprises the following steps.
[0104] Step 901: The card reader generates a radio frequency field with the maximum transmission power that the card reader can select, or selects to generate a radio frequency field with the maximum transmission power according to the type of the card that can be connected or the position of the card reader.
[0105] The maximum transmission power is the initial transmission power.
[0106] Step 902: Determine whether the card reader and the card establish a connection.
[0107] Step 903: If the card reader and the card do not establish a connection, determine whether the card reader receives the response signal sent by the card.
[0108] Step 904: If the card reader does not receive the response signal sent by the card, the card reader adjusts the initial transmission power to a second predetermined amount until a connection with the card is established, or gives up establishing a connection with the card.
[0109] Step 905: If the card reader receives the response signal sent by the card, and the card reader and the card do not establish a connection, the initial transmission power is adjusted according to the power of the response signal of the card and historical connection data until the card reader and the card establish a connection.
[0110] Step 906: If the card reader and the card establish a connection, and the power of the response signal of the card is equal to the power threshold value, the transmission power is reduced to the stable transmission power at a safe time to establish a stable connection between the card reader and the card.
[0111] For example, the card reader needs to establish a connection with the card B at a connection distance of 24 mm. The card reader generates a radio frequency field using 2.5 W as the initial transmission power for the first connection attempt. If the card type of the card B at this time is an NFC B card, the card reader can successfully establish a connection with the card B at a connection distance of 24 mm. If the power of the response signal of the card B is greater than or equal to (close to) the power threshold value, the transmission power is reduced to the stable transmission power at a safe time to establish a stable connection between the card reader and the card B.
[0112] However, if the connection distance is 33 mm, the card reader cannot establish a connection with the card B, and cannot receive the response signal sent by the card B. The card reader can adjust the initial transmission power to about 1.5 W by a second predetermined amount, so that the card reader can establish a connection with the card B, or the card reader gives up establishing a connection with the card B.
[0113] If the card reader needs to establish a connection with the card A at a connection distance of 33 mm and 45 mm. The card reader generates a radio frequency field using 2.5 W as the initial transmission power for the first connection attempt. If the card type of the card A at this time is an NFC A card, the card reader cannot establish a connection with the card A at a connection distance of 24 mm, but can receive the response signal sent by the card A, which is much higher than the noise level (at least 25 times). At this time, the initial transmission power of the card reader is directly adjusted to the target transmission power according to the power of the response signal of the card and the historical connection data.
[0114] Corresponding to the above method, see Figure 10 The application also provides a transmission power adjustment device of a radio frequency field, which is applied to a first device of near field communication. The first device and a second device realize near field communication connection. The first device provides power supply for the second device through a radio frequency field. The device comprises:
[0115] A generation module 1001 is configured to generate the radio frequency field. The transmission power of the radio frequency field is the initial transmission power, so that the second device sends a response signal to the first device by inducting the radio frequency field.
[0116] The adjusting module 1002 is configured to adjust the initial transmitting power to a target transmitting power according to the response signal transmitted by the second device and the connection between the second device and the first device, and the target transmitting power is used to enable the second device to establish a connection with the first device at the current connection distance.
[0117] The first device in the embodiment of the present application provides a radio frequency field of initial transmitting power, and adjusts the initial transmitting power to a target transmitting power according to the connection between the first device and the second device, so as to enable the first device to establish a connection with the second device at the current connection distance. By adjusting the transmitting power of the radio frequency field of the first device, the embodiment of the present application can enable the transmitting power of the radio frequency field of the first device to meet the requirement of the connection distance between the first device and various second devices, and improve the communication performance between the first device and the second device.
[0118] Based on the method described above, the embodiment of the present application further provides an electronic device for executing the method described in the above embodiment, referring to Figure 11 , a structural schematic diagram of an electronic device according to an embodiment of the present application is shown, and the specific implementation of the electronic device is not limited in the embodiment of the present application.
[0119] As shown in Figure 11 , the electronic device 110 can include a processor 1102, a communications interface 1104, a memory 1106, and a communications bus 1108.
[0120] Among them:
[0121] The processor 1102, the communications interface 1104, and the memory 1106 complete the communication among each other through the communications bus 1108.
[0122] The communications interface 1104 is configured to communicate with other electronic devices or servers.
[0123] The processor 1102 is configured to execute the program 1111, and specifically can execute the related steps in the above data processing method embodiment.
[0124] Specifically, the program 1111 can include program code, and the program code includes computer operation instructions.
[0125] The processor 1102 can be a central processing unit (CPU), or an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to implement one or more embodiments of the present application. The one or more processors included in the smart device can be the same type of processor, such as one or more CPUs, or different types of processors, such as one or more CPUs and one or more ASICs.
[0126] The memory 1106 is configured to store a program 1111. The memory 1106 includes an SRAM memory.
[0127] The program 1110 can be specifically configured to cause the processor 1102 to perform the steps described in any of the above-mentioned embodiments.
[0128] The specific implementation of each step in the program 1110 can refer to the corresponding description of the corresponding step in the above-mentioned method embodiments, and will not be described here.
[0129] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the device and the module described above can refer to the corresponding process description in the above-mentioned method embodiments, and will not be described here.
[0130] Based on the method described in the above embodiments, the embodiments of the present application provide a computer storage medium, which stores a computer program. The program is executed by a processor to implement the method described in the above embodiments.
[0131] Based on the method described in the above embodiments, the embodiments of the present application provide a computer program product. The computer program product is executed by a processor to implement the method described in the above embodiments.
[0132] It should be noted that, according to the needs of implementation, each component / step described in the embodiments of the present application can be split into more components / steps, or two or more components / steps or part of the operation of the components / steps can be combined into a new component / step, to achieve the purpose of the embodiments of the present application.
[0133] The methods according to the embodiments of the present application described above can be implemented in hardware, firmware, or software, or a combination of them, and can be stored in a recording medium such as a CD ROM, RAM, floppy disk, hard disk, or magneto-optical disk, or be downloaded by a network from a remote recording medium or a non-transitory machine-readable medium originally stored in a local recording medium and then stored in a local recording medium, so that the methods described herein can be processed by such software using a general-purpose computer, a special-purpose processor, or programmable or special-purpose hardware such as an ASIC or an FPGA. It can be understood that the computer, processor, microprocessor controller, or programmable hardware includes a storage component (for example, RAM, ROM, flash memory, etc.) that can store or receive software or computer code, which, when accessed and executed by the computer, processor, or hardware, implements the navigation methods described herein. Furthermore, when a general-purpose computer accesses code for implementing the navigation methods shown herein, the execution of the code will convert the general-purpose computer into a special-purpose computer for executing the navigation methods shown herein.
[0134] Those skilled in the art can realize that the units and method steps of each example described in combination with the embodiments disclosed herein can be realized in electronic hardware or a combination of computer software and electronic hardware. Whether the functions are realized in hardware or software depends on the specific application and design constraints of the technical solution. A person skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the embodiments of the present application.
[0135] The embodiments of the present application are described, but not limited to the embodiments of the present application, and those skilled in the art can make various changes and modifications without departing from the spirit and scope of the embodiments of the present application, therefore all equivalent technical solutions also belong to the scope of the embodiments of the present application, the patent protection scope of the embodiments of the present application should be defined by the claims.
Claims
1. A method for adjusting a transmission power of a radio frequency field, applied to a first device in near field communication, the first device and a second device being connected in near field communication, the method comprising: generating the radio frequency field, the transmission power of the radio frequency field being an initial transmission power, and causing the second device to send a response signal to the first device by inducting the radio frequency field; adjusting the initial transmission power to a target transmission power according to a connection condition between the response signal sent by the second device and the second device, the target transmission power being used for the second device to establish a connection with the first device at a current connection distance; the initial transmission power being determined according to at least one of a type of the second device and a position of the first device, the position of the first device being obtained by an external device communicating with the first device; the initial transmission power being set as a maximum transmission power selectable by the first device; the adjusting the initial transmission power to the target transmission power according to the connection condition between the response signal sent by the second device and the second device comprising: if the first device and the second device fail to establish a connection, adjusting the initial transmission power by a first predetermined amount until the first device and the second device establish a connection, and taking the transmission power of the established connection as the target transmission power; the first predetermined amount being determined according to at least one of the type of the second device and the position of the first device; the adjusting the initial transmission power to the target transmission power according to the connection condition between the response signal sent by the second device and the second device further comprising: if the first device and the second device fail to establish a connection, adjusting the initial transmission power according to a power of the response signal sent by the second device and historical connection data until the first device and the second device establish a connection, and taking the transmission power of the established connection as the target transmission power, the historical connection data being the power of the response signal sent by the second device when the first device and the second device previously establish a connection; the adjusting the initial transmission power to the target transmission power according to the connection condition between the response signal sent by the second device and the second device further comprising: if the first device and the second device establish a connection, and the power of the response signal sent by the second device is greater than or equal to a power threshold, adjusting the target transmission power to a stable transmission power, the stable transmission power being used for the second device to enter a stable connection state with the first device, the power threshold being set according to a ratio of a bit energy of the second device to a power spectral density of white noise; the adjusting the target transmission power to the stable transmission power comprising: reducing the initial transmission power to the target transmission power at a safe time; the adjusting the initial transmission power to the target transmission power according to the connection condition between the response signal sent by the second device and the second device further comprising: 2. The method of claim 1, wherein, 3. The method of any one of claims 1-2, wherein, 4. The method of claim 3, wherein, 5. The method of any one of claims 1-2, wherein, 6. The method of claim 5, wherein, 7. The method of claim 6, wherein, 8. The method of claim 5, wherein, If the first device fails to establish connection with the second device and no response signal sent by the second device is received, the initial transmission power is lowered by a second predetermined amount until the first device establishes connection with the second device, the transmission power at which the connection is established is taken as the target transmission power, or the connection between the first device and the second device is given up.
9. The method of claim 4, wherein, The type of the second device includes NFC A card, NFC B card, NFC F and NFC V card.
10. The method of claim 4, wherein, The position of the first device is obtained by an external device in communication with the first device. 11.A transmission power adjustment apparatus of a radio frequency field, applied to a first device of near field communication, the first device and a second device realizing near field communication connection, the apparatus comprising: a generation module configured to generate the radio frequency field, the transmission power of the radio frequency field being an initial transmission power, and to enable the second device to send a response signal to the first device by inducting the radio frequency field; an adjustment module configured to adjust the initial transmission power to a target transmission power according to the response signal sent by the second device and the connection between the second device, the target transmission power being used to enable the second device to establish connection with the first device at a current connection distance. The initial transmission power is determined according to at least one of the type of the second device and the position of the first device, the position of the first device being obtained by an external device in communication with the first device.
12. An electronic device comprising: a processor, a memory, a communication interface and a communication bus, the processor, the memory and the communication interface completing communication with each other through the communication bus; The memory is used to store at least one executable instruction, the executable instruction enabling the processor to perform operations corresponding to the method in any one of claims 1-10. 13.A storage medium, the storage medium storing a computer program, the computer program being executed by a processor to realize operations corresponding to the method in any one of claims 1-10.
Citation Information
Patent Citations
Optimizing power consumption in a near field communications (NFC) environment
US20130005248A1