WO2021008597A1 - Communication device and antenna switching method - Google Patents
Communication device and antenna switching method Download PDFInfo
- Publication number
- WO2021008597A1 WO2021008597A1 PCT/CN2020/102573 CN2020102573W WO2021008597A1 WO 2021008597 A1 WO2021008597 A1 WO 2021008597A1 CN 2020102573 W CN2020102573 W CN 2020102573W WO 2021008597 A1 WO2021008597 A1 WO 2021008597A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- antenna
- chip
- communication device
- electrically connected
- preset
- Prior art date
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04B—TRANSMISSION
- H04B7/00—Radio transmission systems, i.e. using radiation field
- H04B7/02—Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas
- H04B7/04—Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas
- H04B7/06—Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas at the transmitting station
- H04B7/0602—Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas at the transmitting station using antenna switching
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04B—TRANSMISSION
- H04B7/00—Radio transmission systems, i.e. using radiation field
- H04B7/02—Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas
- H04B7/04—Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas
- H04B7/0404—Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas the mobile station comprising multiple antennas, e.g. to provide uplink diversity
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04B—TRANSMISSION
- H04B7/00—Radio transmission systems, i.e. using radiation field
- H04B7/02—Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas
- H04B7/04—Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas
- H04B7/06—Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas at the transmitting station
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04B—TRANSMISSION
- H04B7/00—Radio transmission systems, i.e. using radiation field
- H04B7/02—Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas
- H04B7/04—Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas
- H04B7/08—Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas at the receiving station
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04B—TRANSMISSION
- H04B7/00—Radio transmission systems, i.e. using radiation field
- H04B7/02—Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas
- H04B7/04—Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas
- H04B7/08—Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas at the receiving station
- H04B7/0802—Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas at the receiving station using antenna selection
Definitions
- This application relates to the field of communication technology, and in particular to a communication device and an antenna switching method.
- Communication devices such as tablet computers, mobile phones and other terminals
- external devices such as mice and keyboards connected to communication devices are also increasing.
- the external device can use the wired interface to realize the connection with the communication device, and the user operation is not convenient enough.
- the communication device has fewer interfaces, the cost will increase due to the external conversion device. Therefore, external devices often use wireless Bluetooth to communicate with terminal devices.
- the wireless Bluetooth communication method cannot meet the low-latency requirements such as game scenes due to the increased operating delay, which reduces the user experience.
- the embodiments of the present application provide a communication device and an antenna switching method, which can ensure normal Wi-Fi communication of the communication device, and can also make reasonable use of idle Wi-Fi antennas to achieve communication between the communication device and external devices, which not only improves This improves the utilization rate of Wi-Fi antennas and also increases the communication rate between external devices and communication devices to meet the needs of various low-latency scenarios.
- an embodiment of the present application provides a communication device including: multiple Wi-Fi antennas, a control circuit, a Wi-Fi chip, a peripheral chip, and a switch circuit.
- the first input terminal of the control circuit is electrically connected with the output terminal of the peripheral chip
- the output terminal of the control circuit is electrically connected with the control terminal of the switch circuit
- the signal terminal of the Wi-Fi chip is electrically connected with the first input terminal of the switch circuit.
- the signal terminal of the peripheral chip is electrically connected with the second input terminal of the switch circuit
- each output terminal of the switch circuit is electrically connected with a Wi-Fi antenna.
- the peripheral chip is used to send a matching success message to the control circuit, where the matching success message is used to indicate that the peripheral chip is successfully matched with the external device.
- the control circuit is used to control the Wi-Fi chip to be electrically connected to the first preset antenna through the switch circuit when receiving the matching success message, and to control the peripheral chip to be electrically connected to the second preset antenna through the switch circuit.
- a preset antenna and a second preset antenna are set in advance from multiple Wi-Fi antennas, the first preset antenna is used for Wi-Fi communication of the communication device, and the second preset antenna is used for the external device and the communication device Communication between.
- the Wi-Fi chip is used to control the communication device to perform Wi-Fi communication through the first preset antenna.
- the peripheral chip is used to control the external device to communicate with the communication device through the second preset antenna.
- the first preset antenna and the second preset antenna are set in advance from multiple Wi-Fi antennas, wherein the first preset antenna is used for the communication device to perform Wi-Fi communication, and the second The preset antenna is used for communication between the external device and the communication device.
- the two output terminals of the switch circuit are electrically connected with the first preset antenna and the second preset antenna, the first input terminal of the switch circuit is electrically connected with the signal terminal of the Wi-Fi chip, and the second input terminal of the switch circuit is electrically connected with The signal terminal of the peripheral chip is electrically connected, the output terminal of the control terminal of the switch circuit is electrically connected, and the output terminal of the peripheral chip is electrically connected with the input terminal of the control circuit.
- the peripheral chip may send a matching success message to the control circuit.
- the control circuit can control the Wi-Fi chip to be electrically connected to the first preset antenna and control the peripheral chip to be electrically connected to the second preset antenna through the switch circuit.
- the Wi-Fi chip can control the communication device to perform Wi-Fi communication through the first preset antenna
- the peripheral chip can control the external device to communicate with the communication device through the second preset antenna.
- the idle Wi-Fi antenna can be reasonably used to realize the communication between the communication device and the external device, and the overall layout of the antenna can be reduced without adding a new Wi-Fi antenna.
- the difficulty of this increases the utilization rate of Wi-Fi antennas, increases the communication rate between external devices and communication devices, and satisfies various low-latency scenarios, allowing users to operate flexibly and to facilitate the use of external devices.
- the second input terminal of the control circuit is electrically connected to the output terminal of the Wi-Fi chip.
- the Wi-Fi chip is used to judge the communication quality of multiple Wi-Fi antennas; send the judgment result to the control circuit, where the judgment result is that the communication quality of the first target antenna is better than the communication quality of the second target antenna, and the first target
- the antenna is used for Wi-Fi communication of the communication device, and the second target antenna is used for the peripheral chip to search for external devices.
- the control circuit is used to control the Wi-Fi chip to switch to be electrically connected to the first target antenna through the switch circuit when the judgment result is received, and to control the peripheral chip to switch to be electrically connected to the second target antenna through the switch circuit.
- the Wi-Fi chip is used to control the communication device to perform Wi-Fi communication through the first target antenna.
- the peripheral chip is used to control the external device chip to search for the external device through the second target antenna.
- the communication device provided by this embodiment, wherein the two output terminals of the switch circuit are electrically connected to the first target antenna and the second target antenna, respectively, and the first input terminal of the switch circuit is electrically connected to the signal terminal of the Wi-Fi chip,
- the second input terminal of the switch circuit is electrically connected with the signal terminal of the peripheral chip
- the output terminal of the Wi-Fi chip is electrically connected with the input terminal of the control circuit
- the output terminal of the control circuit is electrically connected with the control terminal of the switch circuit.
- the Wi-Fi chip can determine the communication quality of multiple Wi-Fi antennas, and send the determination result to the control circuit, where the determination result is that the communication quality of the first target antenna is better than that of the second target antenna Communication quality.
- the control circuit When the control circuit receives the judgment result, it can determine that the first target antenna is used for the communication device for Wi-Fi communication, and the second target antenna is used for the peripheral chip to search for external devices.
- the switch circuit can control the Wi-Fi chip and the second target antenna.
- a target antenna is electrically connected and the control external device chip is electrically connected with the second target antenna.
- the Wi-Fi chip can control the communication device to perform Wi-Fi communication through the first target antenna
- the peripheral chip can control the peripheral chip to search for the external device through the second target antenna.
- Wi-Fi antennas can be used rationally to realize the process of searching for external devices by the peripheral chip, which improves the utilization rate of the Wi-Fi antenna and makes Wi-Fi -Fi antennas can be optimized for multiplexing. While reducing the number of Wi-Fi antennas, it effectively ensures the performance of Wi-Fi antennas.
- the control circuit is used to determine whether the current state of the switch circuit is a preset state when the matching success message is received.
- the current state is that the Wi-Fi chip is electrically connected to the first target antenna through the switch circuit. Connected, and the peripheral chip is electrically connected to the second target antenna through the switch circuit.
- the preset state is that the Wi-Fi chip is set in advance to be electrically connected to the first preset antenna through the switch circuit, and the peripheral chip is electrically connected to the second target antenna through the switch circuit. 2. Preset the state of electrical connection of the antenna.
- the control circuit is used to lock the current state of the switch circuit when it is judged that the current state of the switch circuit is the preset state, so that the Wi-Fi chip controls the communication device to perform Wi-Fi via the first target antenna.
- Fi communication and the peripheral chip control the external device to communicate with the communication device through the second target antenna.
- the control circuit is used to update the current state of the switch circuit to the preset state when judging that the current state of the switch circuit is not the preset state, so as to control the Wi-Fi chip to switch to be electrically connected to the first preset antenna through the switch circuit
- the control peripheral chip is switched to be electrically connected with the second preset antenna through the switch circuit.
- the control circuit can determine whether the current state of the switch circuit is a preset state. If so, the control circuit can determine that the first target antenna is the first preset antenna, and the second target antenna is the second preset antenna, and the current state of the switch circuit can be locked. If not, the control circuit can adjust the current state of the switch circuit to the preset state, so that the Wi-Fi chip is electrically connected to the first preset antenna and the peripheral chip is electrically connected to the second preset antenna.
- the communication device can perform Wi-Fi communication through the first preset antenna, and the external device can communicate with the communication device through the second preset antenna.
- control circuit is also used to lock the current state of the switch circuit after updating the current state of the switch circuit to a preset state.
- the Wi-Fi chip is used to indicate the RSSI according to the received signal strength of the multiple Wi-Fi antennas to determine the communication quality of the multiple Wi-Fi antennas.
- the multiple Wi-Fi antennas include: a first Wi-Fi antenna and a second Wi-Fi antenna.
- the first Wi-Fi antenna is located in the upper half of the area when the communication device is in the vertical screen state
- the first Wi-Fi antenna is at a preset distance from the bottom edge of the communication device in the horizontal screen state
- the second Wi-Fi antenna is Located in the upper half of the area when the communication device is in landscape mode.
- the first preset antenna is the second Wi-Fi antenna
- the second preset antenna is the first Wi-Fi antenna.
- the first preset antenna is the first Wi-Fi antenna
- the second preset antenna is the second Wi-Fi antenna.
- the communication device further includes: a third Wi-Fi antenna.
- the third Wi-Fi antenna is located in the upper half area when the communication device is in the vertical screen state, and is located in the upper half area when the communication device is in the horizontal screen state; the other signal end of the Wi-Fi chip and the third Wi-Fi -The Fi antenna is electrically connected, and the third Wi-Fi antenna is used for the Wi-Fi communication of the communication device to ensure the Wi-Fi communication of the communication device 1.
- the second Wi-Fi antenna and the third Wi-Fi antenna may jointly form a MIMO antenna to realize Wi-Fi communication of the communication device 1.
- the first Wi-Fi antenna and the third Wi-Fi antenna may jointly form a MIMO antenna to realize Wi-Fi communication of the communication device 1.
- the external device is a keyboard and/or mouse.
- the switch circuit is a double pole double throw switch.
- the communication device further includes: a peripheral charging interface, wherein the peripheral charging interface is located in the lower half area of the communication device in the first state, and the peripheral charging interface is close to the bottom edge of the lower half area , It is convenient for the communication device 1 to charge the external device.
- the embodiments of the present application provide an antenna switching method, which is applied to a communication device, and the communication device includes: multiple wireless fidelity Wi-Fi antennas, a control circuit, a Wi-Fi chip, a peripheral chip, and a switch circuit; wherein , The first input terminal of the control circuit is electrically connected with the output terminal of the peripheral chip, the output terminal of the control circuit is electrically connected with the control terminal of the switch circuit, and the signal terminal of the Wi-Fi chip is electrically connected with the first input terminal of the switch circuit, The signal terminal of the peripheral chip is electrically connected with the second input terminal of the switch circuit, and each output terminal of the switch circuit is electrically connected with a Wi-Fi antenna.
- the method includes: the peripheral chip sends a matching success message to the control circuit, where the matching success message is used to indicate that the peripheral chip is successfully matched with the external device.
- the control circuit receives the matching success message, it controls the Wi-Fi chip to switch to be electrically connected to the first preset antenna through the switch circuit, and controls the peripheral chip to switch to be electrically connected to the second preset antenna through the switch circuit.
- a preset antenna and a second preset antenna are set in advance from multiple Wi-Fi antennas, the first preset antenna is used for Wi-Fi communication of the communication device, and the second preset antenna is used for the external device and the communication device Communication between.
- the Wi-Fi chip controls the communication device to perform Wi-Fi communication through the first preset antenna.
- the peripheral chip controls the external device to communicate with the communication device through the second preset antenna.
- the second input terminal of the control circuit is electrically connected to the output terminal of the Wi-Fi chip.
- the method also includes: the Wi-Fi chip judging the communication quality of multiple Wi-Fi antennas.
- the Wi-Fi chip sends the judgment result to the control circuit, where the judgment result is that the communication quality of the first target antenna is better than that of the second target antenna, the first target antenna is used for Wi-Fi communication of the communication device, and the second target antenna
- the antenna is used for peripheral chips to search for external devices.
- the control circuit receives the judgment result, it controls the Wi-Fi chip to switch to be electrically connected to the first target antenna through the switch circuit, and controls the peripheral chip to switch to be electrically connected to the second target antenna through the switch circuit.
- the Wi-Fi chip controls the communication device to perform Wi-Fi communication through the first target antenna.
- the peripheral chip controls the external device chip to search for the external device through the second target antenna.
- the control circuit when the control circuit receives the matching success message, the Wi-Fi chip is controlled to switch to be electrically connected to the first preset antenna through the switch circuit, and the peripheral chip is controlled to switch to the second preset antenna through the switch circuit.
- the method further includes: the control circuit determines whether the current state of the switch circuit is a preset state, wherein the current state is that the current Wi-Fi chip is electrically connected to the first target antenna through the switch circuit, and the peripheral chip The state where the switch circuit is electrically connected to the second target antenna, the preset state is that the Wi-Fi chip is set in advance to be electrically connected to the first preset antenna through the switch circuit, and the peripheral chip is electrically connected to the second preset antenna through the switch circuit. The status of the connection.
- the control circuit when the control circuit receives the matching success message, it controls the Wi-Fi chip to switch to be electrically connected to the first preset antenna through the switch circuit, and controls the peripheral chip to switch to the second preset antenna through the switch circuit.
- the electrical connection of the antenna includes: when the control circuit determines that the current state of the switch circuit is a preset state, locking the current state of the switch circuit so that the Wi-Fi chip controls the communication device to perform Wi-Fi communication through the first target antenna and external It is assumed that the chip controls the external device to communicate with the communication device through the second target antenna.
- control circuit determines that the current state of the switch circuit is not the preset state, it updates the current state of the switch circuit to the preset state to control the Wi-Fi chip to switch through the switch circuit to be electrically connected to the first preset antenna and control the external It is assumed that the chip is switched to be electrically connected with the second preset antenna through the switch circuit.
- the method further includes: after the control circuit updates the current state of the switch circuit to a preset state, locking the current state of the switch circuit.
- an embodiment of the present application provides a communication device, including: a memory and a processor;
- the memory is used to store program instructions
- the processor is configured to call the program instructions in the memory to execute the second aspect and any one of the possible designs of the antenna switching method in the second aspect.
- an embodiment of the present application provides a readable storage medium, in which an execution instruction is stored, and when at least one processor of a communication device executes the execution instruction, the communication device executes the second aspect and the second aspect Any possible design of antenna switching method.
- an embodiment of the present application provides a program product, which includes an execution instruction, and the execution instruction is stored in a readable storage medium.
- At least one processor of the communication device can read the execution instruction from the readable storage medium, and the execution of the execution instruction by the at least one processor causes the communication device to implement the antenna switching method in any one of the second aspect and the second aspect.
- the embodiments of the present application provide a chip, which is connected to a memory, or a memory is integrated on the chip, and when the software program stored in the memory is executed, any possible design of the second aspect and the second aspect is realized Antenna switching method in.
- FIG. 1 is a schematic structural diagram of an exemplary communication device provided by an embodiment of the application.
- FIG. 2 is a schematic structural diagram of an exemplary communication device provided by an embodiment of the application.
- FIG. 3 is a schematic structural diagram of an exemplary communication device in a landscape state according to an embodiment of the application
- FIG. 4 is a schematic structural diagram of an exemplary communication device in a vertical screen state according to an embodiment of the application
- FIG. 5 is a schematic structural diagram of an exemplary communication device in a landscape state according to an embodiment of the application
- Fig. 6 is a flowchart of an exemplary antenna switching method provided by an embodiment of the application.
- FIG. 7 is a flowchart of an exemplary antenna switching method provided by an embodiment of the application.
- FIG. 8 is a schematic diagram of the hardware structure of an exemplary communication device provided by an embodiment of the application.
- At least one refers to one or more, and “multiple” refers to two or more.
- “And/or” describes the association relationship of the associated objects, indicating that there can be three relationships, for example, A and/or B, which can mean: A alone exists, A and B exist at the same time, and B exists alone, where A, B can be singular or plural.
- the character “/” generally indicates that the associated objects are in an "or” relationship.
- "The following at least one item (a)” or similar expressions refers to any combination of these items, including any combination of a single item (a) or plural items (a).
- at least one item (a) of a, b, or c can mean: a, b, c, ab, ac, bc, or abc, where a, b, and c can be single or multiple .
- the embodiments of the application provide a communication device and an antenna switching method.
- the idle Wi-Fi antenna in the communication device can be used to realize the communication between the external device and the communication device. This allows users to complete corresponding operations through external devices, thereby effectively reducing operation delays, meeting various low-latency scenarios, and improving user experience.
- an embodiment of the present application provides a communication device and an antenna switching method. According to the position of the Wi-Fi antenna in the communication device, combined with actual experience, it can be selected from multiple Wi-Fi antennas of the communication device in advance. A first preset antenna and a second preset antenna are set, the first preset antenna is used for Wi-Fi communication of the communication device, and the second preset antenna is used for communication between the external device and the communication device.
- the two output terminals of the switch circuit are electrically connected to the first preset antenna and the second preset antenna, respectively, the first input terminal of the switch circuit is electrically connected to the signal terminal of the Wi-Fi chip, and the first input terminal of the switch circuit is electrically connected to the signal terminal of the Wi-Fi chip.
- the two input terminals are electrically connected with the signal terminal of the peripheral chip, and the control terminal of the switch circuit is electrically connected with the output terminal of the control circuit. Therefore, when the peripheral chip and the external device are successfully matched, the peripheral chip can send a matching success message to the control circuit.
- the control circuit When the control circuit receives the matching success message, it can control the Wi-Fi chip to be electrically connected to the first preset antenna through the switch circuit, and control the peripheral chip to be electrically connected to the second preset antenna, so that the Wi-Fi chip can control
- the communication device may implement Wi-Fi communication through the first preset antenna, and the peripheral chip may control the external device to implement communication with the communication device through the second preset antenna.
- the control circuit receives the matching success message, it can control the Wi-Fi chip to be electrically connected to the first preset antenna through the switch circuit, and control the peripheral chip to be electrically connected to the second preset antenna, so that the Wi-Fi chip can control
- the communication device may implement Wi-Fi communication through the first preset antenna
- the peripheral chip may control the external device to implement communication with the communication device through the second preset antenna.
- not only the normal Wi-Fi communication of the communication device is ensured, but also the idle Wi-Fi antenna is used to realize the communication between the communication device and the external device, and the utilization rate of
- the communication devices mentioned in the embodiments of this application may include but are not limited to terminals.
- the terminal may be a wireless terminal or a wired terminal.
- a wireless terminal may refer to a device with a wireless transceiver function that can be deployed on land. Including indoor or outdoor, hand-held or vehicle-mounted; can also be deployed on the water (such as ships, etc.); can also be deployed in the air (such as airplanes, balloons and satellites, etc.).
- the terminal can be a personal computer, game console, MP3 player, mobile phone, tablet computer (Pad), computer with wireless transceiver function, printer, virtual reality (Virtual Reality, VR) terminal, augmented reality (Augmented Reality, AR) terminals, wireless terminals in industrial control, wireless terminals in self-driving (self-driving), wireless terminals in remote medical, wireless terminals in smart grid, transportation Wireless terminals in transportation safety, wireless terminals in smart cities, and wireless terminals in smart homes are not limited here.
- VR Virtual Reality
- AR Augmented Reality
- wireless terminals in industrial control wireless terminals in self-driving (self-driving)
- wireless terminals in remote medical wireless terminals in smart grid
- transportation Wireless terminals in transportation safety wireless terminals in smart cities, and wireless terminals in smart homes are not limited here.
- the external devices may include, but are not limited to, keyboards, mice, earphones, printing devices, storage devices, and other devices.
- Fig. 1 is a schematic structural diagram of an exemplary communication device provided by an embodiment of the application.
- the communication device 1 includes: multiple Wi-Fi antennas 11, a control circuit 12, a Wi-Fi chip 13, and external Suppose a chip 14 and a switch circuit 15.
- the embodiment of the present application does not limit the location, specific size, and manufacturing process of the Wi-Fi antenna 11 in the communication device 1, and it is only necessary to ensure that the number of the Wi-Fi antenna 11 is greater than or equal to two.
- the communication device 1 usually adopts part of the Wi-Fi antenna 11 to implement Wi-Fi communication of the communication device 1, so that the remaining part of the Wi-Fi antenna 11 will be idle. Moreover, the position of each Wi-Fi antenna 11 in the communication device 1 is usually set after the communication device 1 leaves the factory.
- the embodiment of the present application can determine that each application scenario is suitable for the communication device 1 to perform Wi-Fi communication from multiple Wi-Fi antennas 11 based on the location of each Wi-Fi antenna 11 and actual experience.
- the first preset antenna and the second preset antenna suitable for communication between the external device and the communication device 1.
- the first preset antenna and the second preset antenna are different.
- the first preset antenna and the second preset antenna may be the same or different.
- the number of the first preset antenna may be multiple to form a multiple-input multiple-output (MIMO) antenna to work, or it may be one, which is not limited in this embodiment of the application.
- the number of the second preset antenna may be one or multiple to form a MIMO antenna, which is not limited in this embodiment of the application.
- each output terminal of the switch circuit 15 is electrically connected to a Wi-Fi antenna 11, that is, the first preset antenna and the second preset antenna are electrically connected to the output side of the switch circuit 15. And the first input terminal of the switch circuit 15 is electrically connected with the signal terminal of the Wi-Fi chip 13, and the second input terminal of the switch circuit 15 is electrically connected with the signal terminal of the peripheral chip 14.
- the output terminal of the control circuit 12 is electrically connected to the control terminal of the switch circuit 15, and can control the conduction or disconnection of the path between any input terminal and any output terminal of the switch circuit 15 to adjust Wi-Fi.
- the chip 13 and the peripheral chip 14 are electrically connected to any Wi-Fi antenna 11 respectively, that is, it is adjusted whether the Wi-Fi chip 13 and the peripheral chip 14 are electrically connected to the first preset antenna and the second preset antenna, respectively.
- the control circuit 12 may be the original control circuit 12 in the communication device 1 or a newly added control circuit 12, which is not limited in the embodiment of the present application.
- the control circuit 12 may be a central processing unit (CPU) in the communication device 1.
- the embodiment of the present application does not limit the type and quantity of the Wi-Fi chip 13 and the peripheral chip 14.
- the Wi-Fi chip 13 may include, but is not limited to, functions such as collecting signals of each Wi-Fi antenna 11, analyzing the performance of each Wi-Fi antenna 11, and warning whether each Wi-Fi antenna 11 is malfunctioning.
- the peripheral chip 14 may include, but is not limited to, functions such as searching and matching external devices, collecting parameters of the external devices, and obtaining communication signals between the external devices and the communication device 1.
- control circuit 12, the Wi-Fi chip 13, and the peripheral chip 14 may be discrete components, or may constitute any combination of components.
- the control circuit 12, the Wi-Fi chip 13 and the peripheral chip 14 are integrated, or the Wi-Fi chip 13 and the peripheral chip 14 are integrated, or the control circuit 12 and the Wi-Fi chip 13 are integrated, or,
- the control circuit 12 and the peripheral chip 14 are integrated and arranged, which is not limited in the embodiment of the present application.
- the embodiment of the present application does not limit the type and quantity of the switch circuit 15.
- the switch circuit 15 may be a switch integrated device such as multi-pole multi-throw, or a circuit formed by a combination of multiple switches.
- the switch circuit 15 may be a double pole double throw switch.
- the switch circuit 15 in FIG. 1 is a double-pole double-throw switch as an example for illustration.
- the peripheral chip 14 may send a matching success message to the control circuit 12 when the external device is successfully matched.
- the matching success message may include, but is not limited to, various forms such as numbers, letters, and binary values. In this way, when the control circuit 12 receives the matching success message, it can learn that there is an external device that needs to communicate with the communication device 1.
- control circuit 12 When the control circuit 12 knows that the external device needs to communicate with the communication device 1, it not only needs to provide the communication device 1 with a Wi-Fi antenna 11 for Wi-Fi communication, but also needs to provide the external device with a Wi-Fi antenna 11 suitable for communicating with the communication device 1. Wi-Fi antenna 11. Furthermore, the control circuit 12 can execute the following operations in parallel based on the foregoing description.
- control circuit 12 can control Wi-Fi by turning on the path between the input terminal of the switch circuit 15 electrically connected to the Wi-Fi chip 13 and the output terminal of the switch circuit 15 electrically connected to the first preset antenna.
- the Fi chip 13 is electrically connected with the first preset antenna to realize Wi-Fi communication of the communication device 1.
- the Wi-Fi chip 13 Since the Wi-Fi chip 13 is electrically connected to the first preset antenna, the Wi-Fi chip 13 can control the communication device 1 to perform Wi-Fi communication through the first preset antenna, such as sending and receiving Wi-Fi required by the communication device 1 -Fi signal to ensure that the communication device 1 can communicate with Wi-Fi normally.
- control circuit 12 can control the peripheral device by turning on the path between the input terminal electrically connected to the peripheral chip 14 in the switch circuit 15 and the output terminal electrically connected to the second preset antenna in the switch circuit 15
- the chip 14 is electrically connected to the second preset antenna to realize communication between the external device and the communication device 1.
- the peripheral chip 14 can control the external device to communicate with the communication device 1 through the second preset antenna, such as sending and receiving Wi-Fi signals to the communication device 1.
- the second preset antenna can be used as a dedicated antenna for the external device to communicate with the communication device 1, to ensure that the external device communicates with the communication device 1, not only makes rational use of idle Wi-Fi antennas, but also eliminates the need for separate Wi-Fi antennas to reduce costs (For example, separately configure 2.4GHz or 5GHz Wi-Fi antennas for keyboard and mouse), which solves the problem of poor performance due to the need to ensure good headroom for the antenna, effectively reduces the difficulty of the overall layout and design of the antenna, and is also suitable for time Various communication needs with relatively small extension.
- the communication device 1 may also include any component such as a display screen, a protective case, a rear cover, a front frame, a circuit board, and a battery, which is not limited in the embodiment of the present application.
- the first preset antenna and the second preset antenna are set from multiple Wi-Fi antennas in advance, wherein the first preset antenna is used for the communication device to perform Wi-Fi communication.
- the second preset antenna is used for communication between the external device and the communication device.
- the two output terminals of the switch circuit are electrically connected with the first preset antenna and the second preset antenna, the first input terminal of the switch circuit is electrically connected with the signal terminal of the Wi-Fi chip, and the second input terminal of the switch circuit is electrically connected with The signal terminal of the peripheral chip is electrically connected, the output terminal of the control terminal of the switch circuit is electrically connected, and the output terminal of the peripheral chip is electrically connected with the input terminal of the control circuit.
- the peripheral chip may send a matching success message to the control circuit.
- the control circuit can control the Wi-Fi chip to be electrically connected to the first preset antenna and control the peripheral chip to be electrically connected to the second preset antenna through the switch circuit.
- the Wi-Fi chip can control the communication device to perform Wi-Fi communication through the first preset antenna
- the peripheral chip can control the external device to communicate with the communication device through the second preset antenna.
- the idle Wi-Fi antenna can be reasonably used to realize the communication between the communication device and the external device, and the overall layout of the antenna can be reduced without adding a new Wi-Fi antenna.
- the difficulty of this increases the utilization rate of Wi-Fi antennas, increases the communication rate between external devices and communication devices, and satisfies various low-latency scenarios, allowing users to operate flexibly and to facilitate the use of external devices.
- the communication device 1 of the embodiment of the present application still has an idle Wi-Fi antenna 11 under the premise of ensuring normal Wi-Fi communication, so the peripheral chip 14
- an idle Wi-Fi antenna 11 can also be used to search for external devices.
- FIG. 2 the implementation process of the peripheral chip 14 using the Wi-Fi antenna 11 to search for external devices in the embodiment of the present application will be described in detail.
- the communication device 1 usually selects a Wi-Fi antenna 11 with better communication quality for Wi-Fi communication to ensure the quality of Wi-Fi communication.
- the Wi-Fi chip 13 can determine the communication quality of each Wi-Fi antenna 11 and obtain the determination result. The judgment result is that the communication quality of the first target antenna is better than the communication quality of the second target antenna.
- the first target antenna can be used for Wi-Fi communication of the communication device 1, and the second target antenna can be used for the peripheral chip 14 to search for external devices, so that the second target antenna can be used as a dedicated antenna for the peripheral chip 14 to search for external devices. .
- the first target antenna and the second target antenna are different.
- the first target antenna and the second target antenna may be the same or different.
- the number of the first target antenna may be multiple to form a MIMO antenna to work, or it may be one, which is not limited in the embodiment of the present application.
- the number of the second target antenna may be one or multiple to form a MIMO antenna, which is not limited in this embodiment of the application.
- the embodiment of the present application does not limit the basis for determining the communication quality of each Wi-Fi antenna 11.
- the Wi-Fi chip 13 may determine the received signal strength indication (RSSI) of each Wi-Fi antenna 11 according to the collected signals of each Wi-Fi antenna 11, and according to each Wi-Fi antenna 11 The RSSI of 11 determines the communication quality of each Wi-Fi antenna 11.
- RSSI received signal strength indication
- each output terminal of the switch circuit 15 is electrically connected to a Wi-Fi antenna 11, that is, the first target antenna and the second target antenna are electrically connected to the output side of the switch circuit 15. And the first input terminal of the switch circuit 15 is electrically connected with the signal terminal of the Wi-Fi chip 13, and the second input terminal of the switch circuit 15 is electrically connected with the signal terminal of the peripheral chip 14.
- the output terminal of the control circuit 12 is electrically connected to the control terminal of the switch circuit 15, and can control the conduction or disconnection of the path between any input terminal and any output terminal of the switch circuit 15 to adjust Wi-Fi.
- the chip 13 and the peripheral chip 14 are electrically connected to any Wi-Fi antenna 11 respectively, that is, it is adjusted whether the Wi-Fi chip 13 and the peripheral chip 14 are electrically connected to the first target antenna and the second target antenna, respectively.
- the output terminal of the Wi-Fi chip 13 can be electrically connected to the second input terminal of the control circuit 12 to send the judgment result to the control circuit 12.
- the judgment result can be expressed in various forms including, but not limited to, numbers, secondary numerical values, letters, and words. Therefore, when the control circuit 12 receives the judgment result, it can learn that the communication quality of the first target antenna is better than that of the second target antenna, and can realize Wi-Fi communication of the communication device 1 through the first target antenna. And the process of searching for external devices by the peripheral chip 14 is realized through the second target antenna.
- control circuit 12 can execute the following operations in parallel.
- control circuit 12 can control Wi-Fi by turning on the path between the input terminal of the switch circuit 15 electrically connected to the Wi-Fi chip 13 and the output terminal of the switch circuit 15 electrically connected to the first target antenna.
- the chip 13 is electrically connected with the first target antenna to realize Wi-Fi communication of the communication device 1.
- the Wi-Fi chip 13 Since the Wi-Fi chip 13 is electrically connected to the first target antenna, the Wi-Fi chip 13 can control the communication device 1 to perform Wi-Fi communication through the first target antenna, such as sending and receiving Wi-Fi required by the communication device 1 Signal to ensure that the communication device 1 can communicate with Wi-Fi normally.
- control circuit 12 can control the peripheral chip by turning on the path between the input terminal of the switch circuit 15 electrically connected to the peripheral chip 14 and the output terminal of the switch circuit 15 electrically connected to the second target antenna.
- 14 is electrically connected to the second target antenna to realize the function of the peripheral chip 14 to search for external devices.
- the peripheral chip 14 can control the peripheral chip 14 to search for external devices through the second target antenna. For example, when the external device is started and placed within a certain range from the peripheral chip 14, the peripheral chip 14 can search for the external device through the second target antenna. Furthermore, the peripheral chip 14 can be matched with the searched external device, such as checking whether the external device is an authorized device, judging whether the operating environment of the external device is safe, and so on. Generally, if the external device and the peripheral chip 14 have not been matched, the peripheral chip 14 can be matched with the searched external device. If the external device and the peripheral chip 14 have been successfully matched, the peripheral chip 14 can directly match the searched external device successfully.
- the communication device provided by the embodiment of the present application is electrically connected to the first target antenna and the second target antenna through the two output terminals of the switch circuit, the first input terminal of the switch circuit is electrically connected to the signal terminal of the Wi-Fi chip, and the switch The second input terminal of the circuit is electrically connected with the signal terminal of the peripheral chip, the output terminal of the Wi-Fi chip is electrically connected with the input terminal of the control circuit, and the output terminal of the control circuit is electrically connected with the control terminal of the switch circuit.
- the Wi-Fi chip can determine the communication quality of multiple Wi-Fi antennas, and send the determination result to the control circuit, where the determination result is that the communication quality of the first target antenna is better than that of the second target antenna Communication quality.
- the control circuit When the control circuit receives the judgment result, it can determine that the first target antenna is used for the communication device for Wi-Fi communication, and the second target antenna is used for the peripheral chip to search for external devices.
- the switch circuit can control the Wi-Fi chip and the second target antenna.
- a target antenna is electrically connected and the control external device chip is electrically connected with the second target antenna.
- the Wi-Fi chip can control the communication device to perform Wi-Fi communication through the first target antenna
- the peripheral chip can control the peripheral chip to search for the external device through the second target antenna.
- Wi-Fi antennas can be used rationally to realize the process of searching for external devices by the peripheral chip, which improves the utilization rate of the Wi-Fi antenna and makes Wi-Fi -Fi antennas can be optimized for multiplexing. While reducing the number of Wi-Fi antennas, it effectively ensures the performance of Wi-Fi antennas.
- the peripheral chip 14 may send a matching success message to the control circuit 12, so that The control circuit 12 learns that there is an external device that needs to communicate with the communication device 1. Therefore, the control circuit 12 can determine that it is necessary to control the Wi-Fi chip 13 to be electrically connected to the first preset antenna, and to control the peripheral chip 14 to be electrically connected to the second preset antenna.
- the control circuit 12 can set the Wi-Fi chip 13 to be electrically connected to the first preset antenna through the switch circuit 15 in advance, and the peripheral chip 14 to be electrically connected to the second preset antenna through the switch circuit 15 to be preset status.
- the control circuit 12 may adjust the current state of the switch circuit 15 to a preset state.
- the Wi-Fi chip 13 has been electrically connected to the first target antenna through the switch circuit 15, and the peripheral chip 14 has been electrically connected to the second target antenna through the switch circuit 15. Therefore, the control circuit 12 can obtain the switch circuit 15
- the current state that is, the current state is a state where the Wi-Fi chip 13 is electrically connected to the first target antenna through the switch circuit 15 and the peripheral chip 14 is electrically connected to the second target antenna through the switch circuit 15.
- control circuit 12 can determine whether the current state of the switch circuit 15 is a preset state, and adjust the electrical connection relationship between the Wi-Fi chip 13 and the peripheral chip 14 and the Wi-Fi antenna 11, so that the Wi-Fi chip 13 can be connected to the Wi-Fi antenna 11.
- a preset antenna is electrically connected and the peripheral chip 14 is electrically connected with a second preset antenna.
- the control circuit 12 determines that the current state of the switch circuit 15 is the preset state, the control circuit 12 can lock the current state of the switch circuit 15 so that the Wi-Fi chip 13 can control the communication device 1 to pass through the first target antenna (ie, the first preset state). Set an antenna) for Wi-Fi communication, and the peripheral chip 14 controls the external device to communicate with the communication device 1 through the second target antenna (ie, the second preset antenna).
- the control circuit 12 determines that the current state of the switch circuit 15 is not the preset state, the control circuit 12 can update the current state of the switch circuit 15 to the preset state, so that the Wi-Fi chip 13 can switch to the first state through the switch circuit 15
- a preset antenna is electrically connected to realize the process of the communication device 1 performing Wi-Fi communication through the first preset antenna, and the peripheral chip 14 can be switched to be electrically connected with the second preset antenna through the switch circuit 15, so that the external device can pass through The communication process between the second preset antenna and the communication device 1.
- control circuit 12 updates the current state of the switch circuit 15 to a preset state, it can also lock the current state of the switch circuit 15, that is, the Wi-Fi chip 13 is electrically connected to the first preset antenna and the peripheral chip 14 The state of being electrically connected to the second preset antenna.
- the control circuit After the communication device performs Wi-Fi communication through the first target antenna, and the peripheral chip searches for the external device through the second target Wi-Fi antenna, when the peripheral chip matches the external device successfully, the control circuit It can be judged whether the current state of the switch circuit is the preset state. If so, the control circuit can determine that the first target antenna is the first preset antenna, and the second target antenna is the second preset antenna, and the current state of the switch circuit can be locked. If not, the control circuit can adjust the current state of the switch circuit to the preset state, so that the Wi-Fi chip is electrically connected to the first preset antenna and the peripheral chip is electrically connected to the second preset antenna. Thus, the communication device can perform Wi-Fi communication through the first preset antenna, and the external device can communicate with the communication device through the second preset antenna.
- the first preset antenna and the second preset antenna may be located at any positions of the communication device 1, and are usually set based on actual experience.
- the positions of the first preset antenna and the second preset antenna will be described with reference to FIGS. 3 to 4.
- the communication device 1 when the user holds the short side of the communication device 1 with both hands, the communication device 1 is usually in a landscape state, as shown in FIG. 3. When the user holds the long sides of the communication device 1 with both hands, the communication device 1 is usually in a vertical screen state, as shown in FIG. 4. It should be noted that the above method is only an optional method for defining the communication device 1 in the vertical screen state and the horizontal screen state, and the embodiment of the present application is not limited to this method.
- the embodiment of the present application may use the second Wi-Fi antenna (in Figure 3 and Figure 4 with A second Wi-Fi antenna is taken as an example for illustration) is set in the upper half of the area when the communication device 1 is in the horizontal screen state to prevent the second Wi-Fi antenna from being blocked when the communication device 1 is in the horizontal screen state.
- the first Wi-Fi antenna (a first Wi-Fi antenna is taken as an example in FIG. 3 and FIG. 4 for illustration) is located in the upper half of the area where the communication device 1 is in the vertical screen state, Prevent the first Wi-Fi antenna from being blocked when the communication device 1 is in the vertical screen state.
- the embodiment of the present application does not limit the specific positions and numbers of the first Wi-Fi antenna and the second Wi-Fi antenna.
- the second Wi-Fi antenna may be located at the center of the top of the communication device 1.
- the first Wi-Fi antenna may be located at the center of the top of the communication device 1.
- the first Wi-Fi antenna is set in the vertical position of the communication device 1.
- the preset distance can be combined with actual experience to perform equipment, which is not limited in the embodiment of the present application.
- the embodiment of the present application may
- the second Wi-Fi antenna is set as the first preset antenna
- the first Wi-Fi antenna is set as the second preset antenna.
- the embodiment of the present application may
- the first Wi-Fi antenna is set as the first preset antenna
- the second Wi-Fi antenna is set as the second preset antenna.
- the communication device 1 may further include: a third Wi-Fi antenna (in Figure 5, a third Wi-Fi antenna is used as an example for illustration). Wherein, the other signal end of the Wi-Fi chip 13 is electrically connected to the third Wi-Fi antenna.
- the third Wi-Fi antenna is located in the upper half area when the communication device 1 is in the vertical screen state, and is located in the upper half area when the communication device 1 is in the horizontal screen state, no matter if the communication device 1 is in the horizontal screen state or the vertical screen state, In the screen state, the third Wi-Fi antenna is not easy to be held by hand.
- the third Wi-Fi antenna can be used for Wi-Fi communication of the communication device 1 to ensure the Wi-Fi communication of the communication device 1.
- the second Wi-Fi antenna and the third Wi-Fi antenna may jointly form a MIMO antenna to realize Wi-Fi communication of the communication device 1.
- the first Wi-Fi antenna and the third Wi-Fi antenna may jointly form a MIMO antenna to realize Wi-Fi communication of the communication device 1.
- the embodiment of the present application does not limit the specific position and number of the third Wi-Fi antenna.
- the third Wi-Fi antenna may be located at the center of the top of the communication device 1.
- the third Wi-Fi antenna may be located at the center of the top of the communication device 1.
- the communication device 1 may further include: a peripheral charging interface 16 (the peripheral charging interface 16 is illustrated with multiple circles in FIG. 5). Among them, the peripheral charging interface 16 is located in the lower half of the area when the communication device 1 is in the first state, and the peripheral charging interface 16 is close to the bottom of the lower area to facilitate the communication device 1 to charge external devices.
- a peripheral charging interface 16 (the peripheral charging interface 16 is illustrated with multiple circles in FIG. 5). Among them, the peripheral charging interface 16 is located in the lower half of the area when the communication device 1 is in the first state, and the peripheral charging interface 16 is close to the bottom of the lower area to facilitate the communication device 1 to charge external devices.
- the embodiment of the present application does not limit the specific location, number, and type of the external charging interface 16.
- the first state may be a horizontal screen state or a vertical screen state, which is not limited in the embodiment of the present application.
- the peripheral charging interface 16 may be located at the center of the bottom edge of the communication device 1.
- the peripheral charging interface 16 may be located at the center of the bottom side of the communication device 1.
- the communication device 1 is a tablet
- the tablet is put on the tablet case, and the external device is placed on the tablet case. At this time, the tablet can charge the external device through the external device charging interface 16 through the tablet case.
- the above charging method is only an exemplary method in which the communication device 1 charges an external device through the external charging interface 16 and the embodiment of the present application is not limited to the above charging method.
- an embodiment of the present application also provides an antenna switching method.
- the antenna switching method may be implemented by the communication device in the above-mentioned embodiments shown in FIG. 1 to FIG. 5 through software and/or hardware.
- a first preset antenna and a second preset antenna are set in two Wi-Fi antennas, where the first preset antenna is used for Wi-Fi communication by the communication device, and the second preset antenna is used between the external device and the communication device
- the first preset antenna is used for Wi-Fi communication by the communication device
- the second preset antenna is used between the external device and the communication device
- the idle Wi-Fi antenna ie the second preset antenna
- Fig. 6 is a flowchart of an exemplary antenna switching method provided by an embodiment of the application. As shown in FIG. 6, the antenna switching method of the embodiment of the present application may include:
- the peripheral chip sends a matching success message to the control circuit, where the matching success message is used to indicate that the peripheral chip is successfully matched with the external device.
- control circuit When the control circuit receives the matching success message, it controls the Wi-Fi chip to switch to be electrically connected to the first preset antenna through the switch circuit, and controls the peripheral chip to switch to be electrically connected to the second preset antenna through the switch circuit, wherein ,
- the first preset antenna and the second preset antenna are set in advance from multiple Wi-Fi antennas, the first preset antenna is used for Wi-Fi communication of the communication device, and the second preset antenna is used for the external device and Communication between communication devices.
- the Wi-Fi chip controls the communication device to perform Wi-Fi communication through the first preset antenna.
- the peripheral chip controls the external device to communicate with the communication device through the second preset antenna.
- the antenna switching method provided in the embodiment of the present application may use the communication device in the embodiment of FIG. 1 to perform the process, and its implementation manner and technical effect are similar, and the description of the embodiment of the present application will not be repeated here.
- the antenna switching method of the embodiment of the present application can also determine that the communication quality of the first target antenna is better than the communication quality of the second target antenna, based on the electrical connection relationship of each component in the communication device, not only through the first A target antenna realizes the normal Wi-Fi communication of the communication device, and the idle Wi-Fi (that is, the second target antenna) can also be used to realize the process of searching for external devices by the peripheral chip, which improves the utilization rate of the Wi-Fi antenna.
- Fig. 7 is a flowchart of an exemplary antenna switching method provided by an embodiment of the application. As shown in FIG. 7, the antenna switching method of the embodiment of the present application may include:
- the Wi-Fi chip judges the communication quality of multiple Wi-Fi antennas.
- the Wi-Fi chip sends a judgment result to the control circuit, where the judgment result is that the communication quality of the first target antenna is better than the communication quality of the second target antenna, and the first target antenna is used for Wi-Fi communication of the communication device.
- the second target antenna is used for the peripheral chip to search for external devices.
- control circuit controls the Wi-Fi chip to switch to be electrically connected to the first target antenna through the switch circuit, and controls the peripheral chip to switch to be electrically connected to the second target antenna through the switch circuit.
- the Wi-Fi chip controls the communication device to perform Wi-Fi communication through the first target antenna.
- the peripheral chip controls the external device chip to search for the external device through the second target antenna.
- the antenna switching method provided in the embodiment of the present application may use the communication device of the embodiment in FIG. 2 to perform the process, and its implementation manner and technical effect are similar, and the description of the embodiment of the present application will not be repeated here.
- the communication device may perform the steps shown in FIG. 7 so that the communication device performs Wi-Fi communication through the first target antenna, and the external device chip searches for the external device through the second target antenna.
- the communication device can perform the steps shown in FIG. 6 so that the communication device performs Wi-Fi communication through the first preset antenna, and the external device passes through The second preset antenna communicates with the communication device.
- the Wi-Fi chip is electrically connected to the first target antenna, and the peripheral chip is electrically connected to the second target antenna, it can be seen that the current state of the switch circuit is that the Wi-Fi chip passes through the switch circuit. It is electrically connected to the first target antenna, and the peripheral chip is electrically connected to the second target antenna through the switch circuit.
- the Wi-Fi chip needs to be electrically connected to the first preset antenna, and the peripheral chip needs to be electrically connected to the second preset antenna.
- the preset state of the switch circuit can be set in advance to a state where the Wi-Fi chip is electrically connected to the first preset antenna through the switch circuit, and the peripheral chip is electrically connected to the second preset antenna through the switch circuit.
- control circuit may determine whether the current state of the switch circuit is a preset state.
- the control circuit can lock the current state of the switch circuit so that the Wi-Fi chip controls the communication device to perform Wi-Fi through the first target antenna (ie, the first preset antenna)
- the communication and peripheral chip controls the external device to communicate with the communication device through the second target antenna (ie, the second preset antenna).
- control circuit determines that the current state of the switch circuit is not the preset state
- the control circuit can update the current state of the switch circuit to the preset state to control the Wi-Fi chip to switch to be electrically connected to the first preset antenna through the switch circuit And the control peripheral chip is switched to be electrically connected with the second preset antenna through the switch circuit.
- control circuit updates the current state of the switch circuit to the preset state
- it can also lock the current state of the switch circuit, that is, the Wi-Fi chip is electrically connected to the first preset antenna and the peripheral chip is connected to the second preset state. Set the state of electrical connection of the antenna.
- the control circuit After the communication device performs Wi-Fi communication through the first target antenna, and the peripheral chip searches for the external device through the second target Wi-Fi antenna, when the peripheral chip matches the external device successfully, the control circuit It can be judged whether the current state of the switch circuit is the preset state. If so, the control circuit can determine that the first target antenna is the first preset antenna, and the second target antenna is the second preset antenna, and the current state of the switch circuit can be locked. If not, the control circuit can adjust the current state of the switch circuit to the preset state, so that the Wi-Fi chip is electrically connected to the first preset antenna and the peripheral chip is electrically connected to the second preset antenna. Thus, the communication device can perform Wi-Fi communication through the first preset antenna, and the external device can communicate with the communication device through the second preset antenna.
- FIG. 8 is a schematic diagram of the hardware structure of an exemplary communication device provided by an embodiment of the application.
- the communication device may include but is not limited to Terminal, among them, terminal: can be a wireless terminal or a wired terminal, a wireless terminal can refer to a device with a wireless transceiver function, which can be deployed on land, including indoor or outdoor, handheld or vehicle-mounted; it can also be deployed on the water It can also be deployed in the air (such as airplanes, balloons and satellites, etc.).
- the terminal can be a personal computer, game console, MP3 player, mobile phone, tablet computer (Pad), computer with wireless transceiver function, printer, virtual reality (Virtual Reality, VR) terminal, augmented reality (Augmented Reality, AR) terminals, wireless terminals in industrial control, wireless terminals in self-driving (self-driving), wireless terminals in remote medical, wireless terminals in smart grid, transportation Wireless terminals in transportation safety, wireless terminals in smart cities, and wireless terminals in smart homes, etc., are not limited here, and are used to implement the above-mentioned figures 6-7
- the method embodiment corresponds to the operation of the communication device through software and/or hardware.
- the communication device 100 in the embodiment of the present application may include: a memory 101 and a processor 102.
- the memory 101 and the processor 102 may be connected through a bus 103.
- the memory 101 is used to store program codes
- the processor 102 calls the program code, and when the program code is executed, it is used to execute the antenna switching method in any of the foregoing embodiments. For details, refer to the related description in the foregoing method embodiment.
- the embodiment of the present application further includes a communication interface 104, and the communication interface 104 may be connected to the processor 102 through the bus 103.
- the processor 102 may control the communication interface 103 to implement the aforementioned receiving and sending functions of the communication device 100.
- the communication device in the embodiment of the present application may be used to execute the technical solutions in the foregoing method embodiments, and its implementation principles and technical effects are similar, and will not be repeated here.
- the disclosed device and method may be implemented in other ways.
- the device embodiments described above are only illustrative.
- the division of the modules is only a logical function division, and there may be other divisions in actual implementation, for example, multiple modules can be combined or integrated. To another system, or some features can be ignored, or not implemented.
- the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or modules, and may be in electrical, mechanical or other forms.
- modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules can be selected according to actual needs to achieve the objectives of the solutions of the embodiments of the present application.
- the functional modules in the various embodiments of the present application may be integrated into one processing unit, or each module may exist alone physically, or two or more modules may be integrated into one unit.
- the units formed by the above-mentioned modules can be realized in the form of hardware, or in the form of hardware plus software functional units.
- the above-mentioned integrated modules implemented in the form of software function modules may be stored in a computer readable storage medium.
- the above-mentioned software function module is stored in a storage medium and includes several instructions to make a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor (English: processor) to execute the various embodiments of the present application Part of the method.
- processor may be a central processing unit (English: Central Processing Unit, abbreviated: CPU), or other general-purpose processors, digital signal processors (English: Digital Signal Processor, abbreviated: DSP), and application-specific integrated circuits (English: Application Specific Integrated Circuit, referred to as ASIC) etc.
- the general-purpose processor may be a microprocessor or the processor may also be any conventional processor or the like.
- the steps of the method disclosed in combination with the invention can be directly embodied as executed by a hardware processor, or executed by a combination of hardware and software modules in the processor.
- the memory may include a high-speed RAM memory, and may also include a non-volatile storage NVM, such as at least one disk storage, and may also be a U disk, a mobile hard disk, a read-only memory, a magnetic disk, or an optical disk.
- NVM non-volatile storage
- the bus can be an Industry Standard Architecture (ISA) bus, Peripheral Component (PCI) bus, or Extended Industry Standard Architecture (EISA) bus, etc.
- ISA Industry Standard Architecture
- PCI Peripheral Component
- EISA Extended Industry Standard Architecture
- the bus can be divided into address bus, data bus, control bus, etc.
- the buses in the drawings of this application are not limited to only one bus or one type of bus.
- the present application also provides a readable storage medium in which an execution instruction is stored.
- an execution instruction is stored.
- the communication device executes the antenna switching method in the foregoing method embodiment.
- the present application also provides a chip, which is connected to a memory, or a memory is integrated on the chip, and when the software program stored in the memory is executed, the antenna switching method in the foregoing method embodiment is implemented.
- This application also provides a program product, which includes an execution instruction, and the execution instruction is stored in a readable storage medium.
- At least one processor of the communication device can read the execution instruction from a readable storage medium, and the execution of the execution instruction by the at least one processor causes the communication device to implement the antenna switching method in the foregoing method embodiment.
- the computer program product includes one or more computer instructions.
- the computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices.
- the computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from a website, computer, server, or data center.
- the computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server or a data center integrated with one or more available media.
- the usable medium may be a magnetic medium (for example, a floppy disk, a hard disk, a magnetic tape), an optical medium (for example, a DVD), or a semiconductor medium (for example, a solid state disk (SSD)).
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Transceivers (AREA)
- Mobile Radio Communication Systems (AREA)
- Telephone Function (AREA)
Abstract
The present application provides a communication device and an antenna switching method. The communication device comprises a plurality of Wi-Fi antennas, a control circuit, a Wi-Fi chip, a peripheral chip, and a switch circuit. An output terminal of the peripheral chip is electrically connected to a first input terminal of the control circuit to send a matching success message indicating a successful match between the peripheral chip and an external device to the control circuit. A first input terminal and a second input terminal of the switch circuit are electrically connected to a signal terminal of the Wi-Fi chip and a signal terminal of the peripheral chip, respectively, and each output terminal of the switch circuit is electrically connected to one Wi-Fi antenna. An output terminal of the control circuit is electrically connected to a control terminal of the switch circuit to control, by means of the switch circuit, the Wi-Fi chip to be electrically connected to a first preset antenna and to control the peripheral chip to be electrically connected to a second preset antenna. The Wi-Fi chip controls the communication device to perform Wi-Fi communication by means of the first preset antenna, and the peripheral chip controls the external device to communicate with the communication device by means of the second preset antenna. Idle Wi-Fi antennas are reasonably utilized, and various low latency scenarios are met.
Description
本申请要求于2019年07月17日提交中国专利局、申请号为201910645765.3、申请名称为“通信设备及天线切换方法”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application filed with the Chinese Patent Office with the application number 201910645765.3 and the application name "Communication Equipment and Antenna Switching Method" on July 17, 2019, the entire content of which is incorporated into this application by reference.
本申请涉及通信技术领域,尤其涉及一种通信设备及天线切换方法。This application relates to the field of communication technology, and in particular to a communication device and an antenna switching method.
通信设备(如平板电脑、手机等终端)已普遍应用于用户的日常和工作中。同时,为了满足用户的各种需求,通信设备连接的如鼠标、键盘等外部设备也在不断增加。Communication devices (such as tablet computers, mobile phones and other terminals) have been widely used in users' daily and work. At the same time, in order to meet the various needs of users, external devices such as mice and keyboards connected to communication devices are also increasing.
目前,外部设备可以采用有线接口实现与通信设备的连接,用户操作不够方便,通信设备的接口较少时会由于外接转换设备而提高成本。因此,外部设备常常采用无线蓝牙与终端设备进行通信。然而,无线蓝牙的通信方式由于操作时延增大而无法满足如游戏场景等低时延需求,降低了用户的体验感。At present, the external device can use the wired interface to realize the connection with the communication device, and the user operation is not convenient enough. When the communication device has fewer interfaces, the cost will increase due to the external conversion device. Therefore, external devices often use wireless Bluetooth to communicate with terminal devices. However, the wireless Bluetooth communication method cannot meet the low-latency requirements such as game scenes due to the increased operating delay, which reduces the user experience.
发明内容Summary of the invention
本申请实施例提供一种通信设备及天线切换方法,可在保障通信设备正常Wi-Fi通信的同时,还可以合理利用闲置Wi-Fi天线,实现通信设备与外部设备之间的通信,不仅提高了Wi-Fi天线的利用率,还提高了外部设备与通信设备之间的通信速率,以满足各种低时延场景的需求。The embodiments of the present application provide a communication device and an antenna switching method, which can ensure normal Wi-Fi communication of the communication device, and can also make reasonable use of idle Wi-Fi antennas to achieve communication between the communication device and external devices, which not only improves This improves the utilization rate of Wi-Fi antennas and also increases the communication rate between external devices and communication devices to meet the needs of various low-latency scenarios.
第一方面,本申请实施例提供一种通信设备,包括:多个Wi-Fi天线、控制电路、Wi-Fi芯片、外设芯片和开关电路。其中,控制电路的第一输入端与外设芯片的输出端电连接,控制电路的输出端与开关电路的控制端电连接,Wi-Fi芯片的信号端与开关电路的第一输入端电连接,外设芯片的信号端与开关电路的第二输入端电连接,开关电路的每个输出端电连接一个Wi-Fi天线。外设芯片,用于向控制电路发送匹配成功消息,其中,匹配成功消息用于表示外设芯片与外部设备匹配成功。控制电路,用于在接收到匹配成功消息时,控制Wi-Fi芯片通过开关电路与第一预设天线电连接,控制外设芯片通过开关电路电与第二预设天线电连接,其中,第一预设天线和第二预设天线为事先从多个Wi-Fi天线中设置的,第一预设天线用于通信设备的Wi-Fi通信,第二预设天线用于外部设备与通信设备之间的通信。Wi-Fi芯片,用于控制通信设备通过第一预设天线进行Wi-Fi通信。外设芯片,用于控制外部设备通过第二预设天线与通信设备进行通信。In the first aspect, an embodiment of the present application provides a communication device including: multiple Wi-Fi antennas, a control circuit, a Wi-Fi chip, a peripheral chip, and a switch circuit. Wherein, the first input terminal of the control circuit is electrically connected with the output terminal of the peripheral chip, the output terminal of the control circuit is electrically connected with the control terminal of the switch circuit, and the signal terminal of the Wi-Fi chip is electrically connected with the first input terminal of the switch circuit. , The signal terminal of the peripheral chip is electrically connected with the second input terminal of the switch circuit, and each output terminal of the switch circuit is electrically connected with a Wi-Fi antenna. The peripheral chip is used to send a matching success message to the control circuit, where the matching success message is used to indicate that the peripheral chip is successfully matched with the external device. The control circuit is used to control the Wi-Fi chip to be electrically connected to the first preset antenna through the switch circuit when receiving the matching success message, and to control the peripheral chip to be electrically connected to the second preset antenna through the switch circuit. A preset antenna and a second preset antenna are set in advance from multiple Wi-Fi antennas, the first preset antenna is used for Wi-Fi communication of the communication device, and the second preset antenna is used for the external device and the communication device Communication between. The Wi-Fi chip is used to control the communication device to perform Wi-Fi communication through the first preset antenna. The peripheral chip is used to control the external device to communicate with the communication device through the second preset antenna.
通过第一方面提供的通信设备,事先从多个Wi-Fi天线中设置第一预设天线和第二预设天线,其中,第一预设天线用于通信设备进行Wi-Fi通信,第二预设天线用于外部设备与通信设备之间的通信。且开关电路的两个输出端分别与第一预设天线和第二预设天线电连接,开关电路的第一输入端与Wi-Fi芯片的信号端电连接,开关电路的第二输入端与外设芯片的信号端电连接,开关电路的控制端的输出端电连接,外设芯片的输出端与控制电 路的输入端电连接。基于上述电连接关系,在外设芯片与外部设备匹配成功时,外设芯片可以向控制电路发送匹配成功消息。控制电路在接收到匹配成功消息时,可以通过开关电路控制Wi-Fi芯片与第一预设天线电连接且控制外设芯片与第二预设天线电连接。从而,Wi-Fi芯片可以控制通信设备通过第一预设天线进行Wi-Fi通信,外设芯片可以控制外部设备通过第二预设天线与通信设备进行通信。本申请实施例中,不仅可以保证通信设备的正常Wi-Fi通信,还可以合理利用闲置Wi-Fi天线实现通信设备与外部设备之间的通信,无需新增Wi-Fi天线而降低天线整体布局的难度,提高了Wi-Fi天线的利用率,提高了外部设备与通信设备之间的通信速率,满足了各种低时延场景,使得用户可以灵活操作,方便用户使用外部设备。With the communication device provided in the first aspect, the first preset antenna and the second preset antenna are set in advance from multiple Wi-Fi antennas, wherein the first preset antenna is used for the communication device to perform Wi-Fi communication, and the second The preset antenna is used for communication between the external device and the communication device. And the two output terminals of the switch circuit are electrically connected with the first preset antenna and the second preset antenna, the first input terminal of the switch circuit is electrically connected with the signal terminal of the Wi-Fi chip, and the second input terminal of the switch circuit is electrically connected with The signal terminal of the peripheral chip is electrically connected, the output terminal of the control terminal of the switch circuit is electrically connected, and the output terminal of the peripheral chip is electrically connected with the input terminal of the control circuit. Based on the foregoing electrical connection relationship, when the peripheral chip and the external device are successfully matched, the peripheral chip may send a matching success message to the control circuit. When receiving the matching success message, the control circuit can control the Wi-Fi chip to be electrically connected to the first preset antenna and control the peripheral chip to be electrically connected to the second preset antenna through the switch circuit. Thus, the Wi-Fi chip can control the communication device to perform Wi-Fi communication through the first preset antenna, and the peripheral chip can control the external device to communicate with the communication device through the second preset antenna. In the embodiments of this application, not only can the normal Wi-Fi communication of the communication device be ensured, but also the idle Wi-Fi antenna can be reasonably used to realize the communication between the communication device and the external device, and the overall layout of the antenna can be reduced without adding a new Wi-Fi antenna. The difficulty of this increases the utilization rate of Wi-Fi antennas, increases the communication rate between external devices and communication devices, and satisfies various low-latency scenarios, allowing users to operate flexibly and to facilitate the use of external devices.
在一种可能的设计中,控制电路的第二输入端与Wi-Fi芯片的输出端电连接。Wi-Fi芯片,用于判断多个Wi-Fi天线的通信质量;向控制电路发送判断结果,其中,判断结果为第一目标天线的通信质量优于第二目标天线的通信质量,第一目标天线用于通信设备的Wi-Fi通信,第二目标天线用于外设芯片搜索外部设备。控制电路,用于在接收到判断结果时,控制Wi-Fi芯片通过开关电路切换至与第一目标天线电连接,控制外设芯片通过开关电路切换至与第二目标天线电连接。Wi-Fi芯片,用于控制通信设备通过第一目标天线进行Wi-Fi通信。外设芯片,用于控制外设备芯片通过第二目标天线搜索外部设备。In a possible design, the second input terminal of the control circuit is electrically connected to the output terminal of the Wi-Fi chip. The Wi-Fi chip is used to judge the communication quality of multiple Wi-Fi antennas; send the judgment result to the control circuit, where the judgment result is that the communication quality of the first target antenna is better than the communication quality of the second target antenna, and the first target The antenna is used for Wi-Fi communication of the communication device, and the second target antenna is used for the peripheral chip to search for external devices. The control circuit is used to control the Wi-Fi chip to switch to be electrically connected to the first target antenna through the switch circuit when the judgment result is received, and to control the peripheral chip to switch to be electrically connected to the second target antenna through the switch circuit. The Wi-Fi chip is used to control the communication device to perform Wi-Fi communication through the first target antenna. The peripheral chip is used to control the external device chip to search for the external device through the second target antenna.
通过该实施方式提供的通信设备,其中,开关电路的两个输出端分别与第一目标天线和第二目标天线电连接,开关电路的第一输入端与Wi-Fi芯片的信号端电连接,开关电路的第二输入端与外设芯片的信号端电连接,Wi-Fi芯片的输出端与控制电路的输入端电连接,控制电路的输出端与开关电路的控制端电连接。基于上述电连接关系,Wi-Fi芯片可以判断多个Wi-Fi天线的通信质量,并向控制电路发送判断结果,其中,该判断结果为第一目标天线的通信质量优于第二目标天线的通信质量。控制电路在接收到判断结果时,可以确定第一目标天线用于通信设进行Wi-Fi通信,第二目标天线用于外设芯片搜索外部设备,便可通过开关电路控制Wi-Fi芯片与第一目标天线电连接且控制外设备芯片与第二目标天线电连接。从而,Wi-Fi芯片可以控制通信设备通过第一目标天线进行Wi-Fi通信,外设芯片可以控制外设芯片通过第二目标天线搜索外部设备。本申请实施例中,不仅可以保证通信设备的正常Wi-Fi通信,还可以合理利用闲置Wi-Fi天线,实现外设芯片搜索外部设备的过程,提高了Wi-Fi天线的利用率,使得Wi-Fi天线得以优化复用,在减少Wi-Fi天线数量的同时,有效保证了Wi-Fi天线的使用性能。The communication device provided by this embodiment, wherein the two output terminals of the switch circuit are electrically connected to the first target antenna and the second target antenna, respectively, and the first input terminal of the switch circuit is electrically connected to the signal terminal of the Wi-Fi chip, The second input terminal of the switch circuit is electrically connected with the signal terminal of the peripheral chip, the output terminal of the Wi-Fi chip is electrically connected with the input terminal of the control circuit, and the output terminal of the control circuit is electrically connected with the control terminal of the switch circuit. Based on the above electrical connection relationship, the Wi-Fi chip can determine the communication quality of multiple Wi-Fi antennas, and send the determination result to the control circuit, where the determination result is that the communication quality of the first target antenna is better than that of the second target antenna Communication quality. When the control circuit receives the judgment result, it can determine that the first target antenna is used for the communication device for Wi-Fi communication, and the second target antenna is used for the peripheral chip to search for external devices. The switch circuit can control the Wi-Fi chip and the second target antenna. A target antenna is electrically connected and the control external device chip is electrically connected with the second target antenna. Thus, the Wi-Fi chip can control the communication device to perform Wi-Fi communication through the first target antenna, and the peripheral chip can control the peripheral chip to search for the external device through the second target antenna. In the embodiments of the present application, not only can the normal Wi-Fi communication of the communication device be ensured, but also idle Wi-Fi antennas can be used rationally to realize the process of searching for external devices by the peripheral chip, which improves the utilization rate of the Wi-Fi antenna and makes Wi-Fi -Fi antennas can be optimized for multiplexing. While reducing the number of Wi-Fi antennas, it effectively ensures the performance of Wi-Fi antennas.
在一种可能的设计中,控制电路,用于在接收到匹配成功消息时,判断开关电路的当前状态是否预设状态,其中,当前状态为Wi-Fi芯片通过开关电路与第一目标天线电连接,且外设芯片通过开关电路与第二目标天线电连接的状态,预设状态为事先设置Wi-Fi芯片通过开关电路与第一预设天线电连接,且外设芯片通过开关电路与第二预设天线电连接的状态。In a possible design, the control circuit is used to determine whether the current state of the switch circuit is a preset state when the matching success message is received. The current state is that the Wi-Fi chip is electrically connected to the first target antenna through the switch circuit. Connected, and the peripheral chip is electrically connected to the second target antenna through the switch circuit. The preset state is that the Wi-Fi chip is set in advance to be electrically connected to the first preset antenna through the switch circuit, and the peripheral chip is electrically connected to the second target antenna through the switch circuit. 2. Preset the state of electrical connection of the antenna.
在一种可能的设计中,控制电路,用于在判断开关电路的当前状态为预设状态时,锁定开关电路的当前状态,以使Wi-Fi芯片控制通信设备通过第一目标天线进行Wi-Fi通信且外设芯片控制外部设备通过第二目标天线与通信设备进行通信。控制电路,用于在判断开关电路的当前状态不为预设状态时,将开关电路的当前状态更新为预设状态,以控制Wi-Fi芯片通过开关电路切换至与第一预设天线电连接且控制外设芯片通过开关电路切换至与 第二预设天线电连接。In a possible design, the control circuit is used to lock the current state of the switch circuit when it is judged that the current state of the switch circuit is the preset state, so that the Wi-Fi chip controls the communication device to perform Wi-Fi via the first target antenna. Fi communication and the peripheral chip control the external device to communicate with the communication device through the second target antenna. The control circuit is used to update the current state of the switch circuit to the preset state when judging that the current state of the switch circuit is not the preset state, so as to control the Wi-Fi chip to switch to be electrically connected to the first preset antenna through the switch circuit And the control peripheral chip is switched to be electrically connected with the second preset antenna through the switch circuit.
通过该实施方式提供的通信设备,在通信设备通过第一目标天线进行Wi-Fi通信,且外设芯片通过第二目标Wi-Fi天线搜索外部设备之后,当外设芯片与外部设备匹配成功时,控制电路可以判断开关电路的当前状态是否为预设状态。若是,则控制电路可以确定第一目标天线即第一预设天线,第二目标天线即第二预设天线,便可锁定开关电路的当前状态。若否,则控制电路可以将开关电路的当前状态调整为预设状态,使得Wi-Fi芯片与第一预设天线电连接且外设芯片与第二预设天线电连接。从而,通信设备可以通过第一预设天线进行Wi-Fi通信,且外部设备可以通过第二预设天线与通信设备进行通信。With the communication device provided by this embodiment, after the communication device performs Wi-Fi communication through the first target antenna, and the peripheral chip searches for the external device through the second target Wi-Fi antenna, when the peripheral chip matches the external device successfully , The control circuit can determine whether the current state of the switch circuit is a preset state. If so, the control circuit can determine that the first target antenna is the first preset antenna, and the second target antenna is the second preset antenna, and the current state of the switch circuit can be locked. If not, the control circuit can adjust the current state of the switch circuit to the preset state, so that the Wi-Fi chip is electrically connected to the first preset antenna and the peripheral chip is electrically connected to the second preset antenna. Thus, the communication device can perform Wi-Fi communication through the first preset antenna, and the external device can communicate with the communication device through the second preset antenna.
在一种可能的设计中,控制电路,还用于在将开关电路的当前状态更新为预设状态之后,锁定开关电路的当前状态。In a possible design, the control circuit is also used to lock the current state of the switch circuit after updating the current state of the switch circuit to a preset state.
在一种可能的设计中,Wi-Fi芯片,用于根据多个Wi-Fi天线的接收的信号强度指示RSSI,判断多个Wi-Fi天线的通信质量。In a possible design, the Wi-Fi chip is used to indicate the RSSI according to the received signal strength of the multiple Wi-Fi antennas to determine the communication quality of the multiple Wi-Fi antennas.
在一种可能的设计中,多个Wi-Fi天线包括:第一Wi-Fi天线和第二Wi-Fi天线。其中,第一Wi-Fi天线位于通信设备处于竖屏状态下的上半部区域,第一Wi-Fi天线距通信设备处于横屏状态下的底边存在预设距离,第二Wi-Fi天线位于通信设备处于横屏状态下的上半部区域。在通信设备处于横屏状态时,第一预设天线为第二Wi-Fi天线,第二预设天线为第一Wi-Fi天线。在通信设备处于竖屏状态时,第一预设天线为第一Wi-Fi天线,第二预设天线为第二Wi-Fi天线。In a possible design, the multiple Wi-Fi antennas include: a first Wi-Fi antenna and a second Wi-Fi antenna. Among them, the first Wi-Fi antenna is located in the upper half of the area when the communication device is in the vertical screen state, the first Wi-Fi antenna is at a preset distance from the bottom edge of the communication device in the horizontal screen state, and the second Wi-Fi antenna is Located in the upper half of the area when the communication device is in landscape mode. When the communication device is in the landscape state, the first preset antenna is the second Wi-Fi antenna, and the second preset antenna is the first Wi-Fi antenna. When the communication device is in the vertical screen state, the first preset antenna is the first Wi-Fi antenna, and the second preset antenna is the second Wi-Fi antenna.
在一种可能的设计中,通信设备还包括:第三Wi-Fi天线。其中,第三Wi-Fi天线位于通信设备处于竖屏状态时的上半部区域,且位于通信设备处于横屏状态下的上半部区域;Wi-Fi芯片的另一信号端与第三Wi-Fi天线电连接,第三Wi-Fi天线用于通信设备的Wi-Fi通信,以确保通信设备1的Wi-Fi通信。In a possible design, the communication device further includes: a third Wi-Fi antenna. Among them, the third Wi-Fi antenna is located in the upper half area when the communication device is in the vertical screen state, and is located in the upper half area when the communication device is in the horizontal screen state; the other signal end of the Wi-Fi chip and the third Wi-Fi -The Fi antenna is electrically connected, and the third Wi-Fi antenna is used for the Wi-Fi communication of the communication device to ensure the Wi-Fi communication of the communication device 1.
在一种可能的设计中,在通信设备处于横屏状态时,第二Wi-Fi天线和第三Wi-Fi天线可以共同组成MIMO天线,实现通信设备1的Wi-Fi通信。In a possible design, when the communication device is in a horizontal screen state, the second Wi-Fi antenna and the third Wi-Fi antenna may jointly form a MIMO antenna to realize Wi-Fi communication of the communication device 1.
在一种可能的设计中,在通信设备处于竖屏状态时,第一Wi-Fi天线和第三Wi-Fi天线可以共同组成MIMO天线,实现通信设备1的Wi-Fi通信。In a possible design, when the communication device is in the vertical screen state, the first Wi-Fi antenna and the third Wi-Fi antenna may jointly form a MIMO antenna to realize Wi-Fi communication of the communication device 1.
在一种可能的设计中,外部设备为键盘和/或鼠标。In one possible design, the external device is a keyboard and/or mouse.
在一种可能的设计中,开关电路为双刀双掷开关。In one possible design, the switch circuit is a double pole double throw switch.
在一种可能的设计中,通信设备还包括:外设充电接口,其中,外设充电接口位于通信设备处于第一状态下的下半部区域,外设充电接口靠近下半部区域的底边,便于通信设备1向外部设备充电。In a possible design, the communication device further includes: a peripheral charging interface, wherein the peripheral charging interface is located in the lower half area of the communication device in the first state, and the peripheral charging interface is close to the bottom edge of the lower half area , It is convenient for the communication device 1 to charge the external device.
第二方面,本申请实施例提供一种天线切换方法,应用于通信设备,通信设备包括:多个无线保真Wi-Fi天线、控制电路、Wi-Fi芯片、外设芯片和开关电路;其中,控制电路的第一输入端与外设芯片的输出端电连接,控制电路的输出端与开关电路的控制端电连接,Wi-Fi芯片的信号端与开关电路的第一输入端电连接,外设芯片的信号端与开关电路的第二输入端电连接,开关电路的每个输出端电连接一个Wi-Fi天线。In the second aspect, the embodiments of the present application provide an antenna switching method, which is applied to a communication device, and the communication device includes: multiple wireless fidelity Wi-Fi antennas, a control circuit, a Wi-Fi chip, a peripheral chip, and a switch circuit; wherein , The first input terminal of the control circuit is electrically connected with the output terminal of the peripheral chip, the output terminal of the control circuit is electrically connected with the control terminal of the switch circuit, and the signal terminal of the Wi-Fi chip is electrically connected with the first input terminal of the switch circuit, The signal terminal of the peripheral chip is electrically connected with the second input terminal of the switch circuit, and each output terminal of the switch circuit is electrically connected with a Wi-Fi antenna.
该方法包括:外设芯片向控制电路发送匹配成功消息,其中,匹配成功消息用于表示外设芯片与外部设备匹配成功。控制电路在接收到匹配成功消息时,控制Wi-Fi芯片通过开关电路切换至与第一预设天线电连接,控制外设芯片通过开关电路切换至与第二预设天 线电连接,其中,第一预设天线和第二预设天线为事先从多个Wi-Fi天线中设置的,第一预设天线用于通信设备的Wi-Fi通信,第二预设天线用于外部设备与通信设备之间的通信。Wi-Fi芯片控制通信设备通过第一预设天线进行Wi-Fi通信。外设芯片控制外部设备通过第二预设天线与通信设备进行通信。The method includes: the peripheral chip sends a matching success message to the control circuit, where the matching success message is used to indicate that the peripheral chip is successfully matched with the external device. When the control circuit receives the matching success message, it controls the Wi-Fi chip to switch to be electrically connected to the first preset antenna through the switch circuit, and controls the peripheral chip to switch to be electrically connected to the second preset antenna through the switch circuit. A preset antenna and a second preset antenna are set in advance from multiple Wi-Fi antennas, the first preset antenna is used for Wi-Fi communication of the communication device, and the second preset antenna is used for the external device and the communication device Communication between. The Wi-Fi chip controls the communication device to perform Wi-Fi communication through the first preset antenna. The peripheral chip controls the external device to communicate with the communication device through the second preset antenna.
在一种可能的设计中,控制电路的第二输入端与Wi-Fi芯片的输出端电连接。该方法还包括:Wi-Fi芯片判断多个Wi-Fi天线的通信质量。Wi-Fi芯片向控制电路发送判断结果,其中,判断结果为第一目标天线的通信质量优于第二目标天线的通信质量,第一目标天线用于通信设备的Wi-Fi通信,第二目标天线用于外设芯片搜索外部设备。控制电路在接收到判断结果时,控制Wi-Fi芯片通过开关电路切换至与第一目标天线电连接,控制外设芯片通过开关电路切换至与第二目标天线电连接。Wi-Fi芯片控制通信设备通过第一目标天线进行Wi-Fi通信。外设芯片控制外设备芯片通过第二目标天线搜索外部设备。In a possible design, the second input terminal of the control circuit is electrically connected to the output terminal of the Wi-Fi chip. The method also includes: the Wi-Fi chip judging the communication quality of multiple Wi-Fi antennas. The Wi-Fi chip sends the judgment result to the control circuit, where the judgment result is that the communication quality of the first target antenna is better than that of the second target antenna, the first target antenna is used for Wi-Fi communication of the communication device, and the second target antenna The antenna is used for peripheral chips to search for external devices. When the control circuit receives the judgment result, it controls the Wi-Fi chip to switch to be electrically connected to the first target antenna through the switch circuit, and controls the peripheral chip to switch to be electrically connected to the second target antenna through the switch circuit. The Wi-Fi chip controls the communication device to perform Wi-Fi communication through the first target antenna. The peripheral chip controls the external device chip to search for the external device through the second target antenna.
在一种可能的设计中,在控制电路在接收到匹配成功消息时,控制Wi-Fi芯片通过开关电路切换至与第一预设天线电连接,控制外设芯片通过开关电路切换至与第二预设天线电连接之前,该方法还包括:控制电路判断开关电路的当前状态是否预设状态,其中,当前状态为当前Wi-Fi芯片通过开关电路与第一目标天线电连接,且外设芯片通过开关电路与第二目标天线电连接的状态,预设状态为事先设置Wi-Fi芯片通过开关电路与第一预设天线电连接,且外设芯片通过开关电路电与第二预设天线电连接的状态。In a possible design, when the control circuit receives the matching success message, the Wi-Fi chip is controlled to switch to be electrically connected to the first preset antenna through the switch circuit, and the peripheral chip is controlled to switch to the second preset antenna through the switch circuit. Before the preset antenna is electrically connected, the method further includes: the control circuit determines whether the current state of the switch circuit is a preset state, wherein the current state is that the current Wi-Fi chip is electrically connected to the first target antenna through the switch circuit, and the peripheral chip The state where the switch circuit is electrically connected to the second target antenna, the preset state is that the Wi-Fi chip is set in advance to be electrically connected to the first preset antenna through the switch circuit, and the peripheral chip is electrically connected to the second preset antenna through the switch circuit. The status of the connection.
在一种可能的设计中,控制电路在接收到匹配成功消息时,控制Wi-Fi芯片通过开关电路切换至与第一预设天线电连接,控制外设芯片通过开关电路切换至与第二预设天线电连接,包括:控制电路在判断开关电路的当前状态为预设状态时,锁定开关电路的当前状态,以使Wi-Fi芯片控制通信设备通过第一目标天线进行Wi-Fi通信且外设芯片控制外部设备通过第二目标天线与通信设备进行通信。控制电路在判断开关电路的当前状态不为预设状态时,将开关电路的当前状态更新为预设状态,以控制Wi-Fi芯片通过开关电路切换至与第一预设天线电连接且控制外设芯片通过开关电路切换至与第二预设天线电连接。In a possible design, when the control circuit receives the matching success message, it controls the Wi-Fi chip to switch to be electrically connected to the first preset antenna through the switch circuit, and controls the peripheral chip to switch to the second preset antenna through the switch circuit. The electrical connection of the antenna includes: when the control circuit determines that the current state of the switch circuit is a preset state, locking the current state of the switch circuit so that the Wi-Fi chip controls the communication device to perform Wi-Fi communication through the first target antenna and external It is assumed that the chip controls the external device to communicate with the communication device through the second target antenna. When the control circuit determines that the current state of the switch circuit is not the preset state, it updates the current state of the switch circuit to the preset state to control the Wi-Fi chip to switch through the switch circuit to be electrically connected to the first preset antenna and control the external It is assumed that the chip is switched to be electrically connected with the second preset antenna through the switch circuit.
在一种可能的设计中,该方法还包括:控制电路在将开关电路的当前状态更新为预设状态之后,锁定开关电路的当前状态。In a possible design, the method further includes: after the control circuit updates the current state of the switch circuit to a preset state, locking the current state of the switch circuit.
上述第二方面以及上述第二方面的各可能的设计中所提供的天线切换方法,其有益效果可以参见上述第一方面和第一方面的各可能的实施方式所带来的有益效果,在此不再赘述。For the beneficial effects of the antenna switching methods provided in the foregoing second aspect and each possible design of the foregoing second aspect, refer to the beneficial effects brought about by the foregoing first aspect and each possible implementation manner of the first aspect, here No longer.
第三方面,本申请实施例提供一种通信设备,包括:存储器和处理器;In a third aspect, an embodiment of the present application provides a communication device, including: a memory and a processor;
存储器用于存储程序指令;The memory is used to store program instructions;
处理器用于调用存储器中的程序指令执行第二方面及第二方面任一种可能的设计中的天线切换方法。The processor is configured to call the program instructions in the memory to execute the second aspect and any one of the possible designs of the antenna switching method in the second aspect.
第四方面,本申请实施例提供一种可读存储介质,可读存储介质中存储有执行指令,当通信设备的至少一个处理器执行该执行指令时,通信设备执行第二方面及第二方面任一种可能的设计中的天线切换方法。In a fourth aspect, an embodiment of the present application provides a readable storage medium, in which an execution instruction is stored, and when at least one processor of a communication device executes the execution instruction, the communication device executes the second aspect and the second aspect Any possible design of antenna switching method.
第五方面,本申请实施例提供一种程序产品,该程序产品包括执行指令,该执行指令存储在可读存储介质中。通信设备的至少一个处理器可以从可读存储介质读取该执行指令,至少一个处理器执行该执行指令使得通信设备实施第二方面及第二方面任一种可能的设 计中的天线切换方法。In a fifth aspect, an embodiment of the present application provides a program product, which includes an execution instruction, and the execution instruction is stored in a readable storage medium. At least one processor of the communication device can read the execution instruction from the readable storage medium, and the execution of the execution instruction by the at least one processor causes the communication device to implement the antenna switching method in any one of the second aspect and the second aspect.
第六方面,本申请实施例提供一种芯片,芯片与存储器相连,或者芯片上集成有存储器,当存储器中存储的软件程序被执行时,实现第二方面及第二方面任一种可能的设计中的天线切换方法。In a sixth aspect, the embodiments of the present application provide a chip, which is connected to a memory, or a memory is integrated on the chip, and when the software program stored in the memory is executed, any possible design of the second aspect and the second aspect is realized Antenna switching method in.
图1为本申请实施例提供的一种示例性的通信设备的结构示意图;FIG. 1 is a schematic structural diagram of an exemplary communication device provided by an embodiment of the application;
图2为本申请实施例提供的一种示例性的通信设备的结构示意图;2 is a schematic structural diagram of an exemplary communication device provided by an embodiment of the application;
图3为本申请实施例提供的一种示例性的通信设备处于横屏状态下的结构示意图;FIG. 3 is a schematic structural diagram of an exemplary communication device in a landscape state according to an embodiment of the application;
图4为本申请实施例提供的一种示例性的通信设备处于竖屏状态下的结构示意图;FIG. 4 is a schematic structural diagram of an exemplary communication device in a vertical screen state according to an embodiment of the application;
图5为本申请实施例提供的一种示例性的通信设备处于横屏状态下的结构示意图;FIG. 5 is a schematic structural diagram of an exemplary communication device in a landscape state according to an embodiment of the application;
图6为本申请实施例提供的一种示例性的天线切换方法的流程图;Fig. 6 is a flowchart of an exemplary antenna switching method provided by an embodiment of the application;
图7为本申请实施例提供的一种示例性的天线切换方法的流程图;FIG. 7 is a flowchart of an exemplary antenna switching method provided by an embodiment of the application;
图8为本申请实施例提供的一种示例性的通信设备的硬件结构示意图。FIG. 8 is a schematic diagram of the hardware structure of an exemplary communication device provided by an embodiment of the application.
附图标记说明:Description of reference signs:
1—通信设备;1—Communication equipment;
11—Wi-Fi天线;12—控制电路;11—Wi-Fi antenna; 12—control circuit;
13—Wi-Fi芯片;14—外设芯片;13—Wi-Fi chip; 14—peripheral chip;
15—开关电路;16—外设充电接口。15—switch circuit; 16—peripheral charging interface.
在本申请实施例的描述中,需要解释的是,术语“中心”、“纵向”、“横向”、“上”、“下”等指示的方位或位置关系为基于附图所示的方位或位置关系,仅是为了便于描述本申请实施例和简化描述,而不是指示或暗示所指的装置或元件必须具有特定的方位、以特定的方位构造和操作,因此不能理解为对本申请实施例的限制。此外,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性。In the description of the embodiments of the present application, it needs to be explained that the orientation or positional relationship indicated by the terms "center", "vertical", "horizontal", "upper", "lower", etc. are based on the orientation or position shown in the drawings. The positional relationship is only for the convenience of describing the embodiments of this application and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a comparison of the embodiments of the present application. limit. In addition, the terms "first" and "second" are only used for descriptive purposes, and cannot be understood as indicating or implying relative importance.
本申请实施例中,“至少一个”是指一个或者多个,“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B的情况,其中A,B可以是单数或者复数。字符“/”一般表示前后关联对象是一种“或”的关系。“以下至少一项(个)”或其类似表达,是指的这些项中的任意组合,包括单项(个)或复数项(个)的任意组合。例如,a,b,或c中的至少一项(个),可以表示:a,b,c,a-b,a-c,b-c,或a-b-c,其中a,b,c可以是单个,也可以是多个。In the embodiments of the present application, "at least one" refers to one or more, and "multiple" refers to two or more. "And/or" describes the association relationship of the associated objects, indicating that there can be three relationships, for example, A and/or B, which can mean: A alone exists, A and B exist at the same time, and B exists alone, where A, B can be singular or plural. The character "/" generally indicates that the associated objects are in an "or" relationship. "The following at least one item (a)" or similar expressions refers to any combination of these items, including any combination of a single item (a) or plural items (a). For example, at least one item (a) of a, b, or c can mean: a, b, c, ab, ac, bc, or abc, where a, b, and c can be single or multiple .
本申请实施例提供一种通信设备及天线切换方法,在保证通信设备正常Wi-Fi通信的基础上,可利用通信设备中闲置的Wi-Fi天线,实现外部设备与通信设备之间的通信,使得用户可以通过外部设备完成相应操作,从而有效减少操作的延时,满足各种低时延的场景需求,提高用户的体验感。The embodiments of the application provide a communication device and an antenna switching method. On the basis of ensuring the normal Wi-Fi communication of the communication device, the idle Wi-Fi antenna in the communication device can be used to realize the communication between the external device and the communication device. This allows users to complete corresponding operations through external devices, thereby effectively reducing operation delays, meeting various low-latency scenarios, and improving user experience.
为了满足低时延的诉求,本申请实施例提供一种通信设备及天线切换方法,可根据通信设备中Wi-Fi天线的位置,结合实际经验,事先从通信设备的多个Wi-Fi天线中设置第一预设天线和第二预设天线,第一预设天线用于通信设备的Wi-Fi通信,第二预设天线用于外部设备与通信设备之间的通信。通过通信设备中,开关电路的两个输出端分别与第一 预设天线和第二预设天线电连接,开关电路的第一输入端与Wi-Fi芯片的信号端电连接,开关电路的第二输入端与外设芯片的信号端电连接,开关电路的控制端与控制电路的输出端电连接。从而,在外设芯片与外部设备匹配成功时,外设芯片可以向控制电路发送匹配成功消息。控制电路在接收到匹配成功消息时,可以通过开关电路控制Wi-Fi芯片与第一预设天线电连接,且控制外设芯片与第二预设天线电连接,从而,Wi-Fi芯片可以控制通信设备可以通过第一预设天线实现Wi-Fi通信,外设芯片可以控制外部设备通过第二预设天线实现与通信设备之间的通信。本申请实施例中,不仅保证了通信设备的正常Wi-Fi通信,还利用了闲置的Wi-Fi天线实现通信设备与外部设备之间的通信,提高了通信设备中Wi-Fi天线的利用率,加快了外部设备与通信设备之间的通信速率,解决了传统蓝牙技术由于时延大而无法满足低时延需求的问题,保障了用户的操作流畅度,提高了用户的体验感和使用感。In order to meet the demand for low latency, an embodiment of the present application provides a communication device and an antenna switching method. According to the position of the Wi-Fi antenna in the communication device, combined with actual experience, it can be selected from multiple Wi-Fi antennas of the communication device in advance. A first preset antenna and a second preset antenna are set, the first preset antenna is used for Wi-Fi communication of the communication device, and the second preset antenna is used for communication between the external device and the communication device. In the communication device, the two output terminals of the switch circuit are electrically connected to the first preset antenna and the second preset antenna, respectively, the first input terminal of the switch circuit is electrically connected to the signal terminal of the Wi-Fi chip, and the first input terminal of the switch circuit is electrically connected to the signal terminal of the Wi-Fi chip. The two input terminals are electrically connected with the signal terminal of the peripheral chip, and the control terminal of the switch circuit is electrically connected with the output terminal of the control circuit. Therefore, when the peripheral chip and the external device are successfully matched, the peripheral chip can send a matching success message to the control circuit. When the control circuit receives the matching success message, it can control the Wi-Fi chip to be electrically connected to the first preset antenna through the switch circuit, and control the peripheral chip to be electrically connected to the second preset antenna, so that the Wi-Fi chip can control The communication device may implement Wi-Fi communication through the first preset antenna, and the peripheral chip may control the external device to implement communication with the communication device through the second preset antenna. In the embodiments of the application, not only the normal Wi-Fi communication of the communication device is ensured, but also the idle Wi-Fi antenna is used to realize the communication between the communication device and the external device, and the utilization rate of the Wi-Fi antenna in the communication device is improved. , To speed up the communication rate between external devices and communication devices, solve the problem that traditional Bluetooth technology cannot meet the low-latency requirements due to the large delay, ensure the user's operation smoothness, and improve the user's sense of experience and use .
本申请实施例提及的通信设备可以包括但不限于终端,其中,终端:可以是无线终端也可以是有线终端,无线终端可以是指一种具有无线收发功能的设备,可以部署在陆地上,包括室内或室外、手持或车载;也可以部署在水面上(如轮船等);还可以部署在空中(例如飞机、气球和卫星上等)。终端可以是个人计算机、游戏机、MP3播放器、手机(mobile phone)、平板电脑(Pad)、带无线收发功能的电脑、打印机、虚拟现实(Virtual Reality,VR)终端、增强现实(Augmented Reality,AR)终端、工业控制(industrial control)中的无线终端、无人驾驶(self driving)中的无线终端、远程医疗(remote medical)中的无线终端、智能电网(smart grid)中的无线终端、运输安全(transportation safety)中的无线终端、智慧城市(smart city)中的无线终端、智慧家庭(smart home)中的无线终端等等,在此不作限定。The communication devices mentioned in the embodiments of this application may include but are not limited to terminals. Among them, the terminal: may be a wireless terminal or a wired terminal. A wireless terminal may refer to a device with a wireless transceiver function that can be deployed on land. Including indoor or outdoor, hand-held or vehicle-mounted; can also be deployed on the water (such as ships, etc.); can also be deployed in the air (such as airplanes, balloons and satellites, etc.). The terminal can be a personal computer, game console, MP3 player, mobile phone, tablet computer (Pad), computer with wireless transceiver function, printer, virtual reality (Virtual Reality, VR) terminal, augmented reality (Augmented Reality, AR) terminals, wireless terminals in industrial control, wireless terminals in self-driving (self-driving), wireless terminals in remote medical, wireless terminals in smart grid, transportation Wireless terminals in transportation safety, wireless terminals in smart cities, and wireless terminals in smart homes are not limited here.
另外,本申请实施例提供的外部设备可以包括但不限于键盘、鼠标、耳机、打印设备、存储设备以及其他设备。In addition, the external devices provided in the embodiments of the present application may include, but are not limited to, keyboards, mice, earphones, printing devices, storage devices, and other devices.
下面,结合本申请实施例中的附图,对本申请实施例通信设备的技术方案进行描述。In the following, the technical solution of the communication device in the embodiment of the present application will be described with reference to the drawings in the embodiment of the present application.
图1为本申请实施例提供的一种示例性的通信设备的结构示意图,如图1所示,通信设备1包括:多个Wi-Fi天线11、控制电路12、Wi-Fi芯片13、外设芯片14和开关电路15。Fig. 1 is a schematic structural diagram of an exemplary communication device provided by an embodiment of the application. As shown in Fig. 1, the communication device 1 includes: multiple Wi-Fi antennas 11, a control circuit 12, a Wi-Fi chip 13, and external Suppose a chip 14 and a switch circuit 15.
其中,本申请实施例对Wi-Fi天线11在通信设备1中的位置、具体大小和制作工艺均不做限定,只需保证Wi-Fi天线11的数量大于等于两个即可。Among them, the embodiment of the present application does not limit the location, specific size, and manufacturing process of the Wi-Fi antenna 11 in the communication device 1, and it is only necessary to ensure that the number of the Wi-Fi antenna 11 is greater than or equal to two.
本领域技术人员可以理解,通信设备1在不同应用场景中,通常采用部分Wi-Fi天线11实现通信设备1的Wi-Fi通信,这样,剩余部分Wi-Fi天线11将会被闲置。且每个Wi-Fi天线11位于通信设备1的位置通常在通信设备1出厂后已被设置好。Those skilled in the art can understand that, in different application scenarios, the communication device 1 usually adopts part of the Wi-Fi antenna 11 to implement Wi-Fi communication of the communication device 1, so that the remaining part of the Wi-Fi antenna 11 will be idle. Moreover, the position of each Wi-Fi antenna 11 in the communication device 1 is usually set after the communication device 1 leaves the factory.
基于前述描述,本申请实施例可以根据每个Wi-Fi天线11的位置,并结合实际经验,从多个Wi-Fi天线11中,确定各个应用场景中适用于通信设备1进行Wi-Fi通信的第一预设天线以及适用于外部设备与通信设备1之间进行通信的第二预设天线。Based on the foregoing description, the embodiment of the present application can determine that each application scenario is suitable for the communication device 1 to perform Wi-Fi communication from multiple Wi-Fi antennas 11 based on the location of each Wi-Fi antenna 11 and actual experience. The first preset antenna and the second preset antenna suitable for communication between the external device and the communication device 1.
本申请实施例中,同一应用场景下,第一预设天线和第二预设天线不同。不同应用场景下,第一预设天线和第二预设天线可以相同,也可以不同。其中,第一预设天线的数量可以多个,以组成多输入多输出系统(Multiple-Input Multiple-Output,MIMO)天线工作,也可以为一个,本申请实施例对此不做限定。第二预设天线的数量可以为一个,也可以为 多个,以组成MIMO天线工作,本申请实施例对此也不做限定。In the embodiment of the present application, in the same application scenario, the first preset antenna and the second preset antenna are different. In different application scenarios, the first preset antenna and the second preset antenna may be the same or different. Wherein, the number of the first preset antenna may be multiple to form a multiple-input multiple-output (MIMO) antenna to work, or it may be one, which is not limited in this embodiment of the application. The number of the second preset antenna may be one or multiple to form a MIMO antenna, which is not limited in this embodiment of the application.
本申请实施例中,开关电路15的每个输出端均电连接一个Wi-Fi天线11,即在开关电路15的输出一侧电连接有第一预设天线和第二预设天线。且开关电路15的第一输入端与Wi-Fi芯片13的信号端电连接,开关电路15的第二输入端与外设芯片14的信号端电连接。In the embodiment of the present application, each output terminal of the switch circuit 15 is electrically connected to a Wi-Fi antenna 11, that is, the first preset antenna and the second preset antenna are electrically connected to the output side of the switch circuit 15. And the first input terminal of the switch circuit 15 is electrically connected with the signal terminal of the Wi-Fi chip 13, and the second input terminal of the switch circuit 15 is electrically connected with the signal terminal of the peripheral chip 14.
这样,控制电路12的输出端通过与开关电路15的控制端电连接,可以控制开关电路15的任意一个输入端和任意一个输出端之间的通路的导通或者断开,以调节Wi-Fi芯片13和外设芯片14分别与任意一个Wi-Fi天线11是否电连接,即调节Wi-Fi芯片13和外设芯片14分别与第一预设天线和第二预设天线是否电连接。In this way, the output terminal of the control circuit 12 is electrically connected to the control terminal of the switch circuit 15, and can control the conduction or disconnection of the path between any input terminal and any output terminal of the switch circuit 15 to adjust Wi-Fi. Whether the chip 13 and the peripheral chip 14 are electrically connected to any Wi-Fi antenna 11 respectively, that is, it is adjusted whether the Wi-Fi chip 13 and the peripheral chip 14 are electrically connected to the first preset antenna and the second preset antenna, respectively.
其中,控制电路12可以为通信设备1中原有的控制电路12,也可以新增的控制电路12,本申请实施例对此不做限定。例如,控制电路12可以为通信设备1中的中央处理器(central processing unit/processor,CPU)。The control circuit 12 may be the original control circuit 12 in the communication device 1 or a newly added control circuit 12, which is not limited in the embodiment of the present application. For example, the control circuit 12 may be a central processing unit (CPU) in the communication device 1.
其中,本申请实施例对Wi-Fi芯片13和外设芯片14的类型和数量不做限定。并且,Wi-Fi芯片13可以包括但不限于采集各个Wi-Fi天线11的信号、分析各个Wi-Fi天线11的性能以及警示各个Wi-Fi天线11是否出现故障等功能。外设芯片14可以包括但不限于搜索并匹配外部设备、采集外部设备的参数以及获取外部设备与通信设备1之间的通信信号等功能。Among them, the embodiment of the present application does not limit the type and quantity of the Wi-Fi chip 13 and the peripheral chip 14. In addition, the Wi-Fi chip 13 may include, but is not limited to, functions such as collecting signals of each Wi-Fi antenna 11, analyzing the performance of each Wi-Fi antenna 11, and warning whether each Wi-Fi antenna 11 is malfunctioning. The peripheral chip 14 may include, but is not limited to, functions such as searching and matching external devices, collecting parameters of the external devices, and obtaining communication signals between the external devices and the communication device 1.
另外,控制电路12、Wi-Fi芯片13和外设芯片14可以为分立元件,也可以为构成任意组合元件。例如,控制电路12、Wi-Fi芯片13和外设芯片14集成设置,或者,Wi-Fi芯片13和外设芯片14集成设置,或者,控制电路12和Wi-Fi芯片13集成设置,或者,控制电路12和外设芯片14集成设置,本申请实施例对此不做限定。In addition, the control circuit 12, the Wi-Fi chip 13, and the peripheral chip 14 may be discrete components, or may constitute any combination of components. For example, the control circuit 12, the Wi-Fi chip 13 and the peripheral chip 14 are integrated, or the Wi-Fi chip 13 and the peripheral chip 14 are integrated, or the control circuit 12 and the Wi-Fi chip 13 are integrated, or, The control circuit 12 and the peripheral chip 14 are integrated and arranged, which is not limited in the embodiment of the present application.
其中,本申请实施例对开关电路15的类型和数量不做限定。可选地,开关电路15可以为如多刀多掷等开关集成器件,也可以为多个开关组合而成的电路。例如,当开关电路15的两个输出端分别电连接第一预设天线和第二预设天线时,开关电路15可以为双刀双掷开关。为了便于说明,图1中开关电路15为双刀双掷开关为例进行示意。Among them, the embodiment of the present application does not limit the type and quantity of the switch circuit 15. Optionally, the switch circuit 15 may be a switch integrated device such as multi-pole multi-throw, or a circuit formed by a combination of multiple switches. For example, when the two output terminals of the switch circuit 15 are electrically connected to the first preset antenna and the second preset antenna, respectively, the switch circuit 15 may be a double pole double throw switch. For ease of description, the switch circuit 15 in FIG. 1 is a double-pole double-throw switch as an example for illustration.
基于上述描述,外设芯片14在匹配成功外部设备时,可以向控制电路12发送匹配成功消息。其中,匹配成功消息可以包括但不限于数字、字母、二进制数值等各种形式。这样,控制电路12在接收到匹配成功消息时,可以获知存在外部设备需要与通信设备1进行通信。Based on the foregoing description, the peripheral chip 14 may send a matching success message to the control circuit 12 when the external device is successfully matched. Among them, the matching success message may include, but is not limited to, various forms such as numbers, letters, and binary values. In this way, when the control circuit 12 receives the matching success message, it can learn that there is an external device that needs to communicate with the communication device 1.
控制电路12在获知外部设备需要与通信设备1进行通信时,不仅需要向通信设备1提供用于Wi-Fi通信的Wi-Fi天线11,还需要向外部设备提供适用于与通信设备1进行通信的Wi-Fi天线11。进而,控制电路12基于前述描述内容,可以并行执行下述操作过程。When the control circuit 12 knows that the external device needs to communicate with the communication device 1, it not only needs to provide the communication device 1 with a Wi-Fi antenna 11 for Wi-Fi communication, but also needs to provide the external device with a Wi-Fi antenna 11 suitable for communicating with the communication device 1. Wi-Fi antenna 11. Furthermore, the control circuit 12 can execute the following operations in parallel based on the foregoing description.
一方面,控制电路12通过导通开关电路15中与Wi-Fi芯片13电连接的输入端,和开关电路15中与第一预设天线电连接的输出端之间的通路,可以控制Wi-Fi芯片13与第一预设天线电连接,实现通信设备1的Wi-Fi通信。On the one hand, the control circuit 12 can control Wi-Fi by turning on the path between the input terminal of the switch circuit 15 electrically connected to the Wi-Fi chip 13 and the output terminal of the switch circuit 15 electrically connected to the first preset antenna. The Fi chip 13 is electrically connected with the first preset antenna to realize Wi-Fi communication of the communication device 1.
由于Wi-Fi芯片13与第一预设天线电连接,因此,Wi-Fi芯片13可以控制通信设备1通过第一预设天线进行Wi-Fi通信,如发送和接收通信设备1所需的Wi-Fi信号,以确保通信设备1可以正常Wi-Fi通信。Since the Wi-Fi chip 13 is electrically connected to the first preset antenna, the Wi-Fi chip 13 can control the communication device 1 to perform Wi-Fi communication through the first preset antenna, such as sending and receiving Wi-Fi required by the communication device 1 -Fi signal to ensure that the communication device 1 can communicate with Wi-Fi normally.
另一方面,控制电路12通过导通开关电路15中与外设芯片14电连接的输入端,和 开关电路15中与第二预设天线电连接的输出端之间的通路,可以控制外设芯片14与第二预设天线电连接,实现外部设备与通信设备1之间的通信。On the other hand, the control circuit 12 can control the peripheral device by turning on the path between the input terminal electrically connected to the peripheral chip 14 in the switch circuit 15 and the output terminal electrically connected to the second preset antenna in the switch circuit 15 The chip 14 is electrically connected to the second preset antenna to realize communication between the external device and the communication device 1.
由于外设芯片14与第二预设天线电连接,因此,外设芯片14可以控制外部设备通过第二预设天线与通信设备1进行通信,如向通信设备1发送和接收Wi-Fi信号,使得第二预设天线可以作为外部设备与通信设备1进行通信的专用天线,以保证外部设备与通信设备1进行通信,不仅合理利用闲置Wi-Fi天线,无需单独配置Wi-Fi天线而降低成本(例如,为键盘鼠标单独配置2.4GHz或5GHz频段的Wi-Fi天线),解决了天线需要保证良好净空而导致性能较差的问题,有效降低了天线整体布局和设计的难度,还适用于时延较小的各种通信需求。Since the peripheral chip 14 is electrically connected to the second preset antenna, the peripheral chip 14 can control the external device to communicate with the communication device 1 through the second preset antenna, such as sending and receiving Wi-Fi signals to the communication device 1. The second preset antenna can be used as a dedicated antenna for the external device to communicate with the communication device 1, to ensure that the external device communicates with the communication device 1, not only makes rational use of idle Wi-Fi antennas, but also eliminates the need for separate Wi-Fi antennas to reduce costs (For example, separately configure 2.4GHz or 5GHz Wi-Fi antennas for keyboard and mouse), which solves the problem of poor performance due to the need to ensure good headroom for the antenna, effectively reduces the difficulty of the overall layout and design of the antenna, and is also suitable for time Various communication needs with relatively small extension.
需要说明的是,通信设备1还可以包括显示屏、保护壳、后盖、前框、电路板、电池等任意一个元器件,本申请实施例对此不做限定。It should be noted that the communication device 1 may also include any component such as a display screen, a protective case, a rear cover, a front frame, a circuit board, and a battery, which is not limited in the embodiment of the present application.
本申请实施例提供的通信设备,通过事先从多个Wi-Fi天线中设置第一预设天线和第二预设天线,其中,第一预设天线用于通信设备进行Wi-Fi通信,第二预设天线用于外部设备与通信设备之间的通信。且开关电路的两个输出端分别与第一预设天线和第二预设天线电连接,开关电路的第一输入端与Wi-Fi芯片的信号端电连接,开关电路的第二输入端与外设芯片的信号端电连接,开关电路的控制端的输出端电连接,外设芯片的输出端与控制电路的输入端电连接。基于上述电连接关系,在外设芯片与外部设备匹配成功时,外设芯片可以向控制电路发送匹配成功消息。控制电路在接收到匹配成功消息时,可以通过开关电路控制Wi-Fi芯片与第一预设天线电连接且控制外设芯片与第二预设天线电连接。从而,Wi-Fi芯片可以控制通信设备通过第一预设天线进行Wi-Fi通信,外设芯片可以控制外部设备通过第二预设天线与通信设备进行通信。本申请实施例中,不仅可以保证通信设备的正常Wi-Fi通信,还可以合理利用闲置Wi-Fi天线实现通信设备与外部设备之间的通信,无需新增Wi-Fi天线而降低天线整体布局的难度,提高了Wi-Fi天线的利用率,提高了外部设备与通信设备之间的通信速率,满足了各种低时延场景,使得用户可以灵活操作,方便用户使用外部设备。In the communication device provided by the embodiment of the present application, the first preset antenna and the second preset antenna are set from multiple Wi-Fi antennas in advance, wherein the first preset antenna is used for the communication device to perform Wi-Fi communication. The second preset antenna is used for communication between the external device and the communication device. And the two output terminals of the switch circuit are electrically connected with the first preset antenna and the second preset antenna, the first input terminal of the switch circuit is electrically connected with the signal terminal of the Wi-Fi chip, and the second input terminal of the switch circuit is electrically connected with The signal terminal of the peripheral chip is electrically connected, the output terminal of the control terminal of the switch circuit is electrically connected, and the output terminal of the peripheral chip is electrically connected with the input terminal of the control circuit. Based on the foregoing electrical connection relationship, when the peripheral chip and the external device are successfully matched, the peripheral chip may send a matching success message to the control circuit. When receiving the matching success message, the control circuit can control the Wi-Fi chip to be electrically connected to the first preset antenna and control the peripheral chip to be electrically connected to the second preset antenna through the switch circuit. Thus, the Wi-Fi chip can control the communication device to perform Wi-Fi communication through the first preset antenna, and the peripheral chip can control the external device to communicate with the communication device through the second preset antenna. In the embodiments of this application, not only can the normal Wi-Fi communication of the communication device be ensured, but also the idle Wi-Fi antenna can be reasonably used to realize the communication between the communication device and the external device, and the overall layout of the antenna can be reduced without adding a new Wi-Fi antenna. The difficulty of this increases the utilization rate of Wi-Fi antennas, increases the communication rate between external devices and communication devices, and satisfies various low-latency scenarios, allowing users to operate flexibly and to facilitate the use of external devices.
示例性地,在上述图1所示实施例的基础上,本申请实施例的通信设备1在保证正常Wi-Fi通信的前提下,还存在闲置的Wi-Fi天线11,故外设芯片14除了可以采用传统蓝牙技术之外,还可以借助闲置的Wi-Fi天线11,实现外部设备的搜索。下面,结合图2,对本申请实施例的外设芯片14利用Wi-Fi天线11搜索外部设备的实现过程进行详细说明。Exemplarily, on the basis of the embodiment shown in FIG. 1, the communication device 1 of the embodiment of the present application still has an idle Wi-Fi antenna 11 under the premise of ensuring normal Wi-Fi communication, so the peripheral chip 14 In addition to using traditional Bluetooth technology, an idle Wi-Fi antenna 11 can also be used to search for external devices. In the following, with reference to FIG. 2, the implementation process of the peripheral chip 14 using the Wi-Fi antenna 11 to search for external devices in the embodiment of the present application will be described in detail.
本领域技术人员可以理解,通信设备1无论在不同应用场景中,通常会选用通信质量较优的Wi-Fi天线11进行Wi-Fi通信,以保证Wi-Fi通信的质量。本申请实施例中,Wi-Fi芯片13可以判断各个Wi-Fi天线11的通信质量,得到判断结果。其中,判断结果为第一目标天线的通信质量优于第二目标天线的通信质量。从而,第一目标天线可以用于通信设备1的Wi-Fi通信,第二目标天线可以用于外设芯片14搜索外部设备,使得第二目标天线可以作为外设芯片14搜索外部设备的专用天线。Those skilled in the art can understand that no matter in different application scenarios, the communication device 1 usually selects a Wi-Fi antenna 11 with better communication quality for Wi-Fi communication to ensure the quality of Wi-Fi communication. In the embodiment of the present application, the Wi-Fi chip 13 can determine the communication quality of each Wi-Fi antenna 11 and obtain the determination result. The judgment result is that the communication quality of the first target antenna is better than the communication quality of the second target antenna. Thus, the first target antenna can be used for Wi-Fi communication of the communication device 1, and the second target antenna can be used for the peripheral chip 14 to search for external devices, so that the second target antenna can be used as a dedicated antenna for the peripheral chip 14 to search for external devices. .
本申请实施例中,同一应用场景下,第一目标天线和第二目标天线不同。不同应用场景下,第一目标天线和第二目标天线可以相同,也可以不同。其中,第一目标天线的数量可以多个,以组成MIMO天线工作,也可以为一个,本申请实施例对此不做限定。第二目标天线的数量可以为一个,也可以为多个,以组成MIMO天线工作,本申请实施例对此也 不做限定。In the embodiment of the present application, in the same application scenario, the first target antenna and the second target antenna are different. In different application scenarios, the first target antenna and the second target antenna may be the same or different. Wherein, the number of the first target antenna may be multiple to form a MIMO antenna to work, or it may be one, which is not limited in the embodiment of the present application. The number of the second target antenna may be one or multiple to form a MIMO antenna, which is not limited in this embodiment of the application.
其中,本申请实施例对各个Wi-Fi天线11的通信质量好坏的判定依据不做限定。例如,Wi-Fi芯片13可以根据采集到的各个Wi-Fi天线11的信号,确定各个Wi-Fi天线11的接收的信号强度指示(received signal strength indication,RSSI),并根据各个Wi-Fi天线11的RSSI,判断各个Wi-Fi天线11的通信质量。Among them, the embodiment of the present application does not limit the basis for determining the communication quality of each Wi-Fi antenna 11. For example, the Wi-Fi chip 13 may determine the received signal strength indication (RSSI) of each Wi-Fi antenna 11 according to the collected signals of each Wi-Fi antenna 11, and according to each Wi-Fi antenna 11 The RSSI of 11 determines the communication quality of each Wi-Fi antenna 11.
本申请实施例中,开关电路15的每个输出端均电连接一个Wi-Fi天线11,即在开关电路15的输出一侧电连接有第一目标天线和第二目标天线。且开关电路15的第一输入端与Wi-Fi芯片13的信号端电连接,开关电路15的第二输入端与外设芯片14的信号端电连接。In the embodiment of the present application, each output terminal of the switch circuit 15 is electrically connected to a Wi-Fi antenna 11, that is, the first target antenna and the second target antenna are electrically connected to the output side of the switch circuit 15. And the first input terminal of the switch circuit 15 is electrically connected with the signal terminal of the Wi-Fi chip 13, and the second input terminal of the switch circuit 15 is electrically connected with the signal terminal of the peripheral chip 14.
这样,控制电路12的输出端通过与开关电路15的控制端电连接,可以控制开关电路15的任意一个输入端和任意一个输出端之间的通路的导通或者断开,以调节Wi-Fi芯片13和外设芯片14分别与任意一个Wi-Fi天线11是否电连接,即调节Wi-Fi芯片13和外设芯片14分别与第一目标天线和第二目标天线是否电连接。In this way, the output terminal of the control circuit 12 is electrically connected to the control terminal of the switch circuit 15, and can control the conduction or disconnection of the path between any input terminal and any output terminal of the switch circuit 15 to adjust Wi-Fi. Whether the chip 13 and the peripheral chip 14 are electrically connected to any Wi-Fi antenna 11 respectively, that is, it is adjusted whether the Wi-Fi chip 13 and the peripheral chip 14 are electrically connected to the first target antenna and the second target antenna, respectively.
基于上述描述,如图2所示,Wi-Fi芯片13的输出端通过与控制电路12的第二输入端的电连接,可以向控制电路12发送该判断结果。其中,该判断结果可以包括但不限于数字、二级制数值、字母、文字等各种形式进行表示。从而,控制电路12可以在接收到该判断结果时,可以获知第一目标天线的通信质量优于第二目标天线的通信质量,并可以通过第一目标天线实现通信设备1的Wi-Fi通信,以及通过第二目标天线实现外设芯片14搜索外部设备的过程。Based on the foregoing description, as shown in FIG. 2, the output terminal of the Wi-Fi chip 13 can be electrically connected to the second input terminal of the control circuit 12 to send the judgment result to the control circuit 12. Wherein, the judgment result can be expressed in various forms including, but not limited to, numbers, secondary numerical values, letters, and words. Therefore, when the control circuit 12 receives the judgment result, it can learn that the communication quality of the first target antenna is better than that of the second target antenna, and can realize Wi-Fi communication of the communication device 1 through the first target antenna. And the process of searching for external devices by the peripheral chip 14 is realized through the second target antenna.
进而,控制电路12可以并行执行下述操作过程。Furthermore, the control circuit 12 can execute the following operations in parallel.
一方面,控制电路12通过导通开关电路15中与Wi-Fi芯片13电连接的输入端,和开关电路15中与第一目标天线电连接的输出端之间的通路,可以控制Wi-Fi芯片13与第一目标天线电连接,实现通信设备1的Wi-Fi通信。On the one hand, the control circuit 12 can control Wi-Fi by turning on the path between the input terminal of the switch circuit 15 electrically connected to the Wi-Fi chip 13 and the output terminal of the switch circuit 15 electrically connected to the first target antenna. The chip 13 is electrically connected with the first target antenna to realize Wi-Fi communication of the communication device 1.
由于Wi-Fi芯片13与第一目标天线电连接,因此,Wi-Fi芯片13可以控制通信设备1通过第一目标天线进行Wi-Fi通信,如发送和接收通信设备1所需的Wi-Fi信号,以确保通信设备1可以正常Wi-Fi通信。Since the Wi-Fi chip 13 is electrically connected to the first target antenna, the Wi-Fi chip 13 can control the communication device 1 to perform Wi-Fi communication through the first target antenna, such as sending and receiving Wi-Fi required by the communication device 1 Signal to ensure that the communication device 1 can communicate with Wi-Fi normally.
另一方面,控制电路12通过导通开关电路15中与外设芯片14电连接的输入端,和开关电路15中与第二目标天线电连接的输出端之间的通路,可以控制外设芯片14与第二目标天线电连接,实现外设芯片14搜索外部设备的功能。On the other hand, the control circuit 12 can control the peripheral chip by turning on the path between the input terminal of the switch circuit 15 electrically connected to the peripheral chip 14 and the output terminal of the switch circuit 15 electrically connected to the second target antenna. 14 is electrically connected to the second target antenna to realize the function of the peripheral chip 14 to search for external devices.
由于外设芯片14与第二目标天线电连接,因此,外设芯片14可以控制外设芯片14通过第二目标天线搜索外部设备。例如,在外部设备启动且置于距外设芯片14一定范围内,外设芯片14便可通过第二目标天线搜索到外部设备。进而,外设芯片14可以与搜索到的外部设备进行匹配,如检查外部设备是否为授权设备、判断外部设备运行环境是否安全等。一般情况下,若外部设备与外设芯片14未匹配过,则外设芯片14可以与搜索到的外部设备进行匹配。若外部设备与外设芯片14匹配成功过,则外设芯片14可以直接与搜索到的外部设备匹配成功。Since the peripheral chip 14 is electrically connected to the second target antenna, the peripheral chip 14 can control the peripheral chip 14 to search for external devices through the second target antenna. For example, when the external device is started and placed within a certain range from the peripheral chip 14, the peripheral chip 14 can search for the external device through the second target antenna. Furthermore, the peripheral chip 14 can be matched with the searched external device, such as checking whether the external device is an authorized device, judging whether the operating environment of the external device is safe, and so on. Generally, if the external device and the peripheral chip 14 have not been matched, the peripheral chip 14 can be matched with the searched external device. If the external device and the peripheral chip 14 have been successfully matched, the peripheral chip 14 can directly match the searched external device successfully.
本申请实施例提供的通信设备,通过开关电路的两个输出端分别与第一目标天线和第二目标天线电连接,开关电路的第一输入端与Wi-Fi芯片的信号端电连接,开关电路的第二输入端与外设芯片的信号端电连接,Wi-Fi芯片的输出端与控制电路的输入端电连接, 控制电路的输出端与开关电路的控制端电连接。基于上述电连接关系,Wi-Fi芯片可以判断多个Wi-Fi天线的通信质量,并向控制电路发送判断结果,其中,该判断结果为第一目标天线的通信质量优于第二目标天线的通信质量。控制电路在接收到判断结果时,可以确定第一目标天线用于通信设进行Wi-Fi通信,第二目标天线用于外设芯片搜索外部设备,便可通过开关电路控制Wi-Fi芯片与第一目标天线电连接且控制外设备芯片与第二目标天线电连接。从而,Wi-Fi芯片可以控制通信设备通过第一目标天线进行Wi-Fi通信,外设芯片可以控制外设芯片通过第二目标天线搜索外部设备。本申请实施例中,不仅可以保证通信设备的正常Wi-Fi通信,还可以合理利用闲置Wi-Fi天线,实现外设芯片搜索外部设备的过程,提高了Wi-Fi天线的利用率,使得Wi-Fi天线得以优化复用,在减少Wi-Fi天线数量的同时,有效保证了Wi-Fi天线的使用性能。The communication device provided by the embodiment of the present application is electrically connected to the first target antenna and the second target antenna through the two output terminals of the switch circuit, the first input terminal of the switch circuit is electrically connected to the signal terminal of the Wi-Fi chip, and the switch The second input terminal of the circuit is electrically connected with the signal terminal of the peripheral chip, the output terminal of the Wi-Fi chip is electrically connected with the input terminal of the control circuit, and the output terminal of the control circuit is electrically connected with the control terminal of the switch circuit. Based on the above electrical connection relationship, the Wi-Fi chip can determine the communication quality of multiple Wi-Fi antennas, and send the determination result to the control circuit, where the determination result is that the communication quality of the first target antenna is better than that of the second target antenna Communication quality. When the control circuit receives the judgment result, it can determine that the first target antenna is used for the communication device for Wi-Fi communication, and the second target antenna is used for the peripheral chip to search for external devices. The switch circuit can control the Wi-Fi chip and the second target antenna. A target antenna is electrically connected and the control external device chip is electrically connected with the second target antenna. Thus, the Wi-Fi chip can control the communication device to perform Wi-Fi communication through the first target antenna, and the peripheral chip can control the peripheral chip to search for the external device through the second target antenna. In the embodiments of the present application, not only can the normal Wi-Fi communication of the communication device be ensured, but also idle Wi-Fi antennas can be used rationally to realize the process of searching for external devices by the peripheral chip, which improves the utilization rate of the Wi-Fi antenna and makes Wi-Fi -Fi antennas can be optimized for multiplexing. While reducing the number of Wi-Fi antennas, it effectively ensures the performance of Wi-Fi antennas.
另外,在通信设备1通过第一目标天线进行Wi-Fi通信,以及外设芯片14通过第二目标天线搜索并匹配成功外部设备时,外设芯片14可以向控制电路12发送匹配成功消息,使得控制电路12获知存在外部设备需要与通信设备1进行通信。从而,控制电路12可以确定需要控制Wi-Fi芯片13与第一预设天线电连接,且需要控制外设芯片14与第二预设天线电连接。In addition, when the communication device 1 performs Wi-Fi communication through the first target antenna, and the peripheral chip 14 searches for and successfully matches the external device through the second target antenna, the peripheral chip 14 may send a matching success message to the control circuit 12, so that The control circuit 12 learns that there is an external device that needs to communicate with the communication device 1. Therefore, the control circuit 12 can determine that it is necessary to control the Wi-Fi chip 13 to be electrically connected to the first preset antenna, and to control the peripheral chip 14 to be electrically connected to the second preset antenna.
由于Wi-Fi芯片13与第一预设天线是否电连接以及外设芯片14与第二预设天线是否电连接,取决于开关电路15的输入端和输出端之间的通路的导通或者断开,因此,控制电路12可以事先设置Wi-Fi芯片13通过开关电路15与第一预设天线电连接,且外设芯片14通过开关电路15与第二预设天线电连接的状态为预设状态。Since whether the Wi-Fi chip 13 is electrically connected to the first preset antenna and whether the peripheral chip 14 is electrically connected to the second preset antenna depends on whether the path between the input terminal and the output terminal of the switch circuit 15 is turned on or off. Therefore, the control circuit 12 can set the Wi-Fi chip 13 to be electrically connected to the first preset antenna through the switch circuit 15 in advance, and the peripheral chip 14 to be electrically connected to the second preset antenna through the switch circuit 15 to be preset status.
为了实现上述过程,控制电路12可以将开关电路15的当前状态调整为预设状态。由于此时,Wi-Fi芯片13通过开关电路15已与第一目标天线电连接,外设芯片14通过开关电路15已与第二目标天线电连接,因此,控制电路12可以获取开关电路15的当前状态,即当前状态为Wi-Fi芯片13通过开关电路15与第一目标天线电连接,且外设芯片14通过开关电路15与第二目标天线电连接的状态。从而,控制电路12可以判断开关电路15的当前状态是否预设状态,调节Wi-Fi芯片13和外设芯片14各自与Wi-Fi天线11的电连接关系,使得Wi-Fi芯片13可以与第一预设天线电连接且外设芯片14与第二预设天线电连接。In order to realize the above process, the control circuit 12 may adjust the current state of the switch circuit 15 to a preset state. At this time, the Wi-Fi chip 13 has been electrically connected to the first target antenna through the switch circuit 15, and the peripheral chip 14 has been electrically connected to the second target antenna through the switch circuit 15. Therefore, the control circuit 12 can obtain the switch circuit 15 The current state, that is, the current state is a state where the Wi-Fi chip 13 is electrically connected to the first target antenna through the switch circuit 15 and the peripheral chip 14 is electrically connected to the second target antenna through the switch circuit 15. Therefore, the control circuit 12 can determine whether the current state of the switch circuit 15 is a preset state, and adjust the electrical connection relationship between the Wi-Fi chip 13 and the peripheral chip 14 and the Wi-Fi antenna 11, so that the Wi-Fi chip 13 can be connected to the Wi-Fi antenna 11. A preset antenna is electrically connected and the peripheral chip 14 is electrically connected with a second preset antenna.
在控制电路12判断开关电路15的当前状态为预设状态时,控制电路12可以锁定开关电路15的当前状态,使得Wi-Fi芯片13可以控制通信设备1通过第一目标天线(即第一预设天线)进行Wi-Fi通信,以及外设芯片14控制外部设备通过第二目标天线(即第二预设天线)与通信设备1之间进行通信。When the control circuit 12 determines that the current state of the switch circuit 15 is the preset state, the control circuit 12 can lock the current state of the switch circuit 15 so that the Wi-Fi chip 13 can control the communication device 1 to pass through the first target antenna (ie, the first preset state). Set an antenna) for Wi-Fi communication, and the peripheral chip 14 controls the external device to communicate with the communication device 1 through the second target antenna (ie, the second preset antenna).
在控制电路12判断开关电路15的当前状态不为预设状态时,控制电路12可以将开关电路15的当前状态更新为预设状态,使得Wi-Fi芯片13可以通过开关电路15切换至与第一预设天线电连接,实现通信设备1通过第一预设天线进行Wi-Fi通信的过程,且外设芯片14可以通过开关电路15切换至与第二预设天线电连接,实现外部设备通过第二预设天线与通信设备1之间的通信过程。When the control circuit 12 determines that the current state of the switch circuit 15 is not the preset state, the control circuit 12 can update the current state of the switch circuit 15 to the preset state, so that the Wi-Fi chip 13 can switch to the first state through the switch circuit 15 A preset antenna is electrically connected to realize the process of the communication device 1 performing Wi-Fi communication through the first preset antenna, and the peripheral chip 14 can be switched to be electrically connected with the second preset antenna through the switch circuit 15, so that the external device can pass through The communication process between the second preset antenna and the communication device 1.
可选地,控制电路12在将开关电路15的当前状态更新为预设状态之后,还可以锁定开关电路15的当前状态,即Wi-Fi芯片13与第一预设天线电连接且外设芯片14与第二预设天线电连接的状态。Optionally, after the control circuit 12 updates the current state of the switch circuit 15 to a preset state, it can also lock the current state of the switch circuit 15, that is, the Wi-Fi chip 13 is electrically connected to the first preset antenna and the peripheral chip 14 The state of being electrically connected to the second preset antenna.
本申请实施例中,在通信设备通过第一目标天线进行Wi-Fi通信,且外设芯片通过第二目标Wi-Fi天线搜索外部设备之后,当外设芯片与外部设备匹配成功时,控制电路可以判断开关电路的当前状态是否为预设状态。若是,则控制电路可以确定第一目标天线即第一预设天线,第二目标天线即第二预设天线,便可锁定开关电路的当前状态。若否,则控制电路可以将开关电路的当前状态调整为预设状态,使得Wi-Fi芯片与第一预设天线电连接且外设芯片与第二预设天线电连接。从而,通信设备可以通过第一预设天线进行Wi-Fi通信,且外部设备可以通过第二预设天线与通信设备进行通信。In the embodiment of the present application, after the communication device performs Wi-Fi communication through the first target antenna, and the peripheral chip searches for the external device through the second target Wi-Fi antenna, when the peripheral chip matches the external device successfully, the control circuit It can be judged whether the current state of the switch circuit is the preset state. If so, the control circuit can determine that the first target antenna is the first preset antenna, and the second target antenna is the second preset antenna, and the current state of the switch circuit can be locked. If not, the control circuit can adjust the current state of the switch circuit to the preset state, so that the Wi-Fi chip is electrically connected to the first preset antenna and the peripheral chip is electrically connected to the second preset antenna. Thus, the communication device can perform Wi-Fi communication through the first preset antenna, and the external device can communicate with the communication device through the second preset antenna.
示例性地,本申请实施例中,第一预设天线和第二预设天线可以处于通信设备1的任意位置,通常结合实际经验进行设置。下面,结合图3-图4,对第一预设天线和第二预设天线的位置进行描述。为了便于说明,以多个Wi-Fi天线11包括第一Wi-Fi天线和第二Wi-Fi天线为例进行示意。Exemplarily, in the embodiment of the present application, the first preset antenna and the second preset antenna may be located at any positions of the communication device 1, and are usually set based on actual experience. Hereinafter, the positions of the first preset antenna and the second preset antenna will be described with reference to FIGS. 3 to 4. For ease of description, take the multiple Wi-Fi antennas 11 including a first Wi-Fi antenna and a second Wi-Fi antenna as an example for illustration.
本领域技术人员可以理解,当用户两手握着通信设备1的短边时,通信设备1通常处于横屏状态下,如图3所示。当用户两手握着通信设备1的长边时,通信设备1通常处于竖屏状态下,如图4所示。需要说明的是,上述方式仅是定义通信设备1处于竖屏状态和横屏状态下的一种可选方式,本申请实施例不限于此种方式。Those skilled in the art can understand that when the user holds the short side of the communication device 1 with both hands, the communication device 1 is usually in a landscape state, as shown in FIG. 3. When the user holds the long sides of the communication device 1 with both hands, the communication device 1 is usually in a vertical screen state, as shown in FIG. 4. It should be noted that the above method is only an optional method for defining the communication device 1 in the vertical screen state and the horizontal screen state, and the embodiment of the present application is not limited to this method.
如图3所示,当通信设备1处于横屏状态时,用户更容易手握通信设备1的短边且靠近通信设备1的底边的位置区域,不易手握通信设备1的其他位置区域。如图4所示,当通信设备1处于竖屏状态时,用户更容易手握通信设备1的长边且靠近通信设备1的底边的位置区域,不易手握通信设备1的其他位置区域。As shown in FIG. 3, when the communication device 1 is in the landscape state, it is easier for the user to hold the short side of the communication device 1 and close to the location area of the bottom side of the communication device 1, and it is not easy for the user to hold the other location areas of the communication device 1. As shown in FIG. 4, when the communication device 1 is in the vertical screen state, it is easier for the user to hold the long side of the communication device 1 and the location area close to the bottom side of the communication device 1, and it is not easy to hold the other location areas of the communication device 1 by hand.
基于上述描述,结合图3和图4,为了适用于通信设备1处于竖屏状态和横屏状态下的不同场景,本申请实施例可以将第二Wi-Fi天线(图3和图4中以一个第二Wi-Fi天线为例进行示意)设置在位于通信设备1处于横屏状态下的上半部区域中,避免通信设备1处于横屏状态下第二Wi-Fi天线被遮挡。本申请实施例可以将第一Wi-Fi天线(图3和图4中以一个第一Wi-Fi天线为例进行示意)设置在位于通信设备1处于竖屏状态下的上半部区域中,避免通信设备1处于竖屏状态下第一Wi-Fi天线被遮挡。Based on the above description, combined with Figures 3 and 4, in order to be applicable to different scenarios in which the communication device 1 is in the vertical screen state and the horizontal screen state, the embodiment of the present application may use the second Wi-Fi antenna (in Figure 3 and Figure 4 with A second Wi-Fi antenna is taken as an example for illustration) is set in the upper half of the area when the communication device 1 is in the horizontal screen state to prevent the second Wi-Fi antenna from being blocked when the communication device 1 is in the horizontal screen state. In the embodiment of the present application, the first Wi-Fi antenna (a first Wi-Fi antenna is taken as an example in FIG. 3 and FIG. 4 for illustration) is located in the upper half of the area where the communication device 1 is in the vertical screen state, Prevent the first Wi-Fi antenna from being blocked when the communication device 1 is in the vertical screen state.
其中,本申请实施例对第一Wi-Fi天线和第二Wi-Fi天线的具体位置和数量均不做限定。例如,在通信设备1处于横屏状态下,第二Wi-Fi天线可以位于通信设备1的顶部的中心位置。在通信设备1处于竖屏状态下,第一Wi-Fi天线可以位于通信设备1的顶部的中心位置。Among them, the embodiment of the present application does not limit the specific positions and numbers of the first Wi-Fi antenna and the second Wi-Fi antenna. For example, when the communication device 1 is in a landscape state, the second Wi-Fi antenna may be located at the center of the top of the communication device 1. When the communication device 1 is in the vertical screen state, the first Wi-Fi antenna may be located at the center of the top of the communication device 1.
又由于通信设备1处于横屏状态时紧贴桌面等支撑结构,而降低第一Wi-Fi天线的性能,因此,本申请实施例在将第一Wi-Fi天线设置在位于通信设备1处于竖屏状态下的上半部区域中的基础上,还需要设置第一Wi-Fi天线距通信设备1处于横屏状态下的底边存在预设距离。其中,预设距离可以结合实际经验进行设备,本申请实施例对此不做限定。In addition, since the communication device 1 is close to the support structure such as the desktop when it is in the horizontal screen state, the performance of the first Wi-Fi antenna is reduced. Therefore, in the embodiment of the present application, the first Wi-Fi antenna is set in the vertical position of the communication device 1. On the basis of the upper half area in the screen state, it is also necessary to set the first Wi-Fi antenna to have a preset distance from the bottom edge of the communication device 1 in the horizontal screen state. Among them, the preset distance can be combined with actual experience to perform equipment, which is not limited in the embodiment of the present application.
如图3所示,在通信设备1处于横屏状态时,相比第二Wi-Fi天线而言,第一Wi-Fi天线更容易被手握而性能下降,因此,本申请实施例可以事先将第二Wi-Fi天线设置为第一预设天线,将一第Wi-Fi天线设置为第二预设天线。As shown in FIG. 3, when the communication device 1 is in the landscape state, compared with the second Wi-Fi antenna, the first Wi-Fi antenna is easier to be held by the hand and its performance decreases. Therefore, the embodiment of the present application may The second Wi-Fi antenna is set as the first preset antenna, and the first Wi-Fi antenna is set as the second preset antenna.
如图4所示,在通信设备1处于竖屏状态时,相比第一Wi-Fi天线而言,第二Wi-Fi天线更容易被手握而性能下降,因此,本申请实施例可以事先将第一Wi-Fi天线设置为第一预设天线,将第二Wi-Fi天线设置为第二预设天线。As shown in FIG. 4, when the communication device 1 is in the vertical screen state, compared with the first Wi-Fi antenna, the second Wi-Fi antenna is easier to be held by the hand and its performance decreases. Therefore, the embodiment of the present application may The first Wi-Fi antenna is set as the first preset antenna, and the second Wi-Fi antenna is set as the second preset antenna.
在上述图3-图4所示实施例的基础上,如图5所示(为了便于说明,图5仅示出以图3所 示实施例作为基础),通信设备1还可以包括:第三Wi-Fi天线(图5中以一个第三Wi-Fi天线为例进行示意)。其中,Wi-Fi芯片13的另一信号端与第三Wi-Fi天线电连接。On the basis of the above-mentioned embodiments shown in Figs. 3 to 4, as shown in Fig. 5 (for ease of description, Fig. 5 only shows the embodiment shown in Fig. 3 as a basis), the communication device 1 may further include: a third Wi-Fi antenna (in Figure 5, a third Wi-Fi antenna is used as an example for illustration). Wherein, the other signal end of the Wi-Fi chip 13 is electrically connected to the third Wi-Fi antenna.
由于第三Wi-Fi天线位于通信设备1处于竖屏状态下的上半部区域,且位于通信设备1处于横屏状态下的上半部区域,因此,无论通信设备1处于横屏状态还是竖屏状态,第三Wi-Fi天线均不容易被手握。Since the third Wi-Fi antenna is located in the upper half area when the communication device 1 is in the vertical screen state, and is located in the upper half area when the communication device 1 is in the horizontal screen state, no matter if the communication device 1 is in the horizontal screen state or the vertical screen state, In the screen state, the third Wi-Fi antenna is not easy to be held by hand.
基于上述描述,第三Wi-Fi天线可以用于通信设备1的Wi-Fi通信,以确保通信设备1的Wi-Fi通信。在通信设备1处于横屏状态时,第二Wi-Fi天线和第三Wi-Fi天线可以共同组成MIMO天线,实现通信设备1的Wi-Fi通信。在通信设备1处于竖屏状态时,第一Wi-Fi天线和第三Wi-Fi天线可以共同组成MIMO天线,实现通信设备1的Wi-Fi通信。Based on the above description, the third Wi-Fi antenna can be used for Wi-Fi communication of the communication device 1 to ensure the Wi-Fi communication of the communication device 1. When the communication device 1 is in the horizontal screen state, the second Wi-Fi antenna and the third Wi-Fi antenna may jointly form a MIMO antenna to realize Wi-Fi communication of the communication device 1. When the communication device 1 is in the vertical screen state, the first Wi-Fi antenna and the third Wi-Fi antenna may jointly form a MIMO antenna to realize Wi-Fi communication of the communication device 1.
其中,本申请实施例对第三Wi-Fi天线的具体位置和数量均不做限定。例如,在通信设备1处于横屏状态下,第三Wi-Fi天线可以位于通信设备1的顶部的中心位置。在通信设备1处于竖屏状态下,第三Wi-Fi天线可以位于通信设备1的顶部的中心位置。Among them, the embodiment of the present application does not limit the specific position and number of the third Wi-Fi antenna. For example, when the communication device 1 is in a landscape state, the third Wi-Fi antenna may be located at the center of the top of the communication device 1. When the communication device 1 is in the vertical screen state, the third Wi-Fi antenna may be located at the center of the top of the communication device 1.
继续结合图5,通信设备1还可以包括:外设充电接口16(图5中以多个圆圈对外设充电接口16进行示意)。其中,外设充电接口16位于通信设备1处于第一状态下的下半部区域,外设充电接口16靠近下方部区域的底边,便于通信设备1向外部设备充电。Continuing to combine with FIG. 5, the communication device 1 may further include: a peripheral charging interface 16 (the peripheral charging interface 16 is illustrated with multiple circles in FIG. 5). Among them, the peripheral charging interface 16 is located in the lower half of the area when the communication device 1 is in the first state, and the peripheral charging interface 16 is close to the bottom of the lower area to facilitate the communication device 1 to charge external devices.
其中,本申请实施例对外设充电接口16的具体位置、数量和类型皆不做限定。另外,第一状态可以为横屏状态,也可以为竖屏状态,本申请实施例对此不做限定。例如,在通信设备1处于横屏状态下,外设充电接口16可以位于通信设备1的底边的中心位置。在通信设备1处于竖屏状态下,外设充电接口16可以位于通信设备1的底边的中心位置。Among them, the embodiment of the present application does not limit the specific location, number, and type of the external charging interface 16. In addition, the first state may be a horizontal screen state or a vertical screen state, which is not limited in the embodiment of the present application. For example, when the communication device 1 is in a horizontal screen state, the peripheral charging interface 16 may be located at the center of the bottom edge of the communication device 1. When the communication device 1 is in the vertical screen state, the peripheral charging interface 16 may be located at the center of the bottom side of the communication device 1.
例如,若通信设备1为平板,则平板套上平板套,将外部设备放置在平板套上,此时,平板可以通过外设充电接口16借助平板套向外部设备充电。需要说明的是,上述充电方式仅是一种通信设备1通过外设充电接口16向外部设备充电的实例性方式,本申请实施例不限于上述充电方式。For example, if the communication device 1 is a tablet, the tablet is put on the tablet case, and the external device is placed on the tablet case. At this time, the tablet can charge the external device through the external device charging interface 16 through the tablet case. It should be noted that the above charging method is only an exemplary method in which the communication device 1 charges an external device through the external charging interface 16 and the embodiment of the present application is not limited to the above charging method.
示例性地,本申请实施例还提供一种天线切换方法,该天线切换方法可以由上述图1-图5所示实施例的通信设备通过软件和/或硬件的方式实现,可通过事先从多个Wi-Fi天线中设置第一预设天线和第二预设天线,其中,第一预设天线用于通信设备进行Wi-Fi通信,第二预设天线用于外部设备与通信设备之间的通信,从而基于通信设备中各个元器件的电连接关系,不仅可以通过第一预设天线实现通信设备的正常Wi-Fi通信,还可以利用闲置Wi-Fi天线(即第二预设天线)实现通信设备与外部设备之间的通信,提高了Wi-Fi天线的利用率,提高了外部设备与通信设备之间的通信速率,满足了操作低时延的各种场景,保障了用户的灵活操作和方便使用。Exemplarily, an embodiment of the present application also provides an antenna switching method. The antenna switching method may be implemented by the communication device in the above-mentioned embodiments shown in FIG. 1 to FIG. 5 through software and/or hardware. A first preset antenna and a second preset antenna are set in two Wi-Fi antennas, where the first preset antenna is used for Wi-Fi communication by the communication device, and the second preset antenna is used between the external device and the communication device Based on the electrical connection relationship of various components in the communication device, not only can the normal Wi-Fi communication of the communication device be realized through the first preset antenna, but also the idle Wi-Fi antenna (ie the second preset antenna) Realize the communication between the communication device and the external device, improve the utilization rate of the Wi-Fi antenna, increase the communication rate between the external device and the communication device, meet various scenarios with low operation delay, and ensure the flexibility of the user Operation and easy to use.
图6为本申请实施例提供的一种示例性的天线切换方法的流程图。如图6所示,本申请实施例的天线切换方法可以包括:Fig. 6 is a flowchart of an exemplary antenna switching method provided by an embodiment of the application. As shown in FIG. 6, the antenna switching method of the embodiment of the present application may include:
S101、外设芯片向控制电路发送匹配成功消息,其中,匹配成功消息用于表示外设芯片与外部设备匹配成功。S101. The peripheral chip sends a matching success message to the control circuit, where the matching success message is used to indicate that the peripheral chip is successfully matched with the external device.
S102、控制电路在接收到匹配成功消息时,控制Wi-Fi芯片通过开关电路切换至与第一预设天线电连接,控制外设芯片通过开关电路切换至与第二预设天线电连接,其中,第一预设天线和第二预设天线为事先从多个Wi-Fi天线中设置的,第一预设天线用于通信设备的Wi-Fi通信,第二预设天线用于外部设备与通信设备之间的通信。S102. When the control circuit receives the matching success message, it controls the Wi-Fi chip to switch to be electrically connected to the first preset antenna through the switch circuit, and controls the peripheral chip to switch to be electrically connected to the second preset antenna through the switch circuit, wherein , The first preset antenna and the second preset antenna are set in advance from multiple Wi-Fi antennas, the first preset antenna is used for Wi-Fi communication of the communication device, and the second preset antenna is used for the external device and Communication between communication devices.
S103、Wi-Fi芯片控制通信设备通过第一预设天线进行Wi-Fi通信。S103. The Wi-Fi chip controls the communication device to perform Wi-Fi communication through the first preset antenna.
S104、外设芯片控制外部设备通过第二预设天线与通信设备进行通信。S104. The peripheral chip controls the external device to communicate with the communication device through the second preset antenna.
本申请实施例提供的天线切换方法可采用上述图1实施例通信设备来执行过程,其实现方式和技术效果类似,本申请实施例此处不再赘述。The antenna switching method provided in the embodiment of the present application may use the communication device in the embodiment of FIG. 1 to perform the process, and its implementation manner and technical effect are similar, and the description of the embodiment of the present application will not be repeated here.
示例性地,本申请实施例的天线切换方法还可以在确定第一目标天线的通信质量优于第二目标天线的通信质量时,基于通信设备中各个元器件的电连接关系,不仅可以通过第一目标天线实现通信设备的正常Wi-Fi通信,还可以利用闲置Wi-Fi(即第二目标天线)实现外设芯片搜索外部设备的过程,提高了Wi-Fi天线的利用率。Exemplarily, the antenna switching method of the embodiment of the present application can also determine that the communication quality of the first target antenna is better than the communication quality of the second target antenna, based on the electrical connection relationship of each component in the communication device, not only through the first A target antenna realizes the normal Wi-Fi communication of the communication device, and the idle Wi-Fi (that is, the second target antenna) can also be used to realize the process of searching for external devices by the peripheral chip, which improves the utilization rate of the Wi-Fi antenna.
图7为本申请实施例提供的一种示例性的天线切换方法的流程图。如图7所示,本申请实施例的天线切换方法可以包括:Fig. 7 is a flowchart of an exemplary antenna switching method provided by an embodiment of the application. As shown in FIG. 7, the antenna switching method of the embodiment of the present application may include:
S201、Wi-Fi芯片判断多个Wi-Fi天线的通信质量。S201. The Wi-Fi chip judges the communication quality of multiple Wi-Fi antennas.
S202、Wi-Fi芯片向控制电路发送判断结果,其中,判断结果为第一目标天线的通信质量优于第二目标天线的通信质量,第一目标天线用于通信设备的Wi-Fi通信,第二目标天线用于外设芯片搜索外部设备。S202. The Wi-Fi chip sends a judgment result to the control circuit, where the judgment result is that the communication quality of the first target antenna is better than the communication quality of the second target antenna, and the first target antenna is used for Wi-Fi communication of the communication device. The second target antenna is used for the peripheral chip to search for external devices.
S203、控制电路在接收到判断结果时,控制Wi-Fi芯片通过开关电路切换至与第一目标天线电连接,控制外设芯片通过开关电路切换至与第二目标天线电连接。S203. When receiving the judgment result, the control circuit controls the Wi-Fi chip to switch to be electrically connected to the first target antenna through the switch circuit, and controls the peripheral chip to switch to be electrically connected to the second target antenna through the switch circuit.
S204、Wi-Fi芯片控制通信设备通过第一目标天线进行Wi-Fi通信。S204. The Wi-Fi chip controls the communication device to perform Wi-Fi communication through the first target antenna.
S205、外设芯片控制外设备芯片通过第二目标天线搜索外部设备。S205. The peripheral chip controls the external device chip to search for the external device through the second target antenna.
本申请实施例提供的天线切换方法可采用上述图2实施例通信设备来执行过程,其实现方式和技术效果类似,本申请实施例此处不再赘述。The antenna switching method provided in the embodiment of the present application may use the communication device of the embodiment in FIG. 2 to perform the process, and its implementation manner and technical effect are similar, and the description of the embodiment of the present application will not be repeated here.
另外,通信设备可以执行图7所示的各个步骤,使得通信设备通过第一目标天线进行Wi-Fi通信,且外设备芯片通过第二目标天线搜索外部设备。当外设芯片利用第二目标天线搜索外部设备且成功匹配外部设备时,通信设备可以执行图6所示的各个步骤,使得通信设备通过第一预设天线进行Wi-Fi通信,且外部设备通过第二预设天线与通信设备进行通信。In addition, the communication device may perform the steps shown in FIG. 7 so that the communication device performs Wi-Fi communication through the first target antenna, and the external device chip searches for the external device through the second target antenna. When the peripheral chip uses the second target antenna to search for the external device and successfully matches the external device, the communication device can perform the steps shown in FIG. 6 so that the communication device performs Wi-Fi communication through the first preset antenna, and the external device passes through The second preset antenna communicates with the communication device.
然而,由于图7所示步骤结束时,Wi-Fi芯片与第一目标天线电连接,且外设芯片与第二目标天线电连接,可见,开关电路的当前状态为Wi-Fi芯片通过开关电路与第一目标天线电连接,且外设芯片通过开关电路与第二目标天线电连接的状态。然而,图6所示步骤中,Wi-Fi芯片需要与第一预设天线电连接,且外设芯片需要与第二预设天线电连接。为了方便说明,可将开关电路的预设状态事先设置为Wi-Fi芯片通过开关电路与第一预设天线电连接,且外设芯片通过开关电路电与第二预设天线电连接的状态。However, since at the end of the steps shown in Figure 7, the Wi-Fi chip is electrically connected to the first target antenna, and the peripheral chip is electrically connected to the second target antenna, it can be seen that the current state of the switch circuit is that the Wi-Fi chip passes through the switch circuit. It is electrically connected to the first target antenna, and the peripheral chip is electrically connected to the second target antenna through the switch circuit. However, in the steps shown in FIG. 6, the Wi-Fi chip needs to be electrically connected to the first preset antenna, and the peripheral chip needs to be electrically connected to the second preset antenna. For convenience of description, the preset state of the switch circuit can be set in advance to a state where the Wi-Fi chip is electrically connected to the first preset antenna through the switch circuit, and the peripheral chip is electrically connected to the second preset antenna through the switch circuit.
基于上述描述,在通信设备执行图6所示步骤之前,可选地,控制电路可以判断开关电路的当前状态是否预设状态。Based on the foregoing description, before the communication device executes the steps shown in FIG. 6, optionally, the control circuit may determine whether the current state of the switch circuit is a preset state.
在控制电路判断开关电路的当前状态为预设状态时,控制电路可以锁定开关电路的当前状态,使得Wi-Fi芯片控制通信设备通过第一目标天线(即第一预设天线)进行Wi-Fi通信且外设芯片控制外部设备通过第二目标天线(即第二预设天线)与通信设备进行通信。When the control circuit determines that the current state of the switch circuit is the preset state, the control circuit can lock the current state of the switch circuit so that the Wi-Fi chip controls the communication device to perform Wi-Fi through the first target antenna (ie, the first preset antenna) The communication and peripheral chip controls the external device to communicate with the communication device through the second target antenna (ie, the second preset antenna).
在控制电路判断开关电路的当前状态不为预设状态时,控制电路可以将开关电路的当前状态更新为预设状态,以控制Wi-Fi芯片通过开关电路切换至与第一预设天线电连接且控制外设芯片通过开关电路切换至与第二预设天线电连接。When the control circuit determines that the current state of the switch circuit is not the preset state, the control circuit can update the current state of the switch circuit to the preset state to control the Wi-Fi chip to switch to be electrically connected to the first preset antenna through the switch circuit And the control peripheral chip is switched to be electrically connected with the second preset antenna through the switch circuit.
可选地,控制电路在将开关电路的当前状态更新为预设状态之后,还可以锁定开关电 路的当前状态,即Wi-Fi芯片与第一预设天线电连接且外设芯片与第二预设天线电连接的状态。Optionally, after the control circuit updates the current state of the switch circuit to the preset state, it can also lock the current state of the switch circuit, that is, the Wi-Fi chip is electrically connected to the first preset antenna and the peripheral chip is connected to the second preset state. Set the state of electrical connection of the antenna.
本申请实施例中,在通信设备通过第一目标天线进行Wi-Fi通信,且外设芯片通过第二目标Wi-Fi天线搜索外部设备之后,当外设芯片与外部设备匹配成功时,控制电路可以判断开关电路的当前状态是否为预设状态。若是,则控制电路可以确定第一目标天线即第一预设天线,第二目标天线即第二预设天线,便可锁定开关电路的当前状态。若否,则控制电路可以将开关电路的当前状态调整为预设状态,使得Wi-Fi芯片与第一预设天线电连接且外设芯片与第二预设天线电连接。从而,通信设备可以通过第一预设天线进行Wi-Fi通信,且外部设备可以通过第二预设天线与通信设备进行通信。In the embodiment of the present application, after the communication device performs Wi-Fi communication through the first target antenna, and the peripheral chip searches for the external device through the second target Wi-Fi antenna, when the peripheral chip matches the external device successfully, the control circuit It can be judged whether the current state of the switch circuit is the preset state. If so, the control circuit can determine that the first target antenna is the first preset antenna, and the second target antenna is the second preset antenna, and the current state of the switch circuit can be locked. If not, the control circuit can adjust the current state of the switch circuit to the preset state, so that the Wi-Fi chip is electrically connected to the first preset antenna and the peripheral chip is electrically connected to the second preset antenna. Thus, the communication device can perform Wi-Fi communication through the first preset antenna, and the external device can communicate with the communication device through the second preset antenna.
示例性的,本申请实施例还提供一种通信设备,图8为本申请实施例提供的一种示例性的通信设备的硬件结构示意图,如图8所示,该通信设备可以包括但不限于终端,其中,终端:可以是无线终端也可以是有线终端,无线终端可以是指一种具有无线收发功能的设备,可以部署在陆地上,包括室内或室外、手持或车载;也可以部署在水面上(如轮船等);还可以部署在空中(例如飞机、气球和卫星上等)。终端可以是个人计算机、游戏机、MP3播放器、手机(mobile phone)、平板电脑(Pad)、带无线收发功能的电脑、打印机、虚拟现实(Virtual Reality,VR)终端、增强现实(Augmented Reality,AR)终端、工业控制(industrial control)中的无线终端、无人驾驶(self driving)中的无线终端、远程医疗(remote medical)中的无线终端、智能电网(smart grid)中的无线终端、运输安全(transportation safety)中的无线终端、智慧城市(smart city)中的无线终端、智慧家庭(smart home)中的无线终端等等,在此不作限定,用于实现上述图6-图7所示方法实施例中对应于通信设备通过软件和/或硬件的操作。本申请实施例的通信设备100可以包括:存储器101和处理器102。存储器101与处理器102可以通过总线103连接。Exemplarily, an embodiment of the present application further provides a communication device. FIG. 8 is a schematic diagram of the hardware structure of an exemplary communication device provided by an embodiment of the application. As shown in FIG. 8, the communication device may include but is not limited to Terminal, among them, terminal: can be a wireless terminal or a wired terminal, a wireless terminal can refer to a device with a wireless transceiver function, which can be deployed on land, including indoor or outdoor, handheld or vehicle-mounted; it can also be deployed on the water It can also be deployed in the air (such as airplanes, balloons and satellites, etc.). The terminal can be a personal computer, game console, MP3 player, mobile phone, tablet computer (Pad), computer with wireless transceiver function, printer, virtual reality (Virtual Reality, VR) terminal, augmented reality (Augmented Reality, AR) terminals, wireless terminals in industrial control, wireless terminals in self-driving (self-driving), wireless terminals in remote medical, wireless terminals in smart grid, transportation Wireless terminals in transportation safety, wireless terminals in smart cities, and wireless terminals in smart homes, etc., are not limited here, and are used to implement the above-mentioned figures 6-7 The method embodiment corresponds to the operation of the communication device through software and/or hardware. The communication device 100 in the embodiment of the present application may include: a memory 101 and a processor 102. The memory 101 and the processor 102 may be connected through a bus 103.
存储器101,用于存储程序代码;The memory 101 is used to store program codes;
处理器102,调用程序代码,当程序代码被执行时,用于执行上述任一实施例中的天线切换方法。具体可以参见前述方法实施例中的相关描述。The processor 102 calls the program code, and when the program code is executed, it is used to execute the antenna switching method in any of the foregoing embodiments. For details, refer to the related description in the foregoing method embodiment.
可选地,本申请实施例还包括通信接口104,该通信接口104可以通过总线103与处理器102连接。处理器102可以控制通信接口103来实现通信设备100的上述的接收和发送的功能。Optionally, the embodiment of the present application further includes a communication interface 104, and the communication interface 104 may be connected to the processor 102 through the bus 103. The processor 102 may control the communication interface 103 to implement the aforementioned receiving and sending functions of the communication device 100.
本申请实施例的通信设备,可以用于执行上述各方法实施例中的技术方案,其实现原理和技术效果类似,此处不再赘述。The communication device in the embodiment of the present application may be used to execute the technical solutions in the foregoing method embodiments, and its implementation principles and technical effects are similar, and will not be repeated here.
在本申请所提供的几个实施例中,应该理解到,所揭露的设备和方法,可以通过其它的方式实现。例如,以上所描述的设备实施例仅仅是示意性的,例如,所述模块的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个模块可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或模块的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed device and method may be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the modules is only a logical function division, and there may be other divisions in actual implementation, for example, multiple modules can be combined or integrated. To another system, or some features can be ignored, or not implemented. In addition, the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or modules, and may be in electrical, mechanical or other forms.
所述作为分离部件说明的模块可以是或者也可以不是物理上分开的,作为模块显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本申请实施例方案的目 的。The modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules can be selected according to actual needs to achieve the objectives of the solutions of the embodiments of the present application.
另外,在本申请各个实施例中的各功能模块可以集成在一个处理单元中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个单元中。上述模块成的单元既可以采用硬件的形式实现,也可以采用硬件加软件功能单元的形式实现。In addition, the functional modules in the various embodiments of the present application may be integrated into one processing unit, or each module may exist alone physically, or two or more modules may be integrated into one unit. The units formed by the above-mentioned modules can be realized in the form of hardware, or in the form of hardware plus software functional units.
上述以软件功能模块的形式实现的集成的模块,可以存储在一个计算机可读取存储介质中。上述软件功能模块存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或处理器(英文:processor)执行本申请各个实施例所述方法的部分步骤。The above-mentioned integrated modules implemented in the form of software function modules may be stored in a computer readable storage medium. The above-mentioned software function module is stored in a storage medium and includes several instructions to make a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor (English: processor) to execute the various embodiments of the present application Part of the method.
应理解,上述处理器可以是中央处理单元(英文:Central Processing Unit,简称:CPU),还可以是其他通用处理器、数字信号处理器(英文:Digital Signal Processor,简称:DSP)、专用集成电路(英文:Application Specific Integrated Circuit,简称:ASIC)等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合发明所公开的方法的步骤可以直接体现为硬件处理器执行完成,或者用处理器中的硬件及软件模块组合执行完成。It should be understood that the foregoing processor may be a central processing unit (English: Central Processing Unit, abbreviated: CPU), or other general-purpose processors, digital signal processors (English: Digital Signal Processor, abbreviated: DSP), and application-specific integrated circuits (English: Application Specific Integrated Circuit, referred to as ASIC) etc. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor or the like. The steps of the method disclosed in combination with the invention can be directly embodied as executed by a hardware processor, or executed by a combination of hardware and software modules in the processor.
存储器可能包含高速RAM存储器,也可能还包括非易失性存储NVM,例如至少一个磁盘存储器,还可以为U盘、移动硬盘、只读存储器、磁盘或光盘等。The memory may include a high-speed RAM memory, and may also include a non-volatile storage NVM, such as at least one disk storage, and may also be a U disk, a mobile hard disk, a read-only memory, a magnetic disk, or an optical disk.
总线可以是工业标准体系结构(Industry Standard Architecture,ISA)总线、外部设备互连(Peripheral Component,PCI)总线或扩展工业标准体系结构(Extended Industry Standard Architecture,EISA)总线等。总线可以分为地址总线、数据总线、控制总线等。为便于表示,本申请附图中的总线并不限定仅有一根总线或一种类型的总线。The bus can be an Industry Standard Architecture (ISA) bus, Peripheral Component (PCI) bus, or Extended Industry Standard Architecture (EISA) bus, etc. The bus can be divided into address bus, data bus, control bus, etc. For ease of representation, the buses in the drawings of this application are not limited to only one bus or one type of bus.
本申请还提供一种可读存储介质,可读存储介质中存储有执行指令,当通信设备的至少一个处理器执行该执行指令时,通信设备执行上述方法实施例中的天线切换方法。The present application also provides a readable storage medium in which an execution instruction is stored. When at least one processor of a communication device executes the execution instruction, the communication device executes the antenna switching method in the foregoing method embodiment.
本申请还提供一种芯片,所述芯片与存储器相连,或者所述芯片上集成有存储器,当所述存储器中存储的软件程序被执行时,实现上述方法实施例中的天线切换方法。The present application also provides a chip, which is connected to a memory, or a memory is integrated on the chip, and when the software program stored in the memory is executed, the antenna switching method in the foregoing method embodiment is implemented.
本申请还提供一种程序产品,该程序产品包括执行指令,该执行指令存储在可读存储介质中。通信设备的至少一个处理器可以从可读存储介质读取该执行指令,至少一个处理器执行该执行指令使得通信设备实施上述方法实施例中的天线切换方法。This application also provides a program product, which includes an execution instruction, and the execution instruction is stored in a readable storage medium. At least one processor of the communication device can read the execution instruction from a readable storage medium, and the execution of the execution instruction by the at least one processor causes the communication device to implement the antenna switching method in the foregoing method embodiment.
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本申请实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如固态硬盘Solid State Disk(SSD))等。In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented by software, it can be implemented in the form of a computer program product in whole or in part. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on the computer, the processes or functions described in the embodiments of the present application are generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from a website, computer, server, or data center. Transmission to another website site, computer, server or data center via wired (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.). The computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server or a data center integrated with one or more available media. The usable medium may be a magnetic medium (for example, a floppy disk, a hard disk, a magnetic tape), an optical medium (for example, a DVD), or a semiconductor medium (for example, a solid state disk (SSD)).
Claims (17)
- 一种通信设备,其特征在于,包括:多个Wi-Fi天线、控制电路、Wi-Fi芯片、外设芯片和开关电路;A communication device, which is characterized by comprising: multiple Wi-Fi antennas, a control circuit, a Wi-Fi chip, a peripheral chip, and a switch circuit;其中,所述控制电路的第一输入端与所述外设芯片的输出端电连接,所述控制电路的输出端与所述开关电路的控制端电连接,所述Wi-Fi芯片的信号端与所述开关电路的第一输入端电连接,所述外设芯片的信号端与所述开关电路的第二输入端电连接,所述开关电路的每个输出端电连接一个Wi-Fi天线;Wherein, the first input terminal of the control circuit is electrically connected with the output terminal of the peripheral chip, the output terminal of the control circuit is electrically connected with the control terminal of the switch circuit, and the signal terminal of the Wi-Fi chip It is electrically connected to the first input terminal of the switch circuit, the signal terminal of the peripheral chip is electrically connected to the second input terminal of the switch circuit, and each output terminal of the switch circuit is electrically connected to a Wi-Fi antenna ;所述外设芯片,用于向所述控制电路发送匹配成功消息,其中,所述匹配成功消息用于表示所述外设芯片与外部设备匹配成功;The peripheral chip is configured to send a matching success message to the control circuit, where the matching success message is used to indicate that the peripheral chip and the external device are successfully matched;所述控制电路,用于在接收到所述匹配成功消息时,控制所述Wi-Fi芯片通过所述开关电路与第一预设天线电连接,控制所述外设芯片通过所述开关电路电与第二预设天线电连接,其中,所述第一预设天线和所述第二预设天线为事先从所述多个Wi-Fi天线中设置的,所述第一预设天线用于所述通信设备的Wi-Fi通信,所述第二预设天线用于所述外部设备与所述通信设备之间的通信;The control circuit is configured to control the Wi-Fi chip to be electrically connected to the first preset antenna through the switch circuit, and to control the peripheral chip to be electrically connected through the switch circuit when the matching success message is received. Is electrically connected to a second preset antenna, wherein the first preset antenna and the second preset antenna are set in advance from the multiple Wi-Fi antennas, and the first preset antenna is used for For Wi-Fi communication of the communication device, the second preset antenna is used for communication between the external device and the communication device;所述Wi-Fi芯片,用于控制所述通信设备通过所述第一预设天线进行Wi-Fi通信;The Wi-Fi chip is used to control the communication device to perform Wi-Fi communication through the first preset antenna;所述外设芯片,用于控制所述外部设备通过所述第二预设天线与所述通信设备进行通信。The peripheral chip is used to control the external device to communicate with the communication device through the second preset antenna.
- 根据权利要求1所述的通信设备,其特征在于,所述控制电路的第二输入端与所述Wi-Fi芯片的输出端电连接;The communication device according to claim 1, wherein the second input terminal of the control circuit is electrically connected to the output terminal of the Wi-Fi chip;所述Wi-Fi芯片,用于判断所述多个Wi-Fi天线的通信质量;向所述控制电路发送判断结果,其中,所述判断结果为第一目标天线的通信质量优于第二目标天线的通信质量,所述第一目标天线用于所述通信设备的Wi-Fi通信,所述第二目标天线用于所述外设芯片搜索外部设备;The Wi-Fi chip is used to determine the communication quality of the multiple Wi-Fi antennas; send a determination result to the control circuit, wherein the determination result is that the communication quality of the first target antenna is better than the second target The communication quality of the antenna, the first target antenna is used for Wi-Fi communication of the communication device, and the second target antenna is used for the peripheral chip to search for external devices;所述控制电路,用于在接收到所述判断结果时,控制所述Wi-Fi芯片通过所述开关电路切换至与所述第一目标天线电连接,控制所述外设芯片通过所述开关电路切换至与所述第二目标天线电连接;The control circuit is configured to control the Wi-Fi chip to switch to be electrically connected to the first target antenna through the switch circuit when the judgment result is received, and control the peripheral chip to pass through the switch The circuit is switched to be electrically connected to the second target antenna;所述Wi-Fi芯片,用于控制所述通信设备通过所述第一目标天线进行Wi-Fi通信;The Wi-Fi chip is configured to control the communication device to perform Wi-Fi communication through the first target antenna;所述外设芯片,用于控制所述外设备芯片通过所述第二目标天线搜索外部设备。The peripheral chip is used to control the external device chip to search for the external device through the second target antenna.
- 根据权利要求2所述的通信设备,其特征在于,The communication device according to claim 2, wherein:所述控制电路,用于在接收到所述匹配成功消息时,判断所述开关电路的当前状态是否预设状态,其中,所述当前状态为所述Wi-Fi芯片通过所述开关电路与所述第一目标天线电连接,且所述外设芯片通过所述开关电路与所述第二目标天线电连接的状态,所述预设状态为事先设置所述Wi-Fi芯片通过所述开关电路与所述第一预设天线电连接,且所述外设芯片通过所述开关电路与所述第二预设天线电连接的状态。The control circuit is configured to determine whether the current state of the switch circuit is a preset state when the matching success message is received, wherein the current state is that the Wi-Fi chip communicates with the switch circuit through the switch circuit. The first target antenna is electrically connected, and the peripheral chip is electrically connected to the second target antenna through the switch circuit, and the preset state is set in advance that the Wi-Fi chip passes through the switch circuit A state in which the peripheral chip is electrically connected to the first preset antenna, and the peripheral chip is electrically connected to the second preset antenna through the switch circuit.
- 根据权利要求3所述的通信设备,其特征在于,The communication device according to claim 3, wherein:所述控制电路,用于在判断所述开关电路的当前状态为所述预设状态时,锁定所述开关电路的当前状态,以使所述Wi-Fi芯片控制所述通信设备通过所述第一目标天线进行Wi-Fi通信且所述外设芯片控制所述外部设备通过所述第二目标天线与所述通信设备进行通信;The control circuit is used to lock the current state of the switch circuit when it is judged that the current state of the switch circuit is the preset state, so that the Wi-Fi chip controls the communication device to pass through the first A target antenna performs Wi-Fi communication and the peripheral chip controls the external device to communicate with the communication device through the second target antenna;所述控制电路,用于在判断所述开关电路的当前状态不为所述预设状态时,将所述开关电路的当前状态更新为所述预设状态,以控制所述Wi-Fi芯片通过所述开关电路切换至与所述第一预设天线电连接且控制所述外设芯片通过所述开关电路切换至与所述第二预设天线电连接。The control circuit is configured to update the current state of the switch circuit to the preset state when judging that the current state of the switch circuit is not the preset state, so as to control the Wi-Fi chip to pass through The switch circuit is switched to be electrically connected to the first preset antenna and the peripheral chip is controlled to switch to be electrically connected to the second preset antenna through the switch circuit.
- 根据权利要求4所述的通信设备,其特征在于,The communication device according to claim 4, wherein:所述控制电路,还用于在将所述开关电路的当前状态更新为所述预设状态之后,锁定所述开关电路的当前状态。The control circuit is also used to lock the current state of the switch circuit after updating the current state of the switch circuit to the preset state.
- 根据权利要求2-5任一项所述的通信设备,其特征在于,所述Wi-Fi芯片,用于根据所述多个Wi-Fi天线的接收的信号强度指示RSSI,判断所述多个Wi-Fi天线的通信质量。The communication device according to any one of claims 2-5, wherein the Wi-Fi chip is configured to determine the plurality of Wi-Fi antennas according to the received signal strength indicator RSSI of the plurality of Wi-Fi antennas. The communication quality of the Wi-Fi antenna.
- 根据权利要求1-6任一项所述的通信设备,其特征在于,所述多个Wi-Fi天线包括:第一Wi-Fi天线和第二Wi-Fi天线;其中,所述第一Wi-Fi天线位于所述通信设备处于竖屏状态下的上半部区域,所述第一Wi-Fi天线距所述通信设备处于横屏状态下的底边存在预设距离,所述第二Wi-Fi天线位于所述通信设备处于横屏状态下的上半部区域;The communication device according to any one of claims 1-6, wherein the multiple Wi-Fi antennas comprise: a first Wi-Fi antenna and a second Wi-Fi antenna; wherein, the first Wi-Fi antenna -The Fi antenna is located in the upper half area of the communication device in the vertical screen state, the first Wi-Fi antenna is at a preset distance from the bottom edge of the communication device in the horizontal screen state, and the second Wi-Fi antenna -The Fi antenna is located in the upper half of the area when the communication device is in a horizontal screen state;在所述通信设备处于横屏状态时,所述第一预设天线为所述第二Wi-Fi天线,所述第二预设天线为所述第一Wi-Fi天线;When the communication device is in a landscape state, the first preset antenna is the second Wi-Fi antenna, and the second preset antenna is the first Wi-Fi antenna;在所述通信设备处于竖屏状态时,所述第一预设天线为所述第一Wi-Fi天线,所述第二预设天线为所述第二Wi-Fi天线。When the communication device is in the vertical screen state, the first preset antenna is the first Wi-Fi antenna, and the second preset antenna is the second Wi-Fi antenna.
- 根据权利要求7所述的通信设备,其特征在于,所述通信设备还包括:第三Wi-Fi天线;The communication device according to claim 7, wherein the communication device further comprises: a third Wi-Fi antenna;其中,所述第三Wi-Fi天线位于所述通信设备处于竖屏状态时的上半部区域,且位于所述通信设备处于横屏状态下的上半部区域;所述Wi-Fi芯片的另一信号端与所述第三Wi-Fi天线电连接,所述第三Wi-Fi天线用于所述通信设备的Wi-Fi通信。Wherein, the third Wi-Fi antenna is located in the upper half area when the communication device is in the vertical screen state, and is located in the upper half area when the communication device is in the horizontal screen state; the Wi-Fi chip The other signal terminal is electrically connected to the third Wi-Fi antenna, and the third Wi-Fi antenna is used for Wi-Fi communication of the communication device.
- 根据权利要求1-8任一项所述的通信设备,其特征在于,所述外部设备为键盘和/或鼠标。The communication device according to any one of claims 1-8, wherein the external device is a keyboard and/or a mouse.
- 根据权利要求1-9任一项所述的通信设备,其特征在于,所述开关电路为双刀双掷开关。The communication device according to any one of claims 1-9, wherein the switch circuit is a double-pole double-throw switch.
- 根据权利要求1-10任一项所述的通信设备,其特征在于,所述通信设备还包括:外设充电接口,其中,所述外设充电接口位于所述通信设备处于第一状态下的下半部区域,所述外设充电接口靠近所述下半部区域的底边。The communication device according to any one of claims 1-10, wherein the communication device further comprises: a peripheral charging interface, wherein the peripheral charging interface is located when the communication device is in the first state In the lower half area, the peripheral charging interface is close to the bottom edge of the lower half area.
- 一种天线切换方法,其特征在于,应用于通信设备,所述通信设备包括:多个无线保真Wi-Fi天线、控制电路、Wi-Fi芯片、外设芯片和开关电路;其中,所述控制电路的第一输入端与所述外设芯片的输出端电连接,所述控制电路的输出端与所述开关电路的控制端电连接,所述Wi-Fi芯片的信号端与所述开关电路的第一输入端电连接,所述外设芯片的信号端与所述开关电路的第二输入端电连接,所述开关电路的每个输出端电连接一个Wi-Fi天线;An antenna switching method, characterized in that it is applied to a communication device, the communication device comprising: a plurality of wireless fidelity Wi-Fi antennas, a control circuit, a Wi-Fi chip, a peripheral chip, and a switch circuit; wherein, the The first input terminal of the control circuit is electrically connected to the output terminal of the peripheral chip, the output terminal of the control circuit is electrically connected to the control terminal of the switch circuit, and the signal terminal of the Wi-Fi chip is electrically connected to the switch The first input end of the circuit is electrically connected, the signal end of the peripheral chip is electrically connected to the second input end of the switch circuit, and each output end of the switch circuit is electrically connected to a Wi-Fi antenna;所述方法包括:The method includes:所述外设芯片向所述控制电路发送匹配成功消息,其中,所述匹配成功消息用于表示所述外设芯片与外部设备匹配成功;The peripheral chip sends a matching success message to the control circuit, where the matching success message is used to indicate that the peripheral chip and the external device are successfully matched;所述控制电路在接收到所述匹配成功消息时,控制所述Wi-Fi芯片通过所述开关电路 切换至与第一预设天线电连接,控制所述外设芯片通过所述开关电路切换至与第二预设天线电连接,其中,所述第一预设天线和所述第二预设天线为事先从所述多个Wi-Fi天线中设置的,所述第一预设天线用于所述通信设备的Wi-Fi通信,所述第二预设天线用于所述外部设备与所述通信设备之间的通信;When the control circuit receives the matching success message, it controls the Wi-Fi chip to switch to be electrically connected to the first preset antenna through the switch circuit, and controls the peripheral chip to switch to Is electrically connected to a second preset antenna, wherein the first preset antenna and the second preset antenna are set in advance from the multiple Wi-Fi antennas, and the first preset antenna is used for For Wi-Fi communication of the communication device, the second preset antenna is used for communication between the external device and the communication device;所述Wi-Fi芯片控制所述通信设备通过所述第一预设天线进行Wi-Fi通信;The Wi-Fi chip controls the communication device to perform Wi-Fi communication through the first preset antenna;所述外设芯片控制所述外部设备通过所述第二预设天线与所述通信设备进行通信。The peripheral chip controls the external device to communicate with the communication device through the second preset antenna.
- 根据权利要求12所述的方法,其特征在于,所述控制电路的第二输入端与所述Wi-Fi芯片的输出端电连接;The method according to claim 12, wherein the second input terminal of the control circuit is electrically connected to the output terminal of the Wi-Fi chip;所述方法还包括:The method also includes:所述Wi-Fi芯片判断所述多个Wi-Fi天线的通信质量;The Wi-Fi chip judging the communication quality of the multiple Wi-Fi antennas;所述Wi-Fi芯片向所述控制电路发送判断结果,其中,所述判断结果为第一目标天线的通信质量优于第二目标天线的通信质量,所述第一目标天线用于所述通信设备的Wi-Fi通信,所述第二目标天线用于所述外设芯片搜索外部设备;The Wi-Fi chip sends a judgment result to the control circuit, where the judgment result is that the communication quality of the first target antenna is better than the communication quality of the second target antenna, and the first target antenna is used for the communication Wi-Fi communication of the device, the second target antenna is used for the peripheral chip to search for the external device;所述控制电路在接收到所述判断结果时,控制所述Wi-Fi芯片通过所述开关电路切换至与所述第一目标天线电连接,控制所述外设芯片通过所述开关电路切换至与所述第二目标天线电连接;When the control circuit receives the judgment result, it controls the Wi-Fi chip to switch to be electrically connected to the first target antenna through the switch circuit, and controls the peripheral chip to switch to the first target antenna through the switch circuit. Electrically connected to the second target antenna;所述Wi-Fi芯片控制所述通信设备通过所述第一目标天线进行Wi-Fi通信;The Wi-Fi chip controls the communication device to perform Wi-Fi communication through the first target antenna;所述外设芯片控制所述外设备芯片通过所述第二目标天线搜索外部设备。The peripheral chip controls the external device chip to search for the external device through the second target antenna.
- 根据权利要求13所述的方法,其特征在于,The method of claim 13, wherein:在所述控制电路在接收到所述匹配成功消息时,控制所述Wi-Fi芯片通过所述开关电路切换至与第一预设天线电连接,控制所述外设芯片通过所述开关电路切换至与第二预设天线电连接之前,所述方法还包括:When the control circuit receives the matching success message, it controls the Wi-Fi chip to switch to be electrically connected to the first preset antenna through the switch circuit, and controls the peripheral chip to switch through the switch circuit Before being electrically connected to the second preset antenna, the method further includes:所述控制电路判断所述开关电路的当前状态是否预设状态,其中,所述当前状态为当前所述Wi-Fi芯片通过所述开关电路与所述第一目标天线电连接,且所述外设芯片通过所述开关电路与所述第二目标天线电连接的状态,所述预设状态为事先设置所述Wi-Fi芯片通过所述开关电路与所述第一预设天线电连接,且所述外设芯片通过所述开关电路电与所述第二预设天线电连接的状态。The control circuit judges whether the current state of the switch circuit is a preset state, wherein the current state is that the Wi-Fi chip is currently electrically connected to the first target antenna through the switch circuit, and the external It is assumed that the chip is electrically connected to the second target antenna through the switch circuit, the preset state is set in advance that the Wi-Fi chip is electrically connected to the first preset antenna through the switch circuit, and The state in which the peripheral chip is electrically connected to the second preset antenna through the switch circuit.
- 根据权利要求14所述的方法,其特征在于,所述控制电路在接收到所述匹配成功消息时,控制所述Wi-Fi芯片通过所述开关电路切换至与第一预设天线电连接,控制所述外设芯片通过所述开关电路切换至与第二预设天线电连接,包括:The method according to claim 14, wherein when the control circuit receives the matching success message, controls the Wi-Fi chip to switch to be electrically connected with the first preset antenna through the switch circuit, Controlling the peripheral chip to be electrically connected to the second preset antenna through the switch circuit includes:所述控制电路在判断所述开关电路的当前状态为所述预设状态时,锁定所述开关电路的当前状态,以使所述Wi-Fi芯片控制所述通信设备通过所述第一目标天线进行Wi-Fi通信且所述外设芯片控制所述外部设备通过所述第二目标天线与所述通信设备进行通信;When determining that the current state of the switch circuit is the preset state, the control circuit locks the current state of the switch circuit, so that the Wi-Fi chip controls the communication device to pass through the first target antenna Wi-Fi communication is performed and the peripheral chip controls the external device to communicate with the communication device through the second target antenna;所述控制电路在判断所述开关电路的当前状态不为所述预设状态时,将所述开关电路的当前状态更新为所述预设状态,以控制所述Wi-Fi芯片通过所述开关电路切换至与所述第一预设天线电连接且控制所述外设芯片通过所述开关电路切换至与所述第二预设天线电连接。When judging that the current state of the switch circuit is not the preset state, the control circuit updates the current state of the switch circuit to the preset state to control the Wi-Fi chip to pass the switch The circuit is switched to be electrically connected to the first preset antenna and the peripheral chip is controlled to switch to be electrically connected to the second preset antenna through the switch circuit.
- 根据权利要求15所述的方法,其特征在于,所述方法还包括:The method according to claim 15, wherein the method further comprises:所述控制电路在将所述开关电路的当前状态更新为所述预设状态之后,锁定所述开关 电路的当前状态。The control circuit locks the current state of the switch circuit after updating the current state of the switch circuit to the preset state.
- 一种程序产品,其特征在于,所述程序产品包括计算机程序,所述计算机程序存储在可读存储介质中,通信装置的至少一个处理器可以从所述可读存储介质读取所述计算机程序,所述至少一个处理器执行所述计算机程序使得通信装置实施如权利要求12-16任意一项所述的方法。A program product, characterized in that the program product includes a computer program, the computer program is stored in a readable storage medium, and at least one processor of a communication device can read the computer program from the readable storage medium The execution of the computer program by the at least one processor causes the communication device to implement the method according to any one of claims 12-16.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910645765.3A CN112242863B (en) | 2019-07-17 | 2019-07-17 | Communication device and antenna switching method |
CN201910645765.3 | 2019-07-17 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2021008597A1 true WO2021008597A1 (en) | 2021-01-21 |
Family
ID=74166975
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2020/102573 WO2021008597A1 (en) | 2019-07-17 | 2020-07-17 | Communication device and antenna switching method |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN112242863B (en) |
WO (1) | WO2021008597A1 (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN203433477U (en) * | 2013-08-22 | 2014-02-12 | 中国科学院半导体研究所 | Wireless mouse with Wi-Fi function |
US20150133185A1 (en) * | 2013-11-14 | 2015-05-14 | Apple Inc. | Dynamic configuration of wireless circuitry to mitigate inteference among components in a computing device |
CN208127406U (en) * | 2017-12-28 | 2018-11-20 | 广东欧珀移动通信有限公司 | Antenna assembly and terminal device |
CN108966118A (en) * | 2017-05-19 | 2018-12-07 | 苹果公司 | Bluetooth Low Energy scanning and ranging |
CN109450496A (en) * | 2018-10-11 | 2019-03-08 | 展讯通信(上海)有限公司 | Antenna duplexer system, terminal |
WO2019071411A1 (en) * | 2017-10-10 | 2019-04-18 | 深圳传音制造有限公司 | Mobile terminal and control method therefor |
Family Cites Families (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8995934B2 (en) * | 2011-12-14 | 2015-03-31 | Apple Inc. | Wireless communications circuitry with a triplexer for separating radio-frequency signals in adjacent frequency bands |
US9532272B2 (en) * | 2012-07-02 | 2016-12-27 | Mediatek Inc. | Methods for managing radio resources between multiple radio modules and communications apparatus utilizing the same |
CN103108414B (en) * | 2013-01-07 | 2016-01-13 | 华为终端有限公司 | The signal processing method of a kind of mobile terminal and mobile terminal |
WO2014179403A1 (en) * | 2013-04-30 | 2014-11-06 | Waterloo Industries, Inc. | Electronic storage device access systems and methods |
US9853681B2 (en) * | 2014-11-03 | 2017-12-26 | Apple Inc. | Arbitrator for multi-radio antenna switching |
US9681366B2 (en) * | 2015-10-06 | 2017-06-13 | Htc Corporation | Electronic device and method for controlling the same |
KR102332117B1 (en) * | 2016-07-21 | 2021-11-30 | 삼성전자주식회사 | the Antenna for Wireless Communication and the Electronic Device including the same |
CN206099965U (en) * | 2016-10-27 | 2017-04-12 | 北京智芯微电子科技有限公司 | Single -chip wi fi module |
US10587329B2 (en) * | 2017-09-22 | 2020-03-10 | Qualcomm Incorporated | Transmit antenna diversity in radio front end architectures |
CN107968252A (en) * | 2017-11-30 | 2018-04-27 | 维沃移动通信有限公司 | A kind of antenna assembly and mobile terminal |
-
2019
- 2019-07-17 CN CN201910645765.3A patent/CN112242863B/en active Active
-
2020
- 2020-07-17 WO PCT/CN2020/102573 patent/WO2021008597A1/en active Application Filing
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN203433477U (en) * | 2013-08-22 | 2014-02-12 | 中国科学院半导体研究所 | Wireless mouse with Wi-Fi function |
US20150133185A1 (en) * | 2013-11-14 | 2015-05-14 | Apple Inc. | Dynamic configuration of wireless circuitry to mitigate inteference among components in a computing device |
CN108966118A (en) * | 2017-05-19 | 2018-12-07 | 苹果公司 | Bluetooth Low Energy scanning and ranging |
WO2019071411A1 (en) * | 2017-10-10 | 2019-04-18 | 深圳传音制造有限公司 | Mobile terminal and control method therefor |
CN208127406U (en) * | 2017-12-28 | 2018-11-20 | 广东欧珀移动通信有限公司 | Antenna assembly and terminal device |
CN109450496A (en) * | 2018-10-11 | 2019-03-08 | 展讯通信(上海)有限公司 | Antenna duplexer system, terminal |
Also Published As
Publication number | Publication date |
---|---|
CN112242863A (en) | 2021-01-19 |
CN112242863B (en) | 2022-07-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2021004350A1 (en) | Transmitting antenna switching method and terminal device | |
CN108430101B (en) | Antenna closing method and device, storage medium and electronic equipment | |
US10956025B2 (en) | Gesture control method, gesture control device and gesture control system | |
JP3155578U (en) | Input device for switching transmission | |
CN110190916B (en) | Power detection circuit and terminal | |
CN107634785B (en) | WiFi system, router and mobile terminal | |
WO2021129750A1 (en) | Radio-frequency circuit, electronic device, and srs sending method | |
WO2019105449A1 (en) | Antenna device and mobile terminal | |
CN110166146B (en) | Power detection circuit and terminal | |
WO2021104246A1 (en) | Network connection method and electronic device | |
CN111313915B (en) | Electronic equipment | |
US20220217799A1 (en) | Multi-network access method and terminal device | |
WO2014036817A1 (en) | Terminal and method for dynamically loading application program interface | |
CN112262532B (en) | Method for improving MIMO throughput direction by increasing radio frequency path and terminal equipment | |
WO2022166877A1 (en) | Wifi uplink data sending method and apparatus, and electronic device and storage medium | |
CN111211421A (en) | Antenna tuning circuit and mobile terminal | |
WO2021008597A1 (en) | Communication device and antenna switching method | |
WO2023072153A1 (en) | Antenna control method and related device | |
CN106713648B (en) | A kind of communication means and mobile terminal | |
WO2017107152A1 (en) | Method for determining network standard in wireless communication network, access point apparatus, terminal apparatus and wireless network controller | |
US10917842B2 (en) | Access point connection method and terminal | |
US11892723B2 (en) | Electronic device and driving method therefor | |
CN111163533B (en) | Network connection method and related product | |
US20200267591A1 (en) | Data transmission method, transmitting end device and receiving end device | |
US20230027038A1 (en) | Pcb and terminal device using same |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 20840813 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 20840813 Country of ref document: EP Kind code of ref document: A1 |