Antenna dynamic switching method, method and system
Patent Information
- Application Number
- CN202610566488.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-04-27
- Publication Date
- 2026-08-18
AI Technical Summary
额外增加一根RFID专用天线会进一步压缩本就有限的天线布局空间,导致天线间距无法保证,耦合增强,辐射效率和隔离度恶化;且密集的天线布局使得RFID天线与移动通信天线之间容易产生近场耦合或谐波干扰,从而降低RFID读取距离和成功率
[0016] In this embodiment, the activation status of the RFID function in the terminal device is obtained; when the activation status is determined to be enabled, the first antenna in the mobile communication module is controlled to connect to the RFID reader, and the second antenna in the mobile communication module is controlled to connect to the main transceiver path of the mobile communication module, and the diversity reception path of the mobile communication module is released; when the activation status is determined to be disabled, the first antenna is controlled to connect to the main transceiver path, and the second antenna is controlled to switch to the diversity reception path connected to the mobile communication module.
Smart Images

Figure CN122601028A_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of communication technology, and more specifically, to a method and system for dynamic antenna switching. Background Technology
[0002] With the development of mobile communication technology, especially the arrival of the 5G era, mobile terminal devices (such as mobile phones and industrial handheld terminals) need to support more and more wireless communication standards, including GSM (Global System for Mobile Communications), 4G LTE (4th Generation Long Term Evolution), 5G NR (5th Generation New Radio), and GPS (Global Positioning System). To meet the requirements of high speed, multiple frequency bands, and MIMO (Multiple-Input Multiple-Output), the number of antennas inside terminal devices has increased significantly, antenna layout space is becoming increasingly tight, and electromagnetic interference between antennas is becoming increasingly serious.
[0003] Meanwhile, Radio Frequency Identification (RFID) technology is widely used in industrial scenarios such as asset management, logistics tracking, and warehousing inventory. With the continuous enhancement of mobile terminal processing capabilities, integrating RFID readers into mobile communication terminals has become a development trend. After integration, the terminal device can simultaneously possess RFID tag reading and wide area network (WAN) communication capabilities, achieving real-time data processing of "collection and upload." However, integrating RFID readers into mobile communication terminals requires equipping the RFID with a dedicated antenna. Adding an extra dedicated RFID antenna further compresses the already limited antenna layout space, leading to compromised antenna spacing, increased coupling, and deterioration of radiation efficiency and isolation. Furthermore, the dense antenna layout makes it easy for near-field coupling or harmonic interference to occur between the RFID antenna and the mobile communication antenna, thereby reducing the RFID reading distance and success rate. Summary of the Invention
[0004] This disclosure provides at least one method and system for dynamic antenna switching.
[0005] In a first aspect, embodiments of this disclosure provide an antenna dynamic switching method applied to a terminal device integrating an RFID reader and a mobile communication module, comprising: obtaining the activation status of the RFID function in the terminal device; when the activation status is determined to be enabled, controlling the first antenna in the mobile communication module to connect to the RFID reader, controlling the second antenna in the mobile communication module to connect to the main transceiver path of the mobile communication module, and releasing the diversity reception path of the mobile communication module; when the activation status is determined to be disabled, controlling the first antenna to connect to the main transceiver path, and controlling the second antenna to switch to the diversity reception path connected to the mobile communication module.
[0006] In one optional implementation, controlling the first antenna in the mobile communication module to connect to the RFID reader and controlling the second antenna in the mobile communication module to connect to the main transceiver path of the mobile communication module includes: when the enabled state is determined to be enabled, outputting a first level to the control terminal of the switch module; wherein the first level is used to trigger the switch module to connect the first antenna to the RFID reader and the second antenna to the main transceiver path; and configuring corresponding tuning codes for the first antenna and the second antenna.
[0007] In one optional implementation, configuring corresponding tuning codes for the first antenna and the second antenna includes: configuring a first tuning code for the first antenna and a second tuning code for the second antenna through a preset communication interface; wherein the first tuning code is used to adjust the antenna tuning parameters of the first antenna to match the operating frequency band of the RFID reader, and the second tuning code is used to adjust the antenna tuning parameters of the second antenna to match the operating frequency band of the main transceiver path.
[0008] In one optional implementation, the method further includes: when the RFID function is detected to switch from enabled to disabled, controlling the first antenna to switch from the RFID reader to the main transceiver path, and controlling the second antenna to switch from the main transceiver path to the diversity reception path.
[0009] In one optional implementation, controlling the first antenna to switch from the RFID reader to the main transceiver path and controlling the second antenna to switch from the main transceiver path to the diversity reception path includes: when the RFID function's enabled state is detected to switch from enabled to disabled, outputting a second level to the control terminal of the switching module; wherein the second level is used to trigger the switching module to switch the first antenna from the RFID reader to the main transceiver path and to switch the second antenna from the main transceiver path to the diversity reception path; and configuring corresponding tuning codes for the first and second antennas.
[0010] In one optional implementation, configuring corresponding tuning codes for the first antenna and the second antenna includes: sending a first recovery tuning code that matches the operating frequency band of the main transceiver path to the first antenna via a preset communication interface, and sending a second recovery tuning code that matches the operating frequency band of the diversity reception path to the second antenna.
[0011] In one optional implementation, the mobile communication module is a GSM communication module, the first antenna includes a main antenna, and the second antenna includes a cluster antenna.
[0012] Secondly, embodiments of this disclosure provide an antenna dynamic switching system applied to a terminal device integrating a mobile communication module, comprising: a first antenna and a second antenna, an RFID reader / writer, a mobile communication module, and a control module, wherein the mobile communication module includes a main transceiver path and a diversity receiving path; the control module is configured to: when the enabled state of the RFID reader / writer is determined to be enabled, control the first antenna in the mobile communication module to connect to the RFID reader / writer, control the second antenna in the mobile communication module to connect to the main transceiver path of the mobile communication module, and release the diversity receiving path of the mobile communication module; and when the enabled state is determined to be disabled, control the first antenna to connect to the main transceiver path, and control the second antenna to switch to the diversity receiving path connected to the mobile communication module.
[0013] In one optional embodiment, the antenna dynamic switching system further includes: a switch module; wherein the switch module is connected to a first antenna, a second antenna, an RFID reader / writer, a main transceiver path, and a diversity receiving path; and a control module configured to: when the enabled state is determined to be enabled, output a first level to the control terminal of the switch module; wherein the first level is used to trigger the switch module to connect the first antenna to the RFID reader / writer and the second antenna to the main transceiver path; and when the enabled state of the RFID function is detected to switch from enabled to disabled, control the GPIO pin of the switch module to output a second level; wherein the second level is used to trigger the switch module to switch the first antenna from the RFID reader / writer to the connection to the main transceiver path and switch the second antenna from the main transceiver path to the connection to the diversity receiving path.
[0014] In one optional implementation, the control module is further configured to: after outputting a first level, configure a first tuning code matching the RFID frequency band for the first antenna through a preset communication interface, and configure a second tuning code matching the main transceiver channel frequency band for the second antenna; and after outputting a second level, configure a first recovery tuning code matching the main transceiver channel frequency band for the first antenna through a preset communication interface, and configure a second recovery tuning code matching the diversity reception channel frequency band for the second antenna.
[0015] Thirdly, embodiments of this disclosure also provide an electronic device, including: a processor, a memory, and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor communicates with the memory via the bus, and when the machine-readable instructions are executed by the processor, the steps of the first aspect above, or any possible implementation of the first aspect, are performed.
[0016] In this embodiment, the activation status of the RFID function in the terminal device is obtained; when the activation status is determined to be enabled, the first antenna in the mobile communication module is controlled to connect to the RFID reader, and the second antenna in the mobile communication module is controlled to connect to the main transceiver path of the mobile communication module, and the diversity reception path of the mobile communication module is released; when the activation status is determined to be disabled, the first antenna is controlled to connect to the main transceiver path, and the second antenna is controlled to switch to the diversity reception path connected to the mobile communication module.
[0017] In the above embodiments, by dynamically switching the connection targets of the first antenna and the second antenna according to the activation status of the RFID function, the first antenna is switched to be used by the RFID reader when the RFID is enabled, and the second antenna temporarily assumes the function of the first antenna. When the RFID is disabled, the original connection targets of the first antenna and the second antenna are restored. This can achieve the coexistence of RFID and mobile communication without adding a dedicated antenna. It avoids antenna layout congestion and interference, ensures uninterrupted mobile communication services, and makes full use of idle antenna resources. It has the advantages of simple structure, low cost and minimal impact on performance.
[0018] To make the above-mentioned objects, features and advantages of this disclosure more apparent and understandable, preferred embodiments are described below in detail with reference to the accompanying drawings. Attached Figure Description
[0019] To more clearly illustrate the technical solutions of the embodiments of this disclosure, the accompanying drawings used in the embodiments will be briefly described below. These drawings are incorporated in and constitute a part of this specification. They illustrate embodiments conforming to this disclosure and, together with the specification, serve to explain the technical solutions of this disclosure. It should be understood that the following drawings only show some embodiments of this disclosure and should not be considered as limiting the scope. Those skilled in the art can obtain other related drawings based on these drawings without creative effort.
[0020] Figure 1 A flowchart of an antenna dynamic switching method provided by an embodiment of this disclosure is shown;
[0021] Figure 2 A schematic diagram of an antenna dynamic switching system provided in an embodiment of this disclosure is shown; Figure 3 A schematic diagram of another antenna dynamic switching system provided in an embodiment of this disclosure is shown; Figure 4 A schematic diagram of yet another antenna dynamic switching system provided in an embodiment of this disclosure is shown; Figure 5 A schematic diagram of an electronic device provided in an embodiment of the present disclosure is shown. Detailed Implementation
[0022] To make the objectives, technical solutions, and advantages of the embodiments of this disclosure clearer, the technical solutions of the embodiments of this disclosure will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this disclosure, and not all of them. The components of the embodiments of this disclosure described and shown in the accompanying drawings can generally be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of this disclosure provided in the accompanying drawings is not intended to limit the scope of the claimed disclosure, but merely represents selected embodiments of this disclosure. All other embodiments obtained by those skilled in the art based on the embodiments of this disclosure without inventive effort are within the scope of protection of this disclosure.
[0023] It should be noted that similar labels and letters in the following figures indicate similar items. Therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures.
[0024] In this document, the term "and / or" merely describes a relationship, indicating that three relationships can exist. For example, A and / or B can represent three cases: A alone, A and B simultaneously, and B alone. Furthermore, the term "at least one" in this document means any combination of at least two of any one or more elements. For example, including at least one of A, B, and C can mean including any one or more elements selected from the set consisting of A, B, and C.
[0025] RFID modules have an ultra-high frequency range of 860MHz to 960MHz. When integrated into WAN mobile devices, a separate antenna needs to be designed for the RFID module. However, since current 5G WAN mobile devices require multiple antennas, designing an additional antenna for RFID increases the complexity of the antenna design on the circuit board and also increases the antenna's anti-interference capability.
[0026] To address the aforementioned issues, this invention utilizes the similarity between the frequency range of RFID and the low-frequency range of 2G GSM, designing a single antenna for both RFID and GSM bands to reduce antenna hardware design and minimize interference between antennas. In this embodiment, firstly, the activation status of the RFID function in the terminal device is obtained; when the activation status is determined to be enabled, the first antenna in the mobile communication module is connected to the RFID reader, and the second antenna in the mobile communication module is connected to the main transceiver path of the mobile communication module, while the diversity reception path of the mobile communication module is released; when the activation status is determined to be disabled, the first antenna is connected to the main transceiver path, and the second antenna is switched to connect to the diversity reception path of the mobile communication module.
[0027] In the above embodiments, by dynamically switching the connection targets of the first antenna and the second antenna according to the activation status of the RFID function, the first antenna is switched to be used by the RFID reader when the RFID is enabled, and the second antenna temporarily assumes the function of the first antenna. When the RFID is disabled, the original connection targets of the first antenna and the second antenna are restored. This can achieve the coexistence of RFID and mobile communication without adding a dedicated antenna. It avoids antenna layout congestion and interference, ensures uninterrupted mobile communication services, and makes full use of idle antenna resources. It has the advantages of simple structure, low cost and minimal impact on performance.
[0028] To facilitate understanding of this embodiment, a detailed description of the antenna dynamic switching method disclosed in this disclosure will be provided first. The execution entity of the antenna dynamic switching method provided in this disclosure is generally an electronic device with a certain computing capability. In some possible implementations, the antenna dynamic switching method can be implemented by a processor calling computer-readable instructions stored in memory.
[0029] See Figure 1 The diagram shows a flowchart of an antenna dynamic switching method provided in an embodiment of this disclosure. The method includes steps S101 to S103, wherein: S101: Obtain the RFID function activation status in the terminal device.
[0030] The terminal device's operating system runs an RFID service process or driver, which maintains a state variable representing the RFID's operational status. When an upper-layer application needs to initiate RFID reading or writing, it calls the interface provided by the RFID reader / writer. This interface updates the state variable to "enabled" and notifies the control module. The control module periodically polls this state variable to obtain real-time information on whether the RFID function is enabled.
[0031] Here, the activation status obtained by the terminal device is either RFID function enabled or RFID function disabled.
[0032] S102: When the enabled state is determined to be enabled, control the first antenna in the mobile communication module to connect to the RFID reader, control the second antenna in the mobile communication module to connect to the main transceiver path of the mobile communication module, and release the diversity reception path of the mobile communication module.
[0033] Here, the mobile communication module is a GSM communication module. The normal frequency band of the GSM communication module includes two antennas, namely the first antenna and the second antenna. The first antenna includes a main antenna, and the second antenna includes a cluster antenna.
[0034] The RFID and GSM communication modules sharing an antenna means that the RFID reader and the GSM host share a single antenna, which reduces the number of antennas, facilitates antenna design, and reduces interference.
[0035] When the control module detects that the RFID function is enabled, it controls the first antenna in the mobile communication module to switch to connect to the RFID reader / writer, and controls the second antenna in the mobile communication module to switch to connect to the primary transceiver path, thereby releasing the diversity reception path of the mobile communication module. Specifically, the control module can control the switching state of the switch module to switch the first antenna to connect to the RFID reader / writer and control the second antenna to switch to connect to the primary transceiver path.
[0036] This processing method enables the main antenna of the GSM communication module to be switched to the RFID reader, and the GSM communication module to be switched to the diversity antenna. At this time, the original diversity antenna is used as the main antenna, so the GSM communication module can be used normally even without the diversity antenna.
[0037] S103: When the enabled state is determined to be disabled, control the first antenna to connect to the main transceiver path and control the second antenna to switch to the diversity reception path connected to the mobile communication module.
[0038] When the control module detects that the RFID function is disabled, it controls the first antenna to connect to the main transceiver path according to the default settings, and controls the second antenna to switch to the diversity reception path connected to the mobile communication module.
[0039] In the above embodiments, by dynamically switching the connection targets of the first antenna and the second antenna according to the activation status of the RFID function, the first antenna is switched to be used by the RFID reader when the RFID is enabled, and the second antenna temporarily assumes the function of the first antenna. When the RFID is disabled, the original connection targets of the first antenna and the second antenna are restored. This can achieve the coexistence of RFID and mobile communication without adding a dedicated antenna. It avoids antenna layout congestion and interference, ensures uninterrupted mobile communication services, and makes full use of idle antenna resources. It has the advantages of simple structure, low cost and minimal impact on performance.
[0040] In an optional implementation, step S102 above controls the first antenna in the mobile communication module to connect to the RFID reader / writer, and controls the second antenna in the mobile communication module to connect to the main transceiver path of the mobile communication module, specifically including: S1021: When the enabled state is determined to be enabled, a first level is output to the control terminal of the switch module; wherein, the first level is used to trigger the switch module to connect the first antenna to the RFID reader and the second antenna to the main transceiver path; S1022: Configure the corresponding tuning codes for the first and second antennas.
[0041] Here, a switch module is positioned between the antennas (first and second antennas) and the RFID reader / writer, and between the main transceiver path and the diversity receiver path, to control the access targets of the first and second antennas. For example, when the RFID function is enabled, the access target of the first antenna is the RFID reader / writer, and the access target of the second antenna is the main transceiver path. When the RFID function is disabled, the access target of the second antenna is the diversity receiver path, and the access target of the first antenna is the main transceiver path.
[0042] When the RFID function is confirmed to be enabled, a first level (e.g., a low level) can be output to the control terminal of the switch module. At this time, the main antenna switches to connect to the RFID reader / writer, and the diversity antenna switches to connect to the main transceiver path.
[0043] In this embodiment, there can be multiple switch modules, for example, three switch modules, referred to as the first switch, the second switch, and the third switch. The first switch is connected to the first antenna (ANT0), the RFID reader / writer, and the modem, respectively. The second switch is connected to the second antenna (ANT1) and the modem, respectively. Specifically, the first and second switches are also connected to the output of a power amplifier (PA) via the third switch, and the input of the power amplifier (PA) is connected to the modem.
[0044] The above connection method allows the first antenna (ANT0) to be selectively connected to the output of an RFID reader or a power amplifier (PA) via a first switch, and the second antenna (ANT1) to be selectively connected to the diversity receive input of a modem or the output of the power amplifier (PA) via a second switch; the input of the power amplifier (PA) can be selectively connected to the main transmit output of the modem via a third switch. When the enabled state is determined to be enabled, a first level (e.g., a low level) is output to the control terminals of the first, second, and third switches. At this time, the path between the first antenna and the RFID reader is opened, and the path between the modem, the power amplifier (PA), and the second antenna (ANT1) is opened.
[0045] In the embodiments of this application, each switch (i.e., the first switch, the second switch, and the third switch) includes three connection terminals, namely a common terminal, a first connection terminal (L connection terminal), and a second connection terminal (H connection terminal).
[0046] Specifically, such as Figure 2 As shown, the common terminal of the first switch is connected to the first antenna (ANT0), the first connection terminal (L connection terminal) of the first switch is connected to the RFID reader, and the second connection terminal (H connection terminal) of the first switch is connected to the output terminal of the power amplifier (PA). The common terminal of the second switch is connected to the second antenna (ANT1), the second connection terminal (H connection terminal) of the second switch is connected to the diversity reception input terminal of the modem, and the first connection terminal (L connection terminal) of the second switch is connected to the first connection terminal (L connection terminal) of the third switch. The common terminal of the third switch is connected to the input terminal of the power amplifier (PA), and the second connection terminal (H connection terminal) of the third switch is connected to the second connection terminal (H connection terminal) of the first switch.
[0047] In specific implementation, when the RFID function is enabled, all three switches are set to the L state (i.e., outputting a low level to the control terminals of the first, second, and third switches). At this time, the L path of the first switch is open, connecting ANT0 to the RFID reader / writer; the L path of the second switch is open, connecting ANT1 to the PA output terminal; and the third switch connects the PA input terminal to the modem main transmit output terminal, thereby realizing antenna allocation in the RFID enabled state. When the RFID function is disabled, all three switches are set to the H state (i.e., outputting a high level to the control terminals of the first, second, and third switches). At this time, the H path of the first switch is open, connecting ANT0 to the PA output terminal; and the H path of the second switch is open, connecting ANT1 to the modem diversity receive input terminal.
[0048] It should be noted here that the master set send / receive path includes, for example: Figure 2 The main transmit / receive channel in the medium power amplifier (PA) and modem is used to connect an antenna for bidirectional communication; the diversity receive path includes the diversity receive channel in the modem, which is used to connect an antenna for receive-only diversity functionality.
[0049] After the physical antenna switching is completed, software is also needed to switch the antenna tuner coder parameters. Different network frequencies require the corresponding tuner code to function properly. Specifically, the control module can reconfigure the antenna tuning parameters of the first and second antennas to ensure that the antennas have optimal radiation efficiency and matching status in their respective new operating frequency bands. This part can be implemented through the AOL interface; for example, the control module can switch the tuner code by sending an AOLCommand to the modem.
[0050] With the above configuration, even if the physical connection of the antenna is switched, its electrical performance can still match the current connected radio frequency path, thereby ensuring the RFID reading distance and the communication quality of mobile communication.
[0051] In an optional implementation, step S1022 above configures corresponding tuning codes for the first antenna and the second antenna, specifically including the following steps: A first tuning code is configured for the first antenna and a second tuning code is configured for the second antenna via a preset communication interface. The first tuning code is used to adjust the antenna tuning parameters of the first antenna to match the operating frequency band of the RFID reader, and the second tuning code is used to adjust the antenna tuning parameters of the second antenna to match the operating frequency band of the main transceiver path.
[0052] In this embodiment, the control module sends an AOL command to the modem via the AOL interface (i.e., the preset communication interface). This command carries identifiers for the tuning codes corresponding to the first and second antennas, respectively. After receiving the AOL command, the modem reads the corresponding antenna tuning parameters according to the identifiers of the tuning codes and writes them into the first and second antenna tuners via the control bus. Specifically, the first tuning code configured for the first antenna is used to adjust the matching network of the first antenna to the RFID UHF band (860MHz~960MHz), enabling the first antenna to efficiently transmit carrier waves and receive tag-reflected signals when used as an RFID reader antenna. The second tuning code configured for the second antenna is used to adjust the matching network of the second antenna to the operating frequency band of the GSM main transceiver path (such as the GSM low-frequency band), ensuring that the second antenna, when temporarily assuming the function of the main antenna, can both effectively radiate transmit power and maintain the sensitivity of the received signal.
[0053] Here, the antenna tuner of the first antenna ANT0 has two sets of tuning parameters pre-stored: The tuning parameters for Index 0 (WWAN mode) correspond to the matching state of the low-frequency band of GSM (e.g., 824MHz to 960MHz), and are used for transmission and reception when ANT0 is used as the main antenna of GSM.
[0054] The tuning parameters for Index 1 (RFID mode) are the matching states for the corresponding RFID UHF band (e.g., 860MHz to 960MHz), used for carrier transmission and tag reflection reception when ANT0 is used as an RFID reader antenna.
[0055] When the RFID function is disabled (default state), the control module instructs the modem via AOL command to set the tuning code of ANT0 to index 0 (WWAN), enabling ANT0 to achieve optimal radiation efficiency in the GSM band. When the RFID function is enabled, the control module instructs the modem via AOL command to switch the tuning code of ANT0 to index 1 (RFID), enabling ANT0 to achieve optimal impedance matching in the RFID band, thereby ensuring RFID reading distance and sensitivity.
[0056] The tuner of the second antenna, ANT1, needs to store a set of tuning parameters that simultaneously cover the transmit (TX) and receive (RX) requirements of the GSM low-frequency band. This is because ANT1 functions as a diversity receive antenna (RX only) by default, and temporarily functions as a master antenna (TX and RX simultaneously) when RFID is enabled. The tuning parameters are optimized to meet the performance requirements of both TX and RX operating modes.
[0057] The above processing method can avoid the additional delay caused by switching tuning parameters, while ensuring that ANT1 can work normally in both roles.
[0058] In an optional implementation, the method further includes the following steps: When the RFID function is detected to switch from enabled to disabled, the first antenna is controlled to switch from the RFID reader to the main transceiver path, and the second antenna is controlled to switch from the main transceiver path to the diversity receiver path.
[0059] Here, after the control module detects that the RFID function is enabled, it can also periodically poll the value of the aforementioned status variable. When the status variable changes to "disabled" or "off", the control module can control the first antenna to switch from RFID to connecting to the main transceiver path, and control the second antenna to switch from the main transceiver path to connecting to the diversity reception path.
[0060] Specifically, the control module can control the switching module, thereby controlling the access targets of the first and second antennas. For example, it can control the switching of the first antenna to access the main transceiver path. Figure 2 As shown, the main transceiver path includes a power amplifier (PA) and the main transmit and receive channels within the modem. The power amplifier (PA) amplifies the uplink signal output from the modem and sends it to the antenna for radiation via a switching module; the downlink signal enters the modem's main receive channel from the antenna via the switching module and a low-noise amplifier (LNA).
[0061] When the RFID function is enabled, the control module controls the switch module to switch the first antenna (ANT0) to the RFID reader, making ANT0 dedicated to the transmission and reception of RFID signals; at the same time, it switches the second antenna (ANT1) to the output of the power amplifier (PA), making ANT1 temporarily take on the function of the GSM main antenna (transmit and receive), while the diversity reception input of the modem is disconnected from ANT1, and the diversity reception function is released.
[0062] When the RFID function is switched from enabled to disabled, the control module controls the switch module to connect the first antenna (ANT0) to the output of the power amplifier (PA) (i.e., the main transceiver path) and the second antenna (ANT1) to the diversity receive input of the modem. At this time, the GSM module operates in normal dual-channel receive mode: ANT0 is responsible for both transmission and reception, while ANT1 only receives diversity signals.
[0063] In this embodiment of the application, the above steps of controlling the first antenna to switch from RFID to connecting to the main transceiver path, and controlling the second antenna to switch from the main transceiver path to connecting to the diversity reception path, include: First, when the RFID function is detected to switch from enabled to disabled, a second level is output to the control terminal of the switch module; wherein, the second level is used to trigger the first antenna of the switch module to switch from RFID to the main transceiver path, and to switch the second antenna from the main transceiver path to the diversity reception path. Next, configure the corresponding tuning codes for the first and second antennas.
[0064] Based on such Figure 2The schematic diagram of the antenna dynamic switching system shows that when the RFID function is detected to switch from enabled to disabled (or off), the control module outputs a second level (e.g., high level) to the control terminals of the first, second, and third switches. At this time, the H-paths of the first, second, and third switches are in the on state, and the L-paths of the first, second, and third switches are in the off state. The on / off state of the H-path and the off state of the L-path can switch the first antenna from RFID to the main transceiver path, and switch the second antenna from the main transceiver path to the diversity reception path.
[0065] In one specific embodiment, when the RFID function is enabled, the L-paths of the three switches (first switch, second switch, and third switch) are turned on (i.e., a low level is output to the control terminals of the first, second, and third switches). The L-path of the first switch connects ANT0 to the RFID reader, the L-path of the second switch connects ANT1 to the PA output terminal, and the L-path of the third switch connects the PA input terminal to the modem main transmit output terminal, thereby realizing antenna allocation in the RFID enabled state. When the RFID function switches from enabled to disabled, the H-paths of the three switches are turned on (i.e., a high level is output to the control terminals of the first, second, and third switches). The H-path of the first switch connects ANT0 to the PA output terminal, and the H-path of the second switch connects ANT1 to the modem diversity receive input terminal, thereby restoring the GSM main + diversity mode.
[0066] After the physical switching of the antennas is completed, the antenna tuning parameters of the first and second antennas need to be reconfigured to ensure that the antennas have the best radiation efficiency and matching status in their respective new operating frequency bands.
[0067] In the above embodiments, by outputting a second level, the antenna connection can be automatically restored to the default dual-channel receiving state after the RFID is turned off, thereby quickly restoring GSM communication performance, reducing power consumption and interference, and the switching process is smooth and imperceptible to the user.
[0068] In one optional implementation, corresponding tuning codes are configured for the first antenna and the second antenna, specifically including: Through a preset communication interface, a first recovery tuning code matching the operating frequency band of the main transceiver path is sent to the first antenna, and a second recovery tuning code matching the operating frequency band of the diversity reception path is sent to the second antenna.
[0069] In this embodiment, the control module sends an AOL command to the modem via the AOL interface. This command carries a recovery tuning code identifier corresponding to the first antenna and the second antenna, respectively. After receiving the AOL command, the modem reads the corresponding antenna tuning parameters according to the tuning code identifier and writes them into the first antenna tuner and the second antenna tuner respectively via the control bus. Specifically, the first recovery tuning code configured for the first antenna is used to adjust the matching network of the first antenna to the low frequency band of GSM (such as 824MHz to 960MHz), so that the first antenna can be used as the GSM main antenna again. The second recovery tuning code configured for the second antenna is used to adjust the matching network of the second antenna to the operating frequency band corresponding to the diversity reception path, so that the second antenna can be used as the diversity reception antenna again, thereby restoring the GSM dual-path reception performance.
[0070] Here, the antenna tuner of the first antenna ANT0 has two sets of tuning parameters pre-stored: The tuning parameters for Index 0 (WWAN mode) correspond to the matching state of the low-frequency band of GSM (e.g., 824MHz to 960MHz), and are used for transmission and reception when ANT0 is used as the main antenna of GSM.
[0071] The tuning parameters for Index 1 (RFID mode) are the matching states for the corresponding RFID UHF band (e.g., 860MHz to 960MHz), used for carrier transmission and tag reflection reception when ANT0 is used as an RFID reader antenna.
[0072] When the RFID function is switched from enabled to disabled, the control module instructs the modem via the AOL command to set the tuning code of ANT0 to index 0 (WWAN), enabling ANT0 to achieve optimal radiation efficiency in the GSM band. When the RFID function is enabled, the control module instructs the modem via the AOL command to switch the tuning code of ANT0 to index 1 (RFID), enabling ANT0 to achieve optimal impedance matching in the RFID band, thereby ensuring RFID reading distance and sensitivity.
[0073] The tuner of the second antenna, ANT1, needs to store a set of tuning parameters that simultaneously cover the transmit (TX) and receive (RX) requirements of the GSM low-frequency band. This is because ANT1 functions as a diversity receive antenna (RX only) by default, and temporarily functions as a master antenna (TX and RX simultaneously) when RFID is enabled. The tuning parameters are optimized to meet the performance requirements of both TX and RX operating modes.
[0074] The above processing method can avoid the additional delay caused by switching tuning parameters, while ensuring that ANT1 can work normally in both roles.
[0075] Reference Figure 3 The diagram shown is a schematic of an antenna dynamic switching system provided in an embodiment of this disclosure. The system includes: a first antenna 301 and a second antenna 302, an RFID reader / writer 303, a mobile communication module 304, and a control module 305. The mobile communication module 304 includes a main transceiver path 3041 and a diversity receiving path 3042.
[0076] Control module 305 is configured as follows: When the RFID reader is determined to be enabled, the first antenna in the mobile communication module is connected to the RFID reader, and the second antenna in the mobile communication module is connected to the main transceiver path of the mobile communication module, and the diversity reception path of the mobile communication module is released; and when the enabled state is determined to be disabled, the first antenna is connected to the main transceiver path, and the second antenna is switched to the diversity reception path connected to the mobile communication module.
[0077] When the control module detects that the RFID function is enabled, it controls the first antenna in the mobile communication module to switch to connect to the RFID reader / writer, and controls the second antenna in the mobile communication module to switch to connect to the primary transceiver path, thereby releasing the diversity reception path of the mobile communication module. Specifically, the control module can control the switching state of the switch module to switch the first antenna to connect to the RFID reader / writer and control the second antenna to switch to connect to the primary transceiver path.
[0078] When the control module detects that the RFID function is disabled, it controls the first antenna to connect to the main transceiver path according to the default settings, and controls the second antenna to switch to the diversity reception path connected to the mobile communication module.
[0079] In the above embodiments, by dynamically switching the connection targets of the first antenna and the second antenna according to the activation status of the RFID function, the first antenna is switched to be used by the RFID reader when the RFID is enabled, and the second antenna temporarily assumes the function of the first antenna. When the RFID is disabled, the original connection targets of the first antenna and the second antenna are restored. This can achieve the coexistence of RFID and mobile communication without adding a dedicated antenna. It avoids antenna layout congestion and interference, ensures uninterrupted mobile communication services, and makes full use of idle antenna resources. It has the advantages of simple structure, low cost and minimal impact on performance.
[0080] In an optional implementation, the antenna dynamic switching system further includes: a switching module 306; wherein, as shown in the figure... Figure 4 As shown, the switch module is connected to the first antenna, the second antenna, the RFID reader, the main transceiver path, and the diversity receiver path, and the switch module is also communicatively connected to the control module.
[0081] The control module is configured as follows: When the enabled state is determined to be enabled, a first level is output to the control terminal of the switch module; wherein, the first level is used to trigger the switch module to connect the first antenna to the RFID reader and the second antenna to the main transceiver path; When the RFID function is detected to switch from enabled to disabled, a second level is output to the switch module; wherein, the second level is used to trigger the switch module to switch the first antenna from the RFID reader to the main transceiver path, and to switch the second antenna from the main transceiver path to the diversity reception path.
[0082] In this embodiment, there can be multiple switch modules, for example, three switch modules, referred to as the first switch, the second switch, and the third switch. The first switch is connected to the first antenna (ANT0), the RFID reader / writer, and the modem, respectively. The second switch is connected to the second antenna (ANT1) and the modem, respectively. Specifically, the first and second switches are also connected to the output of a power amplifier (PA) via the third switch, and the input of the power amplifier (PA) is connected to the modem.
[0083] The above connection method allows the first antenna (ANT0) to be selectively connected to the output of an RFID reader or a power amplifier (PA) via a first switch, and the second antenna (ANT1) to be selectively connected to the diversity receive input of a modem or the output of the power amplifier (PA) via a second switch; the input of the power amplifier (PA) can be selectively connected to the main transmit output of the modem via a third switch. When the enabled state is determined to be enabled, a first level (e.g., a low level) is output to the control terminals of the first, second, and third switches. At this time, the path between the first antenna and the RFID reader is opened, and the path between the modem, the power amplifier (PA), and the second antenna (ANT1) is opened.
[0084] In the embodiments of this application, each switch (i.e., the first switch, the second switch, and the third switch) includes three connection terminals, namely a common terminal, a first connection terminal (L connection terminal), and a second connection terminal (H connection terminal).
[0085] Specifically, such as Figure 2As shown, the common terminal of the first switch is connected to the first antenna (ANT0), the first connection terminal (L connection terminal) of the first switch is connected to the RFID reader, and the second connection terminal (H connection terminal) of the first switch is connected to the output terminal of the power amplifier (PA). The common terminal of the second switch is connected to the second antenna (ANT1), the second connection terminal (H connection terminal) of the second switch is connected to the diversity reception input terminal of the modem, and the first connection terminal (L connection terminal) of the second switch is connected to the first connection terminal (L connection terminal) of the third switch. The common terminal of the third switch is connected to the input terminal of the power amplifier (PA), and the second connection terminal (H connection terminal) of the third switch is connected to the second connection terminal (H connection terminal) of the first switch.
[0086] In specific implementation, when the RFID function is enabled, all three switches are set to the L state (i.e., outputting a low level to the control terminals of the first, second, and third switches). At this time, the L path of the first switch is open, connecting ANT0 to the RFID reader / writer; the L path of the second switch is open, connecting ANT1 to the PA output terminal; and the third switch connects the PA input terminal to the modem main transmit output terminal, thereby realizing antenna allocation in the RFID enabled state. When the RFID function is switched to disabled, all three switches are set to the H state (i.e., outputting a high level to the control terminals of the first, second, and third switches). At this time, the H path of the first switch is open, connecting ANT0 to the PA output terminal; and the H path of the second switch is open, connecting ANT1 to the modem diversity receive input terminal.
[0087] In this embodiment of the application, the control module is further configured to: After outputting the first level, the first antenna is configured with a first tuning code that matches the RFID frequency band through a preset communication interface, and the second antenna is configured with a second tuning code that matches the main transceiver channel frequency band. After outputting the second level, the first antenna is configured with a first recovery tuning code that matches the main transceiver channel frequency band through a preset communication interface, and the second antenna is configured with a second recovery tuning code that matches the diversity reception channel frequency band.
[0088] In this embodiment, after outputting the first level, the control module sends an AOL command to the modem via the AOL interface (a preset communication interface). This command carries identifiers for the tuning codes corresponding to the first and second antennas, respectively. Upon receiving the AOL command, the modem reads the corresponding antenna tuning parameters based on the tuning code identifiers and writes them into the first and second antenna tuners via the control bus. Specifically, the first tuning code configured for the first antenna adjusts the matching network of the first antenna to the RFID UHF band (860MHz~960MHz), enabling the first antenna to efficiently transmit carrier waves and receive tag-reflected signals when used as an RFID reader antenna. The second tuning code configured for the second antenna adjusts the matching network of the second antenna to the operating frequency band of the GSM main transceiver path (such as the GSM low-frequency band), ensuring that the second antenna, when temporarily assuming the function of a main antenna, can both effectively radiate transmit power and maintain the sensitivity of the received signal.
[0089] After outputting the second level, the control module sends an AOL command to the modem via the AOL interface. This command carries recovery tuning code identifiers corresponding to the first and second antennas, respectively. Upon receiving the AOL command, the modem reads the corresponding antenna tuning parameters based on the tuning code identifiers and writes them into the first and second antenna tuners via the control bus. Specifically, the first recovery tuning code configured for the first antenna adjusts the matching network to the low-frequency band of GSM (e.g., 824MHz–960MHz), allowing the first antenna to be used again as the GSM primary antenna. The second recovery tuning code configured for the second antenna adjusts the matching network to the operating frequency band corresponding to the diversity reception path, allowing the second antenna to be used again as a diversity reception antenna, thereby restoring GSM dual-path reception performance.
[0090] Corresponding to Figure 1 In addition to the antenna dynamic switching method in the present disclosure, this embodiment also provides an electronic device 500, such as... Figure 5 The diagram shown is a structural schematic of an electronic device 500 provided in an embodiment of this disclosure, including: The system includes a processor 51, a memory 52, and a bus 53. The memory 52 stores execution instructions and includes main memory 521 and external memory 522. The main memory 521, also called internal memory, temporarily stores the computational data in the processor 51, as well as data exchanged with external memory such as a hard disk. The processor 51 exchanges data with the external memory 522 through the main memory 521. When the electronic device 500 is running, the processor 51 communicates with the memory 52 through the bus 53, causing the processor 51 to execute the following instructions: Obtain the activation status of the RFID function in the terminal device; When the enabled state is determined to be enabled, the first antenna in the mobile communication module is controlled to be connected to the RFID reader, and the second antenna in the mobile communication module is controlled to be connected to the main transceiver path of the mobile communication module, and the diversity reception path of the mobile communication module is released. When the enabled state is determined to be disabled, the first antenna is controlled to connect to the main transceiver path, and the second antenna is controlled to switch to the diversity reception path connected to the mobile communication module.
[0091] This disclosure also provides a computer-readable storage medium storing a computer program, which, when executed by a processor, performs the steps of the antenna dynamic switching method described in the above method embodiments. The storage medium can be a volatile or non-volatile computer-readable storage medium.
[0092] This disclosure also provides a computer program product carrying program code. The program code includes instructions that can be used to execute the steps of the antenna dynamic switching method described in the above method embodiments. For details, please refer to the above method embodiments, which will not be repeated here.
[0093] The aforementioned computer program product can be implemented through hardware, software, or a combination thereof. In one optional embodiment, the computer program product is specifically embodied in a computer storage medium; in another optional embodiment, the computer program product is specifically embodied in a software product, such as a software development kit (SDK), etc.
[0094] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems and devices described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here. In the several embodiments provided in this disclosure, it should be understood that the disclosed systems, devices, and methods can be implemented in other ways. The device embodiments described above are merely illustrative. For example, the division of units is only a logical functional division; in actual implementation, there may be other division methods. Furthermore, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Another point is that the displayed or discussed mutual coupling or direct coupling or communication connection may be through some communication interfaces; the indirect coupling or communication connection of devices or units may be electrical, mechanical, or other forms.
[0095] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0096] In addition, the functional units in the various embodiments of this disclosure can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.
[0097] If the aforementioned functions are implemented as software functional units and sold or used as independent products, they can be stored in a processor-executable, non-volatile, computer-readable storage medium. Based on this understanding, the technical solution of this disclosure, in essence, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this disclosure. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0098] Finally, it should be noted that the above-described embodiments are merely specific implementations of this disclosure, used to illustrate the technical solutions of this disclosure, and not to limit it. The protection scope of this disclosure is not limited thereto. Although this disclosure has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that any person skilled in the art can still modify or easily conceive of changes to the technical solutions described in the foregoing embodiments, or make equivalent substitutions for some of the technical features, within the scope of the technology disclosed in this disclosure. Such modifications, changes, or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this disclosure, and should all be covered within the protection scope of this disclosure. Therefore, the protection scope of this disclosure should be determined by the protection scope of the claims.
Claims
1. A method for dynamic antenna switching, characterized in that, Applications include terminal devices that integrate RFID readers and mobile communication modules, including: Obtain the activation status of the RFID function in the terminal device; When the enabled state is determined to be enabled, the first antenna in the mobile communication module is controlled to be connected to the RFID reader, and the second antenna in the mobile communication module is controlled to be connected to the main transceiver path of the mobile communication module, and the diversity reception path of the mobile communication module is released. When the enabled state is determined to be disabled, the first antenna is controlled to connect to the main transceiver path, and the second antenna is controlled to switch to the diversity reception path connected to the mobile communication module.
2. The method according to claim 1, characterized in that, The control of connecting the first antenna in the mobile communication module to the RFID reader and controlling the second antenna in the mobile communication module to the main transceiver path of the mobile communication module includes: When the enabled state is determined to be enabled, a first level is output to the control terminal of the switch module; wherein, the first level is used to trigger the switch module to connect the first antenna to the RFID reader and the second antenna to the main transceiver path; Configure corresponding tuning codes for the first antenna and the second antenna.
3. The method according to claim 2, characterized in that, The step of configuring corresponding tuning codes for the first antenna and the second antenna includes: A first tuning code is configured for the first antenna and a second tuning code is configured for the second antenna via a preset communication interface; wherein, the first tuning code is used to adjust the antenna tuning parameters of the first antenna to match the operating frequency band of the RFID reader, and the second tuning code is used to adjust the antenna tuning parameters of the second antenna to match the operating frequency band of the main transceiver path.
4. The method according to claim 1, characterized in that, The method further includes: When the activation state of the RFID function is detected to switch from enabled to disabled, the first antenna is controlled to switch from the RFID reader to the main transceiver path, and the second antenna is controlled to switch from the main transceiver path to the diversity receiving path.
5. The method according to claim 4, characterized in that, The step of controlling the first antenna to switch from the RFID reader to the connection of the main transceiver path, and controlling the second antenna to switch from the main transceiver path to the connection of the diversity receiving path, includes: When the activation state of the RFID function is detected to switch from enabled to disabled, a second level is output to the control terminal of the switch module; wherein, the second level is used to trigger the switch module to switch the first antenna from the RFID reader to the connection of the main transceiver path, and to switch the second antenna from the main transceiver path to the connection of the diversity receiving path. Configure corresponding tuning codes for the first antenna and the second antenna.
6. The method according to claim 4, characterized in that, Configure corresponding tuning codes for the first antenna and the second antenna, including: Through a preset communication interface, a first recovery tuning code matching the operating frequency band of the main transceiver path is sent to the first antenna, and a second recovery tuning code matching the operating frequency band of the diversity reception path is sent to the second antenna.
7. The method according to claim 1, characterized in that, The mobile communication module is a GSM communication module, the first antenna includes a master antenna, and the second antenna includes a cluster antenna.
8. An antenna dynamic switching system, characterized in that, An application to a terminal device integrating a mobile communication module, comprising: a first antenna and a second antenna, an RFID reader / writer, a mobile communication module and a control module, wherein the mobile communication module includes a main transceiver path and a diversity receiving path; The control module is configured to: When the RFID reader is determined to be enabled, the first antenna in the mobile communication module is connected to the RFID reader, and the second antenna in the mobile communication module is connected to the main transceiver path of the mobile communication module, and the diversity reception path of the mobile communication module is released; and when the enabled state is determined to be disabled, the first antenna is connected to the main transceiver path, and the second antenna is switched to connect to the diversity reception path of the mobile communication module.
9. The antenna dynamic switching system according to claim 8, characterized in that, The antenna dynamic switching system further includes a switch module; wherein the switch module is connected to the first antenna, the second antenna, the RFID reader, the main transceiver path, and the diversity receiving path, respectively. The control module is configured to: When the enabled state is determined to be enabled, a first level is output to the control terminal of the switch module; wherein, the first level is used to trigger the switch module to connect the first antenna to the RFID reader and the second antenna to the main transceiver path; When the activation state of the RFID function is detected to switch from enabled to disabled, a second level is output to the switch module; wherein, the second level is used to trigger the switch module to switch the first antenna from the RFID reader to the connection of the main transceiver path, and to switch the second antenna from the main transceiver path to the connection of the diversity receiving path.
10. The antenna dynamic switching system according to claim 9, characterized in that, The control module is also configured to: After outputting the first level, a first tuning code matching the RFID frequency band is configured for the first antenna through a preset communication interface, and a second tuning code matching the main transceiver channel frequency band is configured for the second antenna. After outputting the second level, the system configures a first recovery tuning code for the first antenna that matches the frequency band of the main transceiver path through the preset communication interface, and configures a second recovery tuning code for the second antenna that matches the frequency band of the diversity receive path.