[go: up one dir, main page]

CN121055985A - An adaptive near-field communication module, control method, and device - Google Patents

An adaptive near-field communication module, control method, and device

Info

Publication number
CN121055985A
CN121055985A CN202511598925.5A CN202511598925A CN121055985A CN 121055985 A CN121055985 A CN 121055985A CN 202511598925 A CN202511598925 A CN 202511598925A CN 121055985 A CN121055985 A CN 121055985A
Authority
CN
China
Prior art keywords
field communication
field antenna
signal
near field
control
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202511598925.5A
Other languages
Chinese (zh)
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.)
Alipay Hangzhou Digital Service Technology Co ltd
Original Assignee
Alipay Hangzhou Digital Service Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Alipay Hangzhou Digital Service Technology Co ltd filed Critical Alipay Hangzhou Digital Service Technology Co ltd
Priority to CN202511598925.5A priority Critical patent/CN121055985A/en
Publication of CN121055985A publication Critical patent/CN121055985A/en
Pending legal-status Critical Current

Links

Landscapes

  • Variable-Direction Aerials And Aerial Arrays (AREA)

Abstract

本说明书实施例提供一种自适应的近场通信模组、控制方法以及设备。其中,自适应的近场通信模组可以包括:近场天线、位置调节部件以及控制部件;所述位置调节部件包括载物支架以及位置调节组件,所述载物支架用于承载所述近场天线,所述位置调节组件用于调节所述载物支架的位置状态;所述控制部件用于控制所述位置调节组件的状态,以使所述载物支架携带所述近场天线达到目标位置。

This specification provides an adaptive near-field communication module, control method, and device. The adaptive near-field communication module may include a near-field antenna, a position adjustment component, and a control component. The position adjustment component includes a support bracket and a position adjustment assembly. The support bracket carries the near-field antenna, and the position adjustment assembly adjusts the position of the support bracket. The control component controls the state of the position adjustment assembly to ensure that the support bracket carries the near-field antenna to a target position.

Description

一种自适应的近场通信模组、控制方法以及设备An adaptive near-field communication module, control method, and device

技术领域Technical Field

本说明书一个或多个实施例涉及近场通信技术领域,特别涉及一种自适应的近场通信模组。本说明书一个或多个实施例同时涉及一种近场通信的控制方法,一种近场通信设备,一种计算设备。This specification relates to the field of near-field communication technology, and particularly to an adaptive near-field communication module. This specification also relates to a near-field communication control method, a near-field communication device, and a computing device.

背景技术Background Technology

随着通信技术的发展,近场通信(Near Field Communication,NFC)技术作为一种短距离的无线通信协议,已广泛应用于诸如移动支付、信息交互、智能家居控制、门禁、身份认证与识别、电子票务、防伪等多个领域。参与近场通信的设备可以包括发起设备和目标设备,也可以称为主设备和从设备。实际应用中,不同的发起设备因为硬件或者软件设置发出的信号强度可能不同,针对相同的目标设备,不同的发起设备因为发出信号的强弱可能会影响到与目标设备的通信成功率。或者,近场通信设备附近存在的干扰信号强度较强也可能会影响近场通信设备的通信。With the development of communication technology, Near Field Communication (NFC) technology, as a short-range wireless communication protocol, has been widely used in various fields such as mobile payment, information exchange, smart home control, access control, identity authentication and recognition, electronic ticketing, and anti-counterfeiting. Devices participating in NFC can include initiating devices and target devices, also known as master devices and slave devices. In practical applications, different initiating devices may emit different signal strengths due to hardware or software settings. For the same target device, the strength of the signal emitted by different initiating devices may affect the communication success rate. Alternatively, strong interference signals near the NFC device may also affect its communication.

因此,需要提供一种提高近场通信稳定性的方案。Therefore, a solution is needed to improve the stability of near-field communication.

发明内容Summary of the Invention

有鉴于此,本说明书一个或多个实施例提供了一种自适应的近场通信模组、控制方法以及设备,以提高近场通信的稳定性。In view of this, one or more embodiments of this specification provide an adaptive near-field communication module, control method, and device to improve the stability of near-field communication.

根据本说明书一个或多个实施例的第一方面,提供了一种自适应的近场通信模组,包括:近场天线、位置调节部件以及控制部件;According to a first aspect of one or more embodiments of this specification, an adaptive near-field communication module is provided, including: a near-field antenna, a position adjustment component, and a control component;

所述位置调节部件包括载物支架以及位置调节组件,所述载物支架与所述位置调节组件连接,所述载物支架用于承载所述近场天线,所述位置调节组件用于调节所述载物支架的位置状态;The position adjustment component includes a support bracket and a position adjustment assembly. The support bracket is connected to the position adjustment assembly. The support bracket is used to support the near-field antenna, and the position adjustment assembly is used to adjust the position state of the support bracket.

所述近场天线固定于所述载物支架上;The near-field antenna is fixed to the carrier support;

所述控制部件用于控制所述位置调节组件的状态,以使所述载物支架携带所述近场天线达到目标位置;所述目标位置满足以下至少一个条件:在所述目标位置处所述近场天线受到的外界干扰信号强度小于所述近场天线在上一位置受到的外界干扰信号强度;在所述目标位置处所述近场天线与第二装置的近场通信的信号强度满足近场通信需求;在所述目标位置处所述近场天线与第二装置的夹角小于或等于预设角度;所述第二装置为与所述近场通信模组进行近场通信的装置。The control component is used to control the state of the position adjustment assembly so that the carrier support carries the near-field antenna to the target position; the target position satisfies at least one of the following conditions: the intensity of the external interference signal received by the near-field antenna at the target position is less than the intensity of the external interference signal received by the near-field antenna at the previous position; the signal strength of the near-field communication between the near-field antenna and the second device at the target position meets the near-field communication requirements; the angle between the near-field antenna and the second device at the target position is less than or equal to a preset angle; the second device is a device for near-field communication with the near-field communication module.

根据本说明书一个或多个实施例的第二方面,提供了一种近场通信的控制方法,所述方法应用于能够自适应的近场通信模组,所述近场通信模组包括用于近场通信的近场天线、位置调节部件以及控制部件;所述方法包括:According to a second aspect of one or more embodiments of this specification, a control method for near-field communication is provided, the method being applied to an adaptive near-field communication module, the near-field communication module including a near-field antenna for near-field communication, a position adjustment component, and a control component; the method includes:

获取近场通信模组的状态信息;所述状态信息包括所述近场天线的信号强度的信息、与所述近场通信模组进行近场通信的第二装置的位置信息中至少一种;Acquire status information of the near-field communication module; the status information includes at least one of the following: signal strength information of the near-field antenna and location information of the second device that performs near-field communication with the near-field communication module.

根据所述状态信息,生成控制信号;Based on the state information, a control signal is generated;

发送所述控制信号至所述位置调节部件,所述位置调节部件根据所述控制信号调整状态,以使位于所述位置调节部件上的所述近场天线到达目标位置;所述目标位置满足以下至少一个条件:在所述目标位置处所述近场天线受到的外界干扰信号强度小于所述近场天线在上一位置受到的外界干扰信号强度;在所述目标位置处所述近场天线与所述第二装置的近场通信的信号强度满足近场通信需求;在所述目标位置处所述近场天线与第二装置的夹角小于或等于预设角度。The control signal is sent to the position adjustment component, which adjusts its state according to the control signal to bring the near-field antenna located on the position adjustment component to the target position. The target position satisfies at least one of the following conditions: the intensity of the external interference signal received by the near-field antenna at the target position is less than the intensity of the external interference signal received by the near-field antenna at the previous position; the signal strength of the near-field communication between the near-field antenna and the second device at the target position meets the near-field communication requirements; and the angle between the near-field antenna and the second device at the target position is less than or equal to a preset angle.

根据本说明书一个或多个实施例的第三方面,提供了一种近场通信设备,所述近场通信设备可以包括上述近场通信模组,或者能够执行上述近场通信的控制方法。According to a third aspect of one or more embodiments of this specification, a near-field communication device is provided, which may include the near-field communication module described above, or a control method capable of performing the near-field communication described above.

根据本说明书一个或多个实施例的第四方面,提供了一种计算设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机指令,所述处理器执行所述计算机指令时实现上述近场通信的控制方法的步骤。According to a fourth aspect of one or more embodiments of this specification, a computing device is provided, including a memory, a processor, and computer instructions stored in the memory and executable on the processor, wherein the processor executes the computer instructions to implement the steps of the control method for near-field communication described above.

本说明书一个实施例至少能够达到以下有益效果:通过设置能够使近场天线进行移动的位置调节部件,在控制部件的控制下位置调节部件可以使得固定在载物支架上的近场天线移动至目标位置,这样可以根据实际环境需求自适应的调整近场通信的角度或者高度等位置情况,使得近场天线处于外界干扰小的位置,或者使得近场天线处于满足近场通信需求的位置,或者,使得近场天线处于与进行近场通信的第二装置的夹角小于或等于预设角度,例如使得近场天线处于与第二装置平行或者接近平行的位置或者满足通新需求的夹角的位置,进而可以提高近场通信效率,也可以提高近场通信成功率,也可以提高近场通信的稳定性。One embodiment of this specification can achieve at least the following beneficial effects: By setting a position adjustment component that enables the near-field antenna to move, under the control of the control component, the position adjustment component can move the near-field antenna fixed on the carrier to the target position. In this way, the position of the near-field communication angle or height can be adaptively adjusted according to the actual environmental requirements, so that the near-field antenna is in a position with less external interference, or in a position that meets the requirements of near-field communication, or in a position where the near-field antenna is at an angle less than or equal to a preset angle with the second device for near-field communication, such as a position where the near-field antenna is parallel or nearly parallel to the second device, or an angle that meets the requirements of communication. This can improve the efficiency, success rate, and stability of near-field communication.

附图说明Attached Figure Description

为了更清楚地说明本说明书实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本说明书记载的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。To more clearly illustrate the technical solutions in the embodiments or prior art of this specification, the drawings used in the description of the embodiments or prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in this specification. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

图1为本说明书一个实施例提供的一种自适应的近场通信模组的应用场景的示意图;Figure 1 is a schematic diagram of an application scenario of an adaptive near-field communication module provided in one embodiment of this specification;

图2为本说明书一个实施例提供的一种自适应的近场通信模组的结构示意图;Figure 2 is a schematic diagram of the structure of an adaptive near-field communication module provided in one embodiment of this specification;

图3为本说明书一个实施例提供的一种近场通信模组自适应的高度调节的示意图;Figure 3 is a schematic diagram of adaptive height adjustment of a near-field communication module according to an embodiment of this specification;

图4为本说明书一个实施例提供的一种位置调节部件的结构示意图;Figure 4 is a structural schematic diagram of a position adjustment component provided in one embodiment of this specification;

图5为本说明书一个实施例提供的一种近场通信的控制方法的流程示意图;Figure 5 is a flowchart illustrating a near-field communication control method according to an embodiment of this specification;

图6为本说明书一个实施例提供的一种计算设备的结构框图。Figure 6 is a structural block diagram of a computing device provided in one embodiment of this specification.

具体实施方式Detailed Implementation

为了使本技术领域的人员更好地理解本说明书中的技术方案,下面将结合本说明书实施例中的附图,对本说明书实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本说明书一部分实施例,而不是全部的实施例。基于本说明书中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都应当属于本说明书保护的范围。To enable those skilled in the art to better understand the technical solutions in this specification, the technical solutions in the embodiments of this specification will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this specification, and not all embodiments. Based on the embodiments in this specification, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of this specification.

本说明书使用了特定词语来描述本说明书的实施例。如“一个实施例”、“一实施例”、和/或“一些实施例” 意指与本说明书至少一个实施例相关的某一特征、结构或特点。因此,应强调并注意的是,本说明书中在不同位置两次或多次提及的“一实施例”或“一个实施例”或“一个替代性实施例”并不一定是指同一实施例。 此外,在不相互矛盾的情况下,本领域的技术人员可以将本说明书中描述的不同实施例或示例以及不同实施例或示例的特征进行结合和组合。This specification uses specific terms to describe embodiments thereof. Terms such as "an embodiment," "one embodiment," and/or "some embodiments" refer to a particular feature, structure, or characteristic associated with at least one embodiment of this specification. Therefore, it should be emphasized and noted that references to "an embodiment," "one embodiment," or "an alternative embodiment" in different locations throughout this specification do not necessarily refer to the same embodiment. Furthermore, those skilled in the art can combine and integrate the different embodiments or examples described herein, as well as the features of those different embodiments or examples, without contradiction.

在本说明书一个或多个实施例中使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本说明书一个或多个实施例。在本说明书一个或多个实施例和所附权利要求书中所使用的单数形式的“一”、“一个”、“一种”、“所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其他含义。还应当理解,本说明书一个或多个实施例中使用的术语“和/或”包含一个或多个相关联的列出项目的任何或所有可能组合。The terminology used in one or more embodiments of this specification is for the purpose of describing particular embodiments only and is not intended to be limiting of the one or more embodiments of this specification. The singular forms “a,” “an,” “an,” “the,” and “the” as used in one or more embodiments of this specification and the appended claims are also intended to include the plural forms unless the context clearly indicates otherwise. It should also be understood that the term “and/or” as used in one or more embodiments of this specification includes any or all possible combinations of one or more associated listed items.

术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、产品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、产品或者设备所固有的要素。在没有更多限制的情况下,并不排除在包括所述要素的过程、方法、产品或者设备中还存在另外的相同或等同要素。The terms “comprising,” “including,” or any other variations thereof are intended to cover a non-exclusive inclusion, such that a process, method, product, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, product, or apparatus. Without further limitation, the presence of additional identical or equivalent elements in the process, method, product, or apparatus that includes said elements is not excluded.

尽管在本说明书一个或多个实施例中可能采用术语第一、第二等来描述各种信息,但这些信息不应限于这些术语。这些术语仅用来将同一类型的信息彼此区分开。例如,在不脱离本说明书一个或多个实施例范围的情况下,第一也可以被称为第二,类似地,第二也可以被称为第一。第一、第二等序数词,并不一定表示顺序,很多时候是为了便于区分对象。比如第一服务器,第二服务器,通常指有两个服务器。为了区分这两个服务器,将其表述成第一服务器和第二服务器。当然有的时候,这两个服务器也可能是同一个服务器。Although the terms "first," "second," etc., may be used to describe various information in one or more embodiments of this specification, this information should not be limited to these terms. These terms are only used to distinguish information of the same type from one another. For example, "first" may also be referred to as "second," and similarly, "second" may also be referred to as "first," without departing from the scope of one or more embodiments of this specification. Ordinal numbers such as "first," "second," etc., do not necessarily indicate order; often they are used to facilitate the distinction of objects. For example, "first server" and "second server" usually refer to two servers. To distinguish these two servers, they are described as "first server" and "second server." Of course, sometimes these two servers may be the same server.

本说明书一个或多个实施例中可能采用的词语“如果”可以被解释成为“在……时”或“当……时”或“响应于确定”。The word "if" as used in one or more embodiments of this specification may be interpreted as "when", "when", or "in response to a determination".

在本说明书中,除非明确说明,否则“数据的接收、发送”并不一定是直接的接收和发送,可以是间接的接收和发送。举例来说,A接收B发送的数据,可以理解为A直接接收B发送的数据,也可以理解为A通过C等其他主体间接接收B发送的数据。同样的,B发送数据给A,可以理解为B将数据直接发送给A,也可以理解为B通过C等其他主体间接将数据发送给A。这里C可以是一个主体,也可以是两个或两个以上主体。In this specification, unless explicitly stated otherwise, "receiving and sending data" does not necessarily mean direct receiving and sending; it can also mean indirect receiving and sending. For example, A receiving data sent by B can be understood as A directly receiving the data sent by B, or it can be understood as A indirectly receiving the data sent by B through other entities such as C. Similarly, B sending data to A can be understood as B sending the data directly to A, or it can be understood as B indirectly sending the data to A through other entities such as C. Here, C can be one entity, or it can be two or more entities.

在本说明书中,除非明确说明,否则结构之间产生的关联关系可以是直接的关联关系也可以是间接的关联关系。比如,当描述“A与B连接”时,除非明确说明了A与B直接连接,否则应当理解成A可以与B直接连接,也可以与B间接地连接;再比如,当描述“A在B之上”时,除非明确说明了A直接在B的上方(AB相邻且A在B的上方),否则应当理解成A可以直接在B的上方,A也可以间接地在B之上(AB之间隔着其他元素,且A在B的上方)。以此类推。In this specification, unless explicitly stated otherwise, the relationships between structures can be direct or indirect. For example, when describing "A is connected to B," unless it is explicitly stated that A and B are directly connected, it should be understood that A can be directly connected to B or indirectly connected to B. Similarly, when describing "A is on top of B," unless it is explicitly stated that A is directly above B (AB is adjacent and A is above B), it should be understood that A can be directly above B or indirectly above B (AB is separated by other elements, and A is above B). And so on.

本说明书一个或多个实施例所涉及的用户信息(包括但不限于用户设备信息、用户个人信息等)和数据(包括但不限于用于分析的数据、存储的数据、展示的数据等),均为经用户授权或者经过各方充分授权的信息和数据,并且相关数据的收集、使用和处理需要遵守相关地区的相关法律法规和标准,并提供有相应的操作入口,供用户选择授权或者拒绝。The user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in one or more embodiments of this specification are all information and data authorized by the user or fully authorized by all parties. The collection, use and processing of related data shall comply with the relevant laws, regulations and standards of the relevant regions, and corresponding operation entry points shall be provided for users to choose to authorize or refuse.

下面对本说明书一个或多个实施例涉及的名词术语进行解释。The following explains the terms and concepts used in one or more embodiments of this specification.

NFC(Near Field Communication,近场通信):一种工作距离通常在10cm以内的短距离无线通信技术,例如用于手机支付、门禁卡和公交卡等场景。NFC近场通信的过程中,主动发射信号的设备可以称为主设备,也可以称为发送设备,例如NFC读卡器设备、处于读卡器模式的设备等;被动响应主设备发射的信号的设备可以称为从设备,也可以称为目标设备,例如NFC标签、处于卡模拟模式的设备、具有NFC标签的设备等等。NFC (Near Field Communication) is a short-range wireless communication technology with a typical operating distance of less than 10cm, used in scenarios such as mobile payments, access control cards, and public transport cards. In NFC, the device that actively transmits signals can be called the master device or the transmitting device, such as an NFC card reader or a device in card reader mode. The device that passively responds to the signals transmitted by the master device can be called the slave device or the target device, such as an NFC tag, a device in card emulation mode, or a device with an NFC tag.

图1为本说明书一个实施例提供的一种自适应的近场通信模组的应用场景的示意图。如图1所示,第一装置1中可以具有自适应的近场通信模组102,这里以减弱外界干扰的应用场景为例进行说明。假设第一装置的右侧存在信号干扰源,例如另外的近场通信设备。在位置调节前,假设第一装置中的近场天线104处于水平位置,在该位置处时近场天线感知到的干扰信号强度大于或等于预设阈值。近场通信模组102中的控制部件106可以控制位置调节部件108改变状态,使得近场天线104向左侧倾斜,调整后的近场天线104受到的干扰信号强度减弱,进而可以减弱干扰源对近场天线的影响,保证近场通信的稳定性。Figure 1 is a schematic diagram of an application scenario of an adaptive near-field communication module provided in one embodiment of this specification. As shown in Figure 1, the first device 1 may have an adaptive near-field communication module 102. Here, the application scenario of reducing external interference is used as an example for explanation. Assume that there is a signal interference source on the right side of the first device, such as another near-field communication device. Before position adjustment, assume that the near-field antenna 104 in the first device is in a horizontal position. At this position, the interference signal strength sensed by the near-field antenna is greater than or equal to a preset threshold. The control component 106 in the near-field communication module 102 can control the position adjustment component 108 to change its state, so that the near-field antenna 104 tilts to the left. After adjustment, the interference signal strength received by the near-field antenna 104 is reduced, thereby reducing the impact of the interference source on the near-field antenna and ensuring the stability of near-field communication.

实际应用中,若第一装置附近存在需要通过近场通信的方式进行业务处理的第二装置,第一装置也可以自适应的调整近场天线的位置,使得第一装置与第二装置更快速稳定的进行近场通信。例如,第一装置在与另外的具有近场通信功能的第二装置进行近场通信的过程中,近场通信模组可以调节第一装置中近场天线的位置,例如调节高度或者调节角度,使得近场天线的信号强度满足近场通信的需求,进而可以保证第一装置的天线与第二装置的天线在通过电磁耦合等方式进行近场通信的过程中通信稳定性,也可以提高通信成功率。第一装置与第二装置中进行近场通信的各个部件以及具体通信过程可以参见相关技术,这里不再赘述。In practical applications, if a second device requiring near-field communication exists near the first device, the first device can adaptively adjust the position of its near-field antenna to enable faster and more stable near-field communication with the second device. For example, during near-field communication between the first device and a second device with near-field communication capabilities, the near-field communication module can adjust the position of the near-field antenna in the first device, such as adjusting its height or angle, to ensure that the signal strength of the near-field antenna meets the requirements of near-field communication. This guarantees the stability of communication between the antennas of the first and second devices during near-field communication via electromagnetic coupling and improves the success rate of communication. For details on the components involved in near-field communication between the first and second devices and the specific communication process, please refer to relevant technologies; further details are omitted here.

图2为本说明书一个实施例提供的一种自适应的近场通信模组的结构示意图。如图2所示,该近场通信模组200可以包括近场天线202、位置调节部件204以及控制部件206。Figure 2 is a schematic diagram of an adaptive near-field communication module according to an embodiment of this specification. As shown in Figure 2, the near-field communication module 200 may include a near-field antenna 202, a position adjustment component 204, and a control component 206.

其中,所述位置调节部件204可以包括载物支架2042以及位置调节组件2046。所述载物支架2042与所述位置调节组件2046连接,所述载物支架2042用于承载所述近场天线202,所述位置调节组件2026用于调节所述载物支架2042的位置状态。所述近场天线202固定于所述载物支架2042上。The position adjustment component 204 may include a support bracket 2042 and a position adjustment assembly 2046. The support bracket 2042 is connected to the position adjustment assembly 2046. The support bracket 2042 is used to support the near-field antenna 202, and the position adjustment assembly 2046 is used to adjust the position of the support bracket 2042. The near-field antenna 202 is fixed to the support bracket 2042.

所述控制部件206可以用于控制所述位置调节组件2046的状态,以使所述载物支架2042携带所述近场天线202达到目标位置。其中,所述目标位置可以满足以下至少一个条件:在所述目标位置处所述近场天线受到的外界干扰信号强度小于所述近场天线在上一位置受到的外界干扰信号强度;在所述目标位置处所述近场天线与第二装置的近场通信的信号强度满足近场通信需求;在所述目标位置处所述近场天线与第二装置的夹角小于或等于预设角度,所述第二装置为与所述近场通信模组进行近场通信的装置。The control component 206 can be used to control the state of the position adjustment component 2046 so that the carrier bracket 2042 carries the near-field antenna 202 to a target position. The target position can satisfy at least one of the following conditions: the external interference signal strength received by the near-field antenna at the target position is less than the external interference signal strength received by the near-field antenna at the previous position; the signal strength of the near-field communication between the near-field antenna and the second device at the target position meets the near-field communication requirements; and the angle between the near-field antenna and the second device at the target position is less than or equal to a preset angle, where the second device is a device for near-field communication with the near-field communication module.

近场天线202可以为用于进行近场通信的近场天线,可以是与NFC近场通信芯片连接的近场天线,也可以称为近场通信NFC天线。近场天线可以包括金属线圈、金属片等能够产生电磁感应的金属元件。若该近场通信模组作为近场通信读写器设备中的部件,近场天线可以为读写器设备向外发射射频信号的天线。若该近场通信模组作为近场通信标签侧设备中的部件,近场天线可以为用于感知或者响应读卡器设备发出的射频信号的标签天线,或者,若近场通信标签侧设备具有主动发射激励信号的功能,近场天线也可以是发射激励信号的激励天线。The near-field antenna 202 can be a near-field antenna used for near-field communication, or a near-field antenna connected to an NFC near-field communication chip, and can also be called a near-field communication NFC antenna. The near-field antenna can include metal components capable of generating electromagnetic induction, such as metal coils or metal sheets. If the near-field communication module is a component in a near-field communication reader/writer device, the near-field antenna can be an antenna for the reader/writer device to transmit radio frequency signals. If the near-field communication module is a component in a near-field communication tag-side device, the near-field antenna can be a tag antenna for sensing or responding to radio frequency signals emitted by the reader/writer device; or, if the near-field communication tag-side device has the function of actively transmitting excitation signals, the near-field antenna can also be an excitation antenna for transmitting excitation signals.

位置调节部件204可以是能够移动,产生位置变化的部件,相对于近场通信模组主体或者具有该近场通信模组的第一装置的装置主体可以产生相对移动。可选的,所述位置调节组件用于调节所述载物支架的高度和/或角度。例如,位置调节部件中位置调节组件可以发生伸长、缩短、倾斜、调高、调低等位置状态的变化,使得与位置调节部件连接的载物支架改变位置状态,例如,使得载物支架可以在上下、左右、前后、倾斜等方向移动。近场天线可以固定在载物支架上,通过位置调节部件可以实现对近场天线位置的调整,使得近场天线到达满足近场通信需求的目标位置。The position adjustment component 204 can be a movable component capable of changing its position, and can move relative to the main body of the near-field communication module or the main body of the first device having the near-field communication module. Optionally, the position adjustment component is used to adjust the height and/or angle of the carrier support. For example, the position adjustment component can undergo changes in position such as elongation, shortening, tilting, raising, and lowering, causing the carrier support connected to the position adjustment component to change its position, for example, allowing the carrier support to move in directions such as up and down, left and right, forward and backward, and tilting. The near-field antenna can be fixed on the carrier support, and the position of the near-field antenna can be adjusted by the position adjustment component, so that the near-field antenna reaches the target position that meets the near-field communication requirements.

实际应用中,可以根据实际需求通过位置调节组件调整载物支架的高度或者角度,或者也可以同时调整高度和角度,或者,也可以先调整高度再调整角度,或者,也可以先调整角度再调整高度。控制部件206可以具有逻辑处理能力的部件,可以发送控制信号至位置调节部件,以控制位置调节部件的工作状态。若位置调节部件包括驱动组件,控制部件可以与该驱动组件连接,发送控制信号至驱动组件,以便驱动组件控制位置调节部件的状态。控制部件可以包括具有多个元器件的印刷电路板、微控制部件MCU(MicrocontrollerUnit)等。In practical applications, the height or angle of the support can be adjusted using the position adjustment component according to actual needs. Alternatively, both height and angle can be adjusted simultaneously, or height can be adjusted first followed by angle, or vice versa. The control component 206 can be a component with logic processing capabilities, capable of sending control signals to the position adjustment component to control its operating state. If the position adjustment component includes a drive component, the control component can be connected to the drive component and send control signals to it, allowing the drive component to control the state of the position adjustment component. The control component may include a printed circuit board with multiple components, a microcontroller unit (MCU), etc.

目标位置可以表示近场天线的信号强度满足近场通信需求的位置。例如,目标位置可以表示近场天线感知到的外界的干扰信号强度小于或等于预设干扰强度的位置;或者,目标位置可以表示近场天线感知到的外界的干扰信号强度小于上一位置处的信号强度的位置。又如,在近场天线附近存在第二装置时,目标位置可以表示与第二装置发生电磁感应后,近场天线的信号强度满足近场通信需求的信号强度的位置。A target location can represent the position where the signal strength of the near-field antenna meets the requirements for near-field communication. For example, a target location can represent the position where the strength of external interference signals sensed by the near-field antenna is less than or equal to a preset interference strength; or, a target location can represent the position where the strength of external interference signals sensed by the near-field antenna is less than the signal strength at the previous position. Furthermore, when a second device exists near the near-field antenna, the target location can represent the position where, after electromagnetic induction occurs with the second device, the signal strength of the near-field antenna meets the requirements for near-field communication.

近场天线在该目标位置处的信号强度可以满足预设阈值,或者可以在预设信号范围区间内。具体的预设阈值或者范围区间可以根据实际业务需求设定,例如通过统计近场天线在不同位置处的近场通信成功率,将近场通信成功率大于90%或95%等预设成功率处近场天线的信号强度设定为预设阈值,或者选取包含该信号强度在内的范围区间作为预设信号范围区间。又如,根据进行近场通信的双方设备采用的近场通信协议的要求或规定来确定预设阈值或者预设信号范围区间。这里对目标位置的具体确定方式不作限定,只要能够满足实际业务需求即可。The signal strength of the near-field antenna at the target location must meet a preset threshold or be within a preset signal range. The specific preset threshold or range can be set according to actual business needs. For example, by statistically analyzing the near-field communication success rate at different locations, the signal strength of the near-field antenna at a success rate greater than 90% or 95% can be set as the preset threshold. Alternatively, a range including this signal strength can be selected as the preset signal range. Another example is determining the preset threshold or signal range based on the requirements or regulations of the near-field communication protocol used by both devices. The specific method for determining the target location is not limited here, as long as it meets the actual business requirements.

或者,为了提高近场通信效率,目标位置可以是近场天线与第二装置的夹角小于或等于预设角度的位置,近场天线与第二装置的夹角可以较小或者近场通信与第二装置平行或者接近平行,可以提高近场天线与第二装置的耦合程度,提高通信效率。Alternatively, to improve near-field communication efficiency, the target location can be a position where the angle between the near-field antenna and the second device is less than or equal to a preset angle. The angle between the near-field antenna and the second device can be small, or the near-field antenna and the second device can be parallel or nearly parallel, which can improve the coupling degree between the near-field antenna and the second device and improve communication efficiency.

本说明书至少一个实施例中,控制部件可以按照预设周期或者频率获取近场天线处的信号强度信息,或者,获取与近场天线通信的第二装置的位置信息,进而可以根据信号强度信息或者位置信息来控制位置调节部件的状态,进而使得近场天线可以移动至目标位置,提高近场通信效率,以及成功率。In at least one embodiment of this specification, the control component can acquire signal strength information at the near-field antenna according to a preset period or frequency, or acquire position information of the second device communicating with the near-field antenna. Then, it can control the state of the position adjustment component according to the signal strength information or position information, thereby enabling the near-field antenna to move to the target position, improving near-field communication efficiency and success rate.

作为一种实施方式,所述控制部件可以根据所述近场天线的信号强度控制所述位置调节组件的状态。具体的,若所述近场天线的信号强度大于或等于第一预设阈值,所述控制部件可以控制所述位置调节组件将所述载物支架向远离所述第二装置的方向移动,使得所述近场天线远离所述第二装置。若所述近场天线的信号强度小于或等于第二预设阈值,所述控制部件控制所述位置调节组件将所述载物支架向靠近所述第二装置的方向移动的高度,使得所述近场天线靠近所述第二装置。In one implementation, the control component can control the state of the position adjustment assembly based on the signal strength of the near-field antenna. Specifically, if the signal strength of the near-field antenna is greater than or equal to a first preset threshold, the control component can control the position adjustment assembly to move the support bracket away from the second device, thus moving the near-field antenna away from the second device. If the signal strength of the near-field antenna is less than or equal to a second preset threshold, the control component controls the position adjustment assembly to move the support bracket closer to the second device by a certain height, thus bringing the near-field antenna closer to the second device.

其中,近场天线的信号强度可以近场天线与第二装置产生电磁感应后的近场天线处的信号强度。控制部件可以与近场天线连接,用于获取近场天线处的信号,控制部件中可以包括信号判断或者信号转换电路,进而可以确定近场天线处的信号强度。或者,控制部件可以与近场天线的NFC芯片连接,可以从NFC芯片处获取近场天线的信号强度的信息。The signal strength of the near-field antenna can be defined as the signal strength at the near-field antenna after electromagnetic induction between the near-field antenna and the second device. A control component can be connected to the near-field antenna to acquire the signal at the near-field antenna. The control component may include signal judgment or signal conversion circuitry to determine the signal strength at the near-field antenna. Alternatively, the control component can be connected to the NFC chip of the near-field antenna to obtain the signal strength information from the NFC chip.

实际应用中,可以通过电场强度、磁场强度、电流值、电压值等形式来表示近场天线的信号强度。第一预设阈值和第二预设阈值可以是相同的取值,例如可以取满足近场通信需求的阈值;或者第一预设阈值和第二预设阈值可以为不同的值,例如,第一预设阈值可以为满足近场通信需求的信号区间的右端点,第二预设值阈值可以为左端点等。In practical applications, the signal strength of a near-field antenna can be represented by electric field strength, magnetic field strength, current value, voltage value, etc. The first preset threshold and the second preset threshold can be the same value, for example, a threshold that meets the requirements of near-field communication; or the first preset threshold and the second preset threshold can be different values, for example, the first preset threshold can be the right endpoint of the signal range that meets the requirements of near-field communication, and the second preset threshold can be the left endpoint, etc.

作为一种实施方式,可以以具有该近场通信模组的第一装置中靠近第二装置一侧的外壳表面为基准位置,控制部件可以通过控制位置调节组件将载物支架向远离基准位置或者靠近基准位置的方向移动。In one implementation, the outer surface of the housing of the first device having the near-field communication module, which is closer to the second device, can be used as a reference position. The control component can move the load holder away from or closer to the reference position by controlling the position adjustment assembly.

实际应用中,在近场通信的过程中,如果两个NFC线圈天线(如NFC读卡器设备天线与NFC标签设备天线)距离过近,磁场耦合可能出现线圈饱和的问题,如两个线圈之间产生过强的磁场,相互干扰,导致通信灵敏度降低。或者,可能出现匹配失效的问题,如NFC线圈和匹配电路通常是为特定距离而设计的,过近的距离可能导致匹配网络偏离设计值,降低传输效率。或者可能出现过度功耗的问题,如过近的线圈可能导致信号功率过大,使设备工作在亚理想状态。同理,如果两个线圈之间距离过远,可能存在磁场强度衰减的问题,如磁场耦合随距离增加指数级降低,通信性能下降。或者也可能出现信号丢失的问题,例如超过协议定义的最大工作距离后,设备将无法建立有效的连接。本说明书实施例中可以通过调整NFC近场天线的高度来提高通信效率强度,以保证通信性能。In practical applications, during near-field communication (NFC), if the two NFC coil antennas (such as the antenna of an NFC reader and the antenna of an NFC tag) are too close, magnetic field coupling may cause coil saturation, resulting in excessively strong magnetic fields between the two coils, causing mutual interference and reduced communication sensitivity. Alternatively, matching failure may occur, as NFC coils and matching circuits are typically designed for specific distances; excessively close proximity may cause the matching network to deviate from its design values, reducing transmission efficiency. Excessive power consumption may also occur, as closely spaced coils may result in excessive signal power, causing the device to operate in a suboptimal state. Similarly, if the two coils are too far apart, magnetic field strength attenuation may occur, as magnetic field coupling decreases exponentially with distance, leading to decreased communication performance. Signal loss may also occur, for example, exceeding the maximum operating distance defined by the protocol, preventing the device from establishing a valid connection. In the embodiments of this specification, adjusting the height of the NFC near-field antenna can improve communication efficiency and strength, ensuring communication performance.

图3为本说明书一个实施例提供的一种近场通信模组自适应的高度调节的示意图。这里以近场天线沿竖直方向为例进行说明。假设在进行位置调整之前,近场天线的高度为h,该高度可以是以近场通信模组的底座或者安装面为基准位置定义的高度。近场天线可以以预设步长Δh上下移动,预设步长可以是毫米级的,或者也可以是微米级的等等,如预设步长可以为1毫米、0.5毫米等等。近场天线的信号强度S(h),信号强度可以采用天线电压、电流等量值表示。假设近场天线的信号强度S(h)小于第二预设阈值,则这种情况需要将近场天线按照预设步长调高,调高后近场天线的信号强度为S(h+Δh)。若此时近场天线的信号强度S(h+Δh)刚好等于第二预设阈值,或者与第二预设阈值的差值较小,则可以停止调整,使得近场天线保持在h+Δh的高度。若近场天线的信号强度S(h+Δh)仍小于预设阈值,则可以继续按照预设步长调整,直到调整后近场天线的信号强度大于第二预设阈值,或者与第二预设阈值的差值较小。Figure 3 is a schematic diagram of adaptive height adjustment of a near-field communication module according to an embodiment of this specification. The explanation here uses a near-field antenna in the vertical direction as an example. Assume that before position adjustment, the height of the near-field antenna is h, which can be defined based on the base or mounting surface of the near-field communication module. The near-field antenna can move up and down in preset steps Δh. The preset steps can be in the millimeter range, or in the micrometer range, etc., such as 1 mm, 0.5 mm, etc. The signal strength S(h) of the near-field antenna can be expressed as antenna voltage, current, or other quantities. If the signal strength S(h) of the near-field antenna is less than a second preset threshold, then the near-field antenna needs to be raised by the preset steps. After raising, the signal strength of the near-field antenna is S(h+Δh). If the signal strength S(h+Δh) of the near-field antenna is exactly equal to the second preset threshold, or the difference between it and the second preset threshold is small, then the adjustment can be stopped, keeping the near-field antenna at a height of h+Δh. If the signal strength S(h+Δh) of the near-field antenna is still less than the preset threshold, it can continue to be adjusted according to the preset step size until the signal strength of the near-field antenna after adjustment is greater than the second preset threshold, or the difference between it and the second preset threshold is small.

实际应用中,也可以设置信号强度的上限,例如设置第一预设阈值。接续上例,若调高后近场天线的信号强度S(h+Δh)大于第二预设阈值,且小于第一预设阈值,可以停止调整天线位置。若近场天线的信号强度S(h+Δh)大于第二预设阈值,但也大于了第一预设阈值,则可以按照小于Δh的第二步Δh’将天线位置调低,如再次调整后近场天线的信号强度S(h+Δh-Δh’)位于第一预设阈值与第二预设阈值之间,则可以停止调整。近场天线满足近场通信需求的预设信号强度可以根据实际需求设定,可以是具体的数值,也可以是数值区间。In practical applications, an upper limit for signal strength can also be set, such as a first preset threshold. Continuing the previous example, if the signal strength S(h+Δh) of the near-field antenna after adjustment is greater than the second preset threshold but less than the first preset threshold, the antenna position adjustment can be stopped. If the signal strength S(h+Δh) of the near-field antenna is greater than the second preset threshold but also greater than the first preset threshold, the antenna position can be lowered according to the second step Δh’, which is less than Δh. If the signal strength S(h+Δh-Δh’) of the near-field antenna after this adjustment is between the first and second preset thresholds, the adjustment can be stopped. The preset signal strength of the near-field antenna to meet the near-field communication requirements can be set according to actual needs; it can be a specific value or a range of values.

实际应用中,还可以根据近场天线感知到的外界干扰信号的强度来调整近场天线的位置。可选的,本说明书一个实施例中,所述控制部件可以用于获取所述近场天线在若干个不同的预设角度处的信号强度;所述信号强度用于表示所述近场天线受到的外界干扰的强度。所述控制部件可以从所述若干个不同的预设角度处的信号强度中选取信号强度最小的预设角度作为目标角度,控制所述位置调节组件将所述载物支架调整至所述目标角度。In practical applications, the position of the near-field antenna can also be adjusted based on the intensity of external interference signals sensed by the near-field antenna. Optionally, in one embodiment of this specification, the control component can be used to acquire the signal strength of the near-field antenna at several different preset angles; the signal strength is used to represent the intensity of external interference received by the near-field antenna. The control component can select the preset angle with the lowest signal strength from the several different preset angles as the target angle, and control the position adjustment component to adjust the carrier to the target angle.

近场通信模组可以包括数据存储模块,可以存储有若干个不同的角度信息。具有该近场通信模组的第一装置在开机初始化过程中,或者需要减弱外界干扰的情况下,控制部件可以控制位置调节部件使得载物支架分别处于不同的预设角度。近场天线可以通过主动发送信号(如主动发射激励信号)或接收来自环境的信号(如处于被动模式),来测量每个预设角度下的信号强度。控制部件还可以比较不同角度下的信号强度值,最大者对应的方向即为干扰源所在的大致方位,最小者对应的方向即为对近场天线干扰最小的方向。初始化完成后可以将近场天线固定在干扰在信号强度最小的角度位置,通过减小信号干扰来提高NFC近场通信感应的成功率。如前述图1所示,在调整角度之前,近场天线可以处于水平状态,在调整之后,近场天线可以处于倾斜状态。The near-field communication module may include a data storage module that can store several different angle information. During the initialization process or when it is necessary to reduce external interference, the control unit of the first device equipped with this near-field communication module can control the position adjustment unit to position the carrier at different preset angles. The near-field antenna can measure the signal strength at each preset angle by actively transmitting signals (such as actively transmitting excitation signals) or receiving signals from the environment (such as in passive mode). The control unit can also compare the signal strength values at different angles; the direction corresponding to the maximum value is the approximate location of the interference source, and the direction corresponding to the minimum value is the direction with the least interference to the near-field antenna. After initialization, the near-field antenna can be fixed at the angle where the interference is minimal, thereby reducing signal interference and improving the success rate of NFC near-field communication sensing. As shown in Figure 1 above, before adjusting the angle, the near-field antenna can be in a horizontal state; after adjustment, the near-field antenna can be in a tilted state.

作为一种实施方式,在第一装置开机之后,或者重启之后,或者按照预设周期或者频率到达调整近场天线的角度的时候,可以触发调整近场天线角度的流程,以减少外界干扰信号对第一装置的影响。在调整角度后,后续与第二装置通过近场通信的方式进行业务处理的过程中,近场天线的角度可以不再变化,例如在近场通信的过程中仅会调整近场天线的高度。或者,通信过程中既不调整近场天线的角度也不调整高度。当然,在近场通信过程中,也可以继续调整近场通天线的角度和/或高度,可根据实际需求设定。As one implementation method, after the first device is powered on, restarted, or reaches the angle adjustment period or frequency for the near-field antenna, the near-field antenna angle adjustment process can be triggered to reduce the impact of external interference signals on the first device. After the angle is adjusted, the near-field antenna angle may remain unchanged during subsequent service processing with the second device via near-field communication; for example, only the height of the near-field antenna may be adjusted during near-field communication. Alternatively, neither the angle nor the height of the near-field antenna may be adjusted during communication. Of course, the angle and/or height of the near-field antenna can continue to be adjusted during near-field communication, as needed.

若具有近场通信模组的第一装置具有播音功能或者具有显示屏,也可以通过语音播报、提示音、文字显示等方式提示干扰源的位置,以便人工对干扰源进行排除。If the first device with a near-field communication module has a broadcasting function or a display screen, it can also indicate the location of the interference source through voice broadcasting, prompts, text display, etc., so that the interference source can be manually eliminated.

若干个不同的预设角度可以包括表示不同方位的角度,例如可以以近场天线所在区域为中心,设置表示八个方位的预设角度,或者还可以设置表示更多个方位的预设角度。Several different preset angles can include angles representing different directions. For example, preset angles representing eight directions can be set with the area where the near-field antenna is located as the center, or preset angles representing more directions can be set.

实际应用中,为减少外界信号的干扰,也可以调整近场天线的高度,或者可以在调整角度的同时调整高度,这里不再一一赘述。In practical applications, to reduce interference from external signals, the height of the near-field antenna can be adjusted, or the height can be adjusted at the same time as the angle. These will not be elaborated on here.

在第一装置处于使用过程中,近场通信模组也可以根据实际环境中的干扰信号来调整近场天线的角度和/或高度。例如,某时刻,由于工作人员将第一装置附近的其他近场通信装置调整了位置,使得第一装置的近场天线受到的外界干扰信号变强,近场天线感知到的外界干扰信号强度大于或者等于预设干扰阈值,则控制部件可以控制位置调节部件调整载物支架的角度或者高度,直到调整后的近场天线感知到的外界干扰信号强度小于预设干扰阈值。While the first device is in use, the near-field communication module can also adjust the angle and/or height of the near-field antenna according to the interference signals in the actual environment. For example, at a certain moment, if the staff adjusts the position of other near-field communication devices near the first device, the external interference signal received by the near-field antenna of the first device becomes stronger. If the intensity of the external interference signal sensed by the near-field antenna is greater than or equal to a preset interference threshold, the control component can control the position adjustment component to adjust the angle or height of the carrier support until the intensity of the external interference signal sensed by the adjusted near-field antenna is less than the preset interference threshold.

为便于管理,可选的,如图2所示,控制部件可以包括信号控制模块2062、运动控制模块2064以及主控制模块2068。其中,所述信号控制模块2062可以与所述近场天线连接,用于获取所述近场天线处的信号,还可以将信号信息提供至主控制模块2068。运动控制模块2064可以与所述位置调节组件连接,用于控制所述位置调节组件的状态,调整载物支架的高度或者角度。主控制模块2068可以分别与所述信号控制模块2062以及所述运动控制模块2064连接,所述主控制模块2068可以用于根据所述信号控制模块获取到的信号强度生成控制信号并发送至所述运动控制模块,以使所述运动控制模块根据所述控制信号控制所述位置调节组件调整所述载物支架的高度或者角度,能够让近场天线处于目标位置。For ease of management, as shown in Figure 2, the control components may optionally include a signal control module 2062, a motion control module 2064, and a main control module 2068. The signal control module 2062 can be connected to the near-field antenna to acquire the signal at the near-field antenna and provide the signal information to the main control module 2068. The motion control module 2064 can be connected to the position adjustment component to control the state of the position adjustment component and adjust the height or angle of the support. The main control module 2068 can be connected to both the signal control module 2062 and the motion control module 2064. The main control module 2068 can generate a control signal based on the signal strength acquired by the signal control module and send it to the motion control module, so that the motion control module controls the position adjustment component to adjust the height or angle of the support, ensuring the near-field antenna is at the target position.

实际应用中,信号控制模块还可以负责NFC通信,实现支付或者其他业务功能;还可以包括信号发射和信号接收电路,用于生成和接收射频信号,例如13.56MHz的射频信号,或者其他规则的射频信号;还可以检测NFC信号的强弱,作为判断干扰和调整位置的依据。In practical applications, the signal control module can also be responsible for NFC communication to realize payment or other business functions; it can also include signal transmitting and receiving circuits to generate and receive radio frequency signals, such as 13.56MHz radio frequency signals, or other regular radio frequency signals; it can also detect the strength of NFC signals as a basis for judging interference and adjusting position.

运动控制模块可以控制位置调节组件,实现NFC近场天线的姿态调整;还可以接收来自主控制模块的运动指令,生成驱动信号,以驱动位置调节组件进行位置调整;还可以支持高精度位置控制,通过反馈机制确保近场天线能够达到目标位置。The motion control module can control the position adjustment component to achieve attitude adjustment of the NFC near-field antenna; it can also receive motion commands from the main control module, generate drive signals to drive the position adjustment component to adjust its position; and it can also support high-precision position control, ensuring that the near-field antenna can reach the target position through a feedback mechanism.

主控制模块可以作为系统核心,用于管理和协调各模块的工作;还可以处理高层逻辑,例如支付协议、干扰检测算法、运动控制计算等;还可以与外围设备和通信模块交互。The main control module can serve as the core of the system, managing and coordinating the work of each module; it can also handle high-level logic, such as payment protocols, interference detection algorithms, motion control calculations, etc.; and it can interact with peripheral devices and communication modules.

信号控制模块、运动控制模块以及主控制模块可以位于同一电子器件上,例如可以位于同一PCB(Printed Circuit Board,印制电路板),或者其他电子硬件上。当然,各个模块也可以设置在不同的电子器件上,这里不做限定,只要能够实现上述功能即可。The signal control module, motion control module, and main control module can reside on the same electronic device, such as the same PCB (Printed Circuit Board) or other electronic hardware. Of course, the modules can also be located on different electronic devices; there are no restrictions, as long as the aforementioned functions can be achieved.

本说明书一个实施例中,近场通信模组可以根据第二装置的位置信息,来调整近场通信模组中近场天线的位置。可选的,所述近场通信模组或者具有所述近场通信模组的第一装置中还包括传感器组件;所述传感器组件用于检测所述第二装置的角度信息;所述控制部件用于根据所述角度信息控制所述位置调节组件的状态,使得所述近场天线与所述第二装置的夹角小于或等于预设角度。In one embodiment of this specification, the near-field communication module can adjust the position of the near-field antenna in the near-field communication module according to the position information of the second device. Optionally, the near-field communication module or the first device having the near-field communication module further includes a sensor component; the sensor component is used to detect the angle information of the second device; the control component is used to control the state of the position adjustment component according to the angle information, such that the angle between the near-field antenna and the second device is less than or equal to a preset angle.

实际应用中,近场通信装置或者设备中设置的用于近场通信的近场天线通常是与近场通信设备外壳平行的,如第二装置中近场天线通常是与第二装置的至少一个外壳面平行或者近乎平行的。本说明书一个实施例中,控制部件可以根据传感器组件检测到的第二装置的角度信息,生成控制信号来调整近场天线的角度,使得近场天线与第二装置可以平行或者接近平行,也就可以使得进行近场通信的两个近场天线可以近乎平行,可以提高耦合程度,提高识别率以及通信效率。In practical applications, the near-field antenna used for near-field communication in near-field communication devices or equipment is usually parallel to the outer casing of the near-field communication device. For example, in a second device, the near-field antenna is usually parallel or nearly parallel to at least one outer casing surface of the second device. In one embodiment of this specification, the control component can generate a control signal to adjust the angle of the near-field antenna based on the angle information of the second device detected by the sensor assembly, so that the near-field antenna and the second device can be parallel or nearly parallel. This allows the two near-field antennas used for near-field communication to be nearly parallel, which can improve the coupling degree, recognition rate, and communication efficiency.

传感器组件可以包括一组或多组红外距离传感器、超声波传感器、摄像头等元件。Sensor components may include one or more sets of infrared distance sensors, ultrasonic sensors, cameras, and other components.

可选的,如图2所示,所述控制部件206可以包括运动控制模块2064以及主控制模块2068。所述运动控制模块2064与所述位置调节组件连接,用于控制所述位置调节组件的状态。所述主控制模块2068可以分别与所述传感器组件以及所述运动控制模块连接,所述主控制模块可以用于根据所述传感器组件检测到的所述第二装置的角度信息生成控制信号并发送至所述运动控制模块,以使所述运动控制模块根据所述控制信号控制所述位置调节组件的状态。Optionally, as shown in Figure 2, the control component 206 may include a motion control module 2064 and a main control module 2068. The motion control module 2064 is connected to the position adjustment component and is used to control the state of the position adjustment component. The main control module 2068 may be connected to both the sensor component and the motion control module. The main control module can generate a control signal based on the angle information of the second device detected by the sensor component and send it to the motion control module, so that the motion control module controls the state of the position adjustment component according to the control signal.

主控制模块以及运动控制模块可以是上实施例中的描述相同或类似,本实施例中主控制模块还可以具有逻辑处理能力,能够根据传感器组件检测到的第二装置的角度信息生成控制信号,运动控制模块可以根据该控制信号,控制载物支架调整到与第二装置的夹角小于或等于预设阈值的位置,例如可以载物支架可以调整到与第二装置平行的位置。其他相似或者相同的功能可参见前述实施例中的介绍,这里不再赘述。The main control module and motion control module can be the same as or similar to those described in the previous embodiment. In this embodiment, the main control module can also have logic processing capabilities, enabling it to generate control signals based on the angle information of the second device detected by the sensor components. The motion control module can then use these control signals to adjust the load support to a position where the angle with the second device is less than or equal to a preset threshold. For example, the load support can be adjusted to a position parallel to the second device. Other similar or identical functions can be found in the descriptions in the foregoing embodiments, and will not be repeated here.

可选的,如图2所示,所述载物支架上可以具有屏蔽膜208,所述屏蔽膜位于所述近场天线202与所述载物支架2042之间。Optionally, as shown in Figure 2, the carrier may have a shielding film 208, which is located between the near-field antenna 202 and the carrier 2042.

屏蔽膜208和近场天线202以及载物支架2042之间可以通过背胶粘在一起,或者,也可以通过绝缘螺丝螺母、卡扣等固定元件固定在一起。屏幕膜可以采用纳米金、铁氧体等材料的薄膜。通过屏蔽膜的设置可以提高天线信号的集中度,也可以减少干扰,有利于提高通信性能。The shielding film 208, the near-field antenna 202, and the carrier bracket 2042 can be bonded together with adhesive, or they can be secured together with insulating screws, nuts, clips, or other fastening components. The shielding film can be a thin film made of materials such as nano-gold or ferrite. The shielding film improves the concentration of the antenna signal and reduces interference, thus enhancing communication performance.

图4为本说明书一个实施例提供的一种位置调节部件的结构示意图。如图4所示,位置调节部件可以包括载物支架2042和位置调节组件,其中,位置调节组件可以包括若干个线性执行器402。Figure 4 is a structural schematic diagram of a position adjustment component provided in one embodiment of this specification. As shown in Figure 4, the position adjustment component may include a load support 2042 and a position adjustment assembly, wherein the position adjustment assembly may include a plurality of linear actuators 402.

线性执行器(Linear Actuator)是一种将某种形式的能量(例如电能、液压能或气动能等)转换为直线运动(如沿一条直线轨迹的推或拉的运动)的装置。本说明书一个实施例中可以采用体积小、功耗低、噪音小、精度高、响应快的线性执行器,例如可以采用压电执行器、形状记忆合金执行器、包含微型直流电机、齿轮箱以及丝杠等部件的线性执行器、采用音圈电机推动推杆运动的线性执行器等。这里对线性执行器的具体类型不做限定。A linear actuator is a device that converts some form of energy (such as electrical, hydraulic, or pneumatic energy) into linear motion (such as pushing or pulling along a straight path). In one embodiment of this specification, a linear actuator that is small in size, low in power consumption, low in noise, high in precision, and fast in response can be used. Examples include piezoelectric actuators, shape memory alloy actuators, linear actuators comprising a miniature DC motor, gearbox, and lead screw, and linear actuators using a voice coil motor to drive a push rod. The specific type of linear actuator is not limited here.

可选的,如图4所示,所述位置调节组件还包括底座404,所述线性执行器402的第一端与底座404连接,所述线性执行器的第二端与所述载物支架2042连接,所述线性执行器位于所述底座与所述载物支架之间。Optionally, as shown in Figure 4, the position adjustment assembly further includes a base 404, the first end of the linear actuator 402 is connected to the base 404, the second end of the linear actuator is connected to the load support 2042, and the linear actuator is located between the base and the load support.

底座可以是处于固定状态的,可以固定在第一装置的内部,或者可以固定在近场通信模组的安装部件上。线性执行器可以具有伸长或者缩短的功能,控制部件通过控制线性执行器的长度可以实现对载物支架的高度或者角度的调整。或者线性执行器中可以包括能够上移或者下移的推杆,控制部件通过控制推杆的位置也可以实现对载物支架的高度或者角度的调整。线性执行器在高度方向的调整距离可以是厘米级的,或者也可以是毫米级的,例如线性执行器能够使得载物平台处于上限位置与下限位置的位置差可以为10毫米,或者可以为15毫米等等。The base can be fixed, either inside the first device or on the mounting components of the near-field communication module. The linear actuator can have an extension or retraction function; the control unit can adjust the height or angle of the load-bearing bracket by controlling the length of the linear actuator. Alternatively, the linear actuator can include a push rod capable of moving up or down; the control unit can also adjust the height or angle of the load-bearing bracket by controlling the position of the push rod. The adjustment distance in the height direction of the linear actuator can be in the centimeter or millimeter range; for example, the linear actuator can make the position difference between the upper and lower limits of the load-bearing platform 10 millimeters or 15 millimeters, etc.

作为一种实施方式,底座的上方可以用于设置线性执行器以及载物支架,下方可以设置控制部件,如运动控制模块、主控制模块等。这样可以减少其他部件对线性执行器的影响,使得线性执行器可以尽量大范围的调整载物支架的姿态位置。In one implementation, the upper part of the base can be used to mount the linear actuator and the load-bearing bracket, while the lower part can be used to mount control components, such as a motion control module and a main control module. This reduces the influence of other components on the linear actuator, allowing the linear actuator to adjust the posture and position of the load-bearing bracket over a wider range.

为保证载物支架可能平稳、迅速的移动,如图4所示所述线性执行器的第一端可以与底座通过万向节406连接;和/或,所述线性执行器的第二端可以与所述载物支架通过万向节406连接。To ensure that the load-bearing bracket can move smoothly and quickly, as shown in Figure 4, the first end of the linear actuator can be connected to the base via a universal joint 406; and/or, the second end of the linear actuator can be connected to the load-bearing bracket via a universal joint 406.

实际应用中,线性执行器的两端或者一端也可以通过其他活动连接部件与底座或者载物支架连接,例如可以采用膜片联轴器、波纹管联轴器、梅花联轴器、螺旋切槽联轴器、十字滑台、球铰等连接元件。In practical applications, one or both ends of the linear actuator can also be connected to the base or carrier through other movable connecting parts, such as diaphragm couplings, bellows couplings, swivel couplings, spiral groove couplings, cross slides, ball joints, and other connecting elements.

为保证载物支架的平稳性,提高调整精度,所述位置调节组件包括至少三个线性执行器;各个所述线性执行器均匀分布。To ensure the stability of the load-bearing support and improve adjustment accuracy, the position adjustment assembly includes at least three linear actuators; each of the linear actuators is evenly distributed.

万向节在载物支架以及固定底座上的三个点互成60度均匀分布,组成了一个小型的三自由度平台,其具有三个自由度,分别是X方向上的旋转,Y方向上的旋转,高度方向上的移动,通过运动控制模块可以控制三个线性执行器的伸缩量来调节载物支架在三个自由度上的变化,从而实现近场天线在空间上的多个高度和角度变化。The gimbals are evenly distributed at 60-degree intervals at three points on the carrier and the fixed base, forming a small three-degree-of-freedom platform. It has three degrees of freedom: rotation in the X direction, rotation in the Y direction, and movement in the height direction. The motion control module can control the extension and retraction of the three linear actuators to adjust the changes of the carrier in the three degrees of freedom, thereby realizing multiple height and angle changes of the near-field antenna in space.

例如,三个线性执行器与载物支架的连接点可以组成等边三角形。当然实际应用中,若载物支架通过其他部件辅助固定,也可以采用一个或两个线性执行器。For example, the connection points of three linear actuators and the load holder can form an equilateral triangle. Of course, in practical applications, if the load holder is fixed with the assistance of other components, one or two linear actuators can also be used.

这里以调整近场天线的角度位置为例进行说明。通过传感器组件对第二装置相对于第一装置或者近场天线的角度偏移进行测量。第二装置的相对角度可以定义为:水平角度(绕X轴)为α1,范围为[﹣90°,﹢90°];垂直角度(绕Y轴)为β1,范围为[﹣90°,﹢90°]。为了保证第一装置的近场天线与第二装置的近场天线的磁场耦合较好,第二装置的近场天线方向角度(α2,β2)应与第二装置方向(α1,β1)一致,即需要存在α2=α1, β2=β1这样的目标位置关系。这里可以将(α1, β1)作为目标角度值上传到主控制模块,作为近场天线想要调整到的目标角度。进而主控制模块可以计算出能够三自由度调节的位置调节组件需要达到的位置参数信息:载物支架绕X轴旋转的俯仰角α,载物支架饶Y轴旋转的横滚角β,以及载物支架的中心高度h。主控制模块还可以根据输出的三个参数(α,β,h)通过三自由度调节的位置调节组件的逆解公式得到三个线性电机的伸缩量(L1,L2,L3),主控制模块可以将三个电机的伸缩量(L1,L2,L3)传输给运动控制模块,运动控制模块控制三个线性执行器的伸缩量(L1,L2,L3),这样可以让近场天线随着三自由度的位置调节组件移动到对应的角度位置。This section uses adjusting the angle of the near-field antenna as an example. The sensor assembly measures the angular offset of the second device relative to the first device or the near-field antenna. The relative angle of the second device can be defined as: the horizontal angle (around the X-axis) is α1, ranging from [-90°, +90°]; the vertical angle (around the Y-axis) is β1, ranging from [-90°, +90°]. To ensure good magnetic field coupling between the near-field antennas of the first and second devices, the directional angle (α2, β2) of the second device's near-field antenna should be consistent with the direction (α1, β1) of the second device, i.e., a target positional relationship of α2=α1, β2=β1 is required. Here, (α1, β1) can be uploaded as the target angle value to the main control module, representing the target angle the near-field antenna wants to adjust to. The main control module can then calculate the positional parameters required for the three-degree-of-freedom adjustable position adjustment component: the pitch angle α of the load support rotating around the X-axis, the roll angle β of the load support rotating around the Y-axis, and the center height h of the load support. The main control module can also obtain the extension and retraction of the three linear motors (L1, L2, L3) based on the three output parameters (α, β, h) through the inverse equation of the three-degree-of-freedom position adjustment component. The main control module can then transmit the extension and retraction of the three motors (L1, L2, L3) to the motion control module. The motion control module controls the extension and retraction of the three linear actuators (L1, L2, L3), which allows the near-field antenna to move to the corresponding angular position along with the three-degree-of-freedom position adjustment component.

实际应用中,上述角度和高度调整策略也可以同时进行,在与其他近场通信装置通信的过程中,近场天线可以通过多自由度的位置调整组件自动调整到合适的高度和角度,以确保通信质量,提高感应的成功率。In practical applications, the aforementioned angle and height adjustment strategies can also be implemented simultaneously. During communication with other near-field communication devices, the near-field antenna can automatically adjust to a suitable height and angle through a multi-degree-of-freedom position adjustment component to ensure communication quality and improve the success rate of sensing.

上述介绍的近场通信模组或者各个部件中还可以包括一些辅助部件,例如限位单元、支撑单元、底座等部件,上述仅是从主要功能的角度描述了主要的部件结构,其他辅助部件可以参见相关技术,具体的安装位置或者连接方式也可以参见相关技术,这里不再赘述。The near-field communication module or components described above may also include some auxiliary components, such as limiting units, support units, bases, etc. The above only describes the main component structure from the perspective of main functions. Other auxiliary components can be found in relevant technologies. The specific installation position or connection method can also be found in relevant technologies, and will not be elaborated here.

本说明书一个实施例中近场天线可以为一个或多个天线,若近场通信模组中包括多个近场天线,上述位置调节部件可以对其中的一个近场天线进行高度或者角度调整;或者,位置调节部件可以对两个或多个近场天线进行同步或者异步的高度或者角度的调整。In one embodiment of this specification, the near-field antenna can be one or more antennas. If the near-field communication module includes multiple near-field antennas, the position adjustment component can adjust the height or angle of one of the near-field antennas; or, the position adjustment component can adjust the height or angle of two or more near-field antennas synchronously or asynchronously.

本说明书至少一个实施例中,通过调节近场通信模组中近场天线的位置可以促进近场通信的稳定性。通过调整近场天线的高度或者角度,可以使得近场通信模组自适应的来适应更多类型的第二装置,或者也可以适应不同的第二装置的用户,即使不同用户有不同的习惯,例如有的用户习惯将第二装置紧贴第一装置,有的用户不习惯将第二装置与第一装置紧贴,或者,有的用户习惯将第二装置倾斜的靠近第一装置,针对不同的用户习惯,第一装置中近场通信模组可以根据近场天线的信号强度或者第二装置的位置信息来调整近场天线的高度或者角度,即使用户的习惯不同,也可以享受到极好的近场通信效果。In at least one embodiment of this specification, adjusting the position of the near-field antenna in the near-field communication module can improve the stability of near-field communication. By adjusting the height or angle of the near-field antenna, the near-field communication module can adaptively adapt to more types of second devices, or to users of different second devices. Even if different users have different habits, such as some users prefer to place the second device close to the first device, while others do not, or some users prefer to tilt the second device closer to the first device, the near-field communication module in the first device can adjust the height or angle of the near-field antenna according to the signal strength of the near-field antenna or the position information of the second device, so that even with different user habits, excellent near-field communication performance can be enjoyed.

本说明书一个实施例中,利用近场天线在两个旋转方向上的自由度(绕X轴和Y轴),通过测量多组预设角度下的信号强度,通过算法得出干扰小的角度,可以将近场天线固定在干扰小的角度。还可以通过干扰大的角度得出干扰源得方位,生成提示信息,由人工对干扰源进行排除。In one embodiment of this specification, the near-field antenna's degrees of freedom in two rotational directions (around the X and Y axes) are utilized. By measuring the signal strength at multiple preset angles, an algorithm is used to determine the angle with minimal interference, allowing the near-field antenna to be fixed at this angle. Furthermore, the location of the interference source can be determined from the angle with significant interference, generating a warning message for manual removal of the interference source.

本说明书一个实施例中,可以通过线性执行机构动态调节近场天线的高度以优化通信信号强度。通过实时分析与调整高度,高度调整逻辑基于实时信号测量,并通过细步长调整和传感器反馈确保精确优化,从而避免近距离的线圈饱和或远距离信号衰减导致的耦合问题。In one embodiment of this specification, the height of the near-field antenna can be dynamically adjusted via a linear actuator to optimize communication signal strength. By analyzing and adjusting the height in real time, the height adjustment logic is based on real-time signal measurements and ensures precise optimization through fine-step adjustments and sensor feedback, thereby avoiding coupling problems caused by coil saturation at close range or signal attenuation at long range.

本说明书一个实施例中,运用红外、超声波或摄像头等传感器组件实时测量感应第二装置相对角度,利用多自由度的位置调节部件,通过旋转角度(如绕X轴俯仰、绕Y轴横滚),动态调整近场天线的方向以匹配第二装置的天线角度,从而最大化磁场耦合效果。In one embodiment of this specification, sensor components such as infrared, ultrasonic, or camera are used to measure and sense the relative angle of the second device in real time. A multi-degree-of-freedom position adjustment component is used to dynamically adjust the direction of the near-field antenna by rotating the angle (such as pitch around the X-axis and roll around the Y-axis) to match the antenna angle of the second device, thereby maximizing the magnetic field coupling effect.

本说明书一个实施例中,可以根据近场天线的信号强度以及第二装置的角度信息来调整近场天线的高度以及角度,从多个维度对近场天线进行调整,使得近场天线处于较优的近场通信状态,可以实现全面覆盖不同设备姿态和距离环境,提高感应成功率及通信稳定性。基于同样的思路,本说明书中还提供了一种近场通信的控制方法。该方法可以应用于前述各实施例中的近场通信模组,或者可以应用于具有前述各实施例中近场通信模组的装置或设备。In one embodiment of this specification, the height and angle of the near-field antenna can be adjusted based on the signal strength of the near-field antenna and the angle information of the second device. This adjustment, from multiple dimensions, allows the near-field antenna to achieve an optimal near-field communication state, enabling comprehensive coverage of different device postures and distances, and improving sensing success rate and communication stability. Based on the same idea, this specification also provides a near-field communication control method. This method can be applied to the near-field communication modules in the foregoing embodiments, or to devices or equipment having the near-field communication modules described in the foregoing embodiments.

基于同样的思路,本说明书中还提供了上述自适应的近场通信模组对应的通知方法。图5为本说明书一个实施例提供的一种近场通信的控制方法的流程示意图。Based on the same idea, this specification also provides a notification method corresponding to the above-mentioned adaptive near-field communication module. Figure 5 is a flowchart illustrating a near-field communication control method provided in an embodiment of this specification.

如图5所示,该方法可以包括:As shown in Figure 5, the method may include:

步骤502:获取近场通信模组的状态信息。Step 502: Obtain the status information of the near-field communication module.

其中,所述状态信息包括所述近场天线的信号强度的信息、与所述近场通信模组进行近场通信的第二装置的位置信息中至少一种。The status information includes at least one of the following: signal strength information of the near-field antenna and location information of the second device that performs near-field communication with the near-field communication module.

近场天线的信号强度可以包括近场天线在第二装置的影响下,在与第二装置存在电磁感应的基础上,近场天线感知到的信号强度,或者可以包括近场天线感知到的外界干扰信号的信号强度。第二装置可以是与近场通信模组进行近场通信的装置,若近场通信模组位于第一装置中,第二装置可以是与第一装置进行近场通信的另外的装置。The signal strength of the near-field antenna can include the signal strength sensed by the near-field antenna under the influence of the second device and based on the existence of electromagnetic induction with the second device, or it can include the signal strength of external interference signals sensed by the near-field antenna. The second device can be a device that performs near-field communication with the near-field communication module. If the near-field communication module is located in the first device, the second device can be another device that performs near-field communication with the first device.

作为一种实施方式,第一装置可以为近场通信的从设备,也可以称为标签设备;第二装置可以为近场通信的主设备,也可以称为读写器设备。第一装置可以是具有NFC标签的装置,或者也可以是处于卡模拟模式的装置;第二装置可以是处于读卡器模式的装置。第二装置可以通过本装置中设置的近场通信天线向外发射射频信号,以检测附近是否存在从设备,在确定附近存在从设备后还可以获取从设备提供的标签信息,或者也可以向从设备中写入标签信息等。第一装置可以通过近场天线感知或者响应第二装置发出的射频信号,或者第一装置也可以主动发出射频激励信号以促进第二装置唤醒正常的通信模式,或者促进与第二装置的通信过程。In one implementation, the first device can be a slave device for near-field communication (NFC), also known as a tag device; the second device can be a master device for NFC, also known as a reader/writer device. The first device can be a device with an NFC tag, or a device in card emulation mode; the second device can be a device in card reader mode. The second device can transmit radio frequency (RF) signals through its NFC antenna to detect the presence of a slave device nearby. After confirming the presence of a slave device, it can acquire tag information provided by the slave device, or write tag information to the slave device, etc. The first device can sense or respond to the RF signals emitted by the second device through its NFC antenna, or the first device can actively emit RF excitation signals to encourage the second device to wake up its normal communication mode, or to facilitate communication with the second device.

作为另一种实施方式,第一装置可以为近场通信的主设备,也可以称为读写器设备;第二装置可以为近场通信的从设备,也可以称为标签设备。第二装置可以是具有NFC标签的装置,或者也可以是处于卡模拟模式的装置;第一装置可以是处于读卡器模式的装置。第一装置可以近场天线向外发射射频信号,以检测附近是否存在从设备,在确定附近存在从设备后还可以获取从设备提供的标签信息,或者也可以向从设备中写入标签信息等。第二装置可以通过近场通信天线感知或者响应第一装置发出的射频信号,或者第二装置也可以主动发出射频激励信号以促进第一装置唤醒正常的通信模式,或者促进与第一装置的通信过程。In another implementation, the first device can be a master device for near-field communication (NFC), also known as a reader/writer device; the second device can be a slave device for NFC, also known as a tag device. The second device can be a device with an NFC tag, or a device in card emulation mode; the first device can be a device in card reader mode. The first device can transmit radio frequency (RF) signals through its near-field antenna to detect the presence of a slave device nearby. After confirming the presence of a slave device, it can acquire tag information provided by the slave device, or write tag information to the slave device, etc. The second device can sense or respond to the RF signals emitted by the first device through its near-field communication antenna, or the second device can actively emit RF excitation signals to encourage the first device to wake up its normal communication mode, or to facilitate the communication process with the first device.

实际应用中,进行近场通信的双方装置也可以通过点对点的方式进行通信,作为一种实施方式,第一装置以及第二装置可以处于点对点模式。In practical applications, the two devices performing near-field communication can also communicate in a point-to-point manner. As one implementation method, the first device and the second device can be in point-to-point mode.

第一装置和/或第二装置可以包括具有近场通信功能的装置,例如可以是智能手机、智能手表、手环、笔记本电脑、平板电脑等便携式终端设备,或者也可以是智能家居设备、车载设等,或者也可以POS机、自助结算设备等支付设备,或者,也可以是用于进行处理支付业务的设备,如在收银台或者自助结算处使用的支付设备;或者,也可以是用于处理签到、登录、门禁、闸机等业务的设备,如用于上班、上学或者参加活动等用于通过近场通信的方式进行签到的设备,又如,通过近场通信的方式进行会员登录或者应用程序登录的设备,又如,用于在居民住宅处或者办公处的门禁装置,又如,用于乘坐公交车、地铁等交通工具处的刷卡机,又如,参观景点或者参加活动、演唱会等处用于进行身份或者票务验证的设备等。对于第一装置和第二装置中作为从设备的装置也可以是NFC标签、卡片等近场通信工具。第一装置与第二装置的设备类型可以相同,如双方都可以为智能手机;或者第一装置与第二装置的类型也可以不同,如第一装置为收银装置,第二装置为智能手机,又如第一装置可以为POS机,第二装置可以为银行卡等。The first and/or second device may include devices with near-field communication (NFC) functionality, such as portable terminal devices like smartphones, smartwatches, wristbands, laptops, and tablets; smart home devices; in-vehicle devices; payment devices like POS machines and self-service checkout machines; or devices used for processing payment transactions, such as payment devices used at cash registers or self-service checkouts; or devices used for processing check-in, login, access control, and turnstiles, such as devices used for check-in via NFC for going to work, school, or attending events; devices for member login or application login via NFC; access control devices for residential or office buildings; card readers for public transportation such as buses and subways; or devices for identity or ticket verification at tourist attractions, events, or concerts. The slave device in the first and second devices may also be a near-field communication tool such as an NFC tag or card. The first device and the second device can be of the same type, such as both being smartphones; or the first device and the second device can be of different types, such as the first device being a cash register and the second device being a smartphone, or the first device being a POS machine and the second device being a bank card, etc.

实际应用中,具有天线位置可调的近场通信模组的装置可以是参与近场通信的双方中任一一方装置,或者通信双方都可以具有天线位置可调的近场通信模组。具体的近场通信过程可以参见相关技术,这里不再赘述。In practical applications, a device with an adjustable antenna position near-field communication module can be either one of the devices participating in near-field communication, or both communicating parties can have near-field communication modules with adjustable antenna positions. For details on the specific near-field communication process, please refer to relevant technologies; they will not be elaborated upon here.

步骤504:根据所述状态信息,生成控制信号。Step 504: Generate a control signal based on the status information.

近场通信模组可以根据状态信息生成用于调整位置调节部件的位置状态的控制信号。控制信号可以用于调节位置调节部件的载体支架的高度,或者也可以用于调整载体支架的角度,或者可以同步或者异步调整载体支架的高度和角度,实现对位于载体支架上的近场天线的位置进行调节。具体的,近场通信模组中的控制部件可以获取状态信息并生成控制信号。The near-field communication module can generate control signals based on status information to adjust the position state of the position adjustment component. These control signals can be used to adjust the height of the carrier support for the position adjustment component, or to adjust the angle of the carrier support, or to adjust both the height and angle of the carrier support synchronously or asynchronously, thereby adjusting the position of the near-field antenna located on the carrier support. Specifically, the control component in the near-field communication module can acquire status information and generate control signals.

步骤506:发送所述控制信号至位置调节部件,所述位置调节部件根据所述控制信号调整状态,以使位于所述位置调节部件上的近场天线到达目标位置。Step 506: Send the control signal to the position adjustment component, and the position adjustment component adjusts its state according to the control signal so that the near-field antenna located on the position adjustment component reaches the target position.

其中,所述目标位置可以满足以下至少一个条件:在所述目标位置处所述近场天线受到的外界干扰信号强度小于所述近场天线在上一位置受到的外界干扰信号强度;在所述目标位置处所述近场天线与所述第二装置的近场通信的信号强度满足近场通信需求;在所述目标位置处所述近场天线与第二装置的夹角小于或等于预设角度。The target location may satisfy at least one of the following conditions: the intensity of the external interference signal received by the near-field antenna at the target location is less than the intensity of the external interference signal received by the near-field antenna at the previous location; the signal strength of the near-field communication between the near-field antenna and the second device at the target location meets the near-field communication requirements; and the angle between the near-field antenna and the second device at the target location is less than or equal to a preset angle.

位置调节部件包括用于固定近场天线的载体支架,还可以包括用于调整载体支架的位置状态的位置调节组件,例如可以通过线性执行器等能够使得载体支架移动的位置调节组件。The position adjustment component includes a carrier support for fixing the near-field antenna, and may also include a position adjustment assembly for adjusting the position state of the carrier support, such as a position adjustment assembly that can move the carrier support by means of a linear actuator or the like.

一种实施方式,近场通信模组的近场天线感知到外界干扰信号,或者干扰信号的强度大于干扰预设阈值时,近场通信模组可以自动的调整近场天线的角度或者高度,使得近场天线感知到的信号强度小于干扰预设阈值。例如近场通信模组的近场天线在较长的一端时间内,如5秒、10秒、30秒、1分钟甚至5分钟的时间内,一直接收到另外的设备发出的射频信号,近场通信模组可以周围存在干扰信号,可以自动调整近场天线的角度或者高度,例如载物支架向靠近近场通信模组底座的方向移动预设距离,或者载物支架向远离第一装置外壳的方向移动预设距离;又如,载物支架向偏离当前角度的方向偏离预设角度等等。调整后的近场天线不会再接受到干扰信号,或者接收到的信号强度小于或等于干扰预设阈值,减弱第一装置受干扰信号的影响,或者使得第一装置不再受到外界干扰信号的影响。In one implementation, when the near-field antenna of the near-field communication module senses an external interference signal, or when the strength of the interference signal exceeds a preset interference threshold, the near-field communication module can automatically adjust the angle or height of the near-field antenna so that the signal strength sensed by the near-field antenna is less than the preset interference threshold. For example, if the near-field antenna of the near-field communication module continuously receives radio frequency signals from another device for a relatively long period of time, such as 5 seconds, 10 seconds, 30 seconds, 1 minute, or even 5 minutes, the near-field communication module can automatically adjust the angle or height of the near-field antenna, even if there is interference signal present. For example, the support bracket can be moved a preset distance closer to the base of the near-field communication module, or the support bracket can be moved a preset distance away from the outer casing of the first device; or the support bracket can be moved away from the current angle by a preset angle, etc. After adjustment, the near-field antenna will no longer receive interference signals, or the received signal strength will be less than or equal to the preset interference threshold, reducing the impact of interference signals on the first device, or making the first device no longer affected by external interference signals.

另一种实施方式,近场通信模组可以在开机启动后,或者按照预设频率或者周期执行减弱干扰信号的流程,将近场天线调整到干扰信号小的位置。可选的,本说明书一个实施例中的方法还可以包括:根据若干个不同的预设角度,生成若干个角度控制信号;发送所述若干个角度控制信号至所述位置调节部件,以使所述位置调节部件根据所述若干个角度控制信号将所述近场天线调整至各个不同的所述预设角度的位置。In another implementation, the near-field communication module can, after power-on, or according to a preset frequency or period, execute a process to reduce interference signals, adjusting the near-field antenna to a position with less interference. Optionally, the method in one embodiment of this specification may further include: generating a plurality of angle control signals based on a plurality of different preset angles; sending the plurality of angle control signals to the position adjustment component, so that the position adjustment component adjusts the near-field antenna to the positions of the respective preset angles according to the plurality of angle control signals.

上述获取近场通信模组的状态信息,可以包括:获取所述近场天线在各个所述预设角度的位置处的干扰信号。The aforementioned acquisition of the status information of the near-field communication module may include: acquiring the interference signal of the near-field antenna at each of the preset angles.

上述根据所述状态信息,生成控制信号,可以包括:从各个所述干扰信号中确定信号强度最小的目标干扰信号;根据所述目标干扰信号对应的所述预设角度,生成控制信号;所述控制信号用于使得所述近场天线处于所述目标干扰信号对应的所述预设角度的位置。The above-mentioned generation of control signals based on the state information may include: determining the target interference signal with the smallest signal strength from among the various interference signals; generating a control signal based on the preset angle corresponding to the target interference signal; the control signal is used to position the near-field antenna at the preset angle corresponding to the target interference signal.

若干个不同的预设角度可以表示为θi=(αi,βi),其中,αi表示第i个预设角度在X轴方向的角度,βi表示第i个预设角度在Y轴方向的角度。近场通信模组可以通过主动发送信号(如主动激励模式)或接收来自环境的信号(如被动模式),测量每个预设角度下的信号强度。假设用电流来表示信号强度,对于每一个角度θi,可以使用公式Si=f(Ir)来表示接收到的信号强度Si;其中,Ir是接收电流,也可以表示近场天线处的电流;f表示转换函数。然后比较不同角度下的信号强度值,最大者对应的方向即为干扰源所在的大致方位,最小者对应的方向即为对近场天线干扰最小的方向。然后可以将近场天线固定在干扰在信号强度最小的角度位置。通过减小信号干扰来提高近场通信感应的成功率。Several different preset angles can be represented as θi = (αi, βi), where αi represents the angle of the i-th preset angle in the X-axis direction, and βi represents the angle of the i-th preset angle in the Y-axis direction. The near-field communication module can measure the signal strength at each preset angle by actively transmitting signals (e.g., in active excitation mode) or receiving signals from the environment (e.g., in passive mode). Assuming signal strength is represented by current, for each angle θi, the received signal strength Si can be represented by the formula Si = f(Ir); where Ir is the received current, which can also represent the current at the near-field antenna; and f represents the conversion function. Then, the signal strength values at different angles are compared. The direction corresponding to the maximum value is the approximate location of the interference source, and the direction corresponding to the minimum value is the direction with the least interference to the near-field antenna. The near-field antenna can then be fixed at the angle where the interference is at its minimum. By reducing signal interference, the success rate of near-field communication sensing can be improved.

若干个不同的预设角度可以是以近场天线处于水平位置时或者处于非水平位置时,以近场天线为中心选取的若干个均匀分布的预设角度,或者也可以选取不均匀分布的预设角度。这里对预设角度的具体数值不作限定。The various preset angles can be uniformly distributed around the near-field antenna, whether the near-field antenna is in a horizontal or non-horizontal position, or they can be non-uniformly distributed. The specific values of the preset angles are not limited here.

实际应用中,为便于更有效的排除外界干扰,近场通信模组还可以根据近场天线感知到的外界干扰的信号强度来确定干扰源的大致位置,并生成提示信息,以便工作人员可以人工清除干扰源。可选的,说明书一个实施例中的方法还可以包括:根据各个所述干扰信号,确定干扰源的位置信息;基于所述位置信息,生成用于排除干扰源的提示信息;所述提示信息中包括所述干扰源的位置信息。In practical applications, to facilitate more effective elimination of external interference, the near-field communication module can also determine the approximate location of the interference source based on the signal strength of the external interference sensed by the near-field antenna, and generate a prompt message so that staff can manually remove the interference source. Optionally, the method in one embodiment of the specification may further include: determining the location information of the interference source based on each of the interference signals; generating a prompt message for eliminating the interference source based on the location information; the prompt message including the location information of the interference source.

其中,可以根据各个干扰信号的信号强度,选取出信号强度大于或等于预设阈值的干扰信号,将该干扰信号对应的预设角度表示的方向确定为干扰源所在的位置。或者,可以根据各个干扰信号的信号强度,选取出信号强度最大的干扰信号,将该干扰信号对应的预设角度表示的方向确定为干扰源所在的位置。One approach is to select the interference signal with a signal strength greater than or equal to a preset threshold based on the signal strength of each interference signal, and determine the location of the interference source by the direction represented by the preset angle corresponding to that interference signal. Alternatively, the interference signal with the strongest signal strength can be selected based on the signal strength of each interference signal, and the location of the interference source can be determined by the direction represented by the preset angle corresponding to that interference signal.

提示信息可以包括文字、符号、语音、提示音等信息中的至少一种信息。The prompt information may include at least one of the following: text, symbols, voice, prompt sounds, etc.

本说明书一个实施例中若近场通信模组附近存在与该近场通信模组进行近场通信的第二装置,近场通信模组也可以根据与第二装置发生的电磁感应信号的强度来调整近场天线的位置。可选的,上述状态信息可以包括所述近场天线与所述第二装置的近场通信的信号强度的信息。上述根据所述状态信息,生成控制信号,可以包括:若所述近场天线与所述第二装置的近场通信的信号强度大于或等于第一预设阈值,则生成第一控制信号;所述第一控制信号用于将所述近场天线向远离所述第二装置的方向移动;或者,若所述信号强度小于或等于第二预设阈值,则生成第二控制信号;所述第二控制信号用于将所述近场天线向靠近所述第二装置的方向移动。In one embodiment of this specification, if a second device is present near the near-field communication module and engages in near-field communication with it, the near-field communication module can also adjust the position of its near-field antenna based on the strength of the electromagnetic induction signal generated with the second device. Optionally, the aforementioned state information may include information about the signal strength of the near-field communication between the near-field antenna and the second device. Generating a control signal based on the state information may include: if the signal strength of the near-field communication between the near-field antenna and the second device is greater than or equal to a first preset threshold, generating a first control signal; the first control signal is used to move the near-field antenna away from the second device; or, if the signal strength is less than or equal to a second preset threshold, generating a second control signal; the second control signal is used to move the near-field antenna closer to the second device.

近场天线与所述第二装置的近场通信的信号强度可以表示近场通信模组中的近场天线与第二装置的天线发生电磁感应后近场通信模组中的近场天线处的信号强度。第一预设阈值和第二预设阈值可以表示近场通信模组能够正常进行近场通信的阈值,具体可以根据近场通信模组的近场通信成功率、采用的近场通信协议规则等信息来确定。第一预设阈值和第二预设阈值可以相同,或者也可以不同。具体可参见前述各实施例中的介绍这里不再赘述。The signal strength of the near-field communication between the near-field antenna and the second device can represent the signal strength at the near-field antenna in the near-field communication module after electromagnetic induction occurs between the near-field antenna in the near-field communication module and the antenna of the second device. The first preset threshold and the second preset threshold can represent the thresholds at which the near-field communication module can perform normal near-field communication. Specifically, they can be determined based on information such as the near-field communication success rate of the near-field communication module and the rules of the near-field communication protocol used. The first preset threshold and the second preset threshold can be the same or different. For details, please refer to the descriptions in the foregoing embodiments; they will not be repeated here.

其中,控制部件可以控制位置调节部件按照预设步长移动,直到近场天线的信号强度小于第一预设阈值,或者大于第二预设阈值,或者位于第二预设阈值与第一预设阈值之间。The control component can control the position adjustment component to move according to a preset step size until the signal strength of the near-field antenna is less than a first preset threshold, or greater than a second preset threshold, or between the second preset threshold and the first preset threshold.

作为一种实施方式,所述位置调节部件可以根据所述第一控制信号将所述近场天线按照第一预设步长由第一位置移动至第二位置。其中,第一位置可以表示位置调节部件获取到第一控制信号之前近场天线所在的位置,第二位置可以表示将近场天线按照第一预设步长向远离第二装置的方向移动后所在的位置。In one implementation, the position adjustment component can move the near-field antenna from a first position to a second position by a first preset step size according to the first control signal. The first position can represent the position of the near-field antenna before the position adjustment component receives the first control signal, and the second position can represent the position of the near-field antenna after it has been moved away from the second device by the first preset step size.

在近场天线移动到新的位置后,还可以继续判断当前近场天线的信号强度是否满足要求。本说明书一个实施例中的方法还可以包括:获取所述近场天线在所述第二位置处的感应信号;若所述第二位置处的感应信号的信号强度小于所述第一预设阈值,则所述位置调节部件停止移动,使得所述近场天线保持在所述第二位置处;若所述第二位置处的感应信号的信号强度大于或等于所述第一预设阈值,则生成第三控制信号;所述位置调节部件根据所述第三控制信号将所述近场天线按照第三预设步长由所述第二位置向远离所述第二装置的方向移动。After the near-field antenna moves to a new position, it can continue to determine whether the signal strength of the current near-field antenna meets the requirements. One embodiment of this specification may further include: acquiring the induced signal of the near-field antenna at the second position; if the signal strength of the induced signal at the second position is less than the first preset threshold, the position adjustment component stops moving, so that the near-field antenna remains at the second position; if the signal strength of the induced signal at the second position is greater than or equal to the first preset threshold, a third control signal is generated; the position adjustment component moves the near-field antenna from the second position away from the second device according to the third control signal by a third preset step size.

其中,第三预设步长可以等于第一预设步长,或者第三预设步长可以小于第一预设步长。或者,可以根据近场天线处的信号强度与第一预设阈值的差值来选择步长,若差值较大,则选取较大的步长,若差值较小,则选取较小的步长。在近场天线向远离第二装置的方向移动的过程中也可以不断地对近场天线的信号强度进行判断,然后选择是否继续移动,直到近场天线的信号强度满足要求。The third preset step size can be equal to or less than the first preset step size. Alternatively, the step size can be selected based on the difference between the signal strength at the near-field antenna and the first preset threshold; a larger difference results in a larger step size, and a smaller difference results in a smaller step size. As the near-field antenna moves away from the second device, the signal strength can be continuously assessed, and a decision can be made regarding whether to continue moving until the signal strength of the near-field antenna meets the requirements.

可选的,若近场天线需要满足的信号强度是小于第一预设阈值且大于第二预设阈值,若近场天线按照第一预设步长由第一位置移动至第二位置后或者按照第三预设步长由第二位置向远离第二装置的方向移动至新的位置后,在移动至的第二位置或者移动至的新的位置处,近场天线的信号强度小于所述第一预设阈值,但是也小于了第二预设阈值,可以继续让近场天线向靠近第二装置的方向移动。Optionally, if the signal strength required by the near-field antenna is less than the first preset threshold and greater than the second preset threshold, and if the near-field antenna moves from the first position to the second position according to the first preset step size or moves from the second position to a new position away from the second device according to the third preset step size, and at the second position or the new position, the signal strength of the near-field antenna is less than the first preset threshold but also less than the second preset threshold, the near-field antenna can continue to move towards the second device.

对应的,在近场天线向靠近第二装置的方向移动的过程中,也可以继续判断近场天线在新的位置的信号强度是否满足要求。作为一种实施方式,所述位置调节部件根据所述第二控制信号将所述近场天线按照第二预设步长由第一位置移动至第三位置。第一位置可以表示位置调节部件获取到第二控制信号之前近场天线所在的位置,第三位置可以表示将近场天线按照第二预设步长向靠近第二装置的方向移动后所在的位置。本说明书一个实施例中的方法还可以包括:获取所述近场天线在所述第三位置处的感应信号;若所述第三位置处的感应信号的信号强度大于所述第二预设阈值,则所述位置调节部件停止移动,使得所述近场天线保持在所述第三位置处;若所述第三位置处的感应信号的信号强度小于或等于所述第二预设阈值,则生成第四控制信号;所述位置调节部件根据所述第四控制信号将所述近场天线按照第四预设步长由所述第三位置向靠近所述第二装置的方向移动。Correspondingly, during the process of the near-field antenna moving towards the second device, it is also possible to continue to determine whether the signal strength of the near-field antenna at the new position meets the requirements. As one implementation, the position adjustment component moves the near-field antenna from a first position to a third position according to a second preset step size based on the second control signal. The first position can represent the position of the near-field antenna before the position adjustment component acquires the second control signal, and the third position can represent the position of the near-field antenna after moving towards the second device according to the second preset step size. In one embodiment of this specification, the method may further include: acquiring the induced signal of the near-field antenna at the third position; if the signal strength of the induced signal at the third position is greater than the second preset threshold, the position adjustment component stops moving, so that the near-field antenna remains at the third position; if the signal strength of the induced signal at the third position is less than or equal to the second preset threshold, a fourth control signal is generated; the position adjustment component moves the near-field antenna from the third position towards the second device according to the fourth control signal, according to the fourth preset step size.

其中,第四预设步长可以等于第二预设步长,或者第四预设步长可以小于第二预设步长。或者,可以根据近场天线处的信号强度与第二预设阈值的差值来选择步长,若差值较大,则选取较大的步长,若差值较小,则选取较小的步长。在近场天线向靠近第二装置的方向移动的过程中也可以不断地对近场天线的信号强度进行判断,然后选择是否继续移动,直到近场天线的信号强度满足要求。The fourth preset step size can be equal to or less than the second preset step size. Alternatively, the step size can be selected based on the difference between the signal strength at the near-field antenna and the second preset threshold; a larger difference results in a larger step size, and a smaller difference results in a smaller step size. As the near-field antenna moves closer to the second device, the signal strength of the near-field antenna can be continuously assessed, and a decision can be made regarding whether to continue moving until the signal strength of the near-field antenna meets the requirements.

可选的,若近场天线需要满足的信号强度是大于第二预设阈值且需要小于第一预设阈值,若近场天线按照第二步长由第一位置移动至第三位置后,或者按照第四预设步长由第三位置向靠近第二装置的方向移动至新的位置后,在移动至的第三位置处或者移动至的该新的位置处,近场天线的信号强度大于第二预设阈值,但是大于了第一预设阈值,可以继续让近场天线向远离第二装置的方向移动。Optionally, if the signal strength required by the near-field antenna is greater than the second preset threshold and less than the first preset threshold, and if the near-field antenna moves from the first position to the third position according to the second step size, or moves from the third position to a new position closer to the second device according to the fourth preset step size, and at the third position or the new position, the signal strength of the near-field antenna is greater than the second preset threshold but greater than the first preset threshold, the near-field antenna can continue to move away from the second device.

在近场天线移动至满足要求的目标位置后(如第二位置、第三位置、第四位置等),近场天线可以保持在该位置直到与第二装置的通信结束,之后或者预设时长后还原至预设的初始位置;或者,与第二装置的通信结束后仍保持在该目标位置。After the near-field antenna moves to the target position that meets the requirements (such as the second position, the third position, the fourth position, etc.), the near-field antenna can remain in that position until the communication with the second device ends, and then return to the preset initial position after a preset time; or, it can remain in the target position after the communication with the second device ends.

实际应用中,在第二装置与近场通信模组产生电磁感应的过程中,也可以根据近场天线的信号强度来调整近场天线的角度,以增强或者减弱与第二装置之间的电磁感应,保证与第二装置的近场通信的效率以及成功率。可选的,上述根据所述状态信息,生成控制信号,可以包括:若所述近场天线与所述第二装置的近场通信的信号强度大于或等于第一预设阈值,则生成第一控制信号;所述第一控制信号可以用于将所述近场天线向偏离所述第二装置的方向转动。通过将近场天线与第二装置之间的夹角调大,可以减弱近场天线与第二装置之间的电磁感知,使得近场通信与第二装置之间的信号强度满足近场通信需求。In practical applications, during the electromagnetic induction process between the second device and the near-field communication module, the angle of the near-field antenna can be adjusted according to the signal strength of the near-field antenna to enhance or weaken the electromagnetic induction with the second device, ensuring the efficiency and success rate of near-field communication with the second device. Optionally, generating a control signal based on the aforementioned state information may include: generating a first control signal if the signal strength of the near-field communication between the near-field antenna and the second device is greater than or equal to a first preset threshold; the first control signal can be used to rotate the near-field antenna in a direction away from the second device. By increasing the angle between the near-field antenna and the second device, the electromagnetic induction between the near-field antenna and the second device can be weakened, ensuring that the signal strength between the near-field communication and the second device meets the near-field communication requirements.

第一装置的近场天线与第二装置或者与第二装置的天线处于平行的位置时,可以使得第一装置与第二装置之间的近场通信信号强度较大。若近场天线的信号强度小于或等于第二预设阈值,则可以生成第二控制信号;所述第二控制信号可以用于将所述近场天线向与所述第二装置一致的方向转动。通过将近场天线与第二装置之间的夹角调小,使得两者尽量平行,可以增强近场天线与第二装置之间的电磁感知,使得近场通信与第二装置之间的信号强度满足近场通信需求。When the near-field antenna of the first device is parallel to or parallel to the antenna of the second device, the near-field communication signal strength between the first and second devices can be increased. If the signal strength of the near-field antenna is less than or equal to a second preset threshold, a second control signal can be generated; the second control signal can be used to rotate the near-field antenna in the same direction as the second device. By reducing the angle between the near-field antenna and the second device, making them as parallel as possible, the electromagnetic induction between the near-field antenna and the second device can be enhanced, ensuring that the signal strength between the near-field communication antenna and the second device meets the near-field communication requirements.

在NFC近场通信中,通信双方的近场通天线需要较好的耦合环境。当近场天线方向存在偏移时,例如,所处的角度不一致时,耦合强度会减弱,导致通信成功率降低。为了提高传输性能,可以利用传感器测量与近场通信模组交互的第二装置的相对角度,通过调整近场通信模组的近场天线的角度使其匹配第二装置方向,以实现较好的通信耦合,提高通信成功率。作为一种实施方式,上述获取近场通信模组的状态信息,可以包括:获取所述第二装置相对于所述近场通信模组的角度信息。上述根据所述状态信息,生成控制信号,可以包括:根据所述角度信息生成控制信号;所述控制信号用于使得所述近场天线与所述第二装置的夹角小于或等于预设角度。In NFC near-field communication, the near-field antennas of both communicating parties require a good coupling environment. When the near-field antenna direction is offset, for example, when their angles are inconsistent, the coupling strength weakens, leading to a decrease in communication success rate. To improve transmission performance, sensors can be used to measure the relative angle of the second device interacting with the near-field communication module. By adjusting the angle of the near-field antenna of the near-field communication module to match the direction of the second device, better communication coupling can be achieved, thus improving the communication success rate. As one implementation, obtaining the state information of the near-field communication module may include: obtaining the angle information of the second device relative to the near-field communication module. Generating a control signal based on the state information may include: generating a control signal based on the angle information; the control signal is used to ensure that the angle between the near-field antenna and the second device is less than or equal to a preset angle.

如前述实施例中,近场通信模组或者第一装置中可以具有红外距离传感器、超声波传感器、摄像头等测量元件,可以用于测量第二装置的位置角度信息。然后,近场通信模组可以根据第二装置的角度信息,确定位置调节部件的移动参数,如各个线性执行器伸长或者缩短的移动量,调整载物支架的方向,使得近场天线与所述第二装置的夹角小于或等于预设角度。例如,可以使得近场天线与所述第二装置的夹角接近零度,近场天线与所述第二装置平行或者近乎平行。具体调整过程可以参见前述实施例中的介绍,这里不再赘述。As in the foregoing embodiments, the near-field communication module or the first device may include measuring elements such as an infrared distance sensor, an ultrasonic sensor, and a camera, which can be used to measure the position and angle information of the second device. Then, the near-field communication module can determine the movement parameters of the position adjustment component based on the angle information of the second device, such as the amount of extension or retraction of each linear actuator, and adjust the direction of the load support so that the angle between the near-field antenna and the second device is less than or equal to a preset angle. For example, the angle between the near-field antenna and the second device can be close to zero degrees, and the near-field antenna can be parallel or nearly parallel to the second device. The specific adjustment process can be found in the description in the foregoing embodiments and will not be repeated here.

实际应用中,也可以根据需求,同步或者异步的调整载物支架的高度和角度。例如,在将近场天线调整到与第二装置的夹角小于或等于预设角度的过程中,还可以将近场天线向靠近或者远离第二装置的方向移动。In practical applications, the height and angle of the support can be adjusted synchronously or asynchronously as needed. For example, while adjusting the near-field antenna to an angle less than or equal to a preset angle with the second device, the near-field antenna can also be moved closer to or further away from the second device.

虽然本说明书一个或多个实施例提供了如实施例或流程图所述的方法步骤,但可以理解的是实施例或者流程图中列举的步骤顺序仅仅为众多步骤执行顺序中的一种方式,不代表唯一的执行顺序。部分步骤的顺序可以根据实际需要调整,或者可以省略部分步骤。权利要求中涉及到方法步骤时,针对该等步骤的顺序的变化调整,或者步骤之间的并行也是权利要求保护的范围。While one or more embodiments of this specification provide method steps as described in the embodiments or flowcharts, it is understood that the order of steps listed in the embodiments or flowcharts is merely one possible execution order among many steps and does not represent the only possible execution order. The order of some steps may be adjusted according to actual needs, or some steps may be omitted. When the claims involve method steps, changes in the order of such steps, or parallel execution between steps, are also within the scope of protection of the claims.

以上实施例中的各种技术特征可以任意进行组合,只要特征之间的组合不存在冲突或矛盾,但是限于篇幅,未进行一一描述,因此上述实施方式中的各种技术特征的任意进行组合也属于本说明书公开的范围。The various technical features in the above embodiments can be combined arbitrarily, as long as there is no conflict or contradiction between the combinations of features. However, due to space limitations, they have not been described one by one. Therefore, the arbitrary combination of various technical features in the above embodiments is also within the scope of this specification.

基于同样的思路,本说明书实施例还提供了上述方法对应的近场通信装置。该装置可以包括:Based on the same approach, embodiments of this specification also provide a near-field communication device corresponding to the above method. This device may include:

信息获取模块,用于获取近场通信模组的状态信息;所述状态信息包括所述近场天线的信号强度的信息、与所述近场通信模组进行近场通信的第二装置的位置信息中至少一种。An information acquisition module is used to acquire the status information of the near-field communication module; the status information includes at least one of the following: signal strength information of the near-field antenna and location information of the second device that performs near-field communication with the near-field communication module.

信号生成模块,用于根据所述状态信息,生成控制信号。The signal generation module is used to generate control signals based on the state information.

信号发送模块,用于发送所述控制信号至位置调节部件,所述位置调节部件根据所述控制信号调整状态,以使位于所述位置调节部件上的近场天线到达目标位置;所述目标位置满足以下至少一个条件:在所述目标位置处所述近场天线受到的外界干扰信号强度小于所述近场天线在上一位置受到的外界干扰信号强度;在所述目标位置处所述近场天线与所述第二装置的近场通信的信号强度满足近场通信需求;在所述目标位置处所述近场天线与第二装置的夹角小于或等于预设角度。A signal transmitting module is used to send the control signal to a position adjustment component. The position adjustment component adjusts its state according to the control signal so that the near-field antenna located on the position adjustment component reaches a target position. The target position satisfies at least one of the following conditions: the intensity of the external interference signal received by the near-field antenna at the target position is less than the intensity of the external interference signal received by the near-field antenna at the previous position; the signal strength of the near-field communication between the near-field antenna and the second device at the target position meets the near-field communication requirements; and the angle between the near-field antenna and the second device at the target position is less than or equal to a preset angle.

可以理解,上述的各模块是指计算机程序或者程序段,用于执行某一项或多项特定的功能。此外,上述各模块的区分并不代表实际的程序代码也必须是分开的。It is understood that the modules mentioned above refer to computer programs or program segments used to perform one or more specific functions. Furthermore, the distinction between these modules does not imply that the actual program code must also be separate.

为了描述的方便,描述以上装置时以功能分为各种模块或者部件分别描述。当然,在实施本说明书一个或多个时可以把各模块或者部件的功能在同一个或多个软件和/或硬件中实现,也可以将实现同一功能的模块由多个子模块或子部件的组合实现等。以上所描述的装置实施例仅仅是示意性的,例如,所述部件的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个部件或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。For ease of description, the above devices are described by dividing them into various modules or components based on their functions. Of course, when implementing one or more of these specifications, the functions of each module or component can be implemented in the same or different software and/or hardware, or a module that performs the same function can be implemented by a combination of multiple sub-modules or sub-components. The device embodiments described above are merely illustrative. For example, the division of components is only a logical functional division; in actual implementation, there may be other division methods. For example, multiple components or parts may be combined or integrated into another system, or some features may be ignored or not executed.

上述为本实施例的一种近场通信装置的示意性方案。需要说明的是,该装置的技术方案与上述的近场通信的控制方法的技术方案属于同一构思,该装置的技术方案未详细描述的细节内容,均可以参见上述方法的技术方案的描述。The above is an illustrative scheme of a near-field communication device according to this embodiment. It should be noted that the technical solution of this device and the technical solution of the near-field communication control method described above belong to the same concept. For details not described in detail in the technical solution of this device, please refer to the description of the technical solution of the above method.

基于同样的思路,本说明书还提供了上述近场通信模组或者方法对应的近场通信设备,该近场通信设备可以包括上述近场通信模组,或者能够执行上述近场通信的控制方法。Based on the same idea, this specification also provides a near-field communication device corresponding to the above near-field communication module or method. The near-field communication device may include the above near-field communication module or a control method capable of performing the above near-field communication.

基于同样的思路,本说明书实施例还提供了上述方法对应的计算设备。Based on the same idea, the embodiments of this specification also provide computing devices corresponding to the above methods.

图6示出了根据本说明书一个实施例提供的一种计算设备600的结构框图。Figure 6 shows a structural block diagram of a computing device 600 provided according to one embodiment of this specification.

该计算设备600包括:The computing device 600 includes:

存储器610和处理器620;Memory 610 and processor 620;

所述存储器610用于存储计算机程序/指令,所述处理器620用于执行所述计算机程序/指令,该计算机程序/指令被处理器620执行时实现上述近场通信的控制方法的步骤。The memory 610 is used to store computer programs/instructions, and the processor 620 is used to execute the computer programs/instructions. When the computer programs/instructions are executed by the processor 620, they implement the steps of the above-described near-field communication control method.

具体的,该计算设备600的部件包括但不限于存储器610和处理器620。处理器620与存储器610通过总线630相连接,数据库650用于保存数据。Specifically, the components of the computing device 600 include, but are not limited to, a memory 610 and a processor 620. The processor 620 is connected to the memory 610 via a bus 630, and the database 650 is used to store data.

计算设备600还包括接入设备640,接入设备640使得计算设备600能够经由一个或多个网络660通信。这些网络的示例包括公用交换电话网(PSTN,Public SwitchedTelephone Network)、局域网(LAN,Local Area Network)、广域网(WAN,Wide AreaNetwork)、个域网(PAN,Personal Area Network)或诸如因特网的通信网络的组合。接入设备440可以包括有线或无线的任何类型的网络接口(例如,网络接口卡(NIC,networkinterface controller))中的一个或多个,诸如IEEE802.11无线局域网(WLAN,WirelessLocal Area Network)无线接口、全球微波互联接入(Wi-MAX,WorldwideInteroperability for Microwave Access)接口、以太网接口、通用串行总线(USB,Universal Serial Bus)接口、蜂窝网络接口、蓝牙接口、近场通信(NFC,Near FieldCommunication)接口,等等。The computing device 600 also includes an access device 640, which enables the computing device 600 to communicate via one or more networks 660. Examples of these networks include Public Switched Telephone Network (PSTN), Local Area Network (LAN), Wide Area Network (WAN), Personal Area Network (PAN), or combinations of communication networks such as the Internet. The access device 640 may include one or more of any type of wired or wireless network interface (e.g., a network interface card (NIC)), such as an IEEE 802.11 Wireless Local Area Network (WLAN) wireless interface, a Wi-MAX (Worldwide Interoperability for Microwave Access) interface, an Ethernet interface, a Universal Serial Bus (USB) interface, a cellular network interface, a Bluetooth interface, a Near Field Communication (NFC) interface, and so on.

在本说明书一个实施例中,计算设备600的上述部件以及图6中未示出的其他部件也可以彼此相连接,例如通过总线。应当理解,图6所示的计算设备结构框图仅仅是出于示例的目的,而不是对本申请范围的限制。本领域技术人员可以根据需要,增添或替换其他部件。In one embodiment of this specification, the aforementioned components of the computing device 600, as well as other components not shown in FIG. 6, may be interconnected, for example, via a bus. It should be understood that the block diagram of the computing device shown in FIG. 6 is merely for illustrative purposes and is not intended to limit the scope of this application. Those skilled in the art can add or replace other components as needed.

计算设备600可以是任何类型的静止或移动计算设备,包括移动计算机或移动计算设备(例如,平板计算机、个人数字助理、膝上型计算机、笔记本计算机、上网本等)、移动电话(例如,智能手机)、可佩戴的计算设备(例如,智能手表、智能眼镜等)或其他类型的移动设备,或者诸如台式计算机或个人计算机(PC,Personal Computer)的静止计算设备。计算设备600还可以是移动式或静止式的服务器。The computing device 600 can be any type of stationary or mobile computing device, including mobile computers or mobile computing devices (e.g., tablet computers, personal digital assistants, laptop computers, notebook computers, netbooks, etc.), mobile phones (e.g., smartphones), wearable computing devices (e.g., smartwatches, smart glasses, etc.) or other types of mobile devices, or stationary computing devices such as desktop computers or personal computers (PCs). The computing device 600 can also be a mobile or stationary server.

其中,处理器620执行所述计算机指令时实现上述近场通信的控制方法的步骤。The processor 620 executes the computer instructions to implement the steps of the above-described near-field communication control method.

上述为本实施例的一种计算设备的示意性方案。需要说明的是,该计算设备的技术方案与上述的近场通信的控制方法的技术方案属于同一构思,计算设备的技术方案未详细描述的细节内容,均可以参见上述近场通信的控制方法的技术方案的描述。The above is an illustrative scheme of a computing device according to this embodiment. It should be noted that the technical solution of this computing device and the technical solution of the near-field communication control method described above belong to the same concept. For details not described in detail in the technical solution of the computing device, please refer to the description of the technical solution of the near-field communication control method described above.

本说明书一实施例还提供一种计算机可读存储介质,其存储有计算机指令,该计算机指令被处理器执行时实现如前所述近场通信的控制方法的步骤。An embodiment of this specification also provides a computer-readable storage medium storing computer instructions that, when executed by a processor, implement the steps of the control method for near-field communication as described above.

上述为本实施例的一种计算机可读存储介质的示意性方案。需要说明的是,该存储介质的技术方案与上述的近场通信的控制方法的技术方案属于同一构思,存储介质的技术方案未详细描述的细节内容,均可以参见上述近场通信的控制方法的技术方案的描述。The above is an illustrative scheme of a computer-readable storage medium according to this embodiment. It should be noted that the technical solution of this storage medium and the technical solution of the near-field communication control method described above belong to the same concept. For details not described in detail in the technical solution of the storage medium, please refer to the description of the technical solution of the near-field communication control method described above.

本说明书一实施例还提供一种计算机程序产品,包括计算机程序/指令,该计算机程序/指令被处理器执行时实现上述近场通信的控制方法的步骤。An embodiment of this specification also provides a computer program product, including a computer program/instructions that, when executed by a processor, implement the steps of the above-described near-field communication control method.

上述为本实施例的一种计算机程序产品的示意性方案。需要说明的是,该计算机程序产品的技术方案与上述的近场通信的控制方法的技术方案属于同一构思,计算机程序产品的技术方案未详细描述的细节内容,均可以参见上述近场通信的控制方法的技术方案的描述。The above is an illustrative scheme of a computer program product according to this embodiment. It should be noted that the technical solution of this computer program product and the technical solution of the near-field communication control method described above belong to the same concept. For details not described in detail in the technical solution of the computer program product, please refer to the description of the technical solution of the near-field communication control method described above.

本说明书中的各个实施例均采用递进的方式描述,各个实施例之间相同相似的部分互相参见即可,有益效果也可以相互参考。The various embodiments in this specification are described in a progressive manner. The same or similar parts between the various embodiments can be referred to each other, and the beneficial effects can also be referred to each other.

上述对本说明书特定实施例进行了描述。其它实施例在所附权利要求书的范围内。在一些情况下,在权利要求书中记载的动作或步骤可以按照不同于实施例中的顺序来执行并且仍然可以实现期望的结果。另外,在附图中描绘的过程不一定要求按照示出的特定顺序或者连续顺序才能实现期望的结果。在某些实施方式中,多任务处理和并行处理也是可以的或者可能是有利的。The foregoing has described specific embodiments of this specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recited in the claims may be performed in a different order than that shown in the embodiments and may still achieve the desired result. Furthermore, the processes depicted in the drawings do not necessarily require a specific or sequential order to achieve the desired result. In some embodiments, multitasking and parallel processing are possible or may be advantageous.

在20世纪90年代,对于一个技术的改进可以很明显地区分是硬件上的改进(例如,对二极管、晶体管、开关等电路结构的改进)还是软件上的改进(对于方法流程的改进)。然而,随着技术的发展,当今的很多方法流程的改进已经可以视为硬件电路结构的直接改进。设计人员几乎都通过将改进的方法流程编程到硬件电路中来得到相应的硬件电路结构。因此,不能说一个方法流程的改进就不能用硬件实体模块来实现。例如,可编程逻辑器件(Programmable Logic Device, PLD)(例如现场可编程门阵列(Field Programmable GateArray,FPGA))就是这样一种集成电路,其逻辑功能由用户对器件编程来确定。由设计人员自行编程来把一个数字符系统“集成”在一片PLD上,而不需要请芯片制造厂商来设计和制作专用的集成电路芯片。而且,如今,取代手工地制作集成电路芯片,这种编程也多半改用“逻辑编译器(logic compiler)”软件来实现,它与程序开发撰写时所用的软件编译器相类似,而要编译之前的原始代码也得用特定的编程语言来撰写,此称之为硬件描述语言(Hardware Description Language,HDL),而HDL也并非仅有一种,而是有许多种,如ABEL(Advanced Boolean Expression Language)、AHDL(Altera Hardware DescriptionLanguage)、Confluence、CUPL(Cornell University Programming Language)、HDCal、JHDL(Java Hardware Description Language)、Lava、Lola、MyHDL、PALASM、RHDL(RubyHardware Description Language)等,目前最普遍使用的是VHDL(Very-High-SpeedIntegrated Circuit Hardware Description Language)与Verilog。本领域技术人员也应该清楚,只需要将方法流程用上述几种硬件描述语言稍作逻辑编程并编程到集成电路中,就可以很容易得到实现该逻辑方法流程的硬件电路。In the 1990s, improvements to a technology could be clearly distinguished as either hardware improvements (e.g., improvements to the circuit structure of diodes, transistors, switches, etc.) or software improvements (improvements to methodology). However, with technological advancements, many methodological improvements today can be considered direct improvements to hardware circuit structures. Designers almost always obtain the corresponding hardware circuit structure by programming the improved methodology into the hardware circuit. Therefore, it cannot be said that a methodological improvement cannot be implemented using hardware physical modules. For example, a Programmable Logic Device (PLD) (such as a Field Programmable Gate Array (FPGA)) is such an integrated circuit whose logic function is determined by the user programming the device. Designers can program a digital system themselves to "integrate" it onto a PLD, without needing chip manufacturers to design and manufacture dedicated integrated circuit chips. Furthermore, nowadays, instead of manually manufacturing integrated circuit chips, this programming is mostly implemented using "logic compiler" software. Similar to the software compiler used in program development, the original code before compilation must also be written in a specific programming language, called a Hardware Description Language (HDL). There are many HDLs, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, and RHDL (Ruby Hardware Description Language). Currently, the most commonly used are VHDL (Very-High-Speed Integrated Circuit Hardware Description Language) and Verilog. Those skilled in the art should also understand that by simply performing some logic programming on the method flow using one of these hardware description languages and programming it into an integrated circuit, the hardware circuit implementing the logical method flow can be easily obtained.

控制器可以按任何适当的方式实现,例如,控制器可以采取例如微处理器或处理器以及存储可由该(微)处理器执行的计算机可读程序代码(例如软件或固件)的计算机可读介质、逻辑门、开关、专用集成电路(Application Specific Integrated Circuit,ASIC)、可编程逻辑控制器和嵌入微控制器的形式,控制器的例子包括但不限于以下微控制器:ARC 625D、Atmel AT91SAM、Microchip PIC18F26K20 以及Silicone Labs C8051F320,存储器控制器还可以被实现为存储器的控制逻辑的一部分。本领域技术人员也知道,除了以纯计算机可读程序代码方式实现控制器以外,完全可以通过将方法步骤进行逻辑编程来使得控制器以逻辑门、开关、专用集成电路、可编程逻辑控制器和嵌入微控制器等的形式来实现相同功能。因此这种控制器可以被认为是一种硬件部件,而对其内包括的用于实现各种功能的装置也可以视为硬件部件内的结构。或者甚至,可以将用于实现各种功能的装置视为既可以是实现方法的软件模块又可以是硬件部件内的结构。The controller can be implemented in any suitable manner. For example, it can take the form of a microprocessor or processor and a computer-readable medium storing computer-readable program code (e.g., software or firmware) executable by the (micro)processor, logic gates, switches, application-specific integrated circuits (ASICs), programmable logic controllers, and embedded microcontrollers. Examples of controllers include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicon Labs C8051F320. A memory controller can also be implemented as part of the control logic of the memory. Those skilled in the art will also recognize that, in addition to implementing the controller in purely computer-readable program code form, the same functionality can be achieved by logically programming the method steps to make the controller take the form of logic gates, switches, application-specific integrated circuits, programmable logic controllers, and embedded microcontrollers. Therefore, such a controller can be considered a hardware component, and the means included therein for implementing various functions can also be considered as structures within the hardware component. Alternatively, the means for implementing various functions can be considered as both software modules implementing the method and structures within the hardware component.

上述实施例阐明的系统、装置、模块或部件,具体可以由计算机芯片或实体实现,或者由具有某种功能的产品来实现。一种典型的实现设备为计算机。具体的,计算机例如可以为个人计算机、膝上型计算机、蜂窝电话、相机电话、智能电话、个人数字助理、媒体播放器、导航设备、电子邮件设备、游戏控制台、平板计算机、可穿戴设备或者这些设备中的任何设备的组合。The systems, devices, modules, or components described in the above embodiments can be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, a computer can be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smartphone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or any combination of these devices.

为了描述的方便,描述以上装置时以功能分为各种部件分别描述。当然,在实施本申请时可以把各部件的功能在同一个或多个软件和/或硬件中实现。For ease of description, the above apparatus is described by dividing it into various components according to their functions. Of course, in implementing this application, the functions of each component can be implemented in one or more software and/or hardware.

本领域内的技术人员应明白,本说明书一个或多个实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art will understand that one or more embodiments of this specification can be provided as a method, system, or computer program product. Therefore, the invention can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the invention can 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, etc.) containing computer-usable program code.

本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。This invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions can 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 one or more blocks of the flowchart illustrations and/or one or more blocks of the block diagrams.

这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means that implement the functions specified in one or more flowcharts and/or one or more block diagrams.

这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。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 one or more flowcharts and/or one or more block diagrams.

在一个典型的配置中,计算设备包括一个或多个处理器(CPU)、输入/输出接口、网络接口和内存。In a typical configuration, a computing device includes one or more processors (CPU), input/output interfaces, network interfaces, and memory.

内存可能包括计算机可读介质中的非永久性存储器,随机存取存储器(RAM)和/或非易失性内存等形式,如只读存储器(ROM)或闪存(flash RAM)。内存是计算机可读介质的示例。Memory may include non-persistent storage in computer-readable media, such as random access memory (RAM) and/or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory is an example of computer-readable media.

计算机可读介质包括永久性和非永久性、可移动和非可移动媒体可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括,但不限于相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字符多功能光盘(DVD)或其他光学存储、磁盒式磁带,磁带式磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。按照本文中的界定,计算机可读介质不包括暂存电脑可读媒体(transitory media),如调制的数据信号和载波。Computer-readable media includes both permanent and non-permanent, removable and non-removable media that can store information using any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital character versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transferable medium that can be used to store information accessible by a computing device. As defined herein, computer-readable media does not include transient computer-readable media, such as modulated data signals and carrier waves.

本申请可以在由计算机执行的计算机可执行指令的一般上下文中描述,例如程序模块。一般地,程序模块包括执行特定任务或实现特定抽象数据类型的例程、程序、对象、组件、数据结构等等。也可以在分布式计算环境中实践本申请,在这些分布式计算环境中,由通过通信网络而被连接的远程处理设备来执行任务。在分布式计算环境中,程序模块可以位于包括存储设备在内的本地和远程计算机存储介质中。This application can be described in the general context of computer-executable instructions, such as program modules, that are executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc., that perform a specific task or implement a specific abstract data type. This application can also be practiced in distributed computing environments where tasks are performed by remote processing devices connected via a communication network. In distributed computing environments, program modules can reside in local and remote computer storage media, including storage devices.

以上所述仅为本申请的实施例而已,并不用于限制本申请。对于本领域技术人员来说,本申请可以有各种更改和变化。凡在本申请的精神和原理之内所作的任何修改、等同替换、改进等,均应包含在本申请的权利要求范围之内。The above description is merely an embodiment of this application and is not intended to limit the scope of this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the scope of the claims of this application.

Claims (20)

1. A self-adaptive near field communication module comprises a near field antenna, a position adjusting component and a control component;
The position adjusting component comprises a carrying support and a position adjusting assembly, the carrying support is connected with the position adjusting assembly, the carrying support is used for bearing the near-field antenna, and the position adjusting assembly is used for adjusting the position state of the carrying support;
The near-field antenna is fixed on the object carrying bracket;
The control component is used for controlling the state of the position adjusting component so that the object carrying support carries the near field antenna to reach a target position, the target position meets at least one condition that the external interference signal intensity received by the near field antenna at the target position is smaller than the external interference signal intensity received by the near field antenna at the last position, the signal intensity of near field communication between the near field antenna and a second device at the target position meets near field communication requirements, the included angle between the near field antenna and the second device at the target position is smaller than or equal to a preset angle, and the second device is a device for near field communication with the near field communication module.
2. The near field communication module of claim 1, the position adjustment assembly to adjust a height and/or an angle of the carrier support.
3. The near field communication module of claim 1, the control component controlling the state of the position adjustment assembly according to the signal strength of the near field antenna;
If the signal intensity is greater than or equal to a first preset threshold value, the control component controls the position adjusting component to move the object carrying bracket in a direction away from the second device, so that the near-field antenna is away from the second device;
and if the signal intensity is smaller than or equal to a second preset threshold value, the control component controls the position adjusting component to move the object carrying support towards the direction approaching to the second device, so that the near-field antenna approaches to the second device.
4. The near field communication module of claim 1, wherein the control component is configured to obtain signal intensities of the near field antenna at a plurality of different preset angles, the signal intensities being configured to represent intensities of external interference suffered by the near field antenna;
the control component selects a preset angle with the minimum signal intensity from the signal intensities of the plurality of different preset angles as a target angle, and controls the position adjusting component to adjust the object carrying bracket to the target angle.
5. The near field communication module of claim 3 or 4, the control component comprising a signal control module, a motion control module, and a master control module;
the signal control module is connected with the near-field antenna and is used for acquiring signals at the near-field antenna;
the motion control module is connected with the position adjusting component and used for controlling the state of the position adjusting component;
The main control module is respectively connected with the signal control module and the motion control module, and is used for generating a control signal according to the signal intensity acquired by the signal control module and sending the control signal to the motion control module so that the motion control module controls the position adjusting assembly to adjust the height or angle of the object carrying support according to the control signal.
6. The near field communication module of claim 1, further comprising a sensor assembly in the near field communication module or in a first device having the near field communication module, the sensor assembly for detecting angle information of the second device;
the control component is used for controlling the state of the position adjusting component according to the angle information, so that the included angle between the near-field antenna and the second device is smaller than or equal to a preset angle.
7. The near field communication module of claim 6, the control component comprising a motion control module and a master control module;
the motion control module is connected with the position adjusting component and used for controlling the state of the position adjusting component;
The main control module is connected with the sensor assembly and the motion control module, and is used for generating a control signal according to the angle information of the second device detected by the sensor assembly and sending the control signal to the motion control module so that the motion control module controls the state of the position adjusting assembly according to the control signal.
8. The near field communication module of claim 1, the carrier support having a shielding film thereon, the shielding film being located between the near field antenna and the carrier support.
9. The near field communication module of claim 1, the position adjustment assembly comprising a number of linear actuators.
10. The near field communication module of claim 9, wherein the position adjustment assembly comprises at least three linear actuators, each of which is uniformly distributed.
11. The near field communication module of claim 9, the position adjustment assembly further comprising a base, the first end of the linear actuator being coupled to the base, the second end of the linear actuator being coupled to the carrier support, the linear actuator being positioned between the base and the carrier support.
12. The near field communication module of claim 11, wherein the first end of the linear actuator is connected to the base via a universal joint, and/or wherein the second end of the linear actuator is connected to the carrier support via a universal joint.
13. The control method of the near field communication is applied to a near field communication module capable of being self-adaptive, the near field communication module comprises a near field antenna for near field communication, a position adjusting component and a control component, and the method comprises the following steps:
acquiring state information of a near field communication module, wherein the state information comprises at least one of information of signal intensity of a near field antenna and position information of a second device which performs near field communication with the near field communication module;
Generating a control signal according to the state information;
the control signal is sent to the position adjusting component, the position adjusting component adjusts the state according to the control signal so that the near-field antenna located on the position adjusting component reaches a target position, the target position meets at least one condition that the external interference signal intensity received by the near-field antenna at the target position is smaller than the external interference signal intensity received by the near-field antenna at the last position, the signal intensity of near-field communication between the near-field antenna and the second device at the target position meets near-field communication requirements, and the included angle between the near-field antenna and the second device at the target position is smaller than or equal to a preset angle.
14. The method of claim 13, the method further comprising:
generating a plurality of angle control signals according to a plurality of different preset angles;
Transmitting the plurality of angle control signals to the position adjusting component so that the position adjusting component adjusts the near-field antenna to the positions of the different preset angles according to the plurality of angle control signals;
The obtaining the state information of the near field communication module includes:
Acquiring interference signals of the near-field antenna at the positions of the preset angles;
the generating a control signal according to the state information includes:
determining a target interference signal with minimum signal strength from the interference signals;
and generating a control signal according to the preset angle corresponding to the target interference signal, wherein the control signal is used for enabling the near-field antenna to be positioned at the position of the preset angle corresponding to the target interference signal.
15. The method of claim 14, the method further comprising:
Determining the position information of an interference source according to each interference signal;
And generating prompt information for eliminating the interference source based on the position information, wherein the prompt information comprises the position information of the interference source.
16. The method of claim 13, the status information comprising information of signal strength of near field communication of the near field antenna with the second device;
the generating a control signal according to the state information includes:
Generating a first control signal if the signal strength of near field communication between the near field antenna and the second device is greater than or equal to a first preset threshold value;
Or if the signal strength is smaller than or equal to a second preset threshold value, generating a second control signal, wherein the second control signal is used for moving the near-field antenna to a direction approaching to the second device.
17. The method of claim 16, wherein the position adjustment component moves the near field antenna from a first position to a second position by a first preset step size according to the first control signal, the method further comprising:
acquiring an induction signal of the near field antenna at the second position;
if the signal intensity of the induction signal at the second position is smaller than the first preset threshold value, the position adjusting component stops moving, so that the near-field antenna is kept at the second position;
If the signal intensity of the induction signal at the second position is greater than or equal to the first preset threshold value, generating a third control signal; the position adjusting part moves the near-field antenna from the second position to a direction away from the second device according to a third preset step length according to the third control signal;
Or the position adjusting component moves the near-field antenna from the first position to the third position according to the second preset step length according to the second control signal, and the method further comprises the following steps:
Acquiring an induction signal of the near-field antenna at the third position;
If the signal intensity of the induction signal at the third position is greater than the second preset threshold value, the position adjusting component stops moving, so that the near-field antenna is kept at the third position;
and the position adjusting component moves the near-field antenna from the third position to a direction approaching to the second device according to a fourth preset step length according to the fourth control signal.
18. The method of claim 13, the obtaining status information of the near field communication module, comprising:
Acquiring angle information of the second device relative to the near field communication module;
the generating a control signal according to the state information includes:
and generating a control signal according to the angle information, wherein the control signal is used for enabling the included angle between the near-field antenna and the second device to be smaller than or equal to a preset angle.
19. A near field communication device comprising the near field communication module of any one of claims 1 to 12 or being capable of performing the control method of near field communication of any one of claims 13 to 18.
20. A computing device comprising a memory, a processor and computer instructions stored on the memory and executable on the processor, when executing the computer instructions, implementing the steps of the control method of near field communication of any one of claims 13 to 18.
CN202511598925.5A 2025-11-04 2025-11-04 An adaptive near-field communication module, control method, and device Pending CN121055985A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202511598925.5A CN121055985A (en) 2025-11-04 2025-11-04 An adaptive near-field communication module, control method, and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202511598925.5A CN121055985A (en) 2025-11-04 2025-11-04 An adaptive near-field communication module, control method, and device

Publications (1)

Publication Number Publication Date
CN121055985A true CN121055985A (en) 2025-12-02

Family

ID=97807556

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202511598925.5A Pending CN121055985A (en) 2025-11-04 2025-11-04 An adaptive near-field communication module, control method, and device

Country Status (1)

Country Link
CN (1) CN121055985A (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010118814A (en) * 2008-11-12 2010-05-27 Panasonic Corp Antenna device and rfid system using the same
US20120329389A1 (en) * 2011-06-27 2012-12-27 Broadcom Corporation Measurement and Reporting of Received Signal Strength in NFC-Enabled Devices
US20130316690A1 (en) * 2012-05-23 2013-11-28 Htc Corporation Systems and Methods for Interacting with Portable Electronic Devices
CN110224725A (en) * 2019-05-30 2019-09-10 Oppo(重庆)智能科技有限公司 Near field communication method, terminal and storage medium
CN110915144A (en) * 2018-05-02 2020-03-24 华为技术有限公司 A kind of NFC card swiping control method and terminal device
US20210175930A1 (en) * 2018-08-20 2021-06-10 Continental Automotive France Device for detecting an item of electronic equipment and for communicating with two near-field communication antennae
CN115411521A (en) * 2022-09-23 2022-11-29 维沃移动通信有限公司 Position adjusting method and device of Near Field Communication (NFC) antenna, electronic equipment and medium
CN222423688U (en) * 2024-05-23 2025-01-28 励识科技(南京)有限公司 An NFC detection device capable of adjusting the fitting distance

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010118814A (en) * 2008-11-12 2010-05-27 Panasonic Corp Antenna device and rfid system using the same
US20120329389A1 (en) * 2011-06-27 2012-12-27 Broadcom Corporation Measurement and Reporting of Received Signal Strength in NFC-Enabled Devices
US20130316690A1 (en) * 2012-05-23 2013-11-28 Htc Corporation Systems and Methods for Interacting with Portable Electronic Devices
CN110915144A (en) * 2018-05-02 2020-03-24 华为技术有限公司 A kind of NFC card swiping control method and terminal device
US20210175930A1 (en) * 2018-08-20 2021-06-10 Continental Automotive France Device for detecting an item of electronic equipment and for communicating with two near-field communication antennae
CN110224725A (en) * 2019-05-30 2019-09-10 Oppo(重庆)智能科技有限公司 Near field communication method, terminal and storage medium
CN115411521A (en) * 2022-09-23 2022-11-29 维沃移动通信有限公司 Position adjusting method and device of Near Field Communication (NFC) antenna, electronic equipment and medium
CN222423688U (en) * 2024-05-23 2025-01-28 励识科技(南京)有限公司 An NFC detection device capable of adjusting the fitting distance

Similar Documents

Publication Publication Date Title
US12219631B2 (en) Controlling electronic devices based on wireless ranging
CN215499054U (en) electronic device
US11472038B2 (en) Multi-device robot control
US11177698B2 (en) Wireless power transmitter and control method therefor
KR102406327B1 (en) Device and operating method thereof
US11169640B2 (en) Electronic device and operating method therefor
KR102656655B1 (en) Electronic device for performing operation based on a moving direction of an external electronic device and method for the same
KR20140134562A (en) Method and divece for controlling a communication unit using a magnetic sensor
EP2965299B1 (en) Modifying functionality based on distances between devices
EP3710910B1 (en) Multi-panel computing device having integrated magnetic coupling structure(s)
US10365820B2 (en) Electronic device and touch gesture control method thereof
CN109104521B (en) Proximity state correction method, device, mobile terminal and storage medium
KR102743762B1 (en) Display apparatus and method for controlling thereof
EP3767573B1 (en) Electronic device and method for controlling external electronic device
CN106331376A (en) Power saving method and mobile terminal
US12248057B2 (en) Method for providing service related to electronic device by forming zone, and device therefor
US20240243683A1 (en) Electronic apparatus including flexible display
US20210200189A1 (en) Method for determining movement of electronic device and electronic device using same
CN121055985A (en) An adaptive near-field communication module, control method, and device
KR102551209B1 (en) Electronic device for controlling an output of an antenna using auto phase control of communication module and method for the same
KR102868754B1 (en) Electronic device and method for dispalying electronic pen pointer in the same
EP4361783A1 (en) Electronic device having flexible display
US11962169B2 (en) Wireless power transmission device transmitting charging power to wireless power receiving device and method of operating the same
CN110050249B (en) Input method and intelligent terminal equipment
CN115912682A (en) Wireless charging method, wireless charging equipment, intelligent terminal and storage medium

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