Antenna switching method and device, electronic equipment and storage medium

By dynamically switching antennas in electronic devices and utilizing multi-channel SIM card working status and configuration information, the problem of signal attenuation caused by the user's holding posture blocking the antenna is solved, improving signal quality and device performance.

CN118694397APending Publication Date: 2024-09-24BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310309250.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-24
Publication Date
2024-09-24

AI Technical Summary

Technical Problem

The user's holding posture when using an electronic device may block the antenna, causing attenuation of the transmitted signal. The use of multiple antennas in the existing technology cannot effectively solve this problem.

Method used

By setting the first channel and the second channel in the electronic device, and using the switching module to obtain the working status of the SIM card, the antennas are dynamically switched to increase the number of transmitting and receiving antennas and ensure signal quality. The specific method includes obtaining the working status, configuration information and service type of the SIM card, switching the switch status, and selecting the antenna with the highest reference signal receiving power for switching.

Benefits of technology

It improves the transmitting and receiving capabilities of the antenna, enhances the signal performance of electronic equipment, and ensures the ability of the antenna to send and receive data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118694397A
    Figure CN118694397A
Patent Text Reader

Abstract

The invention relates to an antenna switching method and device, electronic equipment and a storage medium. The method comprises the following steps: acquiring working states of SIM cards in the first path and the second path; the working state comprises a state that only the SIM card in the first path works; and when the working state is that only the SIM card in the first channel works, switching at least one antenna of the second channel to the first channel. According to the embodiment, by increasing the number of the antennas of the first path, different antennas can be used for transmitting data and receiving data respectively, so that the data receiving and transmitting capacity of the antennas is ensured, and the natural performance is ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of antenna control technology, and in particular to an antenna switching method and device, electronic equipment, and storage medium. Background Art

[0002] An antenna is a device used to transmit or receive radio waves. Its main function is to complete the radiation and reception of electromagnetic waves through the mutual conversion of electric field and magnetic field under the basic principle of electromagnetic field, that is, to convert the circuit signal energy output by the transmitter into electromagnetic waves for radiation, or to convert the space electromagnetic wave signal into circuit signal energy and send it to the receiver.

[0003] In the related art, diversity reception technology is used to resist the fading of wireless signals during space transmission due to different environmental factors. That is, the receiving end combines and processes multiple independent (carrying the same information) fading characteristic signals to reduce signal level fluctuations.

[0004] Therefore, current electronic devices are usually equipped with multiple antennas, 4G devices are usually equipped with 4-6 antennas, and 5G devices are usually equipped with more than 10 antennas. However, when users use electronic devices, their holding posture may block the antenna, resulting in a significant attenuation of the transmission signal of the transmitting antenna. Summary of the invention

[0005] The present disclosure provides an antenna switching method and device, an electronic device, and a storage medium to address the deficiencies of related technologies.

[0006] According to a first aspect of an embodiment of the present disclosure, there is provided an antenna switching method, which is applied to an electronic device, wherein the electronic device comprises a first passage and a second passage; a first SIM card slot is provided in the first passage, and a second SIM card slot is provided in the second passage; the first SIM card slot and the second SIM card slot are respectively used to insert a SIM card; the method comprises:

[0007] Acquire the working status of the SIM card in the first path and the second path; the working status includes the state where only the SIM card in the first path works;

[0008] When the working state is a state in which only the SIM card in the first channel is working, at least one antenna of the second channel is switched to the first channel.

[0009] Optionally, obtaining the working status of the SIM card in the first path and the second path includes:

[0010] Acquire the type of service currently executed by the electronic device;

[0011] The working states of the SIM cards in the first path and the second path are determined according to the service type.

[0012] Optionally, obtaining the working status of the SIM card in the first path and the second path includes:

[0013] Get the switch status of the toggle switch;

[0014] The working states of the SIM cards in the first path and the second path are determined according to the switch states.

[0015] Optionally, obtaining the working status of the SIM card in the first path and the second path includes:

[0016] Obtaining configuration information of a SIM card in the electronic device;

[0017] The working states of the SIM cards in the first path and the second path are determined according to the configuration information.

[0018] Optionally, switching at least one antenna of the second path to the first path includes:

[0019] Obtaining a reference signal received power of each antenna in the second path;

[0020] Select at least one antenna corresponding to the received power of the reference signal in descending order;

[0021] The at least one antenna is switched to the first path.

[0022] Optionally, the method further comprises:

[0023] Obtaining reference signal received powers of all antennas of the first path;

[0024] The antenna with the largest reference signal receiving power is determined as the transmitting antenna and the other antennas are determined as receiving antennas.

[0025] Optionally, the method further comprises:

[0026] When the working state is a state where two SIM cards are working, at least one antenna switched to the first path is switched back to the second path.

[0027] According to a second aspect of an embodiment of the present disclosure, an antenna switching device is provided, which is applied to an electronic device, wherein the electronic device comprises a first passage and a second passage; a first SIM card slot is provided in the first passage, and a second SIM card slot is provided in the second passage; the first SIM card slot and the second SIM card slot are respectively used to insert a SIM card; the device comprises:

[0028] A status acquisition module, used for acquiring the working status of the SIM card in the first path and the second path; the working status includes the working status of the SIM card in the first path only;

[0029] The antenna switching module is used to switch at least one antenna of the second channel to the first channel when the working state is a state where only the SIM card in the first channel is working.

[0030] Optionally, the status acquisition module includes:

[0031] A service type acquisition submodule, used to acquire the service type currently executed by the electronic device;

[0032] The working status acquisition submodule is used to determine the working status of the SIM cards in the first path and the second path according to the service type.

[0033] Optionally, the status acquisition module includes:

[0034] The switch status acquisition submodule is used to obtain the switch status of the switching switch;

[0035] The working status acquisition submodule is used to determine the working status of the SIM card in the first path and the second path according to the switch status.

[0036] Optionally, the status acquisition module includes:

[0037] A configuration information acquisition submodule, used to acquire configuration information of a SIM card in the electronic device;

[0038] The working status determination submodule is used to determine the working status of the SIM cards in the first path and the second path according to the configuration information.

[0039] Optionally, the antenna switching module includes:

[0040] A power acquisition submodule, used to acquire the reference signal received power of each antenna in the second path;

[0041] An antenna selection submodule, used to select at least one antenna corresponding to a reference signal received power in descending order;

[0042] The antenna switching submodule is used to switch the at least one antenna to the first path.

[0043] Optionally, the device further comprises:

[0044] A receiving power acquisition module, used to obtain the reference signal receiving power of all antennas of the first path;

[0045] The transceiver antenna determination module is used to determine that the antenna with the largest reference signal receiving power is the transmitting antenna and the other antennas are used as receiving antennas.

[0046] Optionally, the device further comprises:

[0047] The antenna switching module is used to switch at least one antenna switched to the first path back to the second path when the working state is a state where two SIM cards are working.

[0048] According to a third aspect of an embodiment of the present disclosure, an electronic device is provided, the electronic device comprising: a first passage and a second passage; a first SIM card slot is provided in the first passage, and a second SIM card slot is provided in the second passage; the first SIM card slot and the second SIM card slot are respectively used to insert a SIM card; a switching module, a memory, and a processor;

[0049] The switching module is electrically connected to the first path, the second path and the processor respectively; the processor is electrically connected to the memory;

[0050] The memory is used to store a computer program executable by the processor;

[0051] The processor is used to execute the computer program in the memory to implement the method as described in any one of the first aspects.

[0052] According to a fourth aspect of an embodiment of the present disclosure, a non-transitory computer-readable storage medium is provided, and when an executable computer program in the storage medium is executed by a processor, the method described in any one of the first aspects can be implemented.

[0053] The technical solution provided by the embodiments of the present disclosure may have the following beneficial effects:

[0054] The solution provided by the embodiment of the present disclosure can obtain the working status of the SIM card in the first path and the second path; the working status includes switching to a state where only the SIM card in the first path works; when the working status is a state where only the SIM card in the first path works, at least one antenna of the second path is switched to the first path. In this way, in this embodiment, by increasing the number of antennas in the first path, different antennas can be used for transmitting data and receiving data, respectively, thereby ensuring the ability of the antenna to send and receive data and ensuring natural performance.

[0055] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0056] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.

[0057] Figure 1 1 is a schematic diagram of two identity cards of an electronic device according to an exemplary embodiment; the left figure is a schematic diagram of two identity cards exemplified in the related art, and the right figure is a schematic diagram of two identity cards of an exemplary embodiment.

[0058] Figure 2 The figure is a flow chart of an antenna switching method according to an exemplary embodiment.

[0059] Figure 3 The present invention is a flow chart showing a method of obtaining the working status of two identity recognition cards according to an exemplary embodiment.

[0060] Figure 4 The figure is a flowchart showing another method of obtaining the working status of two identity cards according to an exemplary embodiment.

[0061] Figure 5 The flowchart of another method of obtaining the working status of two identity cards according to an exemplary embodiment is shown.

[0062] Figure 6 The invention is a flow chart showing a method of switching antennas according to an exemplary embodiment.

[0063] Figure 7 The diagram is a schematic diagram showing a first channel “borrowing” an antenna from a second channel according to an exemplary embodiment.

[0064] Figure 8 The diagram is a schematic diagram showing a first path “returning” one antenna to a second path according to an exemplary embodiment.

[0065] Fig. 9 The invention is a block diagram of an antenna switching device according to an exemplary embodiment.

[0066] Fig.10 It is a block diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION

[0067] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described exemplarily below do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices consistent with some aspects of the present disclosure as detailed in the attached claims. It should be noted that the features in the following embodiments and implementations may be combined with each other without conflict.

[0068] To solve the above technical problems, the embodiments of the present disclosure provide an antenna switching method and device, an electronic device, and a storage medium, which can be applied to an electronic device. The electronic device includes a first path and a second path; a first SIM (Subscriber Identity Module) card slot is provided in the first path, and a second SIM card slot is provided in the second path; the first SIM card slot and the second SIM card slot are respectively used to insert a SIM card.

[0069] It should be noted that the first path includes N antennas, and the second path includes N antennas. In the related art, the antennas of each path can be used only by itself, so the first path and the second path work independently of each other. Figure 1 As shown in the left figure. The value range of N is 2 to 10. In the embodiment of the present disclosure, considering that there may be a path in which the SIM card is not working or there is no SIM card (i.e., the subsequent second path) in the two paths, and there is no need to use the antenna in this path, the antenna of this path can be "borrowed" to the first path for use. For this purpose, the electronic device also includes a processor and a switching module, and the switching module can be electrically connected to the first path, the second path and the processor respectively. The connection relationship of the switching module is as follows Figure 1 As shown in the middle right picture.

[0070] The switching module may include a single-pole double-throw switch, a double-pole double-throw switch, a MOS switch tube, etc. In the case where the switching path can be realized, the corresponding solution falls within the protection scope of the present disclosure. The switching module is electrically connected to the processor, can receive control instructions sent by the processor, and adjust the antenna path in response to the above control instructions. For example, the antenna can work in the original SIM card path, or switch to the path of other SIM cards.

[0071] In order to implement the switching operation of the antennas in the first path and the second path, the embodiment of the present disclosure further provides an antenna switching method. Figure 2 is a flow chart of an antenna switching method according to an exemplary embodiment, which can be applied to Figure 1 The electronic device shown is an example. Figure 2 , an antenna switching method, comprising steps 21 and 22.

[0072] In step 21, the working status of the SIM cards in the first path and the second path is obtained; the working status includes switching to a state where only the SIM card in the first path works.

[0073] In this step, the processor of the electronic device may obtain the working status of the SIM card in the first path and the second path.

[0074] The above working state includes the state where only the SIM card in the first channel works, such as single SIM single standby or dual SIM dual standby, switching to dual SIM dual standby, etc. The above single SIM single standby (SS) means that one identity card is in standby state and can receive calls. Dual SIM Dual Standby (DSDS) means that two identity cards are in standby state, and when the SIM card in the first channel is in a call, the SIM card in the second channel cannot make a call.

[0075] It should be noted that, for the convenience of describing the solution, the first path in this embodiment refers to the path corresponding to the first SIM card slot, which can be the path corresponding to the SIM card in call in dual SIM dual standby mode, or the path with a SIM card in single SIM single standby mode. The second path is another path other than the first path.

[0076] In one example, see Figure 3 The processor may obtain the working status of the SIM card in the first path and the second path, including step 31 and step 32.

[0077] In step 31, the configuration information of the SIM card in the electronic device is obtained.

[0078] In this step, the electronic device's designated location (such as local memory, cache, etc.) can store SIM card configuration information, such as the default (call) card is the first SIM card, and the data card is the second SIM card. It is understandable that the above configuration information can be configured and stored by the user in the configuration interface.

[0079] In this step, the processor can configure the positions from the designated position sequence, that is, can obtain the configuration information of the SIM card in the first path and the second path in the electronic device.

[0080] In step 32, the working status of the SIM cards in the first path and the second path is determined according to the configuration information.

[0081] In this step, the processor can determine the working status of the two SIM cards according to the above configuration information. For example, the configuration information includes that the first SIM card is the default card and the second SIM card is the data card, and the working status of the two SIM cards can be determined to be a dual-card dual-standby state. For another example, the configuration information includes that the first SIM card is the default card and the second SIM card does not exist (or is turned off), and the working status of the two SIM cards can be determined to be a single-card single-standby state. For another example, the configuration information includes that the first SIM card is the default card and the second SIM card is a parallel default card, and the working status of the two SIM cards can be determined to be a dual-card dual-standby state or a dual-card dual-communication state. In one example, the working status of the two SIM cards in the configuration information is a state in which only the SIM card in the first path works, that is, the SIM card in the first path works and the SIM card in the second path does not work or there is no SIM card.

[0082] In this way, in this embodiment, the working status of the SIM card is determined through configuration information, which can improve the efficiency of obtaining the working status.

[0083] In one example, see Figure 4 , the processor can obtain the working status of the SIM card in the first path and the second path, including step 41 and step 42.

[0084] In step 41, the switch state of the switch is obtained.

[0085] In this step, considering that the switch in the switching module is used to switch the antenna path where the antenna is located, the switch state of the switch can determine the working state of the SIM card. Based on this, the processor can obtain the switch state of the switch. For example, the processor can communicate with the modem of the antenna module in the electronic device to obtain the switch state of each switch.

[0086] In step 42, the working states of the SIM cards in the first path and the second path are determined according to the switch states.

[0087] In this step, the processor may obtain the working state of the SIM card according to the corresponding relationship between the switch state and the working state.

[0088] In this step, the processor can determine the working status by communicating with the modem without adding corresponding software or hardware, which can improve the efficiency of obtaining the working status.

[0089] In one example, see Figure 5 The processor may obtain the working status of the SIM card in the first path and the second path, including step 51 and step 52.

[0090] In step 51, the type of service currently executed by the electronic device is obtained.

[0091] In this step, the electronic device can perform various services when working, and the services can be divided into data services and non-data services. For example, call services can be divided into non-data service types, and Internet access services can be divided into data service types.

[0092] In step 52, the working status of the SIM cards in the first path and the second path is determined according to the service type.

[0093] In this step, the processor may determine the working status of the SIM cards in the first path and the second path according to the above service type and the corresponding relationship between the service type and the working status.

[0094] In this example, the processor can determine the working status according to the business type, which can improve the accuracy of obtaining the working status.

[0095] In step 22, when the working state is switched to a dual-SIM dual-standby state, at least one antenna of the secondary card path in the two SIM cards is switched to the first path.

[0096] In this step, when it is determined that the working state is switched to a state where only one SIM card is working, the processor may switch at least one antenna of the second path to the first path.

[0097] Considering that the first path includes its own antenna and at least one antenna "borrowed" from the second path, the multiple antennas of the first path can be divided into transmitting antennas (TX) and receiving antennas (RX). Figure 6 , the processor can switch at least one antenna of the second path to the first path, including steps 61 to 63.

[0098] In step 61, the reference signal received power of each antenna in the second path is obtained.

[0099] In this step, the processor may obtain the reference signal received power (ie, RSRP) of each antenna in the second path.

[0100] In step 62, at least one antenna corresponding to the reference signal received power is selected in descending order.

[0101] In this step, the processor can sort the reference signal received powers. Then, the processor can select at least one reference signal received power from the reference signal received powers in order from large to small. For example, when selecting 1, the processor can select the antenna corresponding to the largest reference signal received power, and when selecting 2, the processor can select the antenna corresponding to the largest reference signal received power and the antenna corresponding to the second largest reference signal receiving power. In other words, from large to small, the processor can select the antennas corresponding to the largest, second largest, third, fourth, etc. reference signal received powers in turn, thereby selecting at least one antenna.

[0102] In step 63, the at least one antenna is switched to the first path.

[0103] In this step, the processor may switch the at least one antenna to the first path, thereby "lending" at least one antenna of the second path to the first path, thereby increasing the number of antennas of the first path. For example, the first path has N (an integer ranging from 2 to 10) antennas. Figure 1 The example of N = 4 scenarios; then, after executing step 63, the number of antennas in the first path becomes N + n, where n (an integer ranging from 1 to 5)) is the number of "borrowed" antennas, such as Figure 7 The example shows that SIM card 2 “lends” an antenna to SIM card 1. At this time, the number of antennas in the first channel increases from 4 to 5.

[0104] In this step, the processor can select any one antenna as the transmitting antenna and the remaining antennas as the receiving antennas. In one example, the processor can obtain the reference signal receiving power of all antennas of the first path, and then determine the antenna with the largest reference signal receiving power as the transmitting antenna and the other antennas as receiving antennas. Considering that the antenna with the largest reference signal receiving power is also the least affected by the grip posture, the transmission capability of the first path can be guaranteed. In addition, the other antennas are used as receiving antennas, and the number of receiving antennas is increased compared to the related art scheme, which can enhance the ability of the first path to receive data, thereby ensuring the ability of the antenna to receive data and ensuring the natural performance. That is to say, in this embodiment, by increasing the number of antennas of the first path, different antennas can be used for transmitting data and receiving data, respectively, thereby ensuring the ability of the antenna to send and receive data and ensuring the natural performance.

[0105] In one embodiment, the working state of the SIM cards in the first channel and the second channel of the electronic device can be switched to a state where two SIM cards are working, such as a dual-SIM dual-active state. Dual SIM dual active (DSDA) refers to a state where two SIM cards can make calls at the same time. For example, a user adjusts the configuration information of the SIM card in the configuration interface of the electronic device, thereby changing the working state of the SIM card. When the working state is the dual-SIM dual-active state, the processor can switch at least one antenna that was (originally) switched to the first channel back to the second channel, that is, "return" the "borrowed" antenna to the second channel, such as Figure 8 The example shows that SIM card 1 returns the "borrowed" antenna to SIM card 2. At this time, the number of antennas in the first channel changes from 5 to 4, so that both the first channel and the second channel use the original antennas, thereby ensuring the communication efficiency of each channel.

[0106] Based on an antenna switching method provided in an embodiment of the present disclosure, an antenna switching device is provided in an embodiment of the present disclosure, which is applied to an electronic device, wherein the electronic device comprises a first passage and a second passage; a first SIM card slot is provided in the first passage, and a second SIM card slot is provided in the second passage; the first SIM card slot and the second SIM card slot are respectively used to insert a SIM card; see Fig. 9 , the antenna switching device comprises:

[0107] A status acquisition module 91 is used to acquire the working status of the SIM card in the first path and the second path; the working status includes the working status of the SIM card in the first path only;

[0108] The antenna switching module 92 is used to switch at least one antenna of the second channel to the first channel when the working state is switched to a state where only the SIM card in the first channel works.

[0109] Optionally, the status acquisition module includes:

[0110] A service type acquisition submodule, used to acquire the service type currently executed by the electronic device;

[0111] The working status acquisition submodule is used to determine the working status of the SIM cards in the first path and the second path according to the service type.

[0112] Optionally, the status acquisition module includes:

[0113] The switch status acquisition submodule is used to obtain the switch status of the switching switch;

[0114] The working status acquisition submodule is used to determine the working status of the SIM card in the first path and the second path according to the switch status.

[0115] Optionally, the status acquisition module includes:

[0116] A configuration information acquisition submodule, used to acquire configuration information of a SIM card in the electronic device;

[0117] The working status determination submodule is used to determine the working status of the SIM cards in the first path and the second path according to the configuration information.

[0118] Optionally, the antenna switching module includes:

[0119] A power acquisition submodule, used to acquire the reference signal received power of each antenna in the second path;

[0120] An antenna selection submodule, used to select at least one antenna corresponding to a reference signal received power in descending order;

[0121] The antenna switching submodule is used to switch the at least one antenna to the first path.

[0122] Optionally, the device further comprises:

[0123] A receiving power acquisition module, used to obtain the reference signal receiving power of all antennas of the first path;

[0124] The transceiver antenna determination module is used to determine that the antenna with the largest reference signal receiving power is the transmitting antenna and the other antennas are used as receiving antennas.

[0125] Optionally, the device further comprises:

[0126] The antenna switching module is used to switch at least one antenna switched to the first path back to the second path when the working state is a state where two SIM cards are working.

[0127] It should be noted that the device embodiment shown in this embodiment matches the content of the above method embodiment, and the content of the above method embodiment can be referred to, which will not be repeated here.

[0128] Fig.10 1 is a block diagram of an electronic device according to an exemplary embodiment. For example, the electronic device 1000 may be a smart phone, a computer, a digital broadcast terminal, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.

[0129] Reference Fig.10The electronic device 1000 may include one or more of the following components: a processing component 1002 , a memory 1004 , a power component 1006 , a multimedia component 1008 , an audio component 1010 , an input / output (I / O) interface 1012 , a sensor component 1014 , a communication component 1016 , and an image acquisition component 1018 .

[0130] The processing component 1002 generally controls the overall operation of the electronic device 1000, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 1002 may include one or more processors 1020 to execute computer programs. In addition, the processing component 1002 may include one or more modules to facilitate interaction between the processing component 1002 and other components. For example, the processing component 1002 may include a multimedia module to facilitate interaction between the multimedia component 1008 and the processing component 1002.

[0131] The memory 1004 is configured to store various types of data to support operations on the electronic device 1000. Examples of such data include computer programs for any application or method operating on the electronic device 1000, contact data, phone book data, messages, pictures, videos, etc. The memory 1004 may be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0132] The power supply component 1006 provides power to various components of the electronic device 1000. The power supply component 1006 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the electronic device 1000. The power supply component 1006 may include a power supply chip, and the controller may communicate with the power supply chip to control the power supply chip to turn on or off the first switching device, so that the battery supplies power to the mainboard circuit or does not supply power.

[0133] The multimedia component 1008 includes a screen that provides an output interface between the electronic device 1000 and the target object. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input information from the target object. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation.

[0134] The audio component 1010 is configured to output and / or input audio file information. For example, the audio component 1010 includes a microphone (MIC), and when the electronic device 1000 is in an operation mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive external audio file information. The received audio file information can be further stored in the memory 1004 or sent via the communication component 1016. In some embodiments, the audio component 1010 also includes a speaker for outputting audio file information.

[0135] The I / O interface 1012 provides an interface between the processing component 1002 and a peripheral interface module, which may be a keyboard, a click wheel, a button, etc.

[0136] The sensor component 1014 includes one or more sensors for providing various aspects of status assessment for the electronic device 1000. For example, the sensor component 1014 can detect the open / closed state of the electronic device 1000, the relative positioning of components, such as the display screen and keypad of the electronic device 1000, and the sensor component 1014 can also detect the position change of the electronic device 1000 or a component, the presence or absence of contact between the target object and the electronic device 1000, the orientation or acceleration / deceleration of the electronic device 1000, and the temperature change of the electronic device 1000. In this example, the sensor component 1014 can include a magnetic sensor, a gyroscope, and a magnetic field sensor, and can also include an inertial sensor, an image sensor, etc., wherein the magnetic field sensor includes at least one of the following: a Hall sensor, a thin film magnetoresistive sensor, and a magnetic liquid acceleration sensor.

[0137] The communication component 1016 is configured to facilitate wired or wireless communication between the electronic device 1000 and other devices. The electronic device 1000 can access a wireless network based on a communication standard, such as WiFi, 2G, 3G, 4G, 5G, or a combination thereof. In an exemplary embodiment, the communication component 1016 receives broadcast information or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 1016 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies. In one example, the communication component 1016 includes two identity cards, which can operate in single-card single-standby, dual-card dual-standby or dual-card dual-pass states. The processor can combine the above-mentioned working states to switch the antenna of the path. The specific switching process can be referred to. Figure 2 The method embodiment shown will not be described in detail here.

[0138] In an exemplary embodiment, the electronic device 1000 may be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components.

[0139] In an exemplary embodiment, the present disclosure also provides an electronic device, including:

[0140] A first passage and a second passage; a first SIM card slot is provided in the first passage, and a second SIM card slot is provided in the second passage; the first SIM card slot and the second SIM card slot are respectively used to insert a SIM card; a switching module, a memory and a processor;

[0141] The switching module is electrically connected to the first path, the second path and the processor respectively; the processor is electrically connected to the memory;

[0142] The memory is used to store a computer program executable by the processor;

[0143] The processor is used to execute the computer program in the memory to implement the following Figure 2 The method described.

[0144] In an exemplary embodiment, the present disclosure also provides a non-transitory computer-readable storage medium, and when an executable computer program in the storage medium is executed by a processor, the above-mentioned method can be implemented.

[0145] In an exemplary embodiment, a chip is also provided, the chip including a processor and an interface for reading a computer program through the interface to implement the above method. The chip may be a conventional CPU (central processing unit) chip, a GPU (graphics processing unit) chip, etc., or an acceleration chip dedicated to artificial intelligence technology, such as an AI (Artificial Intelligence) accelerator, etc.

[0146] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the disclosure disclosed herein. The present disclosure is intended to cover any variations, uses, or adaptations that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are to be considered exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.

[0147] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims

1. An antenna switching method, characterized in that: Applied to an electronic device, the electronic device comprises a first passage and a second passage; a first SIM card slot is arranged in the first passage, and a second SIM card slot is arranged in the second passage; The first SIM card slot and the second SIM card slot are respectively used to insert a SIM card; the method comprises: Acquire the working status of the SIM cards in the first path and the second path; the working status includes the state where only the SIM card in the first path works; When the working state is a state in which only the SIM card in the first channel is working, at least one antenna of the second channel is switched to the first channel.

2. The method according to claim 1, characterized in that Obtaining the working status of the SIM card in the first path and the second path includes: Acquire the type of service currently executed by the electronic device; The working states of the SIM cards in the first path and the second path are determined according to the service type.

3. The method according to claim 1, characterized in that Obtaining the working status of the SIM card in the first path and the second path includes: Get the switch status of the toggle switch; The working states of the SIM cards in the first path and the second path are determined according to the switch states.

4. The method according to claim 1, characterized in that: Obtaining the working status of the SIM card in the first path and the second path includes: Obtaining configuration information of a SIM card in the electronic device; The working states of the SIM cards in the first path and the second path are determined according to the configuration information.

5. The method according to claim 1, characterized in that Switching at least one antenna of the second path to the first path comprises: Obtaining a reference signal received power of each antenna in the second path; Select at least one antenna corresponding to the received power of the reference signal in descending order; The at least one antenna is switched to the first path.

6. The method according to any one of claims 1 to 5, characterized in that: The method further comprises: Obtaining reference signal received powers of all antennas of the first path; The antenna with the largest reference signal receiving power is determined as the transmitting antenna and the other antennas are determined as receiving antennas.

7. The method according to any one of claims 1 to 5, characterized in that: The method further comprises: When the working state is a state where two SIM cards are working, at least one antenna switched to the first path is switched back to the second path.

8. An antenna switching device, characterized in that: Applied to an electronic device, the electronic device comprises a first passage and a second passage; a first SIM card slot is arranged in the first passage, and a second SIM card slot is arranged in the second passage; The first SIM card slot and the second SIM card slot are respectively used to insert a SIM card; the device comprises: A status acquisition module, used for acquiring the working status of the SIM card in the first path and the second path; the working status includes the working status of the SIM card in the first path only; The antenna switching module is used to switch at least one antenna of the second channel to the first channel when the working state is a state where only the SIM card in the first channel is working.

9. An electronic device, characterized in that: The electronic device comprises: a first passage and a second passage; a first SIM card slot is provided in the first passage, and a second SIM card slot is provided in the second passage; the first SIM card slot and the second SIM card slot are respectively used to insert a SIM card; a switching module, a memory and a processor; The switching module is electrically connected to the first path, the second path and the processor respectively; the processor is electrically connected to the memory; The memory is used to store a computer program executable by the processor; The processor is used to execute the computer program in the memory to implement the method according to any one of claims 1 to 7.

10. A non-transitory computer-readable storage medium, characterized in that: When the executable computer program in the storage medium is executed by a processor, the method according to any one of claims 1 to 7 can be implemented.