Communication mode switching method, device, equipment and module for short-range communication modules
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-07-17
- Publication Date
- 2026-08-14
AI Technical Summary
但是短距离通信设备的通信模式过于单一,不能够满足不同类型设备的短距离通信需求
[0010]本说明书至少一个实施例能够达到以下有益效果:短距离通信模组中可以包含第一通信天线、第二通信天线、标签芯片以及读写芯片。在标签模式下,标签芯片与第一通信天线连接用于被外部读写器设备识别,读写芯片与第二通信天线连接用于向外发射激励信号;在读写模式下,读写芯片与第一通信天线连接用于从外部标签实体中读取短距离通信数据,标签芯片处于非工作状态。能够通过切换与尺寸较大的第一通信天线连接的芯片,使得短距离通信模组能够具有不同的工作模式,以便能够满足不同类型设备的短距离通信需求,避免工作模式过于单一,提高了用户体验的同时,也能够通过尺寸较大的第一通信天线在不同的模式下工作,以保障短距离通信模组具有较大的感应范围。
Smart Images

Figure CN122577922A_ABST
Abstract
Description
Technical Field
[0001] This specification relates to one or more embodiments in the field of short-range communication technology, and particularly to a short-range communication module. This specification also relates to a communication mode switching method for a short-range communication module, a communication mode switching device for a short-range communication module, a computing device, a computer-readable storage medium, and a computer program product. Background Technology
[0002] With the continuous development of short-range communication technology, more and more services are being completed using short-range communication methods, such as mobile payments, access control card swiping, logistics tags, and book lending. However, the communication modes of short-range communication devices are too limited and cannot meet the short-range communication needs of different types of devices. Summary of the Invention
[0003] In view of this, one or more embodiments of this specification provide a communication mode switching method, apparatus, device and module for a short-range communication module to meet the short-range communication needs of different types of devices.
[0004] According to a first aspect of one or more embodiments of this specification, a short-range communication module is provided; the short-range communication module may include a first communication antenna, a second communication antenna, a tag chip, and a read / write chip; in tag mode, the tag chip is connected to the first communication antenna for being identified by an external read / write device, and the read / write chip is connected to the second communication antenna for transmitting an excitation signal; in read / write mode, the read / write chip is connected to the first communication antenna for reading short-range communication data from an external tag entity, and the tag chip is in a non-operating state.
[0005] According to a second aspect of one or more embodiments of this specification, a method for switching communication modes of a short-range communication module is provided, comprising: Detect whether there is an entity within a preset range of the short-range communication module; If an entity is detected within a preset range of the short-range communication module, it is determined whether the entity sends a card detection signal. If the entity does not emit the card detection signal, the short-range communication module is switched from tag mode to read / write mode. In tag mode, the tag chip in the short-range communication module is connected to the first communication antenna for identification by an external reader device, and the read / write chip in the short-range communication module is connected to the second communication antenna for transmitting an excitation signal. In read / write mode, the read / write chip is connected to the first communication antenna for reading short-range communication data from an external tag entity, and the tag chip is in a non-working state.
[0006] According to a third aspect of one or more embodiments of this specification, a communication mode switching device for a short-range communication module is provided, comprising: An entity detection module is used to detect whether an entity exists within a preset range of the short-range communication module; The detection signal judgment module is used to determine whether the entity sends a card detection signal if an entity is detected within a preset range of the short-range communication module. The mode switching module is used to switch the short-range communication module from tag mode to read / write mode if the entity does not emit the card detection signal. In tag mode, the tag chip in the short-range communication module is connected to the first communication antenna for identification by an external reader device, and the read / write chip in the short-range communication module is connected to the second communication antenna for transmitting an excitation signal. In read / write mode, the read / write chip is connected to the first communication antenna for reading short-range communication data from an external tag entity, and the tag chip is in a non-working state.
[0007] 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 a communication mode switching method for the short-range communication module.
[0008] According to a fifth aspect of one or more embodiments of this specification, a computer-readable storage medium is provided that stores computer instructions, which, when executed by a processor, implement the steps of the communication mode switching method of the short-range communication module.
[0009] According to a sixth aspect of the embodiments of this specification, a computer program product is provided, including a computer program / instructions that, when executed by a processor, implement the steps of the communication mode switching method of the short-range communication module described above.
[0010] At least one embodiment of this specification achieves the following beneficial effects: the short-range communication module may include a first communication antenna, a second communication antenna, a tag chip, and a read / write chip. In tag mode, the tag chip is connected to the first communication antenna for identification by an external read / write device, and the read / write chip is connected to the second communication antenna for transmitting excitation signals. In read / write mode, the read / write chip is connected to the first communication antenna for reading short-range communication data from an external tag entity, and the tag chip is in a non-operating state. By switching the chip connected to the larger first communication antenna, the short-range communication module can have different operating modes to meet the short-range communication needs of different types of devices, avoiding an overly singular operating mode and improving the user experience. Furthermore, the larger first communication antenna allows the module to operate in different modes, ensuring a larger sensing range.
[0011] In tag mode, the short-range communication module transmits an excitation signal through the second communication antenna and receives instructions from the external reader / writer device through the first communication antenna. This isolates the transmission and reception channels, reducing interference from strong excitation signals to the tag chip while also quickly waking up the external reader / writer device, enabling it to switch to normal communication mode and improving the sensitivity and efficiency of short-range communication.
[0012] In read / write mode, the short-range communication module can set the tag chip to a non-working state to avoid affecting the normal operation of the read / write chip, while also connecting the first communication antenna to the read / write chip, thus realizing time-division multiplexing of the first communication antenna. Attached Figure Description
[0013] 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.
[0014] Figure 1 This is a schematic diagram of the connection structure of the internal components of a short-range communication module provided in an embodiment of this specification under different operating modes; Figure 2 This is a schematic diagram of the component connection structure within a short-range communication module according to an embodiment of this specification; Figure 3 This is a schematic diagram of a double-pole double-throw switch provided in one embodiment of this specification; Figure 4 This is a flowchart illustrating a communication mode switching method for a short-range communication module according to an embodiment of this specification. Figure 5 This is a schematic diagram of the communication mode switching device of a short-range communication module provided in one embodiment of this specification; Figure 6 This is a structural block diagram of a computing device provided in one embodiment of this specification. Detailed Implementation
[0015] 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.
[0016] 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.
[0017] 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.
[0018] 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.
[0019] 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.
[0020] Depending on the context, the word "if" as used here can be interpreted as "when," "when," or "in response to determination."
[0021] 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.
[0022] 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.
[0023] 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.
[0024] The following explains the terms and concepts used in one or more embodiments of this specification.
[0025] Short-range communication refers to wireless communication technologies with a communication distance typically ranging from a few centimeters to several hundred meters. While its transmission range is limited, it offers advantages such as low power consumption, low cost, high speed, and high security. Short-range communication technologies typically include at least one of Bluetooth, Wi-Fi, near-field communication (NFC), and radio frequency identification (RFID).
[0026] Near Field Communication (NFC) is an ultra-short-range, low-power, secure short-range wireless communication technology that transmits data by bringing the device and reader close together, typically within a few centimeters. It has three operating modes: reader, card emulation, and peer-to-peer.
[0027] Radio Frequency Identification (RFID): A technology that identifies objects and reads data through radio signals, such as anti-theft tags on supermarket goods and tracking tags on logistics packages, which can be identified without contact.
[0028] Resonant frequency: The frequency at which a circuit composed of coils and capacitors naturally vibrates, just like a string has its own natural vibration frequency. When the frequency of an external signal equals the resonant frequency, the circuit will produce the strongest response.
[0029] The technical solutions provided in the various embodiments of this specification are described in detail below with reference to the accompanying drawings.
[0030] Figure 1 This is a schematic diagram illustrating the connection structure of internal components of a short-range communication module under different operating modes, as provided in the embodiments of this specification. Figure 1 As shown, a short-range communication module may include a first communication antenna, a second communication antenna, a tag chip, and a read / write chip. Figure 1 Figure a in the diagram can represent the connection structure of the internal components of a short-range communication module in tag mode, such as... Figure 1 As shown in Figure a, in tag mode, the tag chip is connected to the first communication antenna for identification by an external reader / writer device; the reader / writer chip is connected to the second communication antenna for transmitting excitation signals. Figure 1 Figure b in the diagram can represent the connection structure of the internal components of a short-range communication module in read / write mode, as shown below. Figure 1As shown in Figure b, in read / write mode, the read / write chip is connected to the first communication antenna to read short-range communication data from the external tag entity. The tag chip can be in a non-connected state with the second communication antenna. Specifically, the non-connected state of the second communication antenna and the tag chip can indicate that the connection circuit between the tag chip and the second communication antenna is disconnected; or, the non-connected state of the second communication antenna and the tag chip can indicate that the tag chip is in a non-working state, so that the second communication antenna cannot send tag data outward.
[0031] In one embodiment of this specification, the short-range communication module can be a module or device capable of short-range communication with external devices. The short-range communication method of the short-range communication module includes at least one of NFC communication and RFID communication. The first and second communication antennas are capable of converting current signals into electromagnetic wave signals. The communication antennas can include a transmitting state and a receiving state. The transmitting state indicates that the communication antenna can convert the radio frequency current signal generated by the read / write chip into an electromagnetic wave signal and transmit it to the external space. The receiving state indicates that the communication antenna can capture electromagnetic waves in the external space, induce a weak radio frequency current within itself, and send it to the tag chip or read / write chip for processing. If the receiving state is the state where the communication antenna sends the radio frequency current to the tag chip, it indicates that the tag chip obtains the command or instruction information contained in the radio frequency current signal so that it can send the tag data it stores to an external tag entity. If the receiving state is the state where the communication antenna sends the radio frequency current to the read / write chip, it indicates that the read / write chip obtains the external tag data contained in the radio frequency current signal so that it can use the external tag data to perform business.
[0032] In one embodiment of this specification, by designing the size of the first communication antenna to be larger than that of the second communication antenna, it is possible to ensure that the first communication antenna used for normal short-range communication has a larger sensing range, so that the entity can communicate and interact with the short-range communication module even at a distance from the short-range communication module. This improves the distance and efficiency of short-range communication, while also reducing the interference of the large size of the second communication antenna with the short-range communication performance of the first communication antenna in tag mode.
[0033] In practical applications, the first and second communication antennas can also be communication antennas of the same size. The size of the communication antennas can be set based on actual needs. For example, if it is necessary to reduce the area occupied by the communication antennas, the first and second communication antennas can be set to be smaller antennas; if it is necessary to increase the communication range of the communication antennas, the first and second communication antennas can be set to be larger antennas.
[0034] In one embodiment of this specification, the tag chip typically does not have a battery or other power source. It is used to store data, such as product ID numbers or access card authorization information. It can obtain energy from the electromagnetic field of an external reader / writer device via a communication antenna, instantly activating and sending the stored data to the external reader / writer device. Alternatively, the tag chip may have a battery or other power source to power it. The reader / writer chip typically has its own power supply or is connected to a power supply component. It is used to emit energy and read / write data. In read / write mode, it can continuously emit electromagnetic waves via its communication antenna to wake up the external tag, then send commands to the external tag and receive data returned by the external tag. In tag mode, the reader / writer chip can emit an excitation signal. This excitation signal may not contain commands or data; it is an energy emission that allows the external reader / writer device to sense the excitation signal and quickly switch from a low-power or sleep state to a normal operating state.
[0035] In one embodiment of this specification, the external reader / writer device may be a device capable of short-range communication with a short-range communication module and including a chip with a read / write function capable of acquiring tag data stored in the tag chip of the short-range communication module. The external read / write chip is a component in the external reader / writer device and is not the same chip as the read / write chip in the short-range communication module.
[0036] The external tag entity can be a device that can communicate with a short-range communication module over a short distance and contains a chip that stores data that can be read and written by the short-range communication module's read / write chip.
[0037] The excitation signal can be an empty carrier signal. It can be an intermittently transmitted radio frequency field, or a field with a short duration. The excitation signal is used to stimulate an external reader / writer device to switch from a low-power or sleep state to a normal operating state. Specifically, during the sleep or low-power operation phase of the external reader / writer device, the device is in a power-limited state and has stopped regular interaction. When the read / write chip in the short-range communication module outputs an excitation signal through the second communication antenna, it can wake up the external reader / writer device, causing it to exit the low-power, sleep mode and return to a working state where it can normally perform read / write interaction tasks.
[0038] A tag chip being in a non-working state indicates that the tag chip is unable to function, cannot interact with other entities, or cannot have its stored data accessed by other entities.
[0039] In the embodiments of this specification, on the one hand, by constructing a short-range communication module including a first communication antenna, a second communication antenna, a tag chip, and a read / write chip, the short-range communication module can be a dual-mode communication module with read / write mode and tag mode, thereby enabling the short-range communication module to be identified and actively read. Regardless of whether the external device is a reader or a tag card, the short-range communication module can communicate with the external device without specifying the type of external device, thus realizing the function of blind swiping and blind touching.
[0040] On the other hand, through a dynamic antenna connection strategy, in read / write mode, the read / write chip can be switched to the first communication antenna and the tag chip can be put into a non-working state. This effectively avoids signal crosstalk and impedance imbalance problems when two chips coexist, ensuring the stability and sensitivity of read / write data transmission. In tag mode, the tag chip is connected to the first communication antenna for identification by external reader devices, and the read / write chip is connected to the second communication antenna for transmitting excitation signals. This allows the read / write chip to transmit excitation signals even when it is being identified, so that the external reader device can quickly switch from a low-power state or a sleep state to a normal working state. This enables the short-range communication module to quickly communicate or interact with external reader devices through the tag chip, improving the response speed and recognition efficiency of tag mode.
[0041] On the other hand, the first communication antenna serves as the main working antenna in different modes, ensuring that the sensing range of short-range communication is around the first communication antenna regardless of whether it is in tag mode or read / write mode. This achieves the effect of common area sensing, avoiding the need for users to remember which location is used for identification and which is used for read / write functions when setting up short-range communication devices in different locations, thus improving the user experience.
[0042] In related technologies, a planar split dual-antenna scheme is provided. Although short-range communication devices with a planar split dual-antenna structure can achieve both identification and read / write functions, the communication antennas occupy a large area, resulting in low device integration. This prevents the realization of shared-area sensing and leads to either a large short-range communication device or a small communication range due to the use of small-sized communication antennas. To ensure a sufficiently large communication range while maintaining a small size for the short-range communication module, as one implementation option, the first communication antenna can optionally coincide with the center of the second communication antenna; the size of the second communication antenna is smaller than the size of the first communication antenna.
[0043] In one embodiment of this specification, the first and second communication antennas may have the same or different shapes. For example, if the first communication antenna is circular, the second communication antenna may be circular, square, or other shapes. The first and second communication antennas form a nested or stacked communication layout in physical space, allowing their antenna centers to coincide. This enables high-density integration of dual antennas within a limited module area, thus solving the problem of limited antenna arrangement space in the miniaturization design of short-range communication modules. Furthermore, designing the second communication antenna to be smaller than the first communication antenna helps reduce the obstruction or disturbance of the first communication antenna's radio frequency field, improving the stability of identification by external reader devices in tag mode and the reliability of data reading in read / write mode, achieving a balance between structural compactness and communication performance.
[0044] Alternatively, in another implementation, the first communication antenna and the second communication antenna may be concentric nested antennas; the size of the second communication antenna is smaller than the size of the first communication antenna.
[0045] In one embodiment of this specification, both the first and second communication antennas can be circular antennas, thereby making the magnetic field distribution generated by the communication antennas more uniform and reducing dependence on direction. By adopting a structure in which the first and second communication antennas are nested concentrically, with the size of the second communication antenna located in the inner circle being smaller than the size of the first communication antenna located in the outer circle, the first and second communication antennas form a centrally symmetrical overlapping distribution in planar or three-dimensional space. This maximizes the use of space resources within a limited module substrate area, thus solving the problems of difficult layout and excessive area occupation of multiple communication antennas in miniaturized devices. At the same time, the concentric nesting structure helps maintain the axial symmetry of the radio frequency field of the communication antennas, reducing the radiation pattern distortion caused by the eccentric arrangement of the antennas. This allows the first and second communication antennas to maintain relatively stable impedance characteristics during operation, improving the stability of short-range communication modules for short-range communication.
[0046] In one or more embodiments of this specification, optionally, the first communication antenna and the second communication antenna may be located on the upper and lower layers of the PCB board, respectively; the distance between the first communication antenna and the second communication antenna is the thickness of the PCB board.
[0047] In one embodiment of this specification, the first communication antenna may be arranged on the upper layer of the PCB board, and the second communication antenna may be arranged on the lower layer of the PCB board; or, the first communication antenna may be arranged on the lower layer of the PCB board, and the second communication antenna may be arranged on the upper layer of the PCB board. The upper and lower layers of the PCB board may refer to the upper and lower surfaces of the PCB board.
[0048] In one embodiment of this specification, the first and second communication antennas are arranged at a fixed interval using the PCB board thickness. This allows the two antennas to overlap vertically in physical space rather than being planar side-by-side. This enables the integration of dual antennas while maintaining the overall planar dimensions of the module, preventing the short-range communication module from increasing the circuit board area due to the arrangement of multiple communication antennas. Simultaneously, the dielectric layer of the PCB board acts as a natural isolation layer, effectively adjusting the mutual inductance coefficient between the first and second communication antennas and suppressing signal crosstalk in non-operating modes. This limits the parasitic capacitance or inductance effects generated by the other communication antenna to a low level when the first communication antenna is performing read / write tasks or the second communication antenna is involved in tag interaction tasks, thereby improving response stability during mode switching.
[0049] In one or more embodiments of this specification, optionally, the short-range communication module may further include a switch module and a control unit; the tag chip is connected to the common terminal of the switch module, and the read / write chip is connected to the common terminal of the switch module; the throwing terminal of the switch module is connected to the first communication antenna, and the throwing terminal of the switch module is connected to the second communication antenna; the control terminal of the switch module is connected to the control unit; the control unit is used to control the on / off state of the switch module; the switch module is used to control the short-range communication module to switch between the tag mode and the read / write mode.
[0050] In one embodiment of this specification, the switching module may include at least one of a double-pole double-throw (DPD) switch combination, a single-pole double-throw (SPD) switch combination, and a diode switch array. The DPD switch may have two movable poles (common terminals), one common terminal corresponding to two throw terminals, and the common terminal can be switched between the two throw terminals; that is, the DPD switch has two common terminals and four throw terminals, enabling synchronous switching between two independent circuits. The SPD switch may have one movable common terminal and two throw terminals, which can be switched between the two throw terminals. The diode switch array can control the on / off state of each diode switch via voltage. Preferably, the switching module may be a DPD switch combination.
[0051] In the embodiments of this specification, the control unit may refer to a unit used to control hardware devices such as components or chips in a short-range communication module. The control unit may be at least one of a standalone microcontroller unit (MCU), an internal subsystem of a system on a chip (SoC), or a power management integrated circuit (PMIC) interface.
[0052] In the embodiments of this specification, if an entity exists within the preset range of the short-range communication module, the control unit can receive radio frequency signals transmitted by the first communication antenna and the second communication antenna. If the entity is determined to be an external tag entity based on the radio frequency signals, the control unit can control the switch module to connect the circuit connection between the first communication antenna and the read / write chip, disconnect the circuit connection between the first communication antenna and the tag chip, and control the tag chip to be in a non-working state. If the control unit determines that the entity is an external reader device based on the radio frequency signals, the control unit can control the switch module to connect the circuit connection between the first communication antenna and the tag chip, disconnect the circuit connection between the first communication antenna and the read / write chip, and connect the circuit connection between the second communication antenna and the read / write chip.
[0053] Taking short-range communication payment as an example, assuming the user has enabled the NFC function on their mobile phone and it is set as a reader / writer, and the short-range communication module is in read / write mode by default. When the mobile phone approaches the short-range communication module, the first communication antenna in the short-range communication module can obtain radio frequency signals from the mobile phone's radio frequency field. The control unit can determine based on the radio frequency signals that an external reader / writer device is approaching. Then, the control unit can send a first control signal to the switching module, so that the switching module can disconnect the circuit connection between the first communication antenna and the read / write chip, connect the circuit connection between the first communication antenna and the tag chip, and connect the circuit connection between the second communication antenna and the read / write chip. This allows the short-range communication module to switch to tag mode, enabling the mobile phone to obtain the first payment tag data in the tag chip. Subsequently, the mobile phone can execute the payment process based on the first payment tag data to complete the payment.
[0054] Taking short-range communication payment as an example, assuming the user has enabled the NFC function on their mobile phone and it is in card emulation mode, and the short-range communication module is in tag mode by default. When the mobile phone approaches the short-range communication module, the read / write chip in the short-range communication module can transmit an excitation signal to the mobile phone through the second communication antenna. The mobile phone is awakened and enters normal working state, generating a radio frequency field. The first communication antenna can obtain radio frequency signals from the radio frequency field of the mobile phone. The control unit can determine based on the radio frequency signals that an external tag entity is approaching. Then, the control unit can send a second control signal to the switching module, so that the switching module, based on the second control signal, disconnects the circuit connection between the first communication antenna and the tag chip, disconnects the communication connection between the second communication antenna and the read / write chip, and reconnects the circuit connection between the first communication antenna and the read / write chip. This allows the short-range communication module to obtain the second payment tag data stored on the mobile phone, and then the short-range communication module can execute the payment process based on the second payment tag data to complete the payment.
[0055] In one embodiment of this specification, the tag chip is connected to the common terminal of the switch module, and the throwing terminal of the switch module is connected to the first and second communication antennas, thereby ensuring that the tag chip can switch between the first and second communication antennas. Similarly, the read / write chip is connected to the common terminal of the switch module, which also ensures that the read / write chip can switch between the first and second communication antennas. The control unit can control the switching of the switch module at different throwing terminals, causing the throwing terminal connected to the common terminal to change, thereby enabling the short-range communication module to switch between tag mode and read / write mode.
[0056] In practical applications, the short-range communication module can also include a Time of Flight (TOF) sensor module. The TOF sensor module can detect the presence of entities in the surrounding environment, enabling the module to determine the communication mode based on the entity's type after detection. The short-range communication module then interacts with the entity in the corresponding communication mode. In practical applications, the short-range communication module can also utilize at least one of a capacitive proximity sensor and an infrared proximity sensor to detect the presence of entities within a preset range.
[0057] To better understand the connection relationships of the various components in the short-range communication module described in this manual Figure 2 This is a schematic diagram of the component connection structure within a short-range communication module provided as an embodiment of this specification. Figure 2 As shown, one end of the read / write chip can be connected to the first common terminal of the first double-pole double-throw switch, and the other end of the read / write chip can be connected to the third common terminal of the second double-pole double-throw switch. One end of the tag chip can be connected to the second common terminal of the first double-pole double-throw switch, and the other end of the tag chip can be connected to the fourth common terminal of the second double-pole double-throw switch. The first communication antenna can be connected to the first throw terminal of the first double-pole double-throw switch, and the other end of the first communication antenna can be connected to the third throw terminal of the second double-pole double-throw switch; the second communication antenna can be connected to the second throw terminal of the first double-pole double-throw switch, and the other end of the second communication antenna can be connected to the fourth throw terminal of the second double-pole double-throw switch. The control unit can be connected to the first control terminal of the first double-pole double-throw switch, and the control unit can also be connected to the second control terminal of the second double-pole double-throw switch. The first and second communication antennas are respectively connected to the control unit.
[0058] The short-range communication module may also include a time-of-flight (TOF) sensor module. The TOF sensor module can be physically integrated into the central area of the second or first communication antenna and can sense entities within a preset range of the short-range communication module.
[0059] The first and second communication antennas can acquire radio frequency field signals from entities within a preset range. Furthermore, they can convert the acquired radio frequency field signals into analog induced voltage signals. The control unit can acquire the analog induced voltage signals and convert them into digital induced voltage signals using an analog-to-digital converter (ADC) within the control unit. If the control unit analyzes or reads the digital induced voltage signal and determines that the induced voltage is zero or not greater than a voltage threshold, it indicates that the entity has not generated a radio frequency field, confirming the entity as an external tag entity, and enabling communication with the external tag entity using read / write mode. If the control unit analyzes or reads the digital induced voltage signal and determines that the induced voltage is greater than a voltage threshold, it indicates that the entity has generated a radio frequency field, confirming the entity as an external reader / writer device, and enabling communication with the external reader / writer device using tag mode.
[0060] To facilitate understanding the working mode of a double-pole double-throw switch Figure 3 This is a schematic diagram of a double-pole double-throw switch provided as an embodiment of this specification. Figure 3 As shown, a double-pole double-throw switch can include two common terminals, RF1 and RF3, for connecting to a tag chip and a read / write chip, respectively. Specifically, RF1 can connect to the read / write chip, and RF3 can connect to the tag chip. The double-pole double-throw switch can also include two throw terminals, RF2 and RF4, for connecting to a first communication antenna and a second communication antenna, respectively. Specifically, RF2 can connect to the first communication antenna, and RF4 can connect to the second communication antenna. Each throw terminal can have two ports to switch the chip type connected to the first communication antenna. The outermost two ports can be the RF2 throw terminal, and the innermost two ports can be the RF4 throw terminal. The control terminal can include a ground pin (GND), a positive power supply pin (VDD), and a control pin (CTRL). GND is connected to the common ground plane of the PCB; VDD is connected to the main power supply to provide power to the chip; and the control pin (CTRL) is connected to the control unit so that the control unit can control the common terminals to switch between the two throw terminals.
[0061] In related technologies, short-range communication devices can be dual-mode communication devices with read / write mode and tag mode. However, most existing short-range communication devices adopt a dual-mode design with a single antenna shared architecture. However, in the single-antenna architecture, the tag mode and read / write mode share the same antenna and the same matching set, which cannot achieve compatibility between two chips. During mode switching, problems such as impedance mismatch and signal interference are prone to occur, resulting in poor communication stability.
[0062] To address the problems in the related technologies, in one or more embodiments of this specification, optionally, the tag chip may be connected to the switch module via a first matching circuit; the first matching circuit is used to adjust the first resonant frequency of the short-range communication module in the tag mode to meet the short-range communication requirements. And / or, a second matching circuit is connected between the read / write chip and the switch module; the second matching circuit is used to adjust the second resonant frequency of the short-range communication module in the read / write mode to meet the short-range communication requirements.
[0063] In one embodiment of this specification, the first matching circuit and the second matching circuit can be circuits composed of at least one element selected from resistors, capacitors, and inductors. The types of elements included in the first matching circuit and the types of elements included in the second matching circuit may be the same or different; the element parameters of each element in the first matching circuit and the element parameters of each element in the second matching circuit may be different or the same.
[0064] The first matching circuit can independently tune the input or output impedance of the tag chip, ensuring that the first resonant frequency is a specific resonant frequency suitable for short-range communication. Similarly, the second matching circuit can independently tune the input or output impedance of the read / write chip, ensuring that the second resonant frequency is also a specific resonant frequency suitable for short-range communication. This avoids signal interference and impedance mismatch issues caused by the tag chip and read / write chip sharing the same matching circuit. Furthermore, the first and second matching circuits perform impedance transformation and filtering. Based on the high impedance capacitive characteristics of the tag chip and the complex impedance characteristics of the read / write chip, the first and second matching circuits compensate for parasitic parameters at the pins of the tag chip and read / write chip, respectively. This ensures good impedance matching before the signal enters or leaves the chip, reducing the probability of short-range communication failures due to large differences in electrical characteristics between chips and improving the stability of short-range communication.
[0065] In practical applications, if the input and output impedance of the tag chip itself achieves good impedance matching with the impedance of the antenna, then the first matching circuit can be omitted; similarly, if the input and output impedance of the read / write chip itself achieves good impedance matching with the impedance of the antenna, then the second matching circuit can be omitted; this allows the tag chip and the read / write chip to be connected to the first and second communication antennas respectively through a switch module, simplifying the circuit structure, reducing the cost of short-range communication modules, and reducing the space occupied.
[0066] Based on the same idea, this application also provides a communication mode switching method for the aforementioned short-range communication module. This application also relates to a communication mode switching device for a short-range communication module, a computing device, a computer-readable storage medium, and a computer program product, which will be described in detail in the following embodiments.
[0067] Figure 4 This is a flowchart illustrating a communication mode switching method for a short-range communication module provided in an embodiment of this specification.
[0068] From a programming perspective, the entity executing the process can be a program mounted on a short-range communication module or a control unit within a short-range communication module. From a hardware perspective, the entity executing the process can be the short-range communication module itself.
[0069] like Figure 4 As shown, the process may include the following steps: Step 402: Detect whether there is an entity within the preset range of the short-range communication module.
[0070] In one embodiment of this specification, an entity can refer to a physical object capable of reflecting, absorbing, or emitting electromagnetic waves, such as a smart card, mobile terminal, or wearable device. The short-range communication module may include a Time-of-Flight (TOF) sensor module, which can be used to detect the presence of an entity within a preset range. The preset range can be determined based on the detection range of the TOF sensor module. In practical applications, the short-range communication module can also utilize at least one of a capacitive proximity sensor and an infrared proximity sensor to detect the presence of an entity within the preset range.
[0071] Step 404: If an entity is detected within the preset range of the short-range communication module, determine whether the entity sends a card detection signal.
[0072] In one embodiment of this specification, the card detection signal may represent a radio frequency response signal conforming to a specific protocol format and used to indicate that the sender has read / write capabilities. The card detection signal may carry an explicit protocol identifier but does not contain service data and is used during the capability negotiation phase. The card detection signal may be a Low Power Card Detection (LPCD) signal or a normal card detection signal. An LPCD signal may represent a brief radio frequency pulse emitted by an external device in a low-power state as a probe signal. A normal card detection signal may represent a signal emitted by the read / write chip in the external device in a normal power state.
[0073] Step 406: If the entity does not send the card detection signal, then switch the short-range communication module from tag mode to read / write mode.
[0074] In the tag mode, the tag chip in the short-range communication module is connected to the first communication antenna for identification by an external reader / writer device, and the reader / writer chip in the short-range communication module is connected to the second communication antenna for transmitting excitation signals. In the read / write mode, the reader / writer chip is connected to the first communication antenna for reading short-range communication data from an external tag entity, and the tag chip is in a non-working state.
[0075] In one embodiment of this specification, if the entity does not send a card detection signal, it indicates that the entity is not an external reader / writer device, but an external tag entity, requiring a short-range communication module to communicate with the entity in read / write mode.
[0076] Tag mode can be used as the default communication mode for short-range communication modules. If the entity is detected not to send a card detection signal, it is necessary to switch to read / write mode.
[0077] If the read / write mode is the default communication mode of the short-range communication module, the current read / write mode can continue to be used to communicate with the entity at short distances if the entity does not send a card detection signal.
[0078] The excitation signal can be represented as a continuous wave or modulated wave radiated outward by the read / write chip through the second communication antenna in tag mode, used to wake up entities in a low-power state or a sleep state.
[0079] 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.
[0080] Figure 4The method described herein determines whether an entity emits a card detection signal after detecting the presence of an entity within a preset range of the short-range communication module. If no card detection signal is emitted, the short-range communication module can switch from tag mode to read / write mode to enable short-range communication between the module and the entity. In tag mode, the tag chip in the short-range communication module is connected to the first communication antenna for identification by an external reader / writer, while the read / write chip is connected to the second communication antenna for transmitting excitation signals. In read / write mode, the read / write chip is connected to the first communication antenna to read short-range communication data from the external tag entity, and the tag chip is in a non-operating state. This approach employs a radio frequency architecture combining dual-antenna division of labor and time-division multiplexing of the first communication antenna, along with a mechanism where the tag chip is completely inactive in read / write mode. This ensures that tag data within the entity can be identified, avoids parasitic interference, and achieves high-performance coexistence across multiple modes and efficient utilization of hardware resources.
[0081] based on Figure 4 In addition to the method described herein, this specification also provides some improved implementation methods, which will be described below.
[0082] Optionally, in one or more embodiments of this specification, determining whether the entity issues a card detection signal may specifically include: Obtain the radio frequency field signal acquired by the first communication antenna; The radio frequency field signal is converted into an induced voltage; Determine whether the induced voltage is greater than a voltage threshold; The entity did not emit the card detection signal, including: The induced voltage is less than or equal to the voltage threshold.
[0083] In one embodiment of this specification, the radio frequency field signal can represent the energy signal that can be captured by the first communication antenna in the alternating electromagnetic field generated by radiation or reflection from an external entity at the spatial location of the first communication antenna. The induced voltage can be an analog voltage obtained by converting the radio frequency field signal. The control unit can use an analog-to-digital converter to convert the analog induced voltage into a digital induced voltage so that the control unit can read the induced voltage and determine whether the entity has issued a card detection signal based on the induced voltage.
[0084] In one embodiment of this specification, the voltage threshold can be predetermined based on expert experience or based on the performance of the short-range communication module. Specifically, in an environment without an external reader / writer device, the larger fluctuation voltage value output by the first communication antenna is measured. The larger fluctuation voltage value can be a voltage value generated by background noise. Based on the minimum operating field strength specified in the communication protocol, combined with the effective area and quality factor of the first communication antenna, a smaller induced voltage value is determined. If the smaller induced voltage value is greater than the larger fluctuation voltage value, a value within the range of (larger fluctuation voltage value, smaller induced voltage value) is taken as the voltage threshold. For example, if the larger fluctuation voltage value is 30mV and the smaller induced voltage value is 60mV, then 45mV can be determined as the voltage threshold. If the induced voltage is less than or equal to the voltage threshold, it indicates that the entity is not generating a radio frequency field, and the entity can be further determined to be an external tag entity. In this case, the short-range communication module performs short-range communication with the entity in read / write mode.
[0085] In one embodiment of this specification, if the induced voltage is greater than a voltage threshold, it indicates that the entity has issued a card detection signal. If the entity does not issue a card detection signal, it is either a static load or a passive reflector and may not generate a radio frequency (RF) field. Therefore, the first communication antenna cannot acquire the RF field signal, and the induced voltage value based on the RF field signal conversion is low. If the entity issues a card detection signal, it will cause a regular change in the carrier amplitude, generating a strong RF field. The first communication antenna can then acquire a larger RF field signal, resulting in a higher induced voltage value based on the RF field signal conversion. This allows the RF field signal to be converted into a quantifiable induced voltage, and the determination of whether the entity has issued a card detection signal based on the induced voltage improves the accuracy of the detection results.
[0086] In one or more embodiments of this specification, the method may optionally further include: If the entity sends the card detection signal, the tag mode is maintained so that the tag data in the tag chip can be acquired by the entity.
[0087] In one embodiment of this specification, if the entity issues a card detection signal, it indicates that the entity is an external reader / writer device, which is a device capable of reading data from other devices. Therefore, even when the default mode of the short-range communication module is tag mode, the tag mode can be maintained so that the entity can obtain tag data from the tag chip, successfully complete short-range communication, and enable the external reader / writer device to perform corresponding services.
[0088] In practical applications, in tag mode, the read / write chip in the short-range communication module can emit an excitation signal through the second communication antenna, which can more quickly promote the card reader to switch from a low-power state or sleep state to a normal working state, thereby improving the efficiency of short-range communication. Furthermore, the excitation signal emitted by the read / write tag does not contain data; it is a pulse signal used to stimulate the external read / write device, and therefore will not affect the communication between the card reader and the short-range communication module.
[0089] In one or more embodiments of this specification, optionally, the tag chip being in a non-working state may indicate that the operating power supply of the tag chip is turned off; or the tag chip being in a non-working state may indicate that the enable terminal of the tag chip is disabled; or the tag chip being in a non-working state may indicate that both the second communication antenna and the first communication antenna are disconnected from the tag chip.
[0090] In one embodiment of this specification, the tag chip's operating power being turned off indicates that the tag chip cannot obtain electrical signals from the induced voltage converted by the communication antenna and the power supply provided in the short-range communication module, and is in a power-off state. The tag chip's enable pin being disabled indicates that the tag chip's function is disabled. The tag chip can be connected to the second communication antenna when its operating power is off or its enable pin is disabled, or it can be disconnected from either communication antenna. This avoids the problem of the read / write chip in the short-range communication module obtaining data from the tag chip inside the module, interfering with communication between the short-range communication module and external devices, thereby improving the efficiency and robustness of short-range communication.
[0091] In practical applications, the first communication antenna has a time-division multiplexing function. Specifically, the first communication antenna can be connected to the tag chip in the default state, and when an external tag entity is detected, the first communication antenna can switch to connect to the read / write chip, thereby achieving time-division multiplexing of the first communication antenna; or, the first communication antenna can be connected to the read / write chip in the default state, and when an external read / write device is detected, the first communication antenna can switch to connect to the tag chip, thereby achieving time-division multiplexing of the first communication antenna; the read / write mode and tag mode can be switched at a fixed frequency so that the connection relationship between the first communication antenna and the tag chip and the read / write chip can be switched at a fixed frequency, thereby achieving time-division multiplexing of the first communication antenna; or, in read / write mode, the first communication antenna is connected to the read / write chip and transmits pulse signals, and during the interval between transmitting pulse signals, the first communication antenna switches to connect to the tag chip, thereby achieving time-division multiplexing of the first communication antenna.
[0092] 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.
[0093] Using the above method or short-range communication module, firstly, a switch module is used to implement tag mode and read / write mode, and time-division switching control with the first and second communication antennas in a dual concentric circle stack. In read / write mode, the read / write chip is switched to connect to the large-size first communication antenna, and in tag mode, the tag chip is switched to connect to the large-size first antenna. In both working modes, the large-size first communication antenna is used to maximize the sensing area.
[0094] Secondly, the first and second communication antennas are located on the upper and lower layers of the PCB board, respectively, and are nested in a concentric circle structure with a spacing equal to the board thickness to achieve common area sensing, maximize the use of equipment space, and improve the integration of the circuit structure.
[0095] Thirdly, by disabling the tag chip's function in read / write mode, the interference of the non-working branch signal formed by the tag chip to the read / write chip can be blocked, ensuring the impedance matching stability of the short-range communication module and improving the reliability of the dual-mode communication of the short-range communication module.
[0096] Based on the same idea, embodiments of this specification also provide apparatus corresponding to the above methods.
[0097] Figure 5 This is a schematic diagram of the communication mode switching device for a short-range communication module provided in the embodiments of this specification.
[0098] like Figure 5 As shown, the device may include: Entity detection module 502 is used to detect whether there is an entity within a preset range of the short-range communication module; The detection signal judgment module 504 is used to determine whether the entity sends a card detection signal if an entity is detected within a preset range of the short-range communication module. The mode switching module 506 is used to switch the short-range communication module from tag mode to read / write mode if the entity does not send the card detection signal. In tag mode, the tag chip in the short-range communication module is connected to the first communication antenna for identification by an external reader device, and the read / write chip in the short-range communication module is connected to the second communication antenna for transmitting an excitation signal. In read / write mode, the read / write chip is connected to the first communication antenna for reading short-range communication data from an external tag entity, and the tag chip is in a non-working state.
[0099] based on Figure 5 The embodiments of this specification also provide some specific implementation schemes of the method, which are described below.
[0100] Optionally, the detection signal judgment module may be specifically used to: acquire the radio frequency field signal acquired by the first communication antenna; convert the radio frequency field signal into an induced voltage; determine whether the induced voltage is greater than a voltage threshold; the entity does not emit the card detection signal, including: the induced voltage is less than or equal to the voltage threshold.
[0101] Optionally, the device can also be used to: maintain the tag mode if the entity sends the card detection signal, so that the tag data in the tag chip can be acquired by the entity.
[0102] Optionally, the tag chip being in a non-working state indicates that the operating power of the tag chip is turned off; or the tag chip being in a non-working state indicates that the enable terminal of the tag chip is disabled; or the tag chip being in a non-working state indicates that both the second communication antenna and the first communication antenna are disconnected from the tag chip.
[0103] 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.
[0104] For ease of description, the above devices are described by dividing them into various modules or units based on their functions. Of course, when implementing one or more of these specifications, the functions of each module or unit 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-units, etc. 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. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed.
[0105] The above is a schematic scheme of a communication mode switching device for a short-range communication module according to this embodiment. It should be noted that the technical solution of this communication mode switching device for a short-range communication module belongs to the same concept as the technical solution of the communication mode switching method for a short-range communication module described above. For details not described in detail in the technical solution of the communication mode switching device for a short-range communication module, please refer to the description of the technical solution of the communication mode switching method for a short-range communication module described above.
[0106] Based on the same idea, this specification also provides devices corresponding to the above methods in its embodiments.
[0107] Figure 6 This is a structural block diagram of a computing device provided in one embodiment of this specification.
[0108] The computing device 600 includes: Memory 610 and processor 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 communication mode switching method of the short-range communication module.
[0109] 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.
[0110] 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.
[0111] In one embodiment of this specification, the above-described components of the computing device 600 and Figure 6 Other components, not shown, can also be connected to each other, for example, via a bus. It should be understood that... Figure 6The block diagram of the computing device shown is for illustrative purposes only and is not intended to limit the scope of this application. Those skilled in the art can add or replace other components as needed.
[0112] 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.
[0113] The processor 620 executes the computer instructions to implement the communication mode switching method of the short-range communication module.
[0114] 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 communication mode switching method of the short-range communication module 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 communication mode switching method of the short-range communication module described above.
[0115] 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 communication mode switching method for the short-range communication module as described above.
[0116] 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 belongs to the same concept as the technical solution of the communication mode switching method of the short-range communication module described above. 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 communication mode switching method of the short-range communication module described above.
[0117] An embodiment of this specification also provides a computer program product, including a computer program / instruction that, when executed by a processor, implements the steps of the communication mode switching method of the short-range communication module described above.
[0118] 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 communication mode switching method of the short-range communication module 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 communication mode switching method of the short-range communication module described above.
[0119] The various embodiments in this specification are described in a progressive manner, and the same or similar parts between the embodiments can be referred to mutually. Each embodiment focuses on describing the differences from other embodiments. In particular, for the embodiments of apparatus, devices, media, and program products, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the description of the method embodiments. The apparatus, devices, media, and program products provided in the embodiments of this specification correspond to the methods, and therefore the apparatus, devices, media, and program products also have similar beneficial technical effects as the corresponding methods. Since the beneficial technical effects of the methods have been described in detail above, the beneficial technical effects of the corresponding apparatus, devices, media, and program products will not be repeated here.
[0120] 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.
[0121] 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.
[0122] 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.
[0123] The systems, devices, modules, or units 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, laptop computer, cellular phone, camera phone, smartphone, personal digital assistant, media player, navigation device, email device, game console, tablet computer, wearable device, or any combination of these devices.
[0124] For ease of description, the above devices are described separately by function as various units. Of course, in implementing this application, the functions of each unit can be implemented in one or more software and / or hardware.
[0125] 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.
[0126] 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, generate instructions for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0127] 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, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0128] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0129] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0130] 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.
[0131] 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.
[0132] 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.
[0133] 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
1. A short-range communication module, the short-range communication module comprising a first communication antenna, a second communication antenna, a tag chip, and a read / write chip; in tag mode, the tag chip is connected to the first communication antenna for identification by an external read / write device, and the read / write chip is connected to the second communication antenna for transmitting an excitation signal; in read / write mode, the read / write chip is connected to the first communication antenna for reading short-range communication data from an external tag entity, and the tag chip is in a non-operating state.
2. The short-range communication module according to claim 1, wherein the centers of the first communication antenna and the second communication antenna coincide; the size of the second communication antenna is smaller than the size of the first communication antenna.
3. The short-range communication module according to claim 1, wherein the first communication antenna and the second communication antenna are concentric nested antennas; the size of the second communication antenna is smaller than the size of the first communication antenna.
4. The short-range communication module according to claim 3, wherein the first communication antenna and the second communication antenna are respectively located on the upper and lower layers of the PCB board; the distance between the first communication antenna and the second communication antenna is the thickness of the PCB board.
5. The short-range communication module according to claim 1, further comprising a switch module and a control unit; the tag chip is connected to the common terminal of the switch module, and the read / write chip is connected to the common terminal of the switch module; the throwing terminal of the switch module is connected to the first communication antenna, and the throwing terminal of the switch module is connected to the second communication antenna; the control terminal of the switch module is connected to the control unit; the control unit is used to control the on / off state of the switch module; the switch module is used to control the short-range communication module to switch between the tag mode and the read / write mode.
6. The short-range communication module according to claim 5, wherein a first matching circuit is connected between the tag chip and the switch module; the first matching circuit is used to adjust the first resonant frequency of the short-range communication module in the tag mode to meet the short-range communication requirements; And / or, a second matching circuit is connected between the read / write chip and the switch module; the second matching circuit is used to adjust the second resonant frequency of the short-range communication module in the read / write mode to meet the short-range communication requirements.
7. The short-range communication module according to claim 5, wherein the switching module comprises at least one of a double-pole double-throw switch combination, a single-pole double-throw switch combination, and a diode switch array.
8. A method for switching communication modes in a short-range communication module, comprising: Detect whether there is an entity within a preset range of the short-range communication module; If an entity is detected within a preset range of the short-range communication module, it is determined whether the entity sends a card detection signal. If the entity does not emit the card detection signal, the short-range communication module is switched from tag mode to read / write mode. In tag mode, the tag chip in the short-range communication module is connected to the first communication antenna for identification by an external reader device, and the read / write chip in the short-range communication module is connected to the second communication antenna for transmitting an excitation signal. In read / write mode, the read / write chip is connected to the first communication antenna for reading short-range communication data from an external tag entity, and the tag chip is in a non-working state.
9. The method according to claim 8, wherein determining whether the entity issues a card detection signal specifically includes: Obtain the radio frequency field signal acquired by the first communication antenna; The radio frequency field signal is converted into an induced voltage; Determine whether the induced voltage is greater than a voltage threshold; The entity did not emit the card detection signal, including: The induced voltage is less than or equal to the voltage threshold.
10. The method according to claim 8, further comprising: If the entity sends the card detection signal, the tag mode is maintained so that the tag data in the tag chip can be acquired by the entity.
11. The method according to claim 8, wherein the tag chip being in a non-working state indicates that the operating power supply of the tag chip is turned off; or the tag chip being in a non-working state indicates that the enable terminal of the tag chip is disabled; or the tag chip being in a non-working state indicates that both the second communication antenna and the first communication antenna are disconnected from the tag chip.
12. A communication mode switching device for a short-range communication module, comprising: An entity detection module is used to detect whether an entity exists within a preset range of the short-range communication module; The detection signal judgment module is used to determine whether the entity sends a card detection signal if an entity is detected within a preset range of the short-range communication module. The mode switching module is used to switch the short-range communication module from tag mode to read / write mode if the entity does not emit the card detection signal. In tag mode, the tag chip in the short-range communication module is connected to the first communication antenna for identification by an external reader device, and the read / write chip in the short-range communication module is connected to the second communication antenna for transmitting an excitation signal. In read / write mode, the read / write chip is connected to the first communication antenna for reading short-range communication data from an external tag entity, and the tag chip is in a non-working state.
13. A computing device, comprising: Memory and processor; The memory is used to store computer programs / instructions, and the processor is used to execute the computer programs / instructions, which, when executed by the processor, implement the steps of the method according to any one of claims 8 to 10.