CN113645353A - Method, device, terminal and storage medium for automatically adjusting communication control parameters - Google Patents
Method, device, terminal and storage medium for automatically adjusting communication control parameters Download PDFInfo
- Publication number
- CN113645353A CN113645353A CN202110912176.4A CN202110912176A CN113645353A CN 113645353 A CN113645353 A CN 113645353A CN 202110912176 A CN202110912176 A CN 202110912176A CN 113645353 A CN113645353 A CN 113645353A
- Authority
- CN
- China
- Prior art keywords
- air pressure
- terminal
- information
- altitude change
- determined
- 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.)
- Granted
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72448—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
- H04M1/72454—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
Landscapes
- Engineering & Computer Science (AREA)
- Environmental & Geological Engineering (AREA)
- Human Computer Interaction (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
- Telephone Function (AREA)
Abstract
The disclosure relates to a method, a device, a terminal and a storage medium for automatically adjusting communication control parameters. The method comprises the following steps: if the terminal is determined to be in the walking state within a first set time length before entering the height change phase and in the walking state within a second set time length after finishing the height change phase, determining that the terminal enters the set scene or leaves the set scene; adjusting communication control parameters according to the fact that the terminal enters a set scene or leaves the set scene; wherein the communication control parameter is used to adjust the communication signal quality. In the method, the terminal can be determined to enter a set scene (such as a subway station or a ground depot) or leave the set scene according to the state of the terminal, so that communication control parameters are adjusted to adjust the quality of communication signals, the quality of the communication signals of the terminal can be better ensured to be in a better state all the time, and the use experience of a user is improved.
Description
Technical Field
The present disclosure relates to the field of terminal technologies, and in particular, to a method and an apparatus for automatically adjusting communication control parameters, a terminal, and a storage medium.
Background
When people use terminals such as mobile phones in some special scenes (such as subway stations, courtyards and the like), the situation that communication signals are weak is often met, the use of people is greatly influenced, and the experience is poor.
Disclosure of Invention
To overcome the problems in the related art, the present disclosure provides a method, an apparatus, a terminal, and a storage medium for automatically adjusting communication control parameters.
According to a first aspect of the embodiments of the present disclosure, there is provided a method for automatically adjusting communication control parameters, which is applied to a terminal, the method including:
determining that the terminal enters a set scene or leaves the set scene if it is determined that the terminal is in a step state within a first set time period before entering the altitude change phase and in a step state within a second set time period after ending the altitude change phase;
adjusting communication control parameters according to the fact that the terminal enters a set scene or leaves the set scene; wherein the communication control parameter is used to adjust the communication signal quality.
Alternatively,
the determining that the terminal is subjected to the altitude change phase comprises:
judging whether the terminal enters a height change state or not;
if so, judging whether the terminal finishes the height change state or not after a preset time length;
and if the terminal is determined to end the altitude change state, determining that the terminal is subjected to the altitude change stage.
Optionally, the determining whether the terminal enters the altitude change state includes:
acquiring first altitude change information and first air pressure information, wherein the first altitude change information comprises a plurality of altitude change marks within a third set duration with a first time as an end time, and the first air pressure information comprises air pressure information within the third set duration with the first time as the end time;
if it is determined that the number of first altitude change identifiers in the first altitude change information meets a first set threshold and the difference value between the maximum air pressure value and the minimum air pressure value in the first air pressure information meets a second set threshold, determining that the terminal enters the altitude change state at the first moment; the first height change mark is an upward mark representing that the terminal moves vertically upwards or a downward mark representing that the terminal moves vertically downwards.
Optionally, the determining whether the terminal enters the altitude change state further includes:
if it is determined that the number of first altitude change identifiers in the first altitude change information does not meet a first set threshold, re-judging whether the terminal enters the altitude change state or not after a first interval duration; and/or the presence of a gas in the gas,
and if the difference value between the maximum air pressure value and the minimum air pressure value in the first air pressure information is determined not to meet a second set threshold, re-judging whether the terminal enters the height change state or not after a first interval duration.
Optionally, the determining whether the terminal ends the altitude change state includes:
acquiring second altitude change information and second air pressure information, wherein the second altitude change information comprises a plurality of altitude change marks within a fourth set duration taking the second moment as the ending moment, and the second air pressure information comprises air pressure information within the fourth set duration taking the second moment as the inspiration moment;
if it is determined that the number of second altitude change identifiers in the second altitude change information meets a third set threshold and it is determined that the difference between the maximum air pressure value and the minimum air pressure value in the second air pressure information does not meet a fourth set threshold, determining that the terminal ends the altitude change state; and the second height change identifier refers to an invariant identifier representing that the terminal is vertically static.
Optionally, the determining whether the terminal ends the altitude change state further includes:
if it is determined that the number of second altitude change identifiers in the second altitude change information does not meet the third set threshold, re-judging whether the terminal ends the altitude change state after a second interval duration; and/or the presence of a gas in the gas,
and if the difference value between the maximum air pressure value and the minimum air pressure value in the second air pressure information is determined to meet the fourth set threshold, re-judging whether the terminal finishes the height change state or not after the second interval duration.
Optionally, the method further comprises:
taking the third interval duration as a period, and acquiring periodic air pressure information; the periodic air pressure information refers to air pressure information within the third interval duration;
if the result of subtracting the air pressure value at the starting moment from the air pressure value at the corresponding period ending moment in the periodic air pressure information is determined to be greater than or equal to a first set value, determining that the height change identifier of the periodic air pressure information is an upward identifier; and/or if the result of subtracting the air pressure value at the starting moment from the air pressure value at the corresponding period ending moment in the periodic air pressure information is less than or equal to a second set value, determining that the height change identifier of the periodic air pressure information is a downward identifier; and/or if the result of subtracting the air pressure value at the starting time from the air pressure value at the ending time of the corresponding period in the periodic air pressure information is larger than a second set value and smaller than the first set value, determining that the height change identifier of the periodic air pressure information is an unchanged identifier.
Optionally, the method further comprises:
acquiring first motion information within a first set time length before the height change stage is determined to be entered, wherein the first motion information comprises a plurality of motion state identifiers, and the motion state identifiers comprise walking identifiers representing walking;
if the number of the walking marks in the first motion information is determined to meet a fifth set threshold, determining that the walking marks are in the walking state within a first set time length before entering the height change stage; and/or, if it is determined that the number of the walking marks in the first motion information does not meet the fifth set threshold, re-judging whether the terminal enters the altitude change state after a fourth interval duration.
Optionally, the determining that the vehicle is in a walking state within a first set time period before entering the altitude change phase includes:
acquiring second motion information within a second set time length after the height change phase is determined to be ended, wherein the second motion information comprises a plurality of motion state identifiers, and the motion state identifiers comprise walking identifiers representing walking;
if the number of the walking marks in the second motion information is determined to meet a sixth set threshold, determining that the walking marks are in the walking state within a second set time length after the height change stage is ended; and/or, if it is determined that the number of the walking identifiers in the second motion information does not meet the sixth set threshold, re-judging whether the terminal enters the altitude change state after a fifth interval duration.
Optionally, the determining that the vehicle is in a walking state within a first set time period before entering the altitude change phase includes:
taking the sixth interval duration as a period, and acquiring periodic step counting information; the cycle step counting information refers to step counting information in the sixth interval duration;
if the step number represented by the periodic step counting information is determined to be greater than or equal to the set step number, determining that the motion state identifier of the periodic step counting information is the walking identifier; and/or if the number of steps represented by the periodic step counting information is smaller than the set number of steps, determining that the motion state identifier of the periodic step counting information is a static identifier representing static.
Optionally, before the determining that the terminal enters or leaves the setting scene, the method further includes:
and determining that the terminal is in a set posture in the height change stage, wherein the set posture comprises a vertical posture and/or a handheld posture.
Optionally, the adjusting the communication control parameter according to whether the terminal enters the setting scene or leaves the setting scene includes:
if the terminal is determined to enter the set scene, the communication signal quality of the terminal is enhanced by adjusting the communication control parameters; and/or the presence of a gas in the gas,
and if the terminal is determined to leave the set scene, weakening the communication signal quality of the terminal by adjusting the communication control parameters.
Optionally, the setting scene includes a subway station and/or a ground bank.
According to a second aspect of the embodiments of the present disclosure, there is provided an apparatus for automatically adjusting communication control parameters, which is applied to a terminal, the apparatus including:
the determining module is used for determining that the terminal enters a set scene or leaves the set scene if the terminal is determined to be in a walking state within a first set time length before entering the altitude change phase and within a second set time length after finishing the altitude change phase;
the adjusting module is used for adjusting communication control parameters according to the fact that the terminal enters a set scene or leaves the set scene; wherein the communication control parameter is used to adjust the communication signal quality.
Optionally, the determining module is specifically configured to:
judging whether the terminal enters a height change state or not;
if so, judging whether the terminal finishes the height change state or not after a preset time length;
and if the terminal is determined to end the altitude change state, determining that the terminal is subjected to the altitude change stage.
Optionally, the apparatus further comprises an obtaining module, wherein,
the acquiring module is used for acquiring first altitude change information and first air pressure information, wherein the first altitude change information comprises a plurality of altitude change identifiers within a third set duration with a first time as an ending time, and the first air pressure information comprises air pressure information within the third set duration with the first time as the ending time;
the determining module is configured to determine that the terminal enters the altitude change state at the first time if it is determined that the number of first altitude change identifiers in the first altitude change information satisfies a first set threshold and it is determined that a difference between a maximum air pressure value and a minimum air pressure value in the first air pressure information satisfies a second set threshold; the first height change mark is an upward mark representing that the terminal moves vertically upwards or a downward mark representing that the terminal moves vertically downwards.
Optionally, the determining module is further configured to:
if it is determined that the number of first altitude change identifiers in the first altitude change information does not meet a first set threshold, re-judging whether the terminal enters the altitude change state or not after a first interval duration; and/or the presence of a gas in the gas,
and if the difference value between the maximum air pressure value and the minimum air pressure value in the first air pressure information is determined not to meet a second set threshold, re-judging whether the terminal enters the height change state or not after a first interval duration.
Optionally, the apparatus further comprises an obtaining module, wherein,
the acquiring module is used for acquiring second altitude change information and second air pressure information, wherein the second altitude change information comprises a plurality of altitude change identifiers within a fourth set duration taking the second moment as the ending moment, and the second air pressure information comprises air pressure information within the fourth set duration taking the second moment as the inspiration moment;
the determining module is further configured to determine that the terminal ends the altitude change state if it is determined that the number of the second altitude change identifiers in the second altitude change information satisfies a third set threshold and it is determined that the difference between the maximum air pressure value and the minimum air pressure value in the second air pressure information does not satisfy a fourth set threshold; and the second height change identifier refers to an invariant identifier representing that the terminal is vertically static.
Optionally, the determining module is further configured to:
if it is determined that the number of second altitude change identifiers in the second altitude change information does not meet the third set threshold, re-judging whether the terminal ends the altitude change state after a second interval duration; and/or the presence of a gas in the gas,
and if the difference value between the maximum air pressure value and the minimum air pressure value in the second air pressure information is determined to meet the fourth set threshold, re-judging whether the terminal finishes the height change state or not after the second interval duration.
Optionally, the obtaining module is further configured to obtain periodic air pressure information with a third interval duration as a period; the periodic air pressure information refers to air pressure information within the third interval duration;
the determining module is further configured to determine that the altitude change identifier of the periodic air pressure information is an upward identifier if it is determined that a result of subtracting the air pressure value at the starting time from the air pressure value at the ending time of the corresponding period in the periodic air pressure information is greater than or equal to a first set value; and/or if the result of subtracting the air pressure value at the starting moment from the air pressure value at the corresponding period ending moment in the periodic air pressure information is less than or equal to a second set value, determining that the height change identifier of the periodic air pressure information is a downward identifier; and/or if the result of subtracting the air pressure value at the starting time from the air pressure value at the ending time of the corresponding period in the periodic air pressure information is larger than a second set value and smaller than the first set value, determining that the height change identifier of the periodic air pressure information is an unchanged identifier.
Optionally, the apparatus further comprises an obtaining module, wherein,
the obtaining module is used for obtaining first motion information within a first set time length before the altitude change stage is determined to be entered, wherein the first motion information comprises a plurality of motion state identifiers, and the motion state identifiers comprise walking identifiers representing walking;
the determining module is further configured to determine that the walking state is in the walking state within a first set time period before entering the height change phase if it is determined that the number of the walking marks in the first motion information satisfies a fifth set threshold; and/or, if it is determined that the number of the walking marks in the first motion information does not meet the fifth set threshold, re-judging whether the terminal enters the altitude change state after a fourth interval duration.
Optionally, the apparatus further comprises an obtaining module, wherein,
the obtaining module is configured to obtain second motion information within a second set time period after the altitude change phase is determined to end, where the second motion information includes a plurality of motion state identifiers, and the motion state identifier includes a walking identifier representing walking;
the determining module is configured to determine that the walking state is in the walking state within a second set time period after the height change stage is ended if it is determined that the number of the walking marks in the second motion information satisfies a sixth set threshold; and/or, if it is determined that the number of the walking identifiers in the second motion information does not meet the sixth set threshold, re-judging whether the terminal enters the altitude change state after a fifth interval duration.
Optionally, the obtaining module is further configured to obtain periodic step counting information with a sixth interval duration as a period; the cycle step counting information refers to step counting information in the sixth interval duration;
the determining module is further configured to determine that the motion state identifier of the periodic step counting information is the walking identifier if it is determined that the number of steps represented by the periodic step counting information is greater than or equal to a set number of steps; and/or if the number of steps represented by the periodic step counting information is smaller than the set number of steps, determining that the motion state identifier of the periodic step counting information is a static identifier representing static.
Optionally, the determining module is further configured to:
determining that the terminal is in a set posture in the height change stage before the determination that the terminal enters or leaves a set scene, wherein the set posture comprises a vertical posture and/or a handheld posture.
Optionally, the adjusting module is specifically configured to:
if the terminal is determined to enter the set scene, the communication signal quality of the terminal is enhanced by adjusting the communication control parameters; and/or the presence of a gas in the gas,
and if the terminal is determined to leave the set scene, weakening the communication signal quality of the terminal by adjusting the communication control parameters.
Optionally, the setting scene includes a subway station and/or a ground bank.
According to a third aspect of the embodiments of the present disclosure, there is provided a terminal, further including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to perform the method of the first aspect.
According to a fourth aspect of embodiments of the present disclosure, there is provided a non-transitory computer-readable storage medium having instructions which, when executed by a processor of a terminal, enable the terminal to perform the method according to the first aspect.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: according to the method, the terminal can be determined to enter the set scene or leave the set scene according to the state of the terminal, so that the communication control parameters are adjusted to adjust the communication signal quality, the communication signal quality of the terminal is better ensured to be always in a better state, and the use experience of a user is improved.
For example, when the setting scene can be a subway station, when the terminal is determined to enter the subway station according to the state of the terminal, the communication control parameters can be adjusted to enhance the quality of the communication signal, so that the terminal can still have better communication signal strength after entering the subway station, and the use experience of a user is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
Fig. 1 is a flow chart illustrating a method of automatically adjusting communication control parameters according to an exemplary embodiment.
Fig. 2 is a block diagram illustrating an apparatus for automatically adjusting communication control parameters according to an example embodiment.
Fig. 3 is a block diagram of a terminal shown in accordance with an example embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like 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 invention. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the invention, as detailed in the appended claims.
The disclosure provides a method for automatically adjusting communication control parameters, which is applied to a terminal. According to the method, the terminal can be determined to enter the set scene or leave the set scene according to the state of the terminal, so that the communication control parameters are adjusted to adjust the communication signal quality, the communication signal quality of the terminal is better ensured to be always in a better state, and the use experience of a user is improved.
For example, when the setting scene can be a subway station, when the terminal is determined to enter the subway station according to the state of the terminal, the communication control parameters can be adjusted to enhance the quality of the communication signal, so that the terminal can still have better communication signal strength after entering the subway station, and the use experience of a user is improved.
In one exemplary embodiment, a method for automatically adjusting communication control parameters is provided and applied to a terminal. Referring to fig. 1, the method includes:
s110, if the terminal is determined to be in a walking state within a first set time length before entering the height change stage and in a walking state within a second set time length after finishing the height change stage after undergoing the height change stage, determining that the terminal enters a set scene or leaves the set scene;
and S120, adjusting communication control parameters according to the fact that the terminal enters a set scene or leaves the set scene.
In step S110, the setting scene may include a subway station, a basement, and the like deep underground. The setting scene and the first set duration can be set before the terminal leaves the factory, and can also be set after the terminal leaves the factory. In addition, after the terminal leaves the factory, the setting scene and the first set time length can be modified so as to better meet the requirements of the user.
The first set time length and the second set time length can be set according to actual conditions, and the first set time length and the second set time length can be the same or different. For example, the first set time period may be 30 seconds, 1 minute, or 2 minutes, etc., and the second set time period may also be 30 seconds, 1 minute, or 2 minutes, etc.
In this step, when the position of the terminal in the vertical direction has a change phase, the terminal is considered to be subjected to a height change phase. When the user walks with the terminal, the terminal is considered to be in a walking state.
For example, the setting scene includes a subway station. When a user enters a subway station, the user generally needs to walk down stairs and then arrive in the subway station. When the user takes the terminal to go down the stairs, the terminal is considered to be in the altitude change stage. A user typically needs to walk for a period of time before and after the user steps down stairs. When the user walks with the terminal, the user considers that the terminal is in a walking state. Therefore, when a user carries the terminal to enter the subway station, the terminal can be automatically determined to enter a set scene.
When a user leaves a subway station, the user generally needs to walk up stairs and then arrive outside the subway station. The user, while carrying the terminal up the stairs, considers that the terminal is undergoing the altitude change phase. A user typically needs to walk for a period of time before and after the user climbs stairs. When the user walks with the terminal, the user considers that the terminal is in a walking state. Therefore, when the user carries the terminal to leave the subway station, the terminal can be automatically determined to leave the set scene.
In step S120, the communication control parameter is used to adjust the communication signal quality. The adjusting of the communication control parameter according to the terminal entering the setting scene or leaving the setting scene may include at least one of the following conditions.
In case 1, if it is determined that the terminal enters the setting scene, the communication signal quality of the terminal is enhanced by adjusting the communication control parameter, so as to ensure that the communication signal quality of the terminal is always in a better state.
And 2, if the terminal is determined to leave the set scene, the communication signal quality of the terminal is weakened by adjusting the communication control parameters, so that the communication signal quality of the terminal is not poor, and the energy consumption of the terminal can be reduced.
When the step includes the two conditions, the communication control parameters can be dynamically adjusted according to the condition that the terminal enters or leaves the set scene, and then the communication signal quality is dynamically adjusted, so that the terminal can be ensured to be always in better communication signal quality, the energy consumption of the terminal can be lower, and the use experience of a user is improved.
In one exemplary embodiment, a method for automatically adjusting communication control parameters is provided and applied to a terminal. In the method, determining that the terminal is in the altitude change stage may include:
s210, judging whether the terminal enters a height change state or not; if yes, go to step S220; if the determination result is negative, go to step S230;
s220, after the preset time length, judging whether the terminal finishes the height change state; if yes, go to step S240; if the determination result is negative, executing step S250;
s230, after the first interval duration is determined, executing the step S210;
s240, after the second interval duration is determined, executing the step S220;
and S250, determining that the terminal is in a height change stage.
In the method, whether the terminal enters the height change state or not can be determined according to the vertical displacement of the terminal.
For example, if it is detected that the terminal continues to move vertically downward, it is determined that the terminal enters a height change state.
For another example, if it is detected that the terminal continues to move upward in the vertical direction, it is determined that the terminal enters the height change state.
In addition, the air pressures at different heights are generally different, so that whether the height is changed or not can be determined according to the air pressure information, namely, whether the height is in a height change state or not can be determined according to the air pressure information.
In the method, if the terminal is determined not to enter the altitude change state, whether the terminal enters the altitude change state can be judged again after a first interval duration. The first interval duration may be set before the terminal leaves a factory, or may be set after the terminal leaves the factory. And, the first interval duration may be modified according to actual conditions. For example, the first interval duration may be 5 seconds, 10 seconds, 30 seconds, or the like.
And if the terminal is determined to enter the height change state, indicating that the terminal is currently in the height change state, continuously judging whether the height change state is finished after the terminal enters the height change state.
And if the terminal is determined to end the altitude change state at a second moment after entering the altitude change state, which indicates that the terminal is no longer in the altitude change state, determining that the terminal has undergone an altitude change phase at the second moment.
If the height change state is not finished at the second moment after the terminal enters the height change state, the terminal is still in the height change state, namely the terminal does not finish the height change state at the second moment, and after the second interval, whether the height change state is finished is continuously judged.
The setting manner of the second interval duration is similar to that of the first interval duration, and is not described herein again. It should be noted that the duration of the second interval may be the same as or different from the duration of the first interval.
It should be noted that, in this method, after it is determined that the terminal has undergone the altitude change phase, a new round of judgment as to whether the terminal has undergone the altitude change phase may be re-entered. That is, the terminal repeats the above-described steps all the time as time goes by.
That is, at a certain time, it is determined that the terminal enters the altitude change state, and after a preset time duration, it is determined whether the altitude change state is ended. As time goes on, if it is determined at a certain time that the terminal ends the altitude change state, it is continuously determined whether the terminal enters the altitude change state. After the altitude change state is determined to enter, after the preset time length, whether the altitude change state is finished or not is judged.
As can be seen from the above, when the first interval duration is the same as the second interval duration, the determination as to whether to enter or end the height change state is performed with the first interval duration as a cycle. If the terminal is in the height change state at the current moment, judging whether the height change state is finished or not; and if the terminal is not in the height change state, determining whether to enter the height change state.
In addition, the preset duration is similar to the first set duration in a setting manner, which is not described herein again. It should be noted that the preset time period may be zero, or may be other values. The preset time period is generally the same as the first interval time period, for example, the preset time period is 5 seconds.
It should be noted that the terminal may determine the preset duration according to the average duration or the minimum duration of the duration in the altitude change phase when the user enters or exits the setting scene. For example, the preset duration may be set to the minimum duration, so that the terminal may not only be prevented from frequently judging whether to end the height change state, but also the judgment precision may be ensured, and the user experience may be further improved.
According to the method, the set scene can be a deep underground scene such as a subway station and a ground depot, and the method can accurately determine whether the terminal is subjected to a height change stage, so that whether the terminal enters or leaves the set scene can be determined more accurately.
In one exemplary embodiment, a method for automatically adjusting communication control parameters is provided and applied to a terminal. In the method, whether the terminal enters the altitude change state may be determined according to the air pressure information, and for example, determining whether the terminal enters the altitude change state may include:
s310, acquiring first height change information and first air pressure information;
s320, judging whether the number of the first altitude change marks in the first altitude change information meets a first set threshold value, and judging whether the difference value between the maximum air pressure value and the minimum air pressure value in the first air pressure information meets a second set threshold value; if yes, go to step S330; otherwise, go to step S340;
s330, determining that the terminal enters a height change state;
and S340, determining that the terminal does not enter a height change state.
In step S310, the first altitude change information includes a plurality of altitude change indicators within a third set duration with the first time as an end time, and the first air pressure information includes air pressure information within the third set duration with the first time as the end time.
The first time refers to a time when the first altitude change information is acquired, that is, a time when it is determined whether the terminal enters an altitude change state, that is, a current time.
The third set time period may be set before the terminal leaves the factory, or may be set after the terminal leaves the factory, and the third set time period may be modified. The third set time period may be 35 seconds, 45 seconds, 60 seconds, or the like, for example.
The height change marks can comprise three marks which are respectively marked as an upward mark, a downward mark and a constant mark. The upward identification representation terminal moves upwards along the vertical direction, the downward identification representation terminal moves downwards along the vertical direction, and the unchanged identification representation terminal does not move along the vertical direction.
The air pressure information may be detected by a barometer and the altitude change indicator may be determined based on the air pressure information.
In step S320, the first setting threshold is similar to the setting manner of the first interval duration, which is not described herein again. The first set threshold may be 70%, 80%, 90%, etc.
The first height change indicator may be an up indicator or a down indicator.
The number of the first altitude change marks satisfying the first set threshold means that, of all the altitude change marks of the first altitude change information, the proportion of the first altitude change marks in all the altitude change marks is greater than or equal to the first set threshold.
For example, the first altitude change is indicated as a downward sign, the first set threshold is 80%, and the first altitude change information includes 7 altitude change signs.
In the first height variation information, if 6 downward marks are included. The number identified down varies by the number identified 6/7 throughout the height. Since 6/7 is greater than 80%, it indicates that the number of first altitude change indicators in the first altitude change information satisfies the first set threshold.
If the first height variation information includes 1 downward mark. The number identified down varies by the number identified 1/7 throughout the height. Since 1/7 is less than 80%, it indicates that the number of first altitude change indicators in the first altitude change information does not satisfy the first set threshold.
In this step, the setting manner of the second setting threshold is similar to that of the first setting threshold, and is not described herein again. The second set threshold may be 1hpa, 2hpa, 3hpa, or 5hpa, etc. Wherein "hpa" is a unit of air pressure, which means 100 pascals.
The first air pressure information generally includes a plurality of air pressure values detected within a third set time period, and the difference between the maximum air pressure value and the minimum air pressure value in the first air pressure information satisfies a second set threshold value, that is, the difference between the maximum air pressure value and the lowest air pressure value in the first air pressure information is greater than or equal to the second set threshold value.
For example, if the second set threshold is 2hpa, the maximum air pressure value in the first air pressure information is 5hpa, the minimum air pressure value is 1hpa, and the difference between the maximum air pressure value and the minimum air pressure value is 4hpa, which is greater than 2hpa, it indicates that the difference between the maximum air pressure value and the lowest air pressure value in the first air pressure information satisfies the second set threshold.
In the method, if it is determined that the number of first altitude change identifiers in the first altitude change information satisfies a first set threshold and it is determined that a difference between a maximum air pressure value and a minimum air pressure value in the first air pressure information satisfies a second set threshold, it is determined that the terminal enters an altitude change state at a current time (i.e., a first time).
If it is determined that the number of the first altitude change identifiers in the first altitude change information does not satisfy the first set threshold, and/or if it is determined that the difference between the maximum air pressure value and the minimum air pressure value in the first air pressure information does not satisfy the second set threshold, it is determined that the terminal does not enter the altitude change state at the current moment, and it is determined whether the terminal enters the altitude change state again after a first interval duration.
According to the method, whether the terminal enters the height change state or not can be accurately determined through the air pressure information and the height change information, the accuracy of the whole method is improved, and the use experience of a user is improved.
In one exemplary embodiment, a method for automatically adjusting communication control parameters is provided and applied to a terminal. In the method, the altitude change indicator may be determined based on the barometric pressure information. Illustratively, the method may comprise:
s410, taking the third interval duration as a period, and acquiring periodic air pressure information;
s420, if the result that the air pressure value at the corresponding period ending moment minus the air pressure value at the starting moment in the periodic air pressure information is greater than or equal to a first set value is determined, determining that the height change identifier of the periodic air pressure information is an upward identifier; and/or if the result of subtracting the air pressure value at the starting moment from the air pressure value at the corresponding period ending moment in the period air pressure information is less than or equal to a second set value, determining that the height change identifier of the period air pressure information is a downward identifier; and/or if the result of subtracting the air pressure value at the starting time from the air pressure value at the ending time of the corresponding period in the period air pressure information is larger than the second set value and smaller than the first set value, determining that the height change identifier of the period air pressure information is an unchanged identifier.
In step S410, the periodic air pressure information refers to air pressure information during a third interval. The setting manner of the third interval duration is similar to that of the first interval duration, and is not described herein again. The third interval duration may be the same as or different from the first interval duration. For example, the third interval duration may be 5 seconds, 7 seconds, 10 seconds, and so on.
In this step, every third interval duration, the air pressure information detected by the barometer within the third interval duration is obtained, where the air pressure information may include a plurality of air pressure values, and the number of the air pressure values is related to the detection frequency of the barometer.
For example, the third interval is 5 seconds, the first period air pressure information is acquired at 10 points, the second period air pressure information is acquired at the time of zero 5 seconds at 10 points, the first period air pressure information is acquired at the time of zero 10 seconds at 10 points, and so on.
In step S420, the air pressure value at the end time of the corresponding period is the last air pressure value in the period air pressure information, and the air pressure value at the start time of the corresponding period is the first air pressure value in the period air pressure information.
If the difference value obtained by subtracting the first air pressure value from the last air pressure value is larger than or equal to the first set value, the fact that the air pressure of the position where the terminal is located in the period is strengthened is indicated, the fact that the terminal moves downwards along the vertical direction is indicated, and the height change mark of the air pressure information in the period is determined to be a downward mark.
If the difference value obtained by subtracting the first air pressure value from the last air pressure value is smaller than or equal to a second set value, the air pressure at the position of the terminal in the period is weakened, the terminal moves upwards along the vertical direction, and the height change mark of the air pressure information in the period is determined to be an upward mark.
If the difference value of the last air pressure value minus the first air pressure value is larger than the second set value and smaller than the first set value, it is indicated that the air pressure change of the position of the terminal in the period is small, and it is indicated that the terminal does not move vertically, and the height change identifier of the air pressure information in the period is determined to be an unchanged identifier.
The first setting value and the second setting value may be set before the terminal leaves the factory, or may be set after the terminal leaves the factory. And, in the course of subsequent use, can also revise first set point and second set point.
For example, the first set value is 7hpa and the second set value is-7 hpa.
And if the difference value of subtracting the first air pressure value from the last air pressure value in the periodic air pressure information is 8hpa, and the difference value is greater than 7hpa, determining that the height change identifier of the periodic air pressure information is a downward identifier.
And if the difference value of subtracting the first air pressure value from the last air pressure value in the periodic air pressure information is-8 hpa, and the difference value is less than-7 hpa, determining that the height change identifier of the periodic air pressure information is an upward identifier.
And if the difference value of subtracting the first air pressure value from the last air pressure value in the periodic air pressure information is 2hpa, which is greater than-7 hpa and less than 7hpa, determining that the altitude change identifier of the periodic air pressure information is an invariant identifier.
And if the difference value of subtracting the first air pressure value from the last air pressure value in the periodic air pressure information is-2 hpa, which is greater than-7 hpa and less than 7hpa, determining that the altitude change identifier of the periodic air pressure information is an invariant identifier.
It should be noted that, in the other embodiments described above, the third set time period is an integral multiple of the third interval time period, the first air pressure information may include a plurality of periodic air pressure information, and the first altitude change information may include altitude change identifiers of the plurality of periodic air pressure information.
For example, the third interval duration may be 5 seconds, the third set duration may be 35 seconds, the first air pressure information may include 7 periods of air pressure information, and the first altitude change information may include 7 altitude change indicators.
In the method, the periodic air pressure information can be periodically acquired to determine the altitude change identifier of the terminal in the third interval duration, so that the accuracy of judging whether the terminal is subjected to the altitude change stage is improved, the reliability of the whole method is improved, and the use experience of a user is improved.
In one exemplary embodiment, a method for automatically adjusting communication control parameters is provided and applied to a terminal. In the method, determining whether the terminal ends the altitude change state may include:
s510, obtaining second height change information and second air pressure information;
s520, judging whether the number of the second height change marks in the second height change information meets a third set threshold value or not, and judging whether the difference value between the maximum air pressure value and the minimum air pressure value in the second air pressure information meets a fourth set threshold value or not; if yes, go to step S530; otherwise, go to step S540;
s530, determining a terminal ending altitude change state;
and S540, determining that the terminal does not end the height change state.
In the method, a method for determining that the terminal enters the altitude change state is basically the same as a method for determining that the terminal ends the altitude change state. The two methods are different only in the time period to which the acquired information belongs and different in the judgment index.
In step S510, the second altitude change information is similar to the first altitude change information, and the second altitude change information includes a plurality of altitude change flags within a fourth set time period with the second time as an end time.
The second air pressure information is similar to the first air pressure information, and the second air pressure information comprises air pressure information in the fourth set duration with the second time as the inspiration time.
The second time is a time when the second altitude change information is acquired, that is, a time when the terminal determines whether to end the altitude change state, that is, the current time. The setting manner of the fourth set duration and the third set duration is similar, and is not described herein. The fourth set time period may be the same as or different from the third time. For example, the fourth set time period may be 35 seconds, 45 seconds, 60 seconds, or the like.
The fourth set time period may be an integral multiple of the third interval time period, the second air pressure information may include a plurality of periodic air pressure information, and the second altitude change information may include altitude change identifications of the plurality of periodic air pressure information.
For example, the third interval duration may be 5 seconds, the fourth set duration may be 35 seconds, the second air pressure information may include 7 periods of air pressure information, and the second altitude change information may include 7 altitude change indicators.
In step S520, the third setting threshold is set in a manner similar to that of the first setting threshold, which is not described herein again. The third set threshold may be the same as or different from the first set threshold. For example, the third set threshold may be 70%, 80%, 90%, etc.
The second altitude change flag may be an invariant flag. The number of the second altitude change indicators satisfying the third set threshold means that, of all the altitude change indicators of the second altitude change information, the proportion of the second altitude change indicators in all the altitude change indicators is greater than or equal to the third set threshold.
For example, the second altitude change flag is an invariant flag, the third set threshold is 80%, and the second altitude change information includes 7 altitude change flags, of which 6 invariant flags. The number of invariant marks varies by 6/7 the number of marks over the entire height. Since 6/7 is greater than 80%, it indicates that the number of second altitude change indicators in the second altitude change information satisfies the third set threshold.
In this step, the setting manner of the fourth setting threshold is similar to that of the second setting threshold, and is not described herein again. The fourth set threshold may be the same as or different from the second set threshold. The fourth set threshold may be 1hpa, 2hpa, 3hpa, or 5hpa, etc. Wherein "hpa" is a unit of air pressure, which means 100 pascals.
The second air pressure information generally includes a plurality of air pressure values detected within a fourth set time period, and the fact that the difference value between the maximum air pressure value and the minimum air pressure value in the second air pressure information does not satisfy a fourth set threshold means that the difference value between the maximum air pressure value and the lowest air pressure value in the second air pressure information is greater than the fourth set threshold.
For example, if the fourth set threshold is 2hpa, the maximum air pressure value in the second air pressure information is 3hpa, the minimum air pressure value is 1hpa, and the difference between the maximum air pressure value and the minimum air pressure value is 1hpa, which is smaller than 2hpa, it indicates that the difference between the maximum air pressure value and the lowest air pressure value in the second air pressure information does not satisfy the fourth set threshold.
In the method, if it is determined that the number of the second altitude change identifiers in the second altitude change information satisfies a third set threshold and it is determined that the difference between the maximum barometric pressure value and the minimum barometric pressure value in the second barometric pressure information does not satisfy a fourth set threshold, it is determined that the terminal ends the altitude change state at the current time (i.e., the first time).
If the number of the second altitude change marks in the second altitude change information is determined to be less than or equal to the third set threshold, and/or the difference between the maximum air pressure value and the minimum air pressure value in the second air pressure information is determined to be less than or equal to the fourth set threshold, determining that the terminal does not end the altitude change state at the current moment, and judging whether the terminal ends the altitude change state again after a third interval duration.
According to the method, whether the terminal finishes the altitude change state or not can be accurately determined through the air pressure information and the altitude change information, the accuracy of the whole method is improved, and the user experience is improved.
In one exemplary embodiment, a method for automatically adjusting communication control parameters is provided and applied to a terminal. In the method, determining that the walking state is in the walking state for the first set time period before entering the altitude change phase, that is, determining that the walking state is in the walking state for the first set time period before entering the altitude change phase, may include:
s610, acquiring first motion information within a first set time length before the altitude change stage is determined;
s620, judging whether the number of the walking marks in the first motion information meets a fifth set threshold value or not; if the determination result is negative, go to step S630; if yes, go to step S640;
s630, after determining the fourth interval duration, judging whether the terminal enters a height change state again;
and S640, determining that the robot is in a walking state within a first set time length before entering the height change stage.
In step S610, the first motion information may include a plurality of motion state identifiers.
The motion state identifier can be divided into two types, which are respectively marked as a walking identifier and a static identifier. The walk identifier characterizes walking, i.e. characterizes a user walking with the terminal. The static identifier represents that the terminal is static, that is, represents that the user carries the terminal to be static. The motion state identifier can be determined according to the motion information collected by the pedometer.
In step S620, the setting manner of the fifth setting threshold is similar to that of the first setting threshold, which is not described herein again. The fifth set threshold may be the same as or different from the first set threshold. For example, the fifth set threshold may be 70%, 80%, or 90%, and so on.
The first motion information indicates that the number of the walking marks in the first motion information satisfies a fifth set threshold, and the ratio of the number of the walking marks in the first motion information to the number of all the motion state marks is greater than or equal to the fifth set threshold.
For example, the fifth set threshold is 80%, and the first motion information includes 12 motion state identifiers.
If the first motion information includes 10 walking markers. In the first exercise information, the ratio of the number of the walking markers to the total number of the exercise state markers is 10/12-5/6, and since 5/6 is greater than 80%, it is determined that the number of the exercise state markers indicating walking in the first exercise information satisfies the fifth set threshold.
If the first motion information includes 5 walking markers. In the first exercise information, the ratio of the number of walking markers to the total number of exercise state markers is 5/12, and 5/12 is less than 80%, which indicates that the number of exercise state markers indicating walking in the first exercise information does not satisfy the fifth set threshold.
In the method, if the number of the motion state marks representing walking in the first motion information is determined to meet a fifth set threshold, the terminal is in the walking state within a first set time length before the terminal is determined to enter the height change state. Subsequent determinations may continue, such as whether to end the altitude change state after determining to enter the altitude change state.
If the number of the motion state marks representing walking in the first motion information does not meet the fifth set threshold value, the situation that the terminal is not in the walking state within the first set time length before the terminal is determined to enter the height change state is determined, and after a fourth interval time length, whether the terminal enters the height change state is judged again.
The setting manner of the fourth interval duration is similar to that of the first interval duration, and is not described herein again. The fourth interval duration may be the same as or different from the first interval duration. For example, the fourth interval duration may be 5 seconds, 15 seconds, 30 seconds, or the like.
The method determines whether the terminal is in the walking state or not through the motion information, is simple and reliable, and further improves the use experience of the user.
In one exemplary embodiment, a method for automatically adjusting communication control parameters is provided and applied to a terminal. In the method, the motion state information can be determined through step counting information. Illustratively, the method may further comprise:
s710, taking the sixth interval duration as a period, and acquiring periodic step counting information;
s720, if the step number represented by the periodic step counting information is determined to be larger than or equal to the set step number, determining the motion state identifier of the periodic step counting information as a walking identifier; and/or if the number of steps represented by the periodic step counting information is smaller than the set number of steps, determining that the motion state identifier of the periodic step counting information is a static identifier.
In step S710, the cycle step count information refers to step count information within the sixth interval duration, which is detected by the pedometer. That is, step counting information detected by the pedometer is acquired every sixth interval duration and is used as periodic step counting information.
The setting manner of the sixth interval duration is similar to that of the first interval duration, and is not described herein. The sixth interval duration may be the same as or different from the first interval duration. For example, the sixth interval duration may be 3 seconds, 5 seconds, 10, and so on.
For example, the sixth interval duration is 5 seconds, the one-time period step counting information is acquired at 10 points, the one-time period step counting information is acquired again at the time of 10 points and 5 seconds, the one-time period step counting information is acquired at the time of 10 points and 10 seconds, and so on.
In step S720, the setting step number is similar to the setting manner of the first setting value, and is not described herein again. The set number of steps may be 3 steps, 4 steps, 5 steps, or the like.
For example, the number of steps is set to 5, and if the number of steps represented by the periodic step counting information is greater than or equal to 5 steps, the motion state identifier of the periodic step counting information is determined to be a walking identifier. That is, if the total number of steps of the step count information in the cycle is greater than or equal to 5 steps, it is determined that the motion state flag of the cycle step count information is the walking flag.
And if the number of steps represented by the periodic step counting information is less than 5, determining that the motion state identifier of the periodic step counting information is a static identifier. That is, if the total number of steps of the step count information in the period is less than 5 steps, it is determined that the motion state flag of the step count information in the period is the stationary flag.
It should be noted that, in the above other embodiments, the first set time period is an integral multiple of the third interval time period, the first air pressure information may include a plurality of periodic air pressure information, and the first altitude change information may include altitude change identifiers of the plurality of periodic air pressure information.
For example, the third interval duration may be 5 seconds, the third set duration may be 60 seconds, and the first motion information includes 12 motion state identifiers.
In the method, the periodic motion information can be periodically acquired to determine the motion state identifier of the terminal in the sixth interval duration, so that the accuracy of judging that the terminal is in the walking state is improved, the reliability of the whole method is improved, and the use experience of a user is improved.
In one exemplary embodiment, a method for automatically adjusting communication control parameters is provided and applied to a terminal. In the method, determining that the terminal is in the walking state within the second set time period after the altitude change phase is ended, that is, determining that the terminal is in the walking state within the second set time period after the altitude change phase is ended, may include:
s810, acquiring second motion information in a second set time length after the altitude change stage is determined to be ended, wherein the second motion information comprises a plurality of motion state identifications;
s820, judging whether the number of the walking marks in the second motion information meets a sixth set threshold value or not; if the determination result is negative, executing step S830; otherwise, go to step S840;
s830, after the fifth interval duration is determined, whether the terminal enters the height change state is judged again;
and S840, determining that the robot is in a walking state within a second set time length after the height change stage is finished.
In this method, the method of determining that the vehicle is in the walk state for the second set time period after the altitude change phase is ended is similar to the method of determining that the vehicle is in the walk state for the first set time period before the altitude change phase is entered in the other embodiments described above. The only difference being the time period to which the acquired information belongs.
In step S810, the second motion information is of the same type as the first motion information. The second motion information may also include a plurality of motion state identifiers.
In step S820, the setting manner of the sixth setting threshold is similar to that of the fifth setting threshold, which is not described herein again. The sixth set threshold may be the same as or different from the fifth set threshold. For example, the sixth set threshold may be 70%, 80%, or 90%, and so on.
The second motion information indicates that the number of the walking marks in the second motion information satisfies a sixth set threshold, and the ratio of the number of the walking marks in the second motion information to the number of all the motion state marks is greater than or equal to the sixth set threshold.
For example, the sixth set threshold is 80%, and the second motion information includes 12 motion state identifiers.
If 10 walking marks are included in the second motion information. In the second exercise information, the ratio of the number of the walking markers to the total number of the exercise state markers is 10/12 to 5/6, and since 5/6 is greater than 80%, it is said that the number of the walking markers in the second exercise information satisfies the sixth set threshold.
If the second motion information includes 5 walking markers. In the second exercise information, the ratio of the number of walking markers to the total number of exercise state markers is 5/12, and 5/12 is less than 80%, which indicates that the number of walking markers in the second exercise information does not satisfy the sixth set threshold.
In the method, if the number of the walking marks in the second motion information is determined to meet the sixth set threshold, the terminal is in the walking state within a second set time length after the height change state is determined to be finished. Subsequent determinations, such as whether to re-enter the altitude change state, may continue.
If the number of the walking marks in the second motion information does not meet the sixth set threshold, the terminal is not in the walking state within the second set time length after the height change state is determined to be finished, and after a fifth interval time length, whether the terminal enters the height change state again is judged again.
The setting manner of the fifth interval duration and the fourth interval duration is similar, and is not described herein again. The fifth interval duration and the fourth interval duration may be the same or different. For example, the fifth interval duration may be 5 seconds, 15 seconds, 30 seconds, or the like.
The method determines whether the terminal is in the walking state or not through the motion information, is simple and reliable, and further improves the use experience of the user.
In one exemplary embodiment, a method for automatically adjusting communication control parameters is provided and applied to a terminal. In the method, before determining that the terminal enters the setting scene or leaves the setting scene, the method may further include:
and determining that the terminal is in a set posture in the height change stage.
Wherein the set posture comprises a vertical posture and/or a handheld posture. That is, after determining that the terminal has undergone the altitude change phase and is in the walking state for a first set duration before entering the altitude change phase and is in the walking state for a second set duration after ending the altitude change phase, it is further determined that the terminal is in the vertical posture or the handheld posture in the altitude change phase before determining that the terminal enters the setting scene or leaves the setting scene.
Wherein the terminal is generally in an upright position when in the user's pocket. And the hand-held gesture represents that the user holds the terminal. That is, when a user holds the terminal, the terminal is generally in a hand-held posture.
According to the method, attitude data of the terminal from entering an altitude change state to finishing the altitude change state can be collected through an attitude sensor, and then the attitude of the terminal is determined according to the attitude data. For example, the attitude data may be angle data of deviation of the terminal from the vertical direction from which the attitude of the terminal is determined.
For example, if the attitude sensor detects that the deviation angle of the terminal from the vertical direction is within 5 degrees, the specification terminal is in the vertical attitude. If the attitude sensor detects that the deviation angle of the terminal from the vertical direction is between 40 and 60 degrees, the terminal is in the handheld attitude.
In the method, the attitude of the terminal is determined through the attitude sensor, and whether the terminal enters or leaves a set scene is judged by combining the attitude of the terminal, so that the reliability of the method is further improved, and the use experience of a user is improved.
In one exemplary embodiment, a method for automatically adjusting communication control parameters is provided and applied to a terminal.
In the method, a set scene is a scene such as a subway station or a ground depot, the first set time and the second set time are both 60 seconds, the third set time and the fourth set time are both 35 seconds, the preset time, the first interval time, the second interval time, the third interval time, the fourth interval time, the fifth interval time and the sixth interval time are all 5 seconds, the first set threshold, the third set threshold, the fifth set threshold and the sixth set threshold are all 80%, the second set threshold and the fourth set threshold are all 2hpa, the first set value is 7hpa, the second set value is-7 hpa, and the step number is set to 5 steps.
In the method, the barometer can detect the terminal air pressure information in real time, and the pedometer can detect the step number information in real time. Or, based on the received control information, the terminal starts the automatic adjustment function of the communication control parameter, and then detects the terminal air pressure information in real time and the step number information in real time.
Every 5 seconds, the processor of the terminal acquires the air pressure information detected by the barometer (namely, the periodic air pressure information), and then determines the altitude change identifier of the periodic air pressure information based on the first air pressure value and the last air pressure value of the periodic air pressure information.
And if the difference value of subtracting the first air pressure value from the last air pressure value in the periodic air pressure information is greater than or equal to 7hpa, determining that the height change identifier of the periodic air pressure information is a downward identifier.
And if the difference value of subtracting the first air pressure value from the last air pressure value in the periodic air pressure information is less than or equal to-7 hpa, determining that the altitude change identifier of the periodic air pressure information is an upward identifier.
And if the difference value of subtracting the first air pressure value from the last air pressure value in the periodic air pressure information is larger than-7 hpa and smaller than 7hpa, determining that the height change identifier of the periodic air pressure information is an invariant identifier.
And every 5 seconds, the processor of the terminal acquires step counting information (periodic step counting information) detected by the pedometer, and then determines the motion state identification of the periodic step counting information based on the step number of the periodic step counting information.
And if the number of steps represented by the periodic step counting information is greater than or equal to 5 steps, determining that the motion state identifier of the periodic step counting information is a walking identifier.
And if the number of steps represented by the periodic step counting information is less than 5, determining that the motion state identifier of the periodic step counting information is a static identifier.
In the method, whether the current time enters the altitude change state may be determined based on altitude change information for 35 consecutive seconds. In which 35 seconds of altitude change information (i.e., first altitude change information) having the current time as the end time and air pressure information (i.e., first air pressure information) including 7 altitude change flags may be acquired, the first air pressure information including 7 periods of air pressure information.
And if the ratio of the number of the downward marks in the first altitude change information to the number of all altitude change marks is greater than or equal to 80%, and the difference value between the maximum air pressure value and the minimum air pressure value in the first air pressure information is greater than or equal to 2hpa, determining that the terminal enters an altitude change state at the current moment.
If the ratio of the number of the downward marks in the first altitude change information to the number of all altitude change marks is less than 80%, and/or the difference value between the maximum air pressure value and the minimum air pressure value in the first air pressure information is less than 2hpa, determining that the terminal does not enter the altitude change state at the current moment, re-acquiring a group of first altitude change information and first air pressure information after 5 seconds, and judging again until determining that the terminal enters the altitude change state.
After determining that the terminal enters the altitude change state, acquiring continuous 60-second motion information (i.e. first motion information) by taking the time (i.e. the current time) at which the terminal enters the altitude change state as the end time. And then determines whether the terminal is in a walking state before entering a height change state based on the first motion information.
And if the number of the walking marks in the first motion information is determined to be more than or equal to 80% of the total number of the motion state marks, determining that the terminal is in the walking state.
And if the ratio of the number of the walking marks to the number of all the movement state marks in the first movement information is less than 80%, determining that the terminal is not in the walking state. And then, after 5 seconds, re-acquiring a group of first height change information and first air pressure information, and judging again until the terminal is in a walking state before entering a height change state.
And after 5 seconds, acquiring first height change information and second air pressure information after the terminal is determined to be in the walking state before entering the height change state. When the first altitude change information and the second air pressure information are obtained, the current time (namely the time after the terminal is determined to be in the walking state for 5 seconds) is taken as the end time, the altitude change information (namely the second altitude change information) and the air pressure information (namely the second air pressure information) which are continuous for 35 seconds are obtained, the second altitude change information comprises 7 altitude change marks, and the second air pressure information comprises 7 periods of air pressure information.
And then determining whether the terminal ends the altitude change state according to the second altitude change information and the second air pressure information.
And if the ratio of the number of the unchanged marks to the number of all the height change marks in the second height change information is greater than or equal to 80%, and the difference value between the maximum air pressure value and the minimum air pressure value in the second air pressure information is less than 2hpa, determining that the terminal ends the height change state at the current moment.
If the ratio of the number of the unchanged marks in the second altitude change information to the number of all the altitude change marks is less than 80%, and/or the difference value between the maximum air pressure value and the minimum air pressure value in the second air pressure information is greater than or equal to 2hpa, determining that the terminal does not end the altitude change state at the current moment, re-acquiring a group of second altitude change information and second air pressure information after 5 seconds, and judging again until determining that the terminal ends the altitude change state.
After determining that the terminal ends the altitude change state, the continuous 60-second motion information (i.e., the second motion information) is acquired with the time (i.e., the current time) at which the terminal is determined to enter the altitude change state as the start time. And then determines whether the terminal is in a walking state after finishing the height change state based on the second motion information.
And if the second motion information is determined that the ratio of the number of the walking marks to the number of all the motion state marks in the second motion information is greater than or equal to 80%, determining that the terminal is in the walking state.
And if the ratio of the number of the walking marks to the number of all the movement state marks in the second movement information is less than 80%, determining that the terminal is not in the walking state. And then after 5 seconds, re-acquiring a group of first altitude change information and first air pressure information, returning to the judgment whether the terminal enters the altitude change state, and repeating the steps until the terminal is determined to be subjected to the altitude change stage and is in the walking state within 6 seconds before entering the altitude change stage and is in the walking state within 60 seconds after finishing the altitude change stage.
After determining that the terminal is in the height change phase and is in the walking state within a first set time period before entering the height change phase and is in the walking state within a second set time period after finishing the height change phase, it is also required to determine whether the terminal is in the vertical posture or the hand-held posture in the height change phase.
And if the terminal is determined to be in the vertical posture or the handheld posture in the height change stage, determining that the terminal enters a set scene. Otherwise, after 5 seconds, re-acquiring a group of first altitude change information and first air pressure information, returning to the judgment whether the terminal enters the altitude change state, and repeating the steps until the terminal is determined to enter the set scene.
After the terminal is determined to enter the setting scene, the communication signal quality of the terminal is enhanced by adjusting the communication control parameters.
And after the terminal is determined to enter the set scene, re-acquiring a group of first altitude change information and first air pressure information, returning to the judgment whether the terminal enters the altitude change state, and repeating the steps until the terminal is determined to leave the set scene.
Among them, a method of determining that the terminal leaves the setting scene is similar to a method of determining that the terminal enters the setting scene, and is different therefrom in that, in the method of determining that the terminal leaves the setting scene, it is determined whether the terminal enters the altitude change state based on the number of upward signs.
In this method, the user may input second control information for turning off the automatic adjustment function of the communication control parameter to the terminal, and the terminal may turn off the automatic adjustment function and terminate each of the operations when receiving the second control information. And, the user can input the second control information to the terminal at any time.
In addition, the second control information may also be transmitted to the terminal by other methods. For example, the terminal is a mobile phone, and the user may transmit the second control information to the mobile phone through a smart watch that establishes a communication connection with the mobile phone.
According to the method, the terminal can be determined to enter the set scene or leave the set scene according to the state of the terminal, so that the communication control parameters are adjusted to adjust the communication signal quality, the communication signal quality of the terminal is better ensured to be always in a better state, and the use experience of a user is improved.
In one exemplary embodiment, an apparatus for automatically adjusting communication control parameters is provided and applied to a terminal. The device is used for implementing the method. As shown in fig. 2, the apparatus may include a determining module 101 and an adjusting module 102, and in the course of implementing the above method,
a determining module 101, configured to determine that the terminal enters or leaves the setting scenario if it is determined that the terminal has undergone the altitude change phase and is in a walking state within a first set time period before entering the altitude change phase and is in a walking state within a second set time period after ending the altitude change phase;
the adjusting module 102 is configured to adjust a communication control parameter according to whether the terminal enters a setting scene or leaves the setting scene; wherein the communication control parameter is used to adjust the communication signal quality.
In one exemplary embodiment, an apparatus for automatically adjusting communication control parameters is provided and applied to a terminal. Referring to fig. 2, in the apparatus, the determining module 101 is specifically configured to:
judging whether the terminal enters a height change state or not;
if so, judging whether the terminal finishes the height change state after the preset time length;
and if the terminal is determined to end the altitude change state, determining that the terminal is subjected to an altitude change stage.
In one exemplary embodiment, an apparatus for automatically adjusting communication control parameters is provided and applied to a terminal. As shown with reference to fig. 2, the apparatus may further include an acquisition module 103, wherein,
the acquiring module 103 is configured to acquire first altitude change information and first air pressure information, where the first altitude change information includes multiple altitude change identifiers within a third set duration with the first time as an end time, and the first air pressure information includes air pressure information within the third set duration with the first time as the end time;
the determining module 101 is configured to determine that the terminal enters an altitude change state at a first time if it is determined that the number of the first altitude change identifiers in the first altitude change information satisfies a first set threshold and a difference between a maximum air pressure value and a minimum air pressure value in the first air pressure information satisfies a second set threshold; the first height change mark is an upward mark representing that the terminal moves upwards along the vertical direction, or a downward mark representing that the terminal moves downwards along the vertical direction.
In one exemplary embodiment, an apparatus for automatically adjusting communication control parameters is provided and applied to a terminal. Referring to fig. 2, in the apparatus, the determining module 101 is further configured to:
if it is determined that the number of the first altitude change identifications in the first altitude change information does not meet a first set threshold, re-judging whether the terminal enters an altitude change state or not after a first interval duration; and/or the presence of a gas in the gas,
and if the difference value between the maximum air pressure value and the minimum air pressure value in the first air pressure information is determined not to meet the second set threshold, re-judging whether the terminal enters the height change state or not after the interval of the first interval duration.
In one exemplary embodiment, an apparatus for automatically adjusting communication control parameters is provided and applied to a terminal. As shown with reference to fig. 2, the apparatus may further include an acquisition module 103, wherein,
the obtaining module 103 is configured to obtain second altitude change information and second air pressure information, where the second altitude change information includes a plurality of altitude change identifiers within a fourth set duration that takes the second time as the end time, and the second air pressure information includes air pressure information within the fourth set duration that takes the second time as the inspiration time;
the determining module 101 is further configured to determine that the terminal ends the altitude change state if it is determined that the number of the second altitude change identifiers in the second altitude change information satisfies a third set threshold and it is determined that the difference between the maximum air pressure value and the minimum air pressure value in the second air pressure information does not satisfy a fourth set threshold; the second height change identifier is an invariant identifier representing that the terminal is static along the vertical direction.
In one exemplary embodiment, an apparatus for automatically adjusting communication control parameters is provided and applied to a terminal. Referring to fig. 2, in the apparatus, the determining module 101 is further configured to:
if the number of the second height change marks in the second height change information is determined not to meet a third set threshold, re-judging whether the terminal finishes the height change state or not after a second interval duration; and/or the presence of a gas in the gas,
and if the difference value between the maximum air pressure value and the minimum air pressure value in the second air pressure information is determined to meet the fourth set threshold, after the interval of the second interval time, whether the terminal finishes the height change state is judged again.
In one exemplary embodiment, an apparatus for automatically adjusting communication control parameters is provided and applied to a terminal. Referring to fig. 2, in the apparatus,
the obtaining module 103 is further configured to obtain periodic air pressure information by taking the third interval duration as a period; the periodic air pressure information refers to air pressure information within a third interval duration;
the determining module 101 is further configured to determine that the altitude change identifier of the periodic air pressure information is an upward identifier if a result obtained by subtracting the air pressure value at the starting time from the air pressure value at the ending time of the corresponding period is greater than or equal to a first set value in the periodic air pressure information; and/or if the result of subtracting the air pressure value at the starting moment from the air pressure value at the corresponding period ending moment in the period air pressure information is less than or equal to a second set value, determining that the height change identifier of the period air pressure information is a downward identifier; and/or if the result of subtracting the air pressure value at the starting time from the air pressure value at the ending time of the corresponding period in the period air pressure information is larger than the second set value and smaller than the first set value, determining that the height change identifier of the period air pressure information is an unchanged identifier.
In one exemplary embodiment, an apparatus for automatically adjusting communication control parameters is provided and applied to a terminal. As shown with reference to fig. 2, the apparatus may further include an acquisition module 103, wherein,
the obtaining module 103 is configured to obtain first motion information within a first set time period before the altitude change stage is determined to be entered, where the first motion information includes a plurality of motion state identifiers, and the motion state identifiers include walking identifiers representing walking;
the determining module 101 is further configured to determine that the first movement information is in a walking state within a first set time period before entering the altitude change stage if it is determined that the number of the walking identifiers in the first movement information satisfies a fifth set threshold; and/or if the number of the walking marks in the first motion information is determined not to meet the fifth set threshold, judging whether the terminal enters the height change state again after a fourth interval duration.
In one exemplary embodiment, an apparatus for automatically adjusting communication control parameters is provided and applied to a terminal. As shown with reference to fig. 2, the apparatus may further include an acquisition module 103, wherein,
the obtaining module 103 is configured to obtain second motion information within a second set time period after the altitude change stage is determined to be ended, where the second motion information includes a plurality of motion state identifiers, and the motion state identifiers include walking identifiers representing walking;
the determining module 101 is configured to determine that the user is in a walking state within a second set time period after the altitude change stage is ended if it is determined that the number of the walking identifiers in the second motion information satisfies a sixth set threshold; and/or if the number of the walking marks in the second motion information is determined not to meet the sixth set threshold, judging whether the terminal enters the height change state again after a fifth interval duration.
In one exemplary embodiment, an apparatus for automatically adjusting communication control parameters is provided and applied to a terminal. Referring to fig. 2, in the apparatus,
the obtaining module 103 is further configured to obtain periodic step counting information with the sixth interval duration as a period; the cycle step counting information refers to step counting information in the sixth interval duration;
the determining module 101 is further configured to determine that the motion state identifier of the periodic step counting information is a walking identifier if it is determined that the number of steps represented by the periodic step counting information is greater than or equal to the set number of steps; and/or if the number of steps represented by the period step counting information is smaller than the set number of steps, determining that the motion state identifier of the period step counting information is a static identifier representing static.
In one exemplary embodiment, an apparatus for automatically adjusting communication control parameters is provided and applied to a terminal. Referring to fig. 2, in the apparatus, the determining module 101 is further configured to:
before the terminal is determined to enter the set scene or leave the set scene, the terminal is determined to be in the set posture in the height change stage, and the set posture comprises a vertical posture and/or a handheld posture.
In one exemplary embodiment, an apparatus for automatically adjusting communication control parameters is provided and applied to a terminal. Referring to fig. 2, in the apparatus, the adjusting module 102 is specifically configured to:
if the terminal is determined to enter the set scene, the communication signal quality of the terminal is enhanced by adjusting the communication control parameters; and/or the presence of a gas in the gas,
and if the terminal is determined to leave the set scene, weakening the communication signal quality of the terminal by adjusting the communication control parameters.
In one exemplary embodiment, an apparatus for automatically adjusting communication control parameters is provided and applied to a terminal. In the device, the set scene comprises a subway station and/or a ground library.
In one exemplary embodiment, a terminal is provided, for example, a mobile phone or a wearable device having a communication function.
Referring to fig. 3, terminal 400 may include one or more of the following components: a processing component 402, a memory 404, a power component 406, a multimedia component 408, an audio component 410, an interface for input/output (I/O) 412, a sensor component 414, and a communication component 416.
The processing component 402 generally controls overall operation of the terminal 400, such as operations associated with display, telephone calls, information communication, camera operations, and recording operations. The processing component 402 may include one or more processors 420 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 402 can include one or more modules that facilitate interaction between the processing component 402 and other components. For example, the processing component 402 can include a multimedia module to facilitate interaction between the multimedia component 408 and the processing component 402.
The memory 404 is configured to store various types of information to support operations at the terminal 400. Examples of such information include instructions for any application or method operating on the terminal 400, contact information, phonebook information, messages, pictures, videos, and so forth. The memory 404 may be implemented by any type of volatile or non-volatile storage terminal or combination thereof, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The power components 406 provide power to the various components of the terminal 400. The power components 406 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the terminal 400.
The multimedia component 408 includes a screen providing an output interface between the terminal 400 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 may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 408 includes a front camera module and/or a rear camera module. When the terminal 400 is in an operating mode, such as a shooting mode or a video mode, the front camera module and/or the rear camera module can receive external multimedia information. Each front camera module and rear camera module may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 410 is configured to output and/or input audio signals. For example, the audio component 410 includes a Microphone (MIC) configured to receive external audio signals when the terminal 400 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 404 or transmitted via the communication component 416. In some embodiments, audio component 410 also includes a speaker for outputting audio signals.
The I/O interface 412 provides an interface between the processing component 402 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor component 414 includes one or more sensors for providing various aspects of status assessment for the terminal 400. For example, the sensor assembly 414 can detect an open/closed state of the terminal 400, relative positioning of components, such as a display and keypad of the terminal 400, the sensor assembly 414 can also detect a change in position of the terminal 400 or a component of the terminal 400, the presence or absence of user contact with the terminal 400, orientation or acceleration/deceleration of the terminal 400, and a change in temperature of the terminal 400. The sensor assembly 414 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 414 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 414 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 416 is configured to facilitate communications between the terminal 400 and other terminals in a wired or wireless manner. The terminal 700 can access a wireless network based on a communication standard, such as WiFi, 2G, 3G, 4G, 5G, or a combination thereof. In an exemplary embodiment, the communication component 416 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 416 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared information association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the terminal 400 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), digital signal processing terminals (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 404 comprising instructions, executable by the processor 420 of the terminal 400 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical information storage terminal, and the like. The instructions in the storage medium, when executed by a processor of the terminal, enable the terminal to perform the methods shown in the above-described embodiments.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
It will be understood that the invention is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the invention is limited only by the appended claims.
Claims (28)
1. A method for automatically adjusting communication control parameters is applied to a terminal, and is characterized in that the method comprises the following steps:
determining that the terminal enters a set scene or leaves the set scene if it is determined that the terminal is in a step state within a first set time period before entering the altitude change phase and in a step state within a second set time period after ending the altitude change phase;
adjusting communication control parameters according to the fact that the terminal enters a set scene or leaves the set scene; wherein the communication control parameter is used to adjust the communication signal quality.
2. The method of claim 1, wherein the determining that the terminal has undergone a phase of altitude change comprises:
judging whether the terminal enters a height change state or not;
if so, judging whether the terminal finishes the height change state or not after a preset time length;
and if the terminal is determined to end the altitude change state, determining that the terminal is subjected to the altitude change stage.
3. The method of claim 2, wherein the determining whether the terminal enters the altitude change state comprises:
acquiring first altitude change information and first air pressure information, wherein the first altitude change information comprises a plurality of altitude change marks within a third set duration with a first time as an end time, and the first air pressure information comprises air pressure information within the third set duration with the first time as the end time;
if it is determined that the number of first altitude change identifiers in the first altitude change information meets a first set threshold and the difference value between the maximum air pressure value and the minimum air pressure value in the first air pressure information meets a second set threshold, determining that the terminal enters the altitude change state at the first moment; the first height change mark is an upward mark representing that the terminal moves vertically upwards or a downward mark representing that the terminal moves vertically downwards.
4. The method of claim 3, wherein the determining whether the terminal enters the altitude change state further comprises:
if it is determined that the number of first altitude change identifiers in the first altitude change information does not meet a first set threshold, re-judging whether the terminal enters the altitude change state or not after a first interval duration; and/or the presence of a gas in the gas,
and if the difference value between the maximum air pressure value and the minimum air pressure value in the first air pressure information is determined not to meet a second set threshold, re-judging whether the terminal enters the height change state or not after a first interval duration.
5. The method of claim 2, wherein the determining whether the terminal has finished the altitude change state comprises:
acquiring second altitude change information and second air pressure information, wherein the second altitude change information comprises a plurality of altitude change marks within a fourth set duration taking the second moment as the ending moment, and the second air pressure information comprises air pressure information within the fourth set duration taking the second moment as the inspiration moment;
if it is determined that the number of second altitude change identifiers in the second altitude change information meets a third set threshold and it is determined that the difference between the maximum air pressure value and the minimum air pressure value in the second air pressure information does not meet a fourth set threshold, determining that the terminal ends the altitude change state; and the second height change identifier refers to an invariant identifier representing that the terminal is vertically static.
6. The method of claim 5, wherein the determining whether the terminal has finished the altitude change state further comprises:
if it is determined that the number of second altitude change identifiers in the second altitude change information does not meet the third set threshold, re-judging whether the terminal ends the altitude change state after a second interval duration; and/or the presence of a gas in the gas,
and if the difference value between the maximum air pressure value and the minimum air pressure value in the second air pressure information is determined to meet the fourth set threshold, re-judging whether the terminal finishes the height change state or not after the second interval duration.
7. The method according to claim 3 or 5, characterized in that the method further comprises:
taking the third interval duration as a period, and acquiring periodic air pressure information; the periodic air pressure information refers to air pressure information within the third interval duration;
if the result of subtracting the air pressure value at the starting moment from the air pressure value at the corresponding period ending moment in the periodic air pressure information is determined to be greater than or equal to a first set value, determining that the height change identifier of the periodic air pressure information is an upward identifier; and/or if the result of subtracting the air pressure value at the starting moment from the air pressure value at the corresponding period ending moment in the periodic air pressure information is less than or equal to a second set value, determining that the height change identifier of the periodic air pressure information is a downward identifier; and/or if the result of subtracting the air pressure value at the starting time from the air pressure value at the ending time of the corresponding period in the periodic air pressure information is larger than a second set value and smaller than the first set value, determining that the height change identifier of the periodic air pressure information is an unchanged identifier.
8. The method of claim 1, wherein the determining that the vehicle is in a step state for a first set time period before entering the altitude change phase comprises:
acquiring first motion information within a first set time length before the height change stage is determined to be entered, wherein the first motion information comprises a plurality of motion state identifiers, and the motion state identifiers comprise walking identifiers representing walking;
if the number of the walking marks in the first motion information is determined to meet a fifth set threshold, determining that the walking marks are in the walking state within a first set time length before entering the height change stage; and/or, if it is determined that the number of the walking marks in the first motion information does not meet the fifth set threshold, re-judging whether the terminal enters the altitude change state after a fourth interval duration.
9. The method of claim 1, wherein said determining that the vehicle is in a walk state for a second set time period after the end of the altitude change phase comprises:
acquiring second motion information within a second set time length after the height change phase is determined to be ended, wherein the second motion information comprises a plurality of motion state identifiers, and the motion state identifiers comprise walking identifiers representing walking;
if the number of the walking marks in the second motion information is determined to meet a sixth set threshold, determining that the walking marks are in the walking state within a second set time length after the height change stage is ended; and/or, if it is determined that the number of the walking identifiers in the second motion information does not meet the sixth set threshold, re-judging whether the terminal enters the altitude change state after a fifth interval duration.
10. The method according to claim 8 or 9, characterized in that the method further comprises:
taking the sixth interval duration as a period, and acquiring periodic step counting information; the cycle step counting information refers to step counting information in the sixth interval duration;
if the step number represented by the periodic step counting information is determined to be greater than or equal to the set step number, determining that the motion state identifier of the periodic step counting information is the walking identifier; and/or if the number of steps represented by the periodic step counting information is smaller than the set number of steps, determining that the motion state identifier of the periodic step counting information is a static identifier representing static.
11. The method of claim 1, wherein prior to the determining that the terminal enters or leaves a setting scenario, the method further comprises:
and determining that the terminal is in a set posture in the height change stage, wherein the set posture comprises a vertical posture and/or a handheld posture.
12. The method of claim 1, wherein the adjusting the communication control parameter according to the terminal entering the setting scene or leaving the setting scene comprises:
if the terminal is determined to enter the set scene, the communication signal quality of the terminal is enhanced by adjusting the communication control parameters; and/or the presence of a gas in the gas,
and if the terminal is determined to leave the set scene, weakening the communication signal quality of the terminal by adjusting the communication control parameters.
13. The method of claim 1, wherein the setting scenario comprises a subway station and/or a basement.
14. An apparatus for automatically adjusting communication control parameters, applied to a terminal, the apparatus comprising:
the determining module is used for determining that the terminal enters a set scene or leaves the set scene if the terminal is determined to be in a walking state within a first set time length before entering the altitude change phase and within a second set time length after finishing the altitude change phase;
the adjusting module is used for adjusting communication control parameters according to the fact that the terminal enters a set scene or leaves the set scene; wherein the communication control parameter is used to adjust the communication signal quality.
15. The apparatus according to claim 14, wherein the determining module is specifically configured to:
judging whether the terminal enters a height change state or not;
if so, judging whether the terminal finishes the height change state or not after a preset time length;
and if the terminal is determined to end the altitude change state, determining that the terminal is subjected to the altitude change stage.
16. The apparatus of claim 15, further comprising an acquisition module, wherein,
the acquiring module is used for acquiring first altitude change information and first air pressure information, wherein the first altitude change information comprises a plurality of altitude change identifiers within a third set duration with a first time as an ending time, and the first air pressure information comprises air pressure information within the third set duration with the first time as the ending time;
the determining module is configured to determine that the terminal enters the altitude change state at the first time if it is determined that the number of first altitude change identifiers in the first altitude change information satisfies a first set threshold and it is determined that a difference between a maximum air pressure value and a minimum air pressure value in the first air pressure information satisfies a second set threshold; the first height change mark is an upward mark representing that the terminal moves vertically upwards or a downward mark representing that the terminal moves vertically downwards.
17. The apparatus of claim 16, wherein the determining module is further configured to:
if it is determined that the number of first altitude change identifiers in the first altitude change information does not meet a first set threshold, re-judging whether the terminal enters the altitude change state or not after a first interval duration; and/or the presence of a gas in the gas,
and if the difference value between the maximum air pressure value and the minimum air pressure value in the first air pressure information is determined not to meet a second set threshold, re-judging whether the terminal enters the height change state or not after a first interval duration.
18. The apparatus of claim 15, further comprising an acquisition module, wherein,
the acquiring module is used for acquiring second altitude change information and second air pressure information, wherein the second altitude change information comprises a plurality of altitude change identifiers within a fourth set duration taking the second moment as the ending moment, and the second air pressure information comprises air pressure information within the fourth set duration taking the second moment as the inspiration moment;
the determining module is further configured to determine that the terminal ends the altitude change state if it is determined that the number of the second altitude change identifiers in the second altitude change information satisfies a third set threshold and it is determined that the difference between the maximum air pressure value and the minimum air pressure value in the second air pressure information does not satisfy a fourth set threshold; and the second height change identifier refers to an invariant identifier representing that the terminal is vertically static.
19. The apparatus of claim 18, wherein the determining module is further configured to:
if it is determined that the number of second altitude change identifiers in the second altitude change information does not meet the third set threshold, re-judging whether the terminal ends the altitude change state after a second interval duration; and/or the presence of a gas in the gas,
and if the difference value between the maximum air pressure value and the minimum air pressure value in the second air pressure information is determined to meet the fourth set threshold, re-judging whether the terminal finishes the height change state or not after the second interval duration.
20. The apparatus of claim 16 or 18,
the acquisition module is further used for acquiring periodic air pressure information by taking a third interval duration as a period; the periodic air pressure information refers to air pressure information within the third interval duration;
the determining module is further configured to determine that the altitude change identifier of the periodic air pressure information is an upward identifier if it is determined that a result of subtracting the air pressure value at the starting time from the air pressure value at the ending time of the corresponding period in the periodic air pressure information is greater than or equal to a first set value; and/or if the result of subtracting the air pressure value at the starting moment from the air pressure value at the corresponding period ending moment in the periodic air pressure information is less than or equal to a second set value, determining that the height change identifier of the periodic air pressure information is a downward identifier; and/or if the result of subtracting the air pressure value at the starting time from the air pressure value at the ending time of the corresponding period in the periodic air pressure information is larger than a second set value and smaller than the first set value, determining that the height change identifier of the periodic air pressure information is an unchanged identifier.
21. The apparatus of claim 14, further comprising an acquisition module, wherein,
the obtaining module is used for obtaining first motion information within a first set time length before the altitude change stage is determined to be entered, wherein the first motion information comprises a plurality of motion state identifiers, and the motion state identifiers comprise walking identifiers representing walking;
the determining module is further configured to determine that the walking state is in the walking state within a first set time period before entering the height change phase if it is determined that the number of the walking marks in the first motion information satisfies a fifth set threshold; and/or, if it is determined that the number of the walking marks in the first motion information does not meet the fifth set threshold, re-judging whether the terminal enters the altitude change state after a fourth interval duration.
22. The apparatus of claim 14, further comprising an acquisition module, wherein,
the obtaining module is configured to obtain second motion information within a second set time period after the altitude change phase is determined to end, where the second motion information includes a plurality of motion state identifiers, and the motion state identifier includes a walking identifier representing walking;
the determining module is configured to determine that the walking state is in the walking state within a second set time period after the height change stage is ended if it is determined that the number of the walking marks in the second motion information satisfies a sixth set threshold; and/or, if it is determined that the number of the walking identifiers in the second motion information does not meet the sixth set threshold, re-judging whether the terminal enters the altitude change state after a fifth interval duration.
23. The apparatus of claim 21 or 22,
the acquisition module is further used for acquiring periodic step counting information by taking the sixth interval duration as a period; the cycle step counting information refers to step counting information in the sixth interval duration;
the determining module is further configured to determine that the motion state identifier of the periodic step counting information is the walking identifier if it is determined that the number of steps represented by the periodic step counting information is greater than or equal to a set number of steps; and/or if the number of steps represented by the periodic step counting information is smaller than the set number of steps, determining that the motion state identifier of the periodic step counting information is a static identifier representing static.
24. The apparatus of claim 14, wherein the determining module is further configured to:
determining that the terminal is in a set posture in the height change stage before the determination that the terminal enters or leaves a set scene, wherein the set posture comprises a vertical posture and/or a handheld posture.
25. The apparatus according to claim 14, wherein the adjusting module is specifically configured to:
if the terminal is determined to enter the set scene, the communication signal quality of the terminal is enhanced by adjusting the communication control parameters; and/or the presence of a gas in the gas,
and if the terminal is determined to leave the set scene, weakening the communication signal quality of the terminal by adjusting the communication control parameters.
26. The apparatus of claim 14, wherein the setting scene comprises a subway station and/or a ground bank.
27. A terminal, characterized in that the terminal further comprises:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to perform the method of any one of claims 1 to 13.
28. A non-transitory computer readable storage medium, wherein instructions in the storage medium, when executed by a processor of a terminal, enable the terminal to perform the method of any of claims 1 to 13.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110912176.4A CN113645353B (en) | 2021-08-10 | 2021-08-10 | Method, device, terminal and storage medium for automatically adjusting communication control parameters |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110912176.4A CN113645353B (en) | 2021-08-10 | 2021-08-10 | Method, device, terminal and storage medium for automatically adjusting communication control parameters |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113645353A true CN113645353A (en) | 2021-11-12 |
CN113645353B CN113645353B (en) | 2022-12-02 |
Family
ID=78420409
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110912176.4A Active CN113645353B (en) | 2021-08-10 | 2021-08-10 | Method, device, terminal and storage medium for automatically adjusting communication control parameters |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113645353B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115695650A (en) * | 2022-10-24 | 2023-02-03 | 北京小米移动软件有限公司 | Indoor and outdoor scene switching identification method, device, equipment and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20170027478A1 (en) * | 2015-07-28 | 2017-02-02 | Kyocera Corporation | Mobile device, movement state detection method, and non-transitory storage medium storing movement state detection program |
WO2017109841A1 (en) * | 2015-12-21 | 2017-06-29 | 富士通株式会社 | Electronic device and motion detection program |
CN110035185A (en) * | 2019-04-22 | 2019-07-19 | 联想(北京)有限公司 | A kind of control method, device and electronic equipment |
WO2021047390A1 (en) * | 2019-09-10 | 2021-03-18 | 深圳市万普拉斯科技有限公司 | Method for reducing power consumption and mobile terminal |
CN112714476A (en) * | 2020-12-31 | 2021-04-27 | 努比亚技术有限公司 | Network switching method, terminal and computer readable storage medium |
-
2021
- 2021-08-10 CN CN202110912176.4A patent/CN113645353B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20170027478A1 (en) * | 2015-07-28 | 2017-02-02 | Kyocera Corporation | Mobile device, movement state detection method, and non-transitory storage medium storing movement state detection program |
WO2017109841A1 (en) * | 2015-12-21 | 2017-06-29 | 富士通株式会社 | Electronic device and motion detection program |
CN110035185A (en) * | 2019-04-22 | 2019-07-19 | 联想(北京)有限公司 | A kind of control method, device and electronic equipment |
WO2021047390A1 (en) * | 2019-09-10 | 2021-03-18 | 深圳市万普拉斯科技有限公司 | Method for reducing power consumption and mobile terminal |
CN112714476A (en) * | 2020-12-31 | 2021-04-27 | 努比亚技术有限公司 | Network switching method, terminal and computer readable storage medium |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115695650A (en) * | 2022-10-24 | 2023-02-03 | 北京小米移动软件有限公司 | Indoor and outdoor scene switching identification method, device, equipment and storage medium |
CN115695650B (en) * | 2022-10-24 | 2024-05-14 | 北京小米移动软件有限公司 | Indoor and outdoor scene switching identification method, device, equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN113645353B (en) | 2022-12-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107582028B (en) | Sleep monitoring method and device | |
EP3136710A1 (en) | Method and apparatus for controlling photography of unmanned aerial vehicle | |
CN108076218B (en) | Charging reminding method and mobile terminal | |
US11061202B2 (en) | Methods and devices for adjusting lens position | |
CN112995409B (en) | Display method of intelligent communication strategy effective scene, mobile terminal and computer readable storage medium | |
EP3136793A1 (en) | Method and apparatus for awakening electronic device | |
CN109145679A (en) | A kind of method, apparatus and system issuing warning information | |
US10122916B2 (en) | Object monitoring method and device | |
CN105509735B (en) | Information cuing method, device and terminal | |
CN105911573B (en) | Flight equipment method for retrieving and device | |
CN107666540B (en) | Terminal control method, device and storage medium | |
CN112013844B (en) | Method and device for establishing indoor environment map | |
CN105094321A (en) | Method and apparatus for controlling intelligent device | |
CN110457100A (en) | Application program display methods, device, equipment and storage medium | |
CN108735218A (en) | voice awakening method, device, terminal and storage medium | |
CN113645353B (en) | Method, device, terminal and storage medium for automatically adjusting communication control parameters | |
CN111243554B (en) | Screen brightness adjusting method, screen brightness adjusting device and storage medium | |
CN112187995A (en) | Illumination compensation method, illumination compensation device, and storage medium | |
JP2011229091A (en) | Mobile terminal, position managing server, program and method for controlling transmission timing of control data using air pressure sensor | |
CN113673603B (en) | Element point matching method and related device | |
CN117397233A (en) | Display screen control method, device, terminal equipment and storage medium | |
EP3848762A1 (en) | Method, apparatus, device and storage medium for controlling paste squeeze device | |
CN114898760A (en) | Voice coding method, device, electronic equipment and storage medium | |
CN110928589B (en) | Information processing method, device and storage medium | |
CN110674424A (en) | Travel information pushing method, device and medium |
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 |