Frequency sweeping method and device, terminal equipment, storage medium and chip
By optimizing the priority order frequency sweep of frequency band combinations in dual-card and dual-pass terminal devices, the problem of frequency band priority not taking into account the impact of another card is solved, network performance and resource utilization are improved, signal interference is reduced, communication quality and data transmission speed are improved.
Patent Information
- Application Number
- CN202410005795.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-02
- Publication Date
- 2025-07-04
AI Technical Summary
In dual-card dual-pass terminal devices, the prior art frequency band priority configuration does not take into account the impact of another card, resulting in overlapping or insufficient use of the receiving paths, which reduces network performance.
When the first card searches the network, the frequency band combination is generated and swept according to the priority order of the resident frequency band combination of the first card and the second card, the network mode and receiving path occupation of the frequency band combination are optimized, and the network performance is improved.
By optimizing the priority order of frequency band combinations, the network performance and resource utilization efficiency of terminal devices are improved, signal interference is reduced, communication quality and data transmission speed are improved.
Smart Images

Figure CN120264386A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of communications, and in particular, to a frequency scanning method, apparatus, terminal device, storage medium, and chip. Background Art
[0002] In the related art, the band priorities for a terminal device to search for a network are all based on previous experience or pre-configurations of the operator. In the case where the terminal device supports Dual SIM Dual Active (DSDA), the band priority of one of the SIM cards for network search usually does not consider the band situation of the other SIM card currently in use. Summary of the Invention
[0003] To overcome the problems in the related art, the present disclosure provides a frequency scanning method, apparatus, terminal device, storage medium, and chip.
[0004] According to a first aspect of an embodiment of the present disclosure, a frequency scanning method is provided, including:
[0005] When a first SIM card of the terminal device performs network search and the resident network state of a second SIM card of the terminal device is to complete cell residence, obtain N first frequency bands available for the first SIM card configured in the terminal device; where N is an integer greater than 0;
[0006] Obtain a second frequency band where the second SIM card resides;
[0007] Obtain N frequency band combinations formed by the second frequency band and each of the first frequency bands, and perform frequency scanning on the N frequency band combinations according to the priorities of the N frequency band combinations.
[0008] Optionally, the obtaining N frequency band combinations formed by the second frequency band and each of the first frequency bands, and performing frequency scanning on the N frequency band combinations according to the priorities of the N frequency band combinations includes:
[0009] Divide the N first frequency bands into M sets, where each set in the M sets contains at least one first frequency band, and M is an integer greater than 1 and less than or equal to N;
[0010] For each set in the M sets, generate a frequency band combination according to the second frequency band and each first frequency band in the set to obtain the frequency band combination corresponding to the set;
[0011] Assign priorities to each frequency band combination in the frequency band combinations corresponding to each set, and perform frequency scanning according to the priorities assigned to each frequency band combination.
[0012] Optionally, assign priorities to each frequency band combination in the frequency band combinations corresponding to each of the sets, and perform frequency scanning according to the priorities assigned to each frequency band combination, including:
[0013] Determine the network mode supported by each of the frequency band combinations in the frequency band combinations corresponding to the first set and / or the occupancy of the receiving channels; the first set is any one of the M sets;
[0014] Add each of the frequency band combinations in the frequency band combinations corresponding to the first set to the frequency band combination list corresponding to the corresponding priority according to the network mode and / or the occupancy of the receiving channels, and perform frequency scanning on the frequency band combinations in the frequency band combination list according to the priority of the frequency band combination list; wherein, there are multiple frequency band combination lists, and the priorities of different frequency band combination lists are different.
[0015] Optionally, the step of adding each of the frequency band combinations in the frequency band combinations corresponding to the first set to the frequency band combination list corresponding to the corresponding priority according to the network mode and / or the occupancy of the receiving channels, and performing frequency scanning on the frequency band combinations in the frequency band combination list according to the priority of the frequency band combination list, includes:
[0016] Add each of the frequency band combinations in the frequency band combinations corresponding to the first set to the frequency band combination list corresponding to the corresponding priority according to the network mode and / or the occupancy of the receiving channels;
[0017] Perform frequency scanning when the frequency band combinations in the frequency band combination list meet the frequency scanning conditions;
[0018] When the frequency band combinations in the frequency band combination list do not meet the frequency scanning conditions, use the second set as the new first set, and perform the step of determining the network mode supported by each of the frequency band combinations in the frequency band combinations corresponding to the first set and / or the occupancy of the receiving channels again, until each of the frequency band combinations in the frequency band combinations corresponding to the first set is added to the frequency band combination list corresponding to the corresponding priority according to the network mode and / or the occupancy of the receiving channels, until the frequency band combinations in the frequency band combination list meet the frequency scanning conditions, where the second set is any one of the M sets other than the first set.
[0019] Optionally, the frequency band combination list includes: a first frequency band combination list, a second frequency band combination list, and a third frequency band combination list; the priority of the first frequency band combination list is higher than the priority of the second frequency band combination list, and the priority of the second frequency band combination list is higher than the priority of the third frequency band combination list;
[0020] Adding each of the frequency band combinations corresponding to the first set to the frequency band combination list of the corresponding priority according to the network mode and / or the reception path occupancy includes:
[0021] For any frequency band combination in the frequency band combinations corresponding to the first set, when the network mode supported by the frequency band combination is dual SIM dual standby and the reception paths required to be occupied by the frequency band combination do not overlap, adding the frequency band combination to the first frequency band combination list;
[0022] When the network mode supported by the frequency band combination is dual SIM dual standby and the reception paths required to be occupied by the frequency band combination overlap, adding the frequency band combination to the second frequency band combination list;
[0023] When the frequency band combination does not support dual SIM dual standby, adding the frequency band combination to the third frequency band combination list.
[0024] Optionally, when there is at least one set of frequency band combinations corresponding to the M sets that have not been added to the frequency band combination list of the corresponding priority, the frequency scanning is performed when the frequency band combinations in the frequency band combination list meet the frequency scanning conditions, including:
[0025] When the first frequency band combination list is empty, it is determined that the frequency scanning conditions are not met;
[0026] When the first frequency band combination list is not empty, it is determined that the frequency scanning conditions are met, and the frequency band combinations in the first frequency band combination list are frequency scanned.
[0027] Optionally, when each set of frequency band combinations corresponding to the M sets has been added to the frequency band combination list of the corresponding priority, the frequency scanning is performed when the frequency band combinations in the frequency band combination list meet the set conditions, and further includes:
[0028] When the first frequency band combination list is empty and the second frequency band combination list is not empty, the frequency band combinations in the second frequency band combination list are frequency scanned;
[0029] When both the first frequency band combination list and the second frequency band combination list are empty and the third frequency band combination list is not empty, the frequency band combinations in the third frequency band combination list are frequency scanned.
[0030] Optionally, obtaining N frequency band combinations composed of the second frequency band and each of the first frequency bands, and performing frequency scanning on the N frequency band combinations according to the priorities of the N frequency band combinations, includes:
[0031] Obtain N frequency band combinations composed of the second frequency band and each of the first frequency bands;
[0032] Assign priorities to each of the N frequency band combinations, and perform frequency scanning according to the priorities assigned to each frequency band combination.
[0033] Optionally, the assigning priorities to each of the N frequency band combinations and performing frequency scanning according to the priorities assigned to each frequency band combination includes:
[0034] Determine the network mode supported by each of the N frequency band combinations and / or the occupancy of the receiving channels;
[0035] Add each of the N frequency band combinations to the frequency band combination list corresponding to the priority according to the network mode and / or the occupancy of the receiving channels, and perform frequency scanning on the frequency band combinations in the frequency band combination list according to the priority of the frequency band combination list; wherein, there are multiple frequency band combination lists, and the priorities of different frequency band combination lists are different.
[0036] Optionally, the frequency band combination list includes: a fourth frequency band combination list, a fifth frequency band combination list, and a sixth frequency band combination list; the priority of the fourth frequency band combination list is higher than the priority of the fifth frequency band combination list, and the priority of the fifth frequency band combination list is higher than the priority of the sixth frequency band combination list;
[0037] The adding each of the N frequency band combinations to the frequency band combination list corresponding to the priority according to the network mode and / or the occupancy of the receiving channels, and performing frequency scanning on the frequency band combinations in the frequency band combination list according to the priority of the frequency band combination list includes:
[0038] For any one of the N frequency band combinations, when the network mode supported by the frequency band combination is dual SIM dual standby and there is no overlap in the receiving channels that the frequency band combination needs to occupy, add the frequency band combination to the fourth frequency band combination list;
[0039] When the network mode supported by the frequency band combination is dual SIM dual standby and there is overlap in the receiving channels that the frequency band combination needs to occupy, add the frequency band combination to the fifth frequency band combination list;
[0040] When the frequency band combination does not support dual SIM dual standby, add the frequency band combination to the sixth frequency band combination list.
[0041] Optionally, the performing frequency scanning on the frequency band combinations in the frequency band combination list according to the priority of the frequency band combination list includes:
[0042] When the fourth frequency band combination list is not empty, frequency scanning is performed on the frequency band combinations in the fourth frequency band combination list;
[0043] When the fourth frequency band combination list is empty and the fifth frequency band combination list is not empty, frequency scanning is performed on the frequency band combinations in the fifth frequency band combination list;
[0044] When the fourth frequency band combination list and the fifth frequency band combination list are both empty, and the sixth frequency band combination list is not empty, frequency scanning is performed on the frequency band combinations in the sixth frequency band combination list.
[0045] According to a second aspect of an embodiment of the present disclosure, a frequency scanning device is provided, including:
[0046] A first acquisition module is configured to acquire N first frequency bands available to the first card configured in the terminal device when the first card of the terminal device searches the network and the network stationing state of the second card of the terminal device is to complete the cell stationing; wherein N is an integer greater than 0;
[0047] A second acquisition module is configured to acquire a second frequency band where the second card resides;
[0048] The control module is configured to obtain N frequency band combinations consisting of the second frequency band and each of the first frequency bands, and scan the N frequency band combinations according to the priorities of the N frequency band combinations.
[0049] According to a third aspect of an embodiment of the present disclosure, a terminal device is provided, including:
[0050] processor;
[0051] a memory for storing processor-executable instructions;
[0052] Wherein, the processor is configured to: implement the steps of the frequency scanning method provided in the first aspect above when executing the executable instructions.
[0053] According to a fourth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided, on which computer program instructions are stored, and when the program instructions are executed by a processor, the steps of the frequency scanning method provided in the first aspect are implemented.
[0054] According to a fifth aspect of an embodiment of the present disclosure, a chip is provided, comprising a processor and an interface; the processor is used to read instructions to execute the steps of any one of the methods described in the first aspect above.
[0055] The technical solution provided by the embodiments of the present disclosure may have the following beneficial effects:
[0056] In the above technical solution, when the first card of the terminal device performs network search and the resident network status of the second card of the terminal device is to complete cell residence, obtain N first frequency bands available for the first card configured in the terminal device; where N is an integer greater than 0; obtain the second frequency band where the second card resides; obtain N frequency band combinations formed by the second frequency band and each of the first frequency bands, and perform frequency scanning on the N frequency band combinations according to the priorities of the N frequency band combinations. By performing frequency scanning according to the priority order of the available resident frequency band combinations of the first card and the second card before the first card performs cell residence, the network performance of the terminal device can be improved.
[0057] It should be understood that the above general description and the following detailed description are only exemplary and explanatory, and cannot limit the present disclosure. Brief Description of the Drawings
[0058] The accompanying drawings herein are incorporated into the specification and constitute a part of this specification, showing embodiments consistent with the present disclosure, and are used together with the specification to explain the principles of the present disclosure.
[0059] Figure 1 is a flowchart of a frequency scanning method shown according to an exemplary embodiment.
[0060] Figure 2 is a flowchart of a frequency scanning method shown according to an exemplary embodiment.
[0061] Figure 3 is a schematic diagram of a process of generating a frequency band combination shown according to an exemplary embodiment.
[0062] Figure 4 is a flowchart of a frequency scanning method shown according to an exemplary embodiment.
[0063] Figure 5 is a flowchart of a frequency scanning method shown according to an exemplary embodiment.
[0064] Figure 6 is a flowchart of a frequency scanning method shown according to an exemplary embodiment.
[0065] Figure 7 is a flowchart of a frequency scanning method shown according to an exemplary embodiment.
[0066] Figure 8 is a flowchart of a frequency scanning method shown according to an exemplary embodiment.
[0067] Figure 9 is a flowchart of a frequency scanning method shown according to an exemplary embodiment.
[0068] Figure 10The figure is a flow chart of a frequency sweeping method according to an exemplary embodiment.
[0069] Figure 11 The figure is a flow chart of a frequency sweeping method according to an exemplary embodiment.
[0070] Figure 12 The figure is a flow chart of a frequency sweeping method according to an exemplary embodiment.
[0071] Figure 13 The figure is a flow chart of a frequency sweeping method according to an exemplary embodiment.
[0072] Figure 14 is a block diagram of a frequency scanning device 1400 according to an exemplary embodiment.
[0073] Figure 15 is a block diagram of a frequency scanning device 1500 according to an exemplary embodiment. DETAILED DESCRIPTION
[0074] 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, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0075] It should be noted that all actions of acquiring signals, information or data in the present disclosure are carried out in compliance with the relevant data protection laws and policies of the country where the device is located and with the authorization given by the owner of the corresponding device.
[0076] Since in the current related technologies, the frequency band priority of the terminal device for searching the network is based on previous experience or pre-configuration by the operator, for any of the dual cards of the terminal device, the influence of the other card will not be considered when searching the network. However, the applicant has found that for the terminal device supporting DSDA, the resident frequency band combination (band combination) selected by the first card and the second card may cause the receiving paths RX used to overlap or cannot overlap, and each can only use half of the receiving paths RX, which will lead to the problem of reduced RX performance under DSDA. Therefore, in order to solve the above problems, the present application provides a frequency scanning method, and the following is a description of the frequency scanning method.
[0077] Figure 1 is a flow chart of a frequency sweeping method according to an exemplary embodiment. Figure 1 As shown, the method comprises the following steps:
[0078] In step S11, when the first card of the terminal device searches for a network and the resident network status of the second card of the terminal device is to complete cell residence, obtain N first frequency bands available for the first card configured in the terminal device; where N is an integer greater than 0.
[0079] Exemplarily, in various embodiments of the present disclosure, the terminal device is a UE (User Equipment) with Dual SIM Dual Active (DSDA) or Dual SIM Dual Standby (DSDS) function, such as a mobile phone, a tablet, a watch, or other devices with DSDA or DSDS function. The first card and the second card are the first card and the second card for the terminal device to communicate and connect to the network. The first card and the second card can be two SIM (Subscriber Identity Module) cards in the terminal device. The SIM card includes but is not limited to: standard SIM card, Mini SIM card, Micro SIM card, Nano SIM card, eSIM (Embedded-SIM, embedded SIM) card. It can be understood that in addition to the SIM card, the first card and the second card can also be other types of phone cards, such as UIM (User Identity Module) cards.
[0080] The resident network status of the second card being to complete cell residence means that the second card successfully connects to the mobile communication network provided by the operator and establishes an effective communication link with a specific cell.
[0081] For a terminal device supporting DSDA, the terminal device manufacturer usually configures a list of available frequency bands for the first card and the second card in the terminal device; or, the terminal device manufacturer does not pre-configure the available frequency band list, but it is provided by the operators of the first card and the second card (for example, when the first card and the second card first register on the network, the operator sends it to the first card and the second card through the network, and during subsequent use, the operator can update the available frequency band list of the first card and the second card through the network). Optionally, the list of available frequency bands for the first card and the second card can include frequency bands of different sizes under different network systems of different network operators.
[0082] In summary, before obtaining the N first frequency bands available for the first card configured in the terminal device, it may further include obtaining the network operator of the terminal device and determining the N first frequency bands available for the first card according to the network operator. In addition, it can be understood that in the case where the first card can simultaneously reside on multiple frequency bands, each of the N first frequency bands available for the first card may include multiple frequency bands.
[0083] It can be understood that in all embodiments of the present disclosure, there are no restrictions on the format and storage location of the frequency band list stored in the terminal device, and its storage format and location do not affect the present disclosure's acquisition of the N first frequency bands available for the first card. In addition, the frequency band list can be updated by the terminal device manufacturer or network operator as network technology develops.
[0084] In step S12, obtain the second frequency band where the second card camps.
[0085] Exemplarily, both the first card and the second card required by the terminal device need to camp on one or more frequency bands to ensure smooth communication of the terminal device. Therefore, the second frequency band can be one frequency band where the second card of the terminal device camps, or multiple frequency bands where the second card camps. The number of frequency bands where the second card camps needs to be determined according to the actual situation, and the present disclosure does not limit this.
[0086] In step S13, obtain N frequency band combinations formed by the second frequency band and each of the first frequency bands, and perform frequency scanning on the N frequency band combinations according to the priorities of the N frequency band combinations.
[0087] Exemplarily, both the first card and the second card of the terminal device need to camp on frequency bands to ensure smooth communication. Therefore, the frequency bands where the first card of the terminal device camps and the frequency bands where the second card camps can be referred to as frequency band combinations (also known as Band combinations). Different Band combinations in the terminal device may have different resource occupancy situations or support different network modes (such as dual SIM dual active DSDA, dual SIM dual standby DSDS, etc.). Therefore, in the case where the second frequency band where the second card camps is determined through step S12, by obtaining the N first frequency bands available for the first card through step S11, N different frequency band combinations that can be used by the terminal device can be generated with the second frequency band; however, when the first card and the second card of the terminal device are connected to different frequency band combinations, the network state and resource occupancy situation of the terminal device may be different. Therefore, the priorities can be assigned to the N different frequency band combinations according to the network state and resource occupancy situation of the terminal device under different frequency band combinations, and frequency scanning is performed on the first frequency bands in the N different frequency band combinations according to the assigned priorities, so that the first card establishes a connection with the frequency band with a higher priority, thereby enabling the terminal device to be in a better network state and reducing resource occupancy.
[0088] In the above technical solution, when the first card of the terminal device searches for a network and the network status of the second card of the terminal device is to complete the cell residence, the N first frequency bands available to the first card configured in the terminal device are obtained; wherein N is an integer greater than 0; the second frequency band where the second card resides is obtained; the N frequency band combinations consisting of the second frequency band and each of the first frequency bands are obtained, and the N frequency band combinations are scanned according to the priority of the N frequency band combinations. By scanning the frequency according to the priority order of the frequency band combinations that can be resided by the first card and the second card before the first card resides in the cell, the network performance of the terminal device can be improved.
[0089] Figure 2 is a flow chart of a frequency sweeping method according to an exemplary embodiment. Figure 2 As shown, step S13 includes the following steps:
[0090] In step S131, the N first frequency bands are divided into M sets, wherein each of the M sets includes at least one first frequency band, and M is an integer greater than 1 and less than or equal to N.
[0091] Exemplarily, the N first frequency bands available to the first card obtained in step S11, where N may be a large number, may be divided into M sets in order to reduce the time taken for the first card to connect to the network, where M is an integer greater than 1 and less than or equal to N; it is understandable that each of the M sets contains at least one first frequency band, and the number of first frequency bands contained in each of the M sets may be the same or different, and the present disclosure does not impose any limitation on this.
[0092] In a possible embodiment, when the N first frequency bands available for the first card are obtained in step S11, the terminal device can determine the priority order of each frequency band based on the signal strength and quality of the N first frequency bands. Therefore, when the N first frequency bands are divided into M sets, the N first frequency bands can be divided into M sets in order from high to low priority.
[0093] For example, the N first frequency bands can be divided into M sets according to a specified number K, where when N÷K is divisible, M=N÷K, and each set contains K first frequency bands, where the K first frequency bands contained in each of the M sets can be the K first frequency bands among the N first frequency bands, or can be the K first frequency bands among the N first frequency bands with priority from high to low; when N÷K is not divisible, M is equal to the quotient of N÷K plus 1, and M-1 sets contain K first frequency bands, and 1 set contains the remainder of N÷K first frequency bands.
[0094] In step S132, for each of the M sets, a frequency band combination is generated according to the second frequency band and each first frequency band in the set, and the frequency band combination corresponding to the set is obtained.
[0095] Exemplarily, in one possible embodiment, as Figure 3 shown, Figure 3 FIG. is a schematic diagram of a process for generating a frequency band combination shown according to an exemplary embodiment. For example, the 9 (N = 9) first frequency bands available for the first card obtained in step S11 are respectively Figure 3 the first frequency bands 1-9 shown in. The first frequency bands 1-9 are divided into 3 sets by the method shown in step S131, and each set contains 3 first frequency bands. The 3 sets are: Set 1 (including first frequency band 1, first frequency band 2, first frequency band 3), Set 2 (including first frequency band 4, first frequency band 5, first frequency band 6), Set 3 (including first frequency band 7, first frequency band 8, first frequency band 9). Step S132 is respectively executed for each of Set 1, Set 2, and Set 3. The frequency band combinations corresponding to Set 1 generated include: a first frequency band combination including first frequency band 1 and the second frequency band, a second frequency band combination including first frequency band 2 and the second frequency band, a third frequency band combination including first frequency band 3 and the second frequency band; the frequency band combinations corresponding to Set 2 generated include: a fourth frequency band combination including first frequency band 4 and the second frequency band, a fifth frequency band combination including first frequency band 5 and the second frequency band, a sixth frequency band combination including first frequency band 6 and the second frequency band; the frequency band combinations corresponding to Set 3 generated include: a seventh frequency band combination including first frequency band 7 and the second frequency band, an eighth frequency band combination including first frequency band 8 and the second frequency band, a ninth frequency band combination including first frequency band 9 and the second frequency band.
[0096] In step S133, a priority is assigned to each frequency band combination corresponding to each set, and frequency scanning is performed according to the priorities assigned to the respective frequency band combinations.
[0097] Exemplarily, in as Figure 3In the illustrated embodiment, the terminal device may assign priorities to the first frequency band combination, the second frequency band combination, and the third frequency band combination corresponding to the set 1, and perform frequency scanning on the first frequency band in the first frequency band combination, the second frequency band combination, and the third frequency band combination in descending order of priority according to the priorities assigned to the first frequency band combination, the second frequency band combination, and the third frequency band combination. Subsequently, priorities are assigned to the fourth frequency band combination, the fifth frequency band combination, and the sixth frequency band combination corresponding to the set 2, and frequency scanning is performed on the first frequency band in the first frequency band combination to the sixth frequency band combination in descending order of priority according to the priorities assigned to the first frequency band combination, the second frequency band combination, the third frequency band combination, the fourth frequency band combination, the fifth frequency band combination, and the sixth frequency band combination. Finally, priorities are assigned to the seventh frequency band combination, the eighth frequency band combination, and the ninth frequency band combination corresponding to the set 3, and frequency scanning is performed on the first frequency band in the first frequency band combination to the ninth frequency band combination in descending order of priority according to the priorities assigned to the first frequency band combination to the ninth frequency band combination.
[0098] It can be understood that in the above embodiment, there is no limitation on the order in which the terminal device performs frequency scanning on the set 1, the set 2, and the set 3. For example, the frequency scanning order may be set 2, set 3, set 1; or set 3, set 1, set 2, or other orders; in addition, when the first frequency band 1 to the first frequency band 9 are arranged in descending order of priority and divided into 3 sets in descending order of priority, it can be understood that the priority of the set 1 is higher than the priority of the set 2, and the priority of the set 2 is higher than the priority of the set 3. Therefore, the frequency scanning order of the terminal device for each set may be set 1, set 2, set 3.
[0099] In summary, it can be understood that when the terminal device assigns priorities to each frequency band combination, the priorities of different frequency band combinations may be the same. Therefore, when performing frequency scanning on multiple frequency band combinations with the same priority, the present disclosure does not limit the frequency scanning order of the multiple frequency band combinations.
[0100] Figure 4 is a flowchart of a frequency scanning method shown according to an exemplary embodiment, as Figure 4 shown, step S133 includes the following steps:
[0101] In step S1331, determine the network mode supported by each frequency band combination in the frequency band combination corresponding to the first set and / or the occupancy of the receiving path; the first set is any one of the M sets.
[0102] Exemplarily, when the first card and the second card of the terminal device reside in different frequency band combinations, the network mode of the terminal device may be different. For example, the network mode may be Dual SIM Dual Active (DSDA) or Dual SIM Dual Standby (DSDS), etc. The receive path RX refers to the path of the receiver of the terminal device, which is responsible for receiving the signal from the transmitter and converting it into a signal for subsequent processing. In the terminal device, if one or more frequency bands in which the first card and the second card reside are the same, it may cause the receive path RX to overlap or only use half of the receive path RX bandwidth; among them, the overlap of the receive path RX means that two receivers simultaneously receive signals from the same signal source. If the receive path RX overlaps, it may cause signal interference between the first card and the second card, thereby possibly reducing the call quality and data transmission speed; if the receive paths do not overlap, then the first card and the second card can only use half of the receive path RX bandwidth, which may also affect the call quality and data transmission speed. In summary, for different frequency band combinations of the first card and the second card, considering both the network mode supported by different frequency band combinations and / or the occupancy of the receive path, it is possible that both the first card and the second card are in a better network state.
[0103] In step S1332, each frequency band combination in the frequency band combination corresponding to the first set is added to the frequency band combination list with the corresponding priority according to the network mode and / or the occupancy of the receive path, and the frequency band combinations in the frequency band combination list are frequency scanned according to the priority of the frequency band combination list; wherein, there are multiple frequency band combination lists, and the priorities of different frequency band combination lists are different.
[0104] Exemplarily, the terminal device may include multiple frequency band combination lists with different priorities, and the priorities of the multiple frequency band combination lists may be determined according to the network mode and / or the occupancy of the receive path of different frequency band combinations. Therefore, in order to enable the terminal device to quickly connect to a frequency band combination with a better network mode and / or occupancy of the receive path, Figure 3 Taking the illustrated embodiment as an example, the terminal device may determine the network mode and / or the occupancy of the receive path supported by each frequency band set in any one of Set 1, Set 2, and Set 3 through step S1331, and add each frequency band set to the frequency band combination list with the corresponding priority according to the network mode and / or the occupancy of the receive path it supports.
[0105] In a possible embodiment, in Figure 3When the first frequency bands 1 to 9 are arranged in descending order of priority and divided into three sets in descending order of priority, it can be understood that the priority of set 1 is higher than that of set 2, and the priority of set 2 is higher than that of set 3. Therefore, the terminal device can use the set 1 with the highest priority as the first set, and determine the supported network modes and / or receive path occupancy of each frequency band combination in the first set through step S1331, and add the supported network modes and / or receive path occupancy of each frequency band combination to the frequency band combination list corresponding to the corresponding priority.
[0106] Figure 5 is a flowchart of a frequency scanning method shown according to an exemplary embodiment, as Figure 5 shown, step S1332 includes the following steps:
[0107] In step S13321, each of the frequency band combinations in the frequency band combinations corresponding to the first set is added to the frequency band combination list corresponding to the corresponding priority according to the network mode and / or the receive path occupancy.
[0108] In step S13322, frequency scanning is performed when the frequency band combinations in the frequency band combination list meet the frequency scanning conditions.
[0109] In step S13323, when the frequency band combinations in the frequency band combination list do not meet the frequency scanning conditions, the second set is used as the new first set, and the determination of the supported network modes and / or receive path occupancy of each of the frequency band combinations in the frequency band combinations corresponding to the first set is performed again until each of the frequency band combinations in the frequency band combinations corresponding to the first set is added to the frequency band combination list corresponding to the corresponding priority according to the network mode and / or the receive path occupancy, until the frequency band combinations in the frequency band combination list meet the frequency scanning conditions. The second set is any set other than the first set among the M sets.
[0110] Exemplarily, in order to enable the terminal device to quickly connect to a frequency band combination with a better network mode and / or receiving path occupancy, in step S13321, after each frequency band combination in the frequency band combination corresponding to the first set is added to the frequency band combination list of the corresponding priority, it can be determined whether the frequency band combination lists of different priorities meet the frequency scanning condition. If the frequency scanning condition is met, the frequency band combinations in the frequency band combination list that meet the frequency scanning condition are frequency scanned; if the frequency scanning condition is not met, the second set can be used as the new first set by executing steps S1331 and S1332 in step S13321, so that each frequency band combination in the frequency band combination corresponding to the second set is added to the frequency band combination list of the corresponding priority according to its supported network mode and resource occupancy; then, it is determined again whether the frequency band combination lists of different priorities meet the frequency scanning condition. If the frequency scanning condition is met, the frequency band combinations in the frequency band combination list that meet the frequency scanning condition are frequency scanned; if the frequency scanning condition is not met, steps S1331 and S13321 are executed again.
[0111] For example, in the embodiment shown in Figure 3 taking Set 1 as the first set, steps S1331 and S13321 are executed to respectively determine the network modes supported by the first frequency band combination, the second frequency band combination, and the third frequency band combination corresponding to Set 1 and the receiving path occupancy, and add the first frequency band combination, the second frequency band combination, and the third frequency band combination to the frequency band combination lists of the corresponding priorities according to the network modes and receiving path occupancies of each frequency band combination; then, step S13322 is executed to determine whether the frequency band combination list meets the frequency scanning condition. If the frequency scanning condition is met, the frequency band combination list that meets the frequency scanning condition is frequency scanned, and the frequency scanning ends, and the priority assignment to the frequency band combinations corresponding to the remaining sets can be stopped; if the frequency scanning condition is not met, Set 2 can be used as the new first set, and steps S1331 and S13321 are executed again, and so on.
[0112] Figure 6 is a flowchart of a frequency scanning method shown according to an exemplary embodiment. As shown in Figure 6 the frequency band combination list includes: a first frequency band combination list, a second frequency band combination list, and a third frequency band combination list; the priority of the first frequency band combination list is higher than that of the second frequency band combination list, and the priority of the second frequency band combination list is higher than that of the third frequency band combination list; step S13321 includes the following steps:
[0113] In step S133211, for any frequency band combination in the frequency band combinations corresponding to the first set, when the network mode supported by the frequency band combination is dual SIM dual standby and there is no overlap in the receiving paths required to be occupied by the frequency band combination, add the frequency band combination to the first frequency band combination list;
[0114] In step S133212, when the network mode supported by the frequency band combination is dual SIM dual standby and there is an overlap in the receiving paths required to be occupied by the frequency band combination, add the frequency band combination to the second frequency band combination list;
[0115] In step S133213, when the frequency band combination does not support dual SIM dual standby, add the frequency band combination to the third frequency band combination list.
[0116] Exemplarily, the frequency band combination list may include: a first frequency band combination list, a second frequency band combination list, and a third frequency band combination list; the priority of the first frequency band combination list is higher than that of the second frequency band combination list, and the priority of the second frequency band combination list is higher than that of the third frequency band combination list.
[0117] In a possible embodiment, when the network mode supported by the frequency band combination is dual SIM dual standby and there is no overlap in the receiving paths required to be occupied by the frequency band combination, the frequency band combination may be added to the first frequency band combination list. When the network mode supported by the frequency band combination is dual SIM dual standby and there is an overlap in the receiving paths required to be occupied by the frequency band combination, the frequency band combination may be added to the second frequency band combination list; when the frequency band combination does not support dual SIM dual standby, the frequency band combination may be added to the third frequency band combination list. In addition, it can be understood that in addition to allocating priorities to the frequency band combinations according to the network mode supported by the frequency band combination and / or the occupancy of the receiving paths, the number of receiving paths occupied by the frequency band combination may also be considered, which is not elaborated in this disclosure. In addition, this disclosure does not limit the number of the frequency band combination lists.
[0118] Figure 7 is a flowchart of a frequency scanning method shown according to an exemplary embodiment, as Figure 7 shown, when there is at least one set of frequency band combinations corresponding to a set among the M sets that have not been added to the frequency band combination list of the corresponding priority, in step S13322, the following steps are included:
[0119] In step S133221, when the first frequency band combination list is empty, it is determined that the frequency scanning condition is not satisfied.
[0120] In step S133222, when the first frequency band combination list is not empty, it is determined that the frequency scanning condition is satisfied, and frequency scanning is performed on the frequency band combinations in the first frequency band combination list.
[0121] Exemplarily, based on the above embodiments as shown in Figure 5 and Figure 6 When each frequency band combination in the first set among the M sets is respectively added to any one of the first frequency band combination list, the second frequency band combination list, and the third frequency band combination list, at this time, in order for the terminal device to connect to the frequency band combination with the best performance, the frequency scanning conditions in step S13322 and step S13323 may be that when the first frequency band combination list with the highest priority is not empty (including at least one frequency band combination corresponding to the first set), it is determined that the frequency scanning condition is satisfied, and the first frequency bands of each frequency band combination in the first frequency band combination list are scanned; when the first frequency band combination list with the highest priority is empty, it is determined that the frequency scanning condition is not satisfied, and then steps S1331 and S13321 are executed again for any one set except the first set. In addition, it can be understood that if the terminal device assigns priorities to the N first frequency bands, when the terminal device scans the first frequency bands of each frequency band combination in the first frequency band combination list through the first card, the scanning can be performed in the order from the highest priority to the lowest priority of each first frequency band.
[0122] In another possible embodiment, based on the above embodiments as shown in Figure 5 and Figure 6 When each frequency band combination in the first set among the M sets is respectively added to any one of the first frequency band combination list, the second frequency band combination list, and the third frequency band combination list, when the first frequency band combination list is not empty, the first frequency bands of each frequency band combination in the first frequency band combination list are scanned; when the first frequency band combination list is empty and the second frequency band combination list is not empty, the first frequency bands of each frequency band combination in the second frequency band combination list are scanned; further, when both the first frequency band combination list and the second frequency band combination list are empty, the first frequency bands of each frequency band combination in the third frequency band combination list are scanned; so that the first card of the terminal device establishes a connection with a certain first frequency band in the first frequency band combination list, the second frequency band combination list, and the third frequency band combination list. Furthermore, when the frequency band combination where the terminal device camps through the above steps is not the frequency band combination in the first frequency band combination list with the highest priority, in order to ensure the network quality of the terminal device, any one set except the first set among the M sets can be used as the new first set, and steps S1331 and S13321 are repeatedly executed until the first frequency band combination list is not empty, and then the first frequency bands of each frequency band combination in the first frequency band combination list are scanned.
[0123] Figure 8It is a flowchart of a frequency sweeping method shown according to an exemplary embodiment. As Figure 8 shown, when the frequency band combinations corresponding to each of the M sets have been added to the frequency band combination list of the corresponding priority, in step S13322, the following steps are further included:
[0124] In step S133223, when the first frequency band combination list is empty and the second frequency band combination list is not empty, frequency sweep is performed on the frequency band combinations in the second frequency band combination list.
[0125] In step S133224, when both the first frequency band combination list and the second frequency band combination list are empty and the third frequency band combination list is not empty, frequency sweep is performed on the frequency band combinations in the third frequency band combination list.
[0126] Exemplarily, when the frequency band combinations corresponding to each of the M sets have been added to the frequency band combination list of the corresponding priority, when the first frequency band combination list with the highest priority is empty, it means that the frequency band combination list with the optimal performance that the terminal device can connect to is empty. In this case, in order to ensure the network state and communication state of the terminal device, when the second frequency band combination list is not empty, frequency sweep can be performed on the first frequency band of the frequency band combinations in the second frequency band combination list. Further, when the second frequency band combination list is empty, frequency sweep can be performed on the first frequency band of the frequency band combinations in the third frequency band combination list.
[0127] In the above technical solution, when the first card of the terminal device performs network search and the resident network state of the second card of the terminal device is to complete cell residence, obtain N first frequency bands available for the first card configured in the terminal device; where N is an integer greater than 0; obtain the second frequency band where the second card resides; obtain N frequency band combinations formed by the second frequency band and each of the first frequency bands, and perform frequency sweep on the N frequency band combinations according to the priority of the N frequency band combinations. By performing frequency sweep according to the priority order of the available resident frequency band combinations of the first card and the second card before the first card performs cell residence, the network performance of the terminal device can be improved.
[0128] Figure 9 It is a flowchart of a frequency sweeping method shown according to an exemplary embodiment. As Figure 9 shown, step S13 includes the following steps:
[0129] In step S134, obtain N frequency band combinations formed by the second frequency band and each of the first frequency bands.
[0130] Exemplarily, the second frequency band can form a frequency band combination with each of the N first frequency bands, for a total of N frequency band combinations.
[0131] In step S135, a priority is assigned to each of the N frequency band combinations, and frequency scanning is performed according to the priorities assigned to the respective frequency band combinations.
[0132] Exemplarily, the terminal device may assign a priority to each of the N frequency band combinations according to its performance, and perform frequency scanning on the first frequency band of each of the N frequency band combinations in the order from the highest priority to the lowest priority.
[0133] Figure 10 is a flowchart of a frequency scanning method shown according to an exemplary embodiment, as Figure 10 shown, step S135 includes the following steps:
[0134] In step S1351, determine the network mode supported by each of the N frequency band combinations and / or the occupancy of the receiving path;
[0135] Exemplarily, this step S1351 is similar to the embodiment in the above step S1332, except that the N frequency band combinations are not grouped, which will not be elaborated here.
[0136] In step S1352, each of the N frequency band combinations is added to a frequency band combination list corresponding to a priority according to the network mode and / or the occupancy of the receiving path, and frequency scanning is performed on the frequency band combinations in the frequency band combination list according to the priority of the frequency band combination list; wherein, there are multiple frequency band combination lists, and the priorities of different frequency band combination lists are different.
[0137] Exemplarily, the terminal device may add each of the N frequency band combinations to a frequency band combination list corresponding to a priority according to the network mode supported by each of the N frequency band combinations and / or the occupancy of the receiving path, and then, in the order from the highest priority to the lowest priority, perform frequency scanning on the first frequency band of each of the frequency band combinations in each of the frequency band combination lists; specifically, it is similar to the embodiment in the above step S1332, which will not be elaborated here.
[0138] Figure 11 is a flowchart of a frequency scanning method shown according to an exemplary embodiment, as Figure 11 shown, the frequency band combination list includes: a fourth frequency band combination list, a fifth frequency band combination list, and a sixth frequency band combination list; the priority of the fourth frequency band combination list is higher than the priority of the fifth frequency band combination list, and the priority of the fifth frequency band combination list is higher than the priority of the sixth frequency band combination list; step S1352 includes the following steps:
[0139] In step S13521, for any one of the N frequency band combinations, when the network mode supported by the frequency band combination is dual SIM dual standby and the receiving paths required to be occupied by the frequency band combination do not overlap, add the frequency band combination to the fourth frequency band combination list.
[0140] In step S13522, when the network mode supported by the frequency band combination is dual SIM dual standby and the receiving paths required to be occupied by the frequency band combination overlap, add the frequency band combination to the fifth frequency band combination list.
[0141] In step S13523, when the frequency band combination does not support dual SIM dual standby, add the frequency band combination to the sixth frequency band combination list.
[0142] Exemplarily, the frequency band combination list includes: a fourth frequency band combination list, a fifth frequency band combination list, and a sixth frequency band combination list; the priority of the fourth frequency band combination list is higher than that of the fifth frequency band combination list, and the priority of the fifth frequency band combination list is higher than that of the sixth frequency band combination list.
[0143] In a possible embodiment, when any one of the N frequency band combinations supports the network mode of dual SIM dual standby and the receiving paths required to be occupied by the frequency band combination do not overlap, the frequency band combination can be added to the fourth frequency band combination list. When the network mode supported by the frequency band combination is dual SIM dual standby and the receiving paths required to be occupied by the frequency band combination overlap, the frequency band combination can be added to the fifth frequency band combination list; when the frequency band combination does not support dual SIM dual standby, the frequency band combination can be added to the sixth frequency band combination list. In addition, it can be understood that in addition to allocating priorities to the frequency band combinations according to the network mode supported by the frequency band combination and / or the occupancy of the receiving paths, the number of receiving paths occupied by the frequency band combination can also be considered, which is not elaborated in this disclosure. In addition, this disclosure does not limit the number of the frequency band combination lists.
[0144] Figure 12 is a flowchart of a frequency sweeping method shown according to an exemplary embodiment, as Figure 12 shown, step S1352 includes the following steps:
[0145] In step S13524, when the fourth frequency band combination list is not empty, perform frequency sweeping on the frequency band combinations in the fourth frequency band combination list;
[0146] In step S13525, when the fourth frequency band combination list is empty and the fifth frequency band combination list is not empty, perform frequency sweeping on the frequency band combinations in the fifth frequency band combination list;
[0147] In step S13526, when the fourth frequency band combination list and the fifth frequency band combination list are both empty, and the sixth frequency band combination list is not empty, the frequency band combinations in the sixth frequency band combination list are scanned.
[0148] Exemplarily, when the fourth frequency band combination list with the highest priority is not empty, the first frequency band of each frequency band combination in the fourth frequency band combination list is scanned; when the first frequency band combination list is empty and the second frequency band combination list is not empty, the first frequency band of each frequency band combination in the second frequency band combination list is scanned; further, when both the first frequency band combination list and the second frequency band combination list are empty, the first frequency band of each frequency band combination in the third frequency band combination list is scanned; through the above steps, the first card and the second card of the terminal device can reside in the frequency band combination with better performance.
[0149] In the above technical solution, when the first card of the terminal device searches for a network and the network status of the second card of the terminal device is to complete the cell residence, the N first frequency bands available to the first card configured in the terminal device are obtained; wherein N is an integer greater than 0; the second frequency band where the second card resides is obtained; the N frequency band combinations consisting of the second frequency band and each of the first frequency bands are obtained, and the N frequency band combinations are scanned according to the priority of the N frequency band combinations. By scanning the frequency according to the priority order of the frequency band combinations that can be resided by the first card and the second card before the first card resides in the cell, the network performance of the terminal device can be improved.
[0150] Figure 13 is a flow chart of a frequency sweeping method according to an exemplary embodiment. Figure 13 As shown, the terminal device includes: a radio resource control module (Radio Resource Control, RRC), a policy manager (PolicyManager, PM), a transmission resource management module (Transceiver Resource Manager, TRM) and a physical layer;
[0151] Among them, the wireless resource control module RRC is the core module responsible for managing the wireless resources of the terminal device, and is used to coordinate and control the wireless communication between the terminal device and the base station. In the embodiment of the present disclosure, the wireless resource control module RRC can be used to allocate frequency bands for the first card and the second card, switch frequency bands, etc.
[0152] The Policy Manager PC is the core component responsible for processing and executing mobile network policies. Its main function is to establish policy control between the mobile phone and the mobile network to achieve data traffic control, network access control, application service control, etc. In the embodiments of the present disclosure, a list of available frequency bands for the first card and the second card of the terminal device is pre-configured in the Policy Manager PC, which can be represented by pref_band_list.
[0153] The Transmission Resource Management Module TRM is part of network resource management and is used to reasonably allocate and manage resources for data transmission in the network, such as bandwidth, frequency bands, cache space, etc., to ensure the efficient and fair use of the network. In the embodiments of the present disclosure, the Transmission Resource Management Module TRM is used to manage the available frequency bands of the first card and the second card of the terminal device, the performance of each frequency band combination of the first card and the second card, etc.
[0154] The Physical Layer (PHY) is a hierarchical structure in computer networks and communication systems and is used for signal transmission, physical medium access control, and the generation and reception of physical signals. In the embodiments of the present disclosure, the Physical Layer is used to perform signal transmission of the terminal device when both the first card and the second card of the terminal device are resident in the corresponding frequency bands.
[0155] As Figure 13 shown, when the first card performs network search, it reads the current network resident status of the second card through RRC. When the second card has not completed cell residence, the non-resident status of the second card can be returned, and at this time, the first card and the second card maintain the original network search process.
[0156] When the second card has not completed cell residence, it reads the second frequency band where the second card is currently resident through RRC and returns it to RRC.
[0157] Send a req_pref_band request to the PC through RRC. This req_pref_band request is used for the RRC module to obtain the pref_band_list configured in the PM for the first card and the second card of the terminal device. The pref_band_list is a list of available frequency bands for the first card and the second card of the terminal device.
[0158] After the PM receives the req_pref_band request, it returns the pref_band_list to RRC. Among them, before the PM returns the pref_band_list, it is necessary to load the operator configuration.
[0159] After RRC receives the pref_band_list, it can obtain N first frequency bands available for the first card from the pref_band_list through req_sub1_band.
[0160] After obtaining the N first frequency bands available for the first card, RRC can divide the N first frequency bands into M sets through sub1_camp_band. The specific method can refer to the relevant embodiments described above and will not be elaborated here.
[0161] After dividing the N first frequency bands into M sets, RRC can send a pref_band_update request to TRM, and the request can carry a second frequency band and a first set including the first frequency bands. The first set is any one of the M sets.
[0162] After receiving the pref_band_update request, TRM generates a frequency band combination for the second frequency band and each of the first frequency bands in the first set according to the information carried in the pref_band_update request; when any frequency band combination supports dual SIM dual standby and there is no overlap in the receiving paths, add the frequency band combination to the first frequency band combination list; when any frequency band combination supports dual SIM dual standby and there is an overlap in the receiving paths, add the frequency band combination to the second frequency band combination list; when any frequency band combination does not support dual SIM dual standby, add the frequency band combination to the third frequency band combination list. The specific process of this allocation priority can refer to the relevant embodiments described above and will not be elaborated here.
[0163] TRM returns pref_band_update_result to RRC, where pref_band_update_result includes the first frequency band combination list, the second frequency band combination list, and the third frequency band combination list.
[0164] After receiving the pref_band_update_result, RRC performs frequency scanning on each frequency band combination according to the priority of each updated frequency band combination list. At the same time, continue with the update of the subsequent pref_band_list. The specific process of this frequency scanning can refer to the relevant embodiments described above and will not be elaborated here.
[0165] In the above technical solution, when the first card of the terminal device performs network search and the second card of the terminal device is in the state of completing cell residence, obtain the N first frequency bands available for the first card configured in the terminal device; where N is an integer greater than 0; obtain the second frequency band where the second card resides; obtain the N frequency band combinations formed by the second frequency band and each of the first frequency bands, and perform frequency scanning on the N frequency band combinations according to the priority of the N frequency band combinations. By performing frequency scanning according to the priority order of the available residence frequency band combinations of the first card and the second card before the first card performs cell residence, the network performance of the terminal device can be improved.
[0166] Figure 14 is a block diagram of a frequency scanning device 1400 shown according to an exemplary embodiment. Refer to Figure 14 , the device includes a first acquisition module 1410, a second acquisition module 1420, and a control module 1430.
[0167] The first acquisition module 1410 is configured to obtain N first frequency bands available for the first card configured in the terminal device when the first card of the terminal device performs network search and the resident network state of the second card of the terminal device is to complete cell residence; where N is an integer greater than 0;
[0168] The second acquisition module 1420 is configured to obtain a second frequency band where the second card resides;
[0169] The control module 1430 is configured to obtain N frequency band combinations formed by the second frequency band and each of the first frequency bands, and perform frequency scanning on the N frequency band combinations according to the priorities of the N frequency band combinations.
[0170] Optionally, the control module 1430 is configured to:
[0171] Divide the N first frequency bands into M sets, where each set in the M sets contains at least one first frequency band, and M is an integer greater than 1 and less than or equal to N;
[0172] For each set in the M sets, generate a frequency band combination according to the second frequency band and each first frequency band in the set to obtain the frequency band combination corresponding to the set;
[0173] Assign priorities to each frequency band combination in the frequency band combination corresponding to each set, and perform frequency scanning according to the priorities assigned to each frequency band combination.
[0174] Optionally, the control module 1430 includes a first determination sub-module and a first control sub-module;
[0175] The first determination sub-module is configured to determine the network mode and / or receive path occupancy supported by each frequency band combination in the frequency band combination corresponding to the first set; the first set is any one of the M sets;
[0176] The first control sub-module is configured to add each frequency band combination in the frequency band combination corresponding to the first set to a frequency band combination list corresponding to a corresponding priority according to the network mode and / or the receive path occupancy, and perform frequency scanning on the frequency band combinations in the frequency band combination list according to the priority of the frequency band combination list; where there are multiple frequency band combination lists, and the priorities of different frequency band combination lists are different.
[0177] Optionally, the first control sub-module is further configured to:
[0178] Add each frequency band combination in the frequency band combination corresponding to the first set to the frequency band combination list of the corresponding priority according to the network mode and / or the reception path occupancy situation;
[0179] Perform frequency scanning when the frequency band combinations in the frequency band combination list meet the frequency scanning conditions;
[0180] When the frequency band combinations in the frequency band combination list do not meet the frequency scanning conditions, use the second set as the new first set, and execute again the determination of the network mode and / or the reception path occupancy situation supported by each frequency band combination in the frequency band combination corresponding to the first set until each frequency band combination in the frequency band combination corresponding to the first set is added to the frequency band combination list of the corresponding priority according to the network mode and / or the reception path occupancy situation until the frequency band combinations in the frequency band combination list meet the frequency scanning conditions, where the second set is any set other than the first set among the M sets.
[0181] Optionally, the frequency band combination list includes: a first frequency band combination list, a second frequency band combination list, and a third frequency band combination list; the priority of the first frequency band combination list is higher than the priority of the second frequency band combination list, the priority of the second frequency band combination list is higher than the priority of the third frequency band combination list, and the first control sub-module is further configured to:
[0182] The step of adding each frequency band combination in the frequency band combination corresponding to the first set to the frequency band combination list of the corresponding priority according to the network mode and / or the reception path occupancy situation includes:
[0183] For any frequency band combination in the frequency band combination corresponding to the first set, when the network mode supported by the frequency band combination is dual-card dual-standby and there is no overlap in the reception paths required to be occupied by the frequency band combination, add the frequency band combination to the first frequency band combination list;
[0184] When the network mode supported by the frequency band combination is dual-card dual-standby and there is overlap in the reception paths required to be occupied by the frequency band combination, add the frequency band combination to the second frequency band combination list;
[0185] When the frequency band combination does not support dual-card dual-standby, add the frequency band combination to the third frequency band combination list.
[0186] Optionally, the first control sub-module further includes a judgment sub-module;
[0187] The judgment sub-module is configured to determine that the frequency scanning conditions are not met when there is at least one set of frequency band combinations corresponding to the M sets that have not been added to the frequency band combination list of the corresponding priority and the first frequency band combination list is empty;
[0188] When the first frequency band combination list is not empty, it is determined that the frequency scanning condition is satisfied, and frequency scanning is performed on the frequency band combinations in the first frequency band combination list.
[0189] Optionally, the first control sub-module is further configured to:
[0190] When the frequency band combinations corresponding to each of the M sets have been added to the frequency band combination list of the corresponding priority, when the first frequency band combination list is empty and the second frequency band combination list is not empty, frequency scanning is performed on the frequency band combinations in the second frequency band combination list;
[0191] When the first frequency band combination list and the second frequency band combination list are both empty and the third frequency band combination list is not empty, frequency scanning is performed on the frequency band combinations in the third frequency band combination list.
[0192] Optionally, the control module 1430 is further configured to:
[0193] Obtain N frequency band combinations composed of the second frequency band and each of the first frequency bands;
[0194] Assign priorities to each of the N frequency band combinations, and perform frequency scanning according to the priorities assigned to each frequency band combination.
[0195] Optionally, the control module 1430 includes a second determination sub-module and a second control sub-module:
[0196] The second determination sub-module is configured to determine the network mode and / or receive path occupancy supported by each of the N frequency band combinations;
[0197] The second control sub-module is configured to add each of the N frequency band combinations to the frequency band combination list of the corresponding priority according to the network mode and / or the receive path occupancy, and perform frequency scanning on the frequency band combinations in the frequency band combination list according to the priority of the frequency band combination list; wherein, there are multiple frequency band combination lists, and the priorities of different frequency band combination lists are different.
[0198] Optionally, the frequency band combination list includes: a fourth frequency band combination list, a fifth frequency band combination list, and a sixth frequency band combination list; the priority of the fourth frequency band combination list is higher than the priority of the fifth frequency band combination list, and the priority of the fifth frequency band combination list is higher than the priority of the sixth frequency band combination list; the second control sub-module is further configured to:
[0199] Each of the N frequency band combinations is added to the frequency band combination list corresponding to the priority according to the network mode and / or the reception path occupancy, and frequency scanning is performed on the frequency band combinations in the frequency band combination list according to the priority of the frequency band combination list, including:
[0200] For any one of the N frequency band combinations, when the network mode supported by the frequency band combination is dual SIM dual standby and the reception paths required to be occupied by the frequency band combination do not overlap, add the frequency band combination to the fourth frequency band combination list;
[0201] When the network mode supported by the frequency band combination is dual SIM dual standby and the reception paths required to be occupied by the frequency band combination overlap, add the frequency band combination to the fifth frequency band combination list;
[0202] When the frequency band combination does not support dual SIM dual standby, add the frequency band combination to the sixth frequency band combination list.
[0203] Optionally, the second control sub-module is further configured to:
[0204] When the fourth frequency band combination list is not empty, perform frequency scanning on the frequency band combinations in the fourth frequency band combination list;
[0205] When the fourth frequency band combination list is empty and the fifth frequency band combination list is not empty, perform frequency scanning on the frequency band combinations in the fifth frequency band combination list;
[0206] When both the fourth frequency band combination list and the fifth frequency band combination list are empty and the sixth frequency band combination list is not empty, perform frequency scanning on the frequency band combinations in the sixth frequency band combination list.
[0207] Regarding the device in the above embodiments, the specific manners in which each module performs operations have been described in detail in the embodiments related to the method, and will not be elaborated here.
[0208] The present disclosure also provides a computer-readable storage medium, on which computer program instructions are stored, and when the program instructions are executed by a processor, the steps of the frequency scanning method provided by the present disclosure are implemented.
[0209] In the above technical solution, when the first card of the terminal device performs network search and the resident network state of the second card of the terminal device is to complete cell residence, obtain N first frequency bands available for the first card configured in the terminal device; where N is an integer greater than 0; obtain the second frequency band where the second card resides; obtain N frequency band combinations formed by the second frequency band and each of the first frequency bands, and perform frequency scanning on the N frequency band combinations according to the priorities of the N frequency band combinations. By performing frequency scanning according to the priority order of the available resident frequency band combinations of the first card and the second card before the first card performs cell residence, the network performance of the terminal device can be improved.
[0210] Figure 15 FIG. 1500 is a block diagram of a frequency scanning device 1500 according to an exemplary embodiment. For example, the device 1500 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.
[0211] Referring to Figure 15 , the device 1500 may include one or more of the following components: a processing component 1502, a memory 1504, a power supply component 1506, a multimedia component 1508, an audio component 1510, an input / output interface 1512, a sensor component 1514, and a communication component 1516.
[0212] The processing component 1502 generally controls the overall operation of the device 1500, such as operations associated with display, telephone calls, data communication, camera operations, and recording operations. The processing component 1502 may include one or more processors 1520 to execute instructions to complete all or part of the steps of the above frequency scanning method. In addition, the processing component 1502 may include one or more modules to facilitate the interaction between the processing component 1502 and other components. For example, the processing component 1502 may include a multimedia module to facilitate the interaction between the multimedia component 1508 and the processing component 1502.
[0213] The memory 1504 is configured to store various types of data to support the operation of the device 1500. Examples of these data include instructions for any application or method operating on the device 1500, contact data, phone book data, messages, pictures, videos, etc. The memory 1504 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, a magnetic disk, or an optical disk.
[0214] The power supply component 1506 provides power for various components of the device 1500. The power supply component 1506 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 1500.
[0215] The multimedia component 1508 includes a screen that provides an output interface between the device 1500 and the user. 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 can be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors can not only sense the boundaries of the touch or swipe actions, but also detect the duration and pressure associated with the touch or swipe operations. In some embodiments, the multimedia component 1508 includes a front camera and / or a rear camera. When the device 1500 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera can receive external multimedia data. Each of the front camera and the rear camera can be a fixed optical lens system or have focal length and optical zoom capabilities.
[0216] The audio component 1510 is configured to output and / or input audio signals. For example, the audio component 1510 includes a microphone (MIC) that is configured to receive external audio signals when the device 1500 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals can be further stored in the memory 1504 or transmitted via the communication component 1516. In some embodiments, the audio component 1510 further includes a speaker for outputting audio signals.
[0217] The input / output interface 1512 provides an interface between the processing component 1502 and a peripheral interface module, which can be a keyboard, a click wheel, buttons, etc. These buttons can include, but are not limited to: a home button, a volume button, a power-on button, and a lock button.
[0218] The sensor assembly 1514 includes one or more sensors for providing a status assessment of various aspects of the device 1500. For example, the sensor assembly 1514 can detect the on / off state of the device 1500, the relative positioning of components, such as the display and keypad of the device 1500. The sensor assembly 1514 can also detect a change in the position of the device 1500 or a component of the device 1500, the presence or absence of user contact with the device 1500, the orientation or acceleration / deceleration of the device 1500, and the temperature change of the device 1500. The sensor assembly 1514 can include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 1514 can also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 1514 can also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0219] The communication component 1516 is configured to facilitate communication between the device 1500 and other devices in a wired or wireless manner. The device 1500 can access a wireless network based on communication standards, such as WiFi, 2G, or 3G, or a combination thereof. In an exemplary embodiment, the communication component 1516 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 1516 further 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.
[0220] In an exemplary embodiment, the device 1500 can 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 for performing the above-described sweep method.
[0221] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 1504 including instructions, and the above instructions can be executed by the processor 1520 of the device 1500 to complete the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, and an optical data storage device, etc.
[0222] In addition to being an independent electronic device, the above device can also be a part of an independent electronic device. For example, in one embodiment, the device can be an integrated circuit (IC) or a chip. The integrated circuit can be a single IC or a collection of multiple ICs. The chip can include, but is not limited to, the following types: GPU (Graphics Processing Unit), CPU (Central Processing Unit), FPGA (Field Programmable Gate Array), DSP (Digital Signal Processor), ASIC (Application Specific Integrated Circuit), SOC (System on Chip), etc. The above integrated circuit or chip can be used to execute executable instructions (or code) to implement the above frequency sweeping method. The executable instructions can be stored in the integrated circuit or chip, or obtained from other devices or equipment. For example, the integrated circuit or chip includes a processor, a memory, and an interface for communicating with other devices. The executable instructions can be stored in the memory and, when executed by the processor, implement the above frequency sweeping method. Alternatively, the integrated circuit or chip can receive the executable instructions through the interface and transmit them to the processor for execution to implement the above frequency sweeping method.
[0223] In another exemplary embodiment, a computer program product is also provided. The computer program product includes a computer program that can be executed by a programmable device. The computer program has a code portion for executing the above frequency sweeping method when executed by the programmable device.
Claims
1. A frequency sweeping method, characterized in that, Applied to a terminal device, the method comprises: When the first card of the terminal device searches for a network and the network stationing state of the second card of the terminal device is that the cell stationing is completed, obtain N first frequency bands available to the first card configured in the terminal device; wherein N is an integer greater than 0; Acquire a second frequency band where the second card resides; N frequency band combinations consisting of the second frequency band and each of the first frequency bands are acquired, and the N frequency band combinations are scanned according to priorities of the N frequency band combinations.
2. The frequency sweeping method according to claim 1, wherein The acquiring N frequency band combinations consisting of the second frequency band and each of the first frequency bands, and scanning the N frequency band combinations according to the priorities of the N frequency band combinations, includes: Divide the N first frequency bands into M sets, wherein each of the M sets includes at least one first frequency band, and M is an integer greater than 1 and less than or equal to N; For each of the M sets, generating a frequency band combination according to the second frequency band and each first frequency band in the set, to obtain a frequency band combination corresponding to the set; A priority is assigned to each frequency band combination in the frequency band combination corresponding to each set, and frequency scanning is performed according to the priority assigned to each frequency band combination.
3. The method according to claim 2, wherein The step of assigning a priority to each frequency band combination in the frequency band combination corresponding to each set, and performing frequency scanning according to the priority assigned to each frequency band combination, includes: Determine a network mode and / or a receiving path occupancy condition supported by each frequency band combination in a frequency band combination corresponding to a first set; the first set is any one of the M sets; According to the network mode and / or the occupancy of the receiving path, each of the frequency band combinations corresponding to the first set is added to a frequency band combination list of corresponding priority, and the frequency band combinations in the frequency band combination list are scanned according to the priority of the frequency band combination list; wherein there are multiple frequency band combination lists, and different frequency band combination lists have different priorities.
4. The method according to claim 3, wherein The adding each of the frequency band combinations in the frequency band combinations corresponding to the first set to a frequency band combination list of corresponding priority according to the network mode and / or the occupancy of the receiving path, and scanning the frequency band combinations in the frequency band combination list according to the priority of the frequency band combination list, includes: Adding each of the frequency band combinations in the frequency band combinations corresponding to the first set to a frequency band combination list of corresponding priority according to the network mode and / or the receiving path occupancy status; Performing frequency scanning when the frequency band combination in the frequency band combination list meets the frequency scanning condition; When the frequency band combinations in the frequency band combination list do not meet the frequency sweep conditions, take the second set as the new first set, and execute again the determination of the network modes supported by each of the frequency band combinations in the frequency band combination corresponding to the first set and / or the reception path occupancy situation, until each of the frequency band combinations in the frequency band combination corresponding to the first set is added to the frequency band combination list of the corresponding priority according to the network mode and / or the reception path occupancy situation, until the frequency band combinations in the frequency band combination list meet the frequency sweep conditions. The second set is any set among the M sets other than the first set.
5. The frequency sweeping method according to claim 4, wherein The frequency band combination list includes: a first frequency band combination list, a second frequency band combination list, and a third frequency band combination list; the priority of the first frequency band combination list is higher than the priority of the second frequency band combination list, and the priority of the second frequency band combination list is higher than the priority of the third frequency band combination list; The adding of each of the frequency band combinations in the frequency band combination corresponding to the first set to the frequency band combination list of the corresponding priority according to the network mode and / or the reception path occupancy situation includes: For any frequency band combination in the frequency band combination corresponding to the first set, when the network mode supported by the frequency band combination is dual SIM dual standby and the reception paths required to be occupied by the frequency band combination do not overlap, add the frequency band combination to the first frequency band combination list; When the network mode supported by the frequency band combination is dual SIM dual standby and the reception paths required to be occupied by the frequency band combination overlap, add the frequency band combination to the second frequency band combination list; When the frequency band combination does not support dual SIM dual standby, add the frequency band combination to the third frequency band combination list.
6. The frequency sweeping method according to claim 5, wherein When there is at least one set among the M sets whose corresponding frequency band combinations have not been added to the frequency band combination list of the corresponding priority, the frequency sweeping in the case where the frequency band combinations in the frequency band combination list meet the frequency sweep conditions includes: When the first frequency band combination list is empty, determine that the frequency sweep conditions are not met; When the first frequency band combination list is not empty, determine that the frequency sweep conditions are met, and perform frequency sweeping on the frequency band combinations in the first frequency band combination list.
7. The frequency sweeping method according to claim 5, wherein When the frequency band combinations corresponding to each of the M sets have been added to the frequency band combination list of the corresponding priority, the frequency sweeping in the case where the frequency band combinations in the frequency band combination list meet the set conditions further includes: When the first frequency band combination list is empty and the second frequency band combination list is not empty, perform frequency sweeping on the frequency band combinations in the second frequency band combination list; When both the first frequency band combination list and the second frequency band combination list are empty and the third frequency band combination list is not empty, perform frequency sweeping on the frequency band combinations in the third frequency band combination list.
8. The frequency sweeping method according to claim 1, characterized in that The obtaining of the N frequency band combinations composed of the second frequency band and each of the first frequency bands and the frequency sweeping of the N frequency band combinations according to the priorities of the N frequency band combinations includes: Acquire N frequency band combinations consisting of the second frequency band and each of the first frequency bands; A priority is assigned to each of the N frequency band combinations, and frequency scanning is performed according to the priority assigned to each frequency band combination.
9. The method according to claim 8, characterized in that The assigning a priority to each of the N frequency band combinations, and performing frequency scanning according to the priority assigned to each frequency band combination, includes: Determine a network mode and / or a receiving path occupancy condition supported by each of the N frequency band combinations; Each of the N frequency band combinations is added to a frequency band combination list of corresponding priority according to the network mode and / or the occupancy of the receiving path, and the frequency band combinations in the frequency band combination list are scanned according to the priority of the frequency band combination list; wherein there are multiple frequency band combination lists, and different frequency band combination lists have different priorities.
10. The method according to claim 9, wherein The frequency band combination list includes: a fourth frequency band combination list, a fifth frequency band combination list and a sixth frequency band combination list; the priority of the fourth frequency band combination list is higher than the priority of the fifth frequency band combination list, and the priority of the fifth frequency band combination list is higher than the priority of the sixth frequency band combination list; The adding each of the N frequency band combinations to a frequency band combination list of corresponding priority according to the network mode and / or the receiving path occupancy, and scanning the frequency band combinations in the frequency band combination list according to the priority of the frequency band combination list, comprises: For any frequency band combination among the N frequency band combinations, if the network mode supported by the frequency band combination is dual-SIM dual-channel and the receiving paths that the frequency band combination needs to occupy do not overlap, add the frequency band combination to the fourth frequency band combination list; When the network mode supported by the frequency band combination is dual-SIM dual-channel and the receiving paths that the frequency band combination needs to occupy overlap, adding the frequency band combination to the fifth frequency band combination list; When the frequency band combination does not support dual-SIM dual-channel, the frequency band combination is added to the sixth frequency band combination list.
11. The frequency sweeping method according to claim 10, wherein The scanning the frequency band combinations in the frequency band combination list according to the priority of the frequency band combination list includes: When the fourth frequency band combination list is not empty, frequency scanning is performed on the frequency band combinations in the fourth frequency band combination list; When the fourth frequency band combination list is empty and the fifth frequency band combination list is not empty, frequency scanning is performed on the frequency band combinations in the fifth frequency band combination list; When the fourth frequency band combination list and the fifth frequency band combination list are both empty, and the sixth frequency band combination list is not empty, frequency scanning is performed on the frequency band combinations in the sixth frequency band combination list.
12. A frequency sweeping device, characterized in that, include: A first acquisition module is configured to acquire N first frequency bands available to the first card configured in the terminal device when the first card of the terminal device searches the network and the network stationing state of the second card of the terminal device is to complete the cell stationing; wherein N is an integer greater than 0; A second acquisition module is configured to acquire a second frequency band where the second card resides; A control module, configured to obtain N frequency band combinations composed of the second frequency band and each of the first frequency bands, and perform frequency scanning on the N frequency band combinations according to the priorities of the N frequency band combinations.
13. A terminal device, characterized in that, Comprising: A processor; A memory for storing processor-executable instructions; Wherein, the processor is configured to: execute the executable instructions to implement the steps of the method according to any one of claims 1 to 11.
14. A computer-readable storage medium having computer program instructions stored thereon, characterized in that, When the program instructions are executed by the processor, the steps of the method according to any one of claims 1 to 11 are implemented.
15. A chip, characterized in that, Comprising a processor and an interface; the processor is used to read instructions to execute the method according to any one of claims 1 to 11.