CN113382451B - Frequency band switching method, device and equipment and readable storage medium - Google Patents

Frequency band switching method, device and equipment and readable storage medium Download PDF

Info

Publication number
CN113382451B
CN113382451B CN202110637976.XA CN202110637976A CN113382451B CN 113382451 B CN113382451 B CN 113382451B CN 202110637976 A CN202110637976 A CN 202110637976A CN 113382451 B CN113382451 B CN 113382451B
Authority
CN
China
Prior art keywords
frequency band
uwb
working frequency
available
current
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110637976.XA
Other languages
Chinese (zh)
Other versions
CN113382451A (en
Inventor
舒舢
马明烁
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Goertek Inc
Original Assignee
Goertek Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Goertek Inc filed Critical Goertek Inc
Priority to CN202110637976.XA priority Critical patent/CN113382451B/en
Publication of CN113382451A publication Critical patent/CN113382451A/en
Application granted granted Critical
Publication of CN113382451B publication Critical patent/CN113382451B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/24Reselection being triggered by specific parameters
    • H04W36/32Reselection being triggered by specific parameters by location or mobility data, e.g. speed data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/0005Control or signalling for completing the hand-off
    • H04W36/0083Determination of parameters used for hand-off, e.g. generation or modification of neighbour cell lists
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/0005Control or signalling for completing the hand-off
    • H04W36/0083Determination of parameters used for hand-off, e.g. generation or modification of neighbour cell lists
    • H04W36/00837Determination of triggering parameters for hand-off
    • H04W36/008375Determination of triggering parameters for hand-off based on historical data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/06Reselecting a communication resource in the serving access point

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)

Abstract

The application discloses a frequency band switching method, a frequency band switching device, frequency band switching equipment and a readable storage medium. When the working frequency band of the UWB module needs to be switched is determined, the current geographical position of the UWB module is determined firstly, then each available UWB frequency band corresponding to the area where the geographical position belongs is inquired, then the current working frequency band capable of completely covering at least one available UWB frequency band is determined based on the available UWB frequency bands and the historical working frequency band record table of the UWB module, and the UWB module is controlled to work in the current working frequency band, so that the UWB module can normally work in the area where the UWB module is located, the function failure of the UWB module is avoided, the available frequency bands of the area where the user frequently arrives can be referred, the available frequency bands of the area where the user frequently arrives are covered as far as possible by the current working frequency band, the frequent switching of the working frequency bands of the UWB module is avoided, and the user experience and the product universality are improved.

Description

Frequency band switching method, device and equipment and readable storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method, an apparatus, a device, and a readable storage medium for switching frequency bands.
Background
Some current mobile devices, such as watches and mobile phones, have UWB (Ultra Wide Band) function. UWB is a wireless carrier communication technology using a frequency bandwidth of 1GHz or more, and this technology needs to set a correct frequency band to use. Different countries have different frequency band limits, and the frequency band limits of each country have international standards.
At present, equipment with UWB function dies the use frequency band when being produced and delivered from a factory. If the user goes abroad with the device, it is likely that the function cannot be used, resulting in the UWB function of the device being disabled.
Therefore, how to avoid the failure of UWB function and improve the versatility thereof is a problem to be solved by those skilled in the art.
Disclosure of Invention
In view of the above, an object of the present invention is to provide a method, an apparatus, a device and a readable storage medium for switching frequency bands, so as to avoid UWB function failure and improve the versatility of the UWB function. The specific scheme is as follows:
in a first aspect, the present application provides a frequency band switching method, including:
if the UWB module needs to switch the working frequency band, acquiring the current geographic position of the UWB module;
inquiring each available UWB frequency band corresponding to the area to which the geographic position belongs;
determining a current working frequency band capable of completely covering at least one available UWB frequency band based on the available UWB frequency band and a historical working frequency band record table of the UWB module;
and controlling the UWB module to work at the current working frequency band.
Preferably, said determining a current operating band capable of completely covering at least one available UWB band based on said available UWB band and a history operating band record table of said UWB module comprises:
if a target available UWB frequency band capable of completely covering at least one historical working frequency band exists in each available UWB frequency band, determining the target available UWB frequency band as the current working frequency band; at least one historical working frequency band is recorded in the historical working frequency band recording table.
Preferably, the method further comprises the following steps:
if the target available UWB band does not exist in each of the available UWB bands, determining an optimal available UWB band among the available UWB bands as the current operating band, or determining any one of the available UWB bands among the available UWB bands as the current operating band.
Preferably, the determining a current operating frequency band capable of completely covering at least one available UWB frequency band based on the available UWB frequency band and the historical operating frequency band record table of the UWB module includes:
and if a target historical working frequency band capable of completely covering at least one available UWB frequency band exists in the historical working frequency band record table, determining the target historical working frequency band as the current working frequency band.
Preferably, if there are at least two target available UWB bands or at least two target historical operating bands, a band with the largest coverage area is selected as the current operating band from the at least two target available UWB bands or from the at least two target historical operating bands.
Preferably, said controlling said UWB module to operate in said current operating frequency band comprises:
and setting the working frequency of the UWB module within the range of the current working frequency band, and restarting the UWB module.
Preferably, after controlling the UWB module to operate in the current operating frequency band, the method further includes:
and recording the current working frequency band and the area to the historical working frequency band recording table.
Preferably, the recording the current operating frequency band and the area to the historical operating frequency band recording table includes:
and if the region is recorded in the historical working frequency band recording table, updating the historical working frequency band corresponding to the region in the historical working frequency band recording table to be the current working frequency band.
In a second aspect, the present application provides a frequency band switching device, including:
the acquisition module is used for acquiring the current geographic position of the UWB module if the UWB module needs to switch the working frequency band;
the inquiry module is used for inquiring each available UWB frequency band corresponding to the area to which the geographic position belongs;
the determining module is used for determining the current working frequency band capable of completely covering at least one available UWB frequency band based on the available UWB frequency band and the historical working frequency band record table of the UWB module;
and the switching module is used for controlling the UWB module to work in the current working frequency band.
In a third aspect, the present application provides an electronic device, comprising:
a memory for storing a computer program;
a processor configured to execute the computer program to implement the frequency band switching method disclosed in the foregoing.
In a fourth aspect, the present application provides a readable storage medium for storing a computer program, wherein the computer program, when executed by a processor, implements the frequency band switching method disclosed in the foregoing.
According to the above scheme, the present application provides a frequency band switching method, including: if the UWB module needs to switch the working frequency band, acquiring the current geographic position of the UWB module; inquiring each available UWB frequency band corresponding to the area to which the geographic position belongs; determining a current working frequency band capable of completely covering at least one available UWB frequency band based on the available UWB frequency band and a historical working frequency band record table of the UWB module; and controlling the UWB module to work at the current working frequency band.
Therefore, when the working frequency band of the UWB module needs to be switched is determined, the current geographical position of the UWB module is determined, then each available UWB frequency band corresponding to the area where the geographical position belongs is inquired, the current working frequency band which can completely cover at least one available UWB frequency band is determined based on the available UWB frequency bands and the historical working frequency band record table of the UWB module, and the UWB module is controlled to work in the current working frequency band, so that the UWB module can normally work in the area where the UWB module is located. The current working frequency band of the UWB module is determined based on the historical working frequency band record table and the available UWB frequency band of the area where the UWB module is located, so that normal use of the UWB module in the current area can be guaranteed, UWB function failure is avoided, the available frequency band of the area where a user frequently arrives can be referred to, the available frequency band of the area where the user frequently arrives is covered by the current working frequency band as far as possible, frequent switching of the working frequency band of the UWB module is avoided, and user experience and product universality are improved.
Correspondingly, the frequency band switching device, the equipment and the readable storage medium provided by the application also have the technical effects.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the embodiments or the prior art descriptions will be briefly described below, it is obvious that the drawings in the following description are only the embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a flowchart of a frequency band switching method disclosed in the present application;
FIG. 2 is a schematic diagram of UWB frequency band usage intervals in different countries as disclosed in the present application;
FIG. 3 is a flow chart of a method for determining a current operating frequency band of a UWB module disclosed in the present application;
fig. 4 is a schematic diagram of a frequency band switching apparatus disclosed in the present application;
fig. 5 is a schematic diagram of an electronic device disclosed in the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application without making any creative effort belong to the protection scope of the present application.
At present, equipment with UWB function dies the use frequency band when being produced and delivered from the factory. If the user goes abroad with the device, it is likely that the function cannot be used, resulting in the UWB function of the device being disabled. Therefore, the frequency band switching scheme is provided, the current working frequency band can be determined based on the historical working frequency band record table of the UWB module and the available UWB frequency band of the area where the UWB module is located, normal use of the UWB module in the current area can be guaranteed, UWB function failure is avoided, the available frequency band of the area where a user frequently arrives can be referred to, the available frequency band of the area where the user frequently arrives is covered by the current working frequency band as far as possible, frequent switching of the working frequency band of the UWB module is avoided, and user experience and product universality are improved.
Referring to fig. 1, an embodiment of the present application discloses a frequency band switching method, including:
s101, if the UWB module needs to switch the working frequency range, the current geographic position of the UWB module is obtained.
The current geographic position of the UWB module may be determined by using a positioning technology such as GPS, a network traffic position used by the UWB module, or other manners. And judging whether the UWB module needs to switch the working frequency band, wherein the working frequency band can be manually selected by a user or automatically detected. If the UWB module needs to switch the working frequency band, it indicates that the working frequency band of the current UWB module cannot be used in the current area, and there are two situations: (1) the user does not use the UWB module in the current area; (2) A user uses the UWB module in the current area, but switches the frequency band to the frequency band which can not be used in the current area after going to another area. The automatic detection can be realized by detecting whether the two conditions exist.
And S102, inquiring each available UWB frequency band corresponding to the region to which the geographic position belongs.
The region may be understood as a country, and different countries have different frequency band limitations, which may be referred to in fig. 2. Referring to fig. 2, the available UWB bands corresponding to different countries are different, and one country may correspond to a plurality of available UWB bands. The circles in fig. 2 correspond to DW1000 channels.
Accordingly, the available UWB band of each country can be recorded correspondingly, thereby forming a record table, and a specific record table can be referred to table 1.
TABLE 1
State of the country Optimum frequency band Available UWB frequency band 2 Available UWB frequency band x
A A1 A2 Ax
B B1 B2 Bx
It can be seen that each country corresponds to a commonly used optimal frequency band, which is specified in the international usage standard, and also corresponds to other available UWB frequency bands.
S103, determining the current working frequency band capable of completely covering at least one available UWB frequency band based on the available UWB frequency band and the historical working frequency band record table of the UWB module.
The historical operating frequency band record table can refer to table 2.
TABLE 2
Record serial number State of the country Frequency band Comprehensive frequency band
1 A A1 ——
2 B B1 B A1+B1
In table 2, when the user uses the UWB module in country a, the frequency band A1 is used; when the user uses the UWB module in the country B, the frequency band B is used A1+B1 Or B1. Wherein, B A1+B1 Covers A1 and B1, so that if the operating frequency of the UWB module is set at frequency band B A1+B1 In addition, when the user uses the UWB module in the country A or B, the working frequency of the UWB module does not need to be adjusted, so that frequent switching of frequency bands can be avoided.
Wherein "completely covering" means: any available UWB band lies between the current operating bands, that is: any available UWB band is a subset of the current operating band. Such as: the relation of the interval [1,2] to the interval [0,3], wherein the interval [0,3] completely covers the interval [1,2]. In determining the current operating frequency band, the international standards for UWB need to be followed.
And S104, controlling the UWB module to work in the current working frequency band.
In one embodiment, controlling the UWB module to operate in the current operating frequency band comprises: and setting the working frequency of the UWB module within the range of the current working frequency band, and restarting the UWB module. The UWB module may be disposed on any mobile device, and thus, when the UWB module is restarted, the corresponding mobile device is restarted. When the mobile device is restarted, corresponding prompt information can be popped up, so that a user can confirm whether the device is restarted or not. After the mobile device is restarted, the UWB module can work in the current working frequency band.
In a specific embodiment, after controlling the UWB module to operate in the current operating frequency band, the method further includes: and recording the current working frequency band and the area to a historical working frequency band recording table. Referring to table 2, the areas are recorded corresponding to the respective frequency bands, and one area may record a plurality of frequency bands corresponding thereto. If the current recorded area is recorded in the historical working frequency band recording table, updating the frequency band record corresponding to the corresponding area; otherwise, a record is newly added in the historical working frequency band record table. Therefore, in a specific embodiment, the recording the current operating frequency band and the area to the historical operating frequency band recording table includes: and if the area is recorded in the historical working frequency band recording table, updating the historical working frequency band corresponding to the current area in the historical working frequency band recording table to be the current working frequency band.
The frequency range covered by the frequency band can be marked in the comprehensive frequency band corresponding to each region, so as to determine which regions the frequency band can be used in. Such as: "B" in Table 2 A1+B1 "means: the frequency band covers two frequency bands of A1 and B1, and can be used in two countries of A and B.
Therefore, when the working frequency band of the UWB module needs to be switched is determined, the current geographical position of the UWB module is determined, then the available UWB frequency band corresponding to the area where the geographical position belongs is inquired, the current working frequency band capable of completely covering at least one available UWB frequency band is determined based on the available UWB frequency band and the historical working frequency band record table of the UWB module, and the UWB module is controlled to work in the current working frequency band, so that the UWB module can work normally in the area where the UWB module is located. The current working frequency band of the UWB module is determined based on the historical working frequency band record table and the available UWB frequency band of the area where the UWB module is located, so that normal use of the UWB module in the current area can be guaranteed, UWB function failure is avoided, the available frequency band of the area where a user frequently arrives can be referred to, the available frequency band of the area where the user frequently arrives is covered by the current working frequency band as far as possible, frequent switching of the working frequency band of the UWB module is avoided, and user experience and product universality are improved.
Based on the above embodiments, it should be noted that, in the case that the current operating band completely covers any available UWB band, the current operating band may also cover the historical operating band, such as "B" in table 2 A1+B1 ”。
In one embodiment, therefore, determining a current operating band that completely covers at least one available UWB band based on the available UWB bands and a historical operating band record of the UWB module comprises: if a target available UWB frequency band capable of completely covering at least one historical working frequency band exists in each available UWB frequency band, determining the target available UWB frequency band as a current working frequency band; at least one historical working frequency band is recorded in the historical working frequency band recording table. This is the first way.
For example: there are 3 available UWB frequency bands corresponding to the area to which the geographic location belongs, which are: [1000,2000], [3000,4000], [5000,6000], and the historical operating band record table records: [5500,6000], then the available UWB band [5000,6000] may be selected as the target available UWB band, i.e.: it is taken as the current working frequency band. Because the [5000,6000] can completely cover the history operation frequency band of [5500,6000] with the UWB frequency band.
Therefore, a frequency band which has the largest coverage range and completely covers one or more historical working frequency bands can be selected from all available UWB frequency bands to serve as the current working frequency band, so that the current working frequency band can cover the available frequency band of the region where the user frequently arrives as far as possible, and the frequent switching of the working frequency bands of the UWB module is avoided.
The historical operating frequency band can be preferentially selected from one or more recently used frequency bands so as to improve the selection efficiency. Of course, the whole historical operating frequency band recording table can be traversed for selection.
If the historical operating frequency band which can be completely covered by a certain available UWB frequency band is not found in the historical operating frequency band record table (that is, no target available UWB frequency band exists in all available UWB frequency bands), that is, if no target available UWB frequency band exists in each available UWB frequency band, determining the optimal available UWB frequency band in each available UWB frequency band as the current operating frequency band, or determining any available UWB frequency band in each available UWB frequency band as the current operating frequency band. At this time, the selected current operating frequency band may be valid only for the current region, and thus the universality needs to be improved. Each region corresponds to a commonly used optimal UWB band, which is specified in international usage standards.
Of course, in the case where there is only one available UWB band, there is no choice to select the current operating band, and therefore in one embodiment, the determination of the current operating band that can completely cover at least one available UWB band is based on the available UWB bands and the historical operating band log of the UWB module, and includes: if there is only one available UWB band, the available UWB band is determined as the current operating band. At this time, the selected current operating frequency band may be valid only for the current region, and thus the universality needs to be improved.
In one embodiment, determining a current operating band that completely covers at least one available UWB band based on the available UWB bands and a historical operating band record of the UWB module comprises: and if the historical working frequency band record table has a target historical working frequency band which can completely cover at least one available UWB frequency band, determining the target historical working frequency band as the current working frequency band. This is the second way.
For example: there are 3 available UWB frequency bands corresponding to the area to which the geographic location belongs, respectively: [1000,2000], [3000,4000], [5000,6000], and the history operating band record table records: [4000,6000], then the historical operating band [4000,6000] can be selected as the target historical operating band, i.e.: it is taken as the current working frequency band. Because the historical operating band of [4000,6000] completely covers the available UWB band of [5000,6000 ].
Because there are two kinds of situations when the UWB module needs to switch the working frequency band: (1) the user has not used the UWB module in the present area; (2) The user uses the UWB module in the current area, but switches the frequency band to the frequency band which can not be used in the current area after going to another area. Therefore, the current operating frequency band can be obtained by directly querying the historical operating frequency band record table.
If a target historical operating band that can completely cover at least one available UWB band is found in the historical operating band record table, there are two cases: (1) The user does not use the UWB module in the current area, but the frequency band used by the user in other areas can exactly completely cover one or more available UWB frequency bands in the current area; (2) The user uses the UWB module in the current area, so the historical working frequency band corresponding to the current area can be directly checked in the historical working frequency band record table.
Therefore, in a specific embodiment, the determining, as the current operating frequency band, a target historical operating frequency band in the historical operating frequency band record table, which can completely cover at least one available UWB frequency band, includes: and inquiring the historical working frequency band corresponding to the region in the historical working frequency band record table, and determining the historical working frequency band as the current working frequency band.
Based on the above determination, the current operating band may be: any available UWB frequency band (selected according to the first mode) corresponding to the current region can also be any historical working frequency band (selected according to the second mode), but the finally selected current working frequency band preferentially covers a wider frequency range, so that the available frequency band of the region where the user frequently arrives is covered as far as possible, and the frequent switching of the working frequency band of the UWB module is avoided.
If the current working frequency band can be selected according to the first mode and the second mode, the current working frequency band can be determined by randomly selecting one mode, or a plurality of current working frequency bands (including at least one target historical working frequency band and at least one target available UWB frequency band) can be determined according to the first mode and the second mode, and then one frequency band with the largest coverage area is selected as the current working frequency band.
In one embodiment, if there are at least two target available UWB bands and/or target historical operating bands, the band with the largest coverage area is selected as the current operating band from the at least two target available UWB bands and/or from the at least two target historical operating bands.
The execution sequence of several ways of determining the current operating frequency band may specifically refer to fig. 3, and of course, the execution sequence illustrated in fig. 3 may also be adjusted according to the actual situation. Fig. 3 specifically includes the following steps:
s301, inquiring whether a current region exists in a historical working frequency band recording table; if yes, executing S302; otherwise, executing S303;
s302, determining the historical working frequency band of the current area recorded in the historical working frequency band recording table as the current working frequency band;
s303, judging whether a target available UWB frequency band capable of completely covering some historical working frequency bands exists or not; if yes, go to S304; otherwise, S305 is executed;
s304, selecting a target available UWB frequency band as a current working frequency band;
s305, selecting the optimal available UWB frequency band as the current working frequency band or randomly selecting one available UWB frequency band as the current working frequency band.
Here, S301 and S302 may be deleted, and S303, S304, and S305 may be directly executed. After performing S303, S304 and S305, the determined current operating frequency band is recorded to the historical operating frequency band recording table for use the next time S303 is performed. In S303, the "certain historical operating bands" preferentially select one or more of the historical operating bands that are used most recently.
The frequency band switching scheme provided by the present application is introduced below with reference to a specific scenario, and first, the available UWB frequency bands are recorded, as shown in table 1, and an available UWB frequency band corresponding to each country code is recorded by using one table. The country code is specified by the UWB international standard. Each country corresponds to an international code.
When the frequency band needs to be switched, equipment is firstly positioned, and the current country is confirmed. If the UWB module is arranged in the mobile equipment using the android system, the positioning function can be realized based on a special API provided by the android system, and thus a country code can be positioned. All available UWB bands can be obtained by looking up table 1.
Then, selecting the current working frequency band:
1. if there is only one available UWB band, that band is selected and no history is made. Since the frequency band may be valid only for the current area and cannot cover other areas, it does not contribute to enlarging the coverage area and thus may not be recorded.
2. If there are multiple available UWB bands, the selection may be based on a country code query history. And starting to search from the latest record in the history record, and if the comprehensive frequency band corresponding to the related country code can be searched, selecting the comprehensive frequency band to directly set. And if the comprehensive frequency band corresponding to the country code of the related country code is not searched, screening the frequency band containing the latest N records according to the history record, and selecting the current working frequency band.
For example: when the user arrives at country B, if it is detected that only one frequency band B1 can be used in country B, B1 is set and recording is not performed. If it is detected that a plurality of frequency bands such as B1 … Bx and the like can be used in the country B, the table 2 is inquired, and the frequency band Bn (namely B1 including A, B) is screened from the B1 … Bx by combining the latest N records (assuming that only one record in the country A exists in the current table 2) (namely, the frequency band Bn in the country B is screened from the B1 … Bx A1+B1 ) And setting is carried out, and history records are added after the setting is finished. It can be seen that B A1+B1 Not only covers A, B, but also is the corresponding available UWB frequency band of B country. If the user returns from country B to country a, the UWB functionality of the mobile device will not fail.
When a user first arrives at country C and a plurality of available UWB frequency bands can be selected in country C, the available UWB frequency bands including three countries A, B, C are preferentially selected and set according to the history. If there is no available UWB band encompassing the three countries A, B, C, then the most recently arrived country is selected for coverage. If the user is from A to C, the available UWB band is selected to encompass A, C. If the user is from B to C, the available UWB band is selected to encompass B, C. If the two countries cannot be covered, the optimal frequency band is selected from a plurality of available UWB frequency bands of C country, or randomly selected.
After the frequency band switching is completed, the restarting equipment can take effect. The user may be prompted to manually restart the device here. Therefore, the selection of the available UWB frequency band covering more countries can reduce the equipment restarting frequency, avoid frequent switching of the frequency band, and avoid function failure caused by no switching. The scheme can automatically switch the UWB frequency band, can ensure that the UWB function of the mobile equipment can normally operate under the condition that the user is out of country, and cannot fail.
In the following, a frequency band switching device provided in an embodiment of the present application is introduced, and a frequency band switching device described below and a frequency band switching method described above may refer to each other.
Referring to fig. 4, an embodiment of the present application discloses a frequency band switching device, including:
an obtaining module 401, configured to obtain a current geographic location of the UWB module if the UWB module needs to switch the working frequency band;
an inquiry module 402, configured to inquire each available UWB frequency band corresponding to an area to which the geographic location belongs;
a determining module 403, configured to determine, based on the available UWB frequency bands and a historical operating frequency band record table of the UWB module, a current operating frequency band that can completely cover at least one available UWB frequency band;
and a switching module 404, configured to control the UWB module to operate in the current operating frequency band.
In a specific embodiment, the determining module is specifically configured to:
if a target available UWB frequency band capable of completely covering at least one historical working frequency band exists in each available UWB frequency band, determining the target available UWB frequency band as a current working frequency band; at least one historical working frequency band is recorded in the historical working frequency band recording table.
In one embodiment, the determining module is further configured to:
and if the target available UWB frequency band does not exist in each available UWB frequency band, determining the optimal available UWB frequency band in each available UWB frequency band as the current working frequency band, or determining any available UWB frequency band in each available UWB frequency band as the current working frequency band.
In a specific embodiment, the determining module is specifically configured to:
and if the historical working frequency band record table has a target historical working frequency band which can completely cover at least one available UWB frequency band, determining the target historical working frequency band as the current working frequency band.
In one embodiment, if there are at least two target available UWB bands or at least two target historical operating bands, the band with the largest coverage area is selected as the current operating band from the at least two target available UWB bands or from the at least two target historical operating bands.
In a specific embodiment, the switching module is specifically configured to:
and setting the working frequency of the UWB module within the range of the current working frequency band, and restarting the UWB module.
In a specific embodiment, the method further comprises the following steps:
and the recording module is used for recording the current working frequency band and the area to the historical working frequency band recording table.
In a specific embodiment, the recording module is specifically configured to:
and if the area is recorded in the historical working frequency band recording table, updating the historical working frequency band corresponding to the area in the historical working frequency band recording table to be the current working frequency band.
For more specific working processes of each module and unit in this embodiment, reference may be made to corresponding contents disclosed in the foregoing embodiments, and details are not described here again.
Therefore, the embodiment provides a frequency band switching device, which not only can ensure normal use of the UWB module in the current region and avoid UWB function failure, but also can refer to the available frequency band of the region where the user frequently arrives to enable the current working frequency band to cover the available frequency band of the region where the user frequently arrives as much as possible, thereby avoiding frequent switching of the working frequency band of the UWB module and improving user experience and product universality.
In the following, an electronic device provided by an embodiment of the present application is introduced, and the electronic device described below and the frequency band switching method and apparatus described above may refer to each other.
Referring to fig. 5, an embodiment of the present application discloses an electronic device, including:
a memory 501 for storing a computer program;
a processor 502 for executing the computer program to implement the method disclosed in any of the embodiments above.
In this embodiment, the electronic device may be a mobile phone, a watch, a VR device, an AR device, a bracelet, or the like that includes a UWB module.
A readable storage medium provided in an embodiment of the present application is introduced below, and the readable storage medium described below and the frequency band switching method, apparatus, and device described above may be referred to with each other.
A readable storage medium is used for storing a computer program, wherein the computer program, when executed by a processor, implements the frequency band switching method disclosed in the foregoing embodiment. For the specific steps of the method, reference may be made to the corresponding contents disclosed in the foregoing embodiments, which are not described herein again.
References to "first," "second," "third," "fourth," etc. (if any) in this application are intended to distinguish between similar elements and not necessarily to describe a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that the embodiments described herein may be practiced otherwise than as specifically illustrated or described herein. Furthermore, the terms "comprises" and "comprising," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, or apparatus.
It should be noted that the descriptions relating to "first", "second", etc. in this application are for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In addition, technical solutions between the embodiments may be combined with each other, but must be based on the realization of the technical solutions by a person skilled in the art, and when the technical solutions are contradictory to each other or cannot be realized, such a combination should not be considered to exist, and is not within the protection scope claimed in the present application.
The embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same or similar parts among the embodiments are referred to each other.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of readable storage medium known in the art.
The principle and the embodiment of the present application are explained by applying specific examples, and the above description of the embodiments is only used to help understand the method and the core idea of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, the specific implementation manner and the application scope may be changed, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (9)

1. A frequency band switching method is characterized by comprising the following steps:
if the UWB module needs to switch the working frequency band, acquiring the current geographic position of the UWB module;
inquiring each available UWB frequency band corresponding to the area to which the geographic position belongs;
determining a current working frequency band capable of completely covering at least one available UWB frequency band based on the available UWB frequency band and a historical working frequency band record table of the UWB module;
controlling the UWB module to work at the current working frequency band;
wherein determining a current operating frequency band that can completely cover at least one available UWB frequency band based on the available UWB frequency band and a historical operating frequency band record table of the UWB module comprises:
if a target available UWB frequency band capable of completely covering at least one historical working frequency band exists in each available UWB frequency band, determining the target available UWB frequency band as the current working frequency band; at least one historical working frequency band is recorded in the historical working frequency band recording table.
2. The method of claim 1, further comprising:
if the target available UWB band does not exist in each of the available UWB bands, determining an optimal available UWB band among the available UWB bands as the current operating band, or determining any one of the available UWB bands among the available UWB bands as the current operating band.
3. The method of claim 1, wherein determining a current operating band that can completely cover at least one available UWB band based on the available UWB bands and a historical operating band log of the UWB module comprises:
and if a target historical working frequency band capable of completely covering at least one available UWB frequency band exists in the historical working frequency band record table, determining the target historical working frequency band as the current working frequency band.
4. The method of claim 1 or 3, further comprising:
and if the number of the target available UWB frequency bands or the target historical working frequency bands is at least two, selecting the frequency band with the largest coverage range from at least two target available UWB frequency bands or at least two target historical working frequency bands as the current working frequency band.
5. The method according to any one of claims 1-3, wherein after controlling the UWB module to operate in the current operating frequency band, the method further comprises:
and recording the current working frequency band and the area to the historical working frequency band recording table.
6. The method of claim 5, wherein the recording the current operating band and the region to the historical operating band recording table comprises:
and if the region is recorded in the historical working frequency band recording table, updating the historical working frequency band corresponding to the region in the historical working frequency band recording table to be the current working frequency band.
7. A frequency band switching apparatus, comprising:
the acquisition module is used for acquiring the current geographic position of the UWB module if the UWB module needs to switch the working frequency band;
the inquiry module is used for inquiring each available UWB frequency band corresponding to the area to which the geographic position belongs;
the determining module is used for determining the current working frequency band capable of completely covering at least one available UWB frequency band based on the available UWB frequency band and the historical working frequency band record table of the UWB module;
the switching module is used for controlling the UWB module to work in the current working frequency band;
wherein the determining module is specifically configured to:
if a target available UWB frequency band capable of completely covering at least one historical working frequency band exists in each available UWB frequency band, determining the target available UWB frequency band as the current working frequency band; at least one historical working frequency band is recorded in the historical working frequency band recording table.
8. An electronic device, comprising:
a memory for storing a computer program;
a processor for executing the computer program to implement the method of any one of claims 1 to 6.
9. A readable storage medium for storing a computer program, wherein the computer program when executed by a processor implements the method of any one of claims 1 to 6.
CN202110637976.XA 2021-06-08 2021-06-08 Frequency band switching method, device and equipment and readable storage medium Active CN113382451B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110637976.XA CN113382451B (en) 2021-06-08 2021-06-08 Frequency band switching method, device and equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110637976.XA CN113382451B (en) 2021-06-08 2021-06-08 Frequency band switching method, device and equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN113382451A CN113382451A (en) 2021-09-10
CN113382451B true CN113382451B (en) 2023-01-24

Family

ID=77576557

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110637976.XA Active CN113382451B (en) 2021-06-08 2021-06-08 Frequency band switching method, device and equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN113382451B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107548117A (en) * 2016-06-26 2018-01-05 联芯科技有限公司 Network selection method and terminal device after a kind of terminal device off-grid

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008062249A1 (en) * 2006-11-23 2008-05-29 Nokia Corporation Assisted determination of free and blocked channels
US20140094178A1 (en) * 2012-10-02 2014-04-03 Suat R. Eskicioglu Proactive, location-based trigger for handover and redirection procedures
CN107360603A (en) * 2017-08-16 2017-11-17 努比亚技术有限公司 A kind of network frequency band switching method, terminal and computer-readable recording medium
WO2019071537A1 (en) * 2017-10-12 2019-04-18 深圳市大疆创新科技有限公司 Wireless compliance implementation method for unmanned aerial vehicle, unmanned aerial vehicle, terminal device, and system
CN107566985B (en) * 2017-10-20 2020-03-31 维沃移动通信有限公司 Method and device for determining main SIM card of mobile terminal
CN109548154A (en) * 2018-11-29 2019-03-29 Tcl移动通信科技(宁波)有限公司 Mobile terminal Frequency Band Selection processing method, system and storage medium
CN110933744B (en) * 2019-12-13 2023-05-26 Oppo广东移动通信有限公司 Communication configuration selection method and related product

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107548117A (en) * 2016-06-26 2018-01-05 联芯科技有限公司 Network selection method and terminal device after a kind of terminal device off-grid

Also Published As

Publication number Publication date
CN113382451A (en) 2021-09-10

Similar Documents

Publication Publication Date Title
JP3478283B2 (en) Mobile communication terminal
JP5902320B2 (en) System and method for determining noise level in a wireless communication environment
US6282431B1 (en) Time correcting method and portable remote telephone terminal in which time is corrected in accordance with such method
EP1645144B1 (en) Obtaining service when in a no-coverage area of a communication system
US7677437B2 (en) Methods for determining operational settings and related devices
US20130217406A1 (en) Wireless device and communication method
EP2404439B1 (en) Position monitoring for a coverage area
CN104335646A (en) Methods and apparatus for location-based parametric control
US20140323179A1 (en) Method of Determining a Location of a Mobile Device and Method of Managing a List for Use in Such a Method
RU2011106124A (en) IMPROVEMENT OF THE CHOICE OF PREFERRED SYSTEMS FOR MULTI-MODE WIRELESS SYSTEMS
CN104380808A (en) Determining availability of an access network
JP4305531B2 (en) Wireless communication apparatus, wireless communication system, wireless communication method, and program
WO2016101547A1 (en) Access processing method and device
JP2006352561A (en) System and method for security automatic control
CN112673659A (en) Method and electronic device for automatically switching between multiple profiles in an ESIM
WO2012074791A2 (en) Location based idle mobile frequency selection
WO2008062249A1 (en) Assisted determination of free and blocked channels
CN113382451B (en) Frequency band switching method, device and equipment and readable storage medium
US8995979B2 (en) MEID-based paging to reach de-activated telematics modules
CN103686747B (en) A kind of method and apparatus that subsystem is registered in the database and system
US9078170B2 (en) System and method for network discovery
CN108076453B (en) Network access setting method, system and storage medium based on mobile terminal
CN113055982A (en) Network access method, network access device and mobile terminal
US20060105778A1 (en) Frequency allocation in a radio system
US20170127229A1 (en) Method and apparatus for searching mobile network

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant