Working mode adjustment method, device and storage medium
By determining the coherent time window length and the historical value of the communication status in the terminal device, predicting the communication status and adjusting the working mode, the problem of lagging working mode adjustment in the existing technology is solved, and the user experience and accuracy of mode adjustment are improved.
Patent Information
- Application Number
- CN202110411188.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-04-16
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2041-04-16
AI Technical Summary
The existing technology has a time lag in the adjustment of the working mode of the terminal device, resulting in poor user experience and the inability to respond in time to lags caused by network fluctuations.
By determining the coherence window length of the terminal device and the historical value of the communication status, the communication status is predicted, and the working mode is adjusted under preset conditions, such as signal strength, transmission delay or network bandwidth, and the working mode is switched in advance to reduce the feeling of lag. .
It effectively improves the user experience, reduces the lag during communication, prevents users from feeling network fluctuations, and improves the timeliness and accuracy of working mode adjustment.
Smart Images

Figure CN115226168B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to a method, device and storage medium for adjusting a working mode. Background Art
[0002] In data services, it is usually necessary to adjust the working mode of the terminal device according to the network environment. For example, in the dual-card data service of the terminal device, sometimes the main card signal is not good and it is necessary to switch to the secondary card for communication, or when the terminal device is connected to the Wi-Fi wireless network and data traffic at the same time, sometimes the Wi-Fi signal fluctuates or the signal is not good, and it is necessary to temporarily switch to data traffic to support the current data service.
[0003] In the related art, whether the working mode of the terminal device needs to be adjusted is usually determined based on real-time network fluctuations. However, this method has a time lag, and the working mode is adjusted only after the user obviously feels the lag, which leads to poor user experience. Summary of the invention
[0004] In view of this, a technical solution for adjusting the working mode is proposed.
[0005] In a first aspect, an embodiment of the present application provides a working mode adjustment method, which is applied to a terminal device, and the method includes: determining a coherent time window length corresponding to a current first working mode of the terminal device; determining a predicted value of the communication state of the terminal device based on the coherent time window length and multiple historical values of the communication state of the terminal device in the first working mode, wherein the communication state includes at least one of signal strength, transmission delay or network bandwidth; when the predicted value meets a preset condition, adjusting the working mode of the terminal device to a second working mode, wherein the second working mode is different from the channel of the first working mode, and the preset condition includes at least one of the signal strength in the predicted value being less than or equal to a preset signal strength threshold, the transmission delay in the predicted value being greater than or equal to a preset transmission delay threshold, and the network bandwidth in the predicted value being less than or equal to a preset network bandwidth threshold.
[0006] According to the embodiments of the present application, the coherent time window length (i.e., different channel scenarios) can be considered when determining the predicted value of the communication status of the terminal device, and the working mode of the terminal device can be adjusted when the predicted value of the communication status meets the preset conditions. Thus, when the communication status is poor (for example, weak signal, large transmission delay, small network bandwidth, etc.), the working mode of the terminal device can be adjusted in advance, thereby reducing the sense of lag during communication and preventing users from feeling network fluctuations during communication, thereby effectively improving the user experience.
[0007] According to the first aspect, in the first possible implementation manner of the working mode adjustment method, the multiple historical values of the communication state include the communication states at L first moments before the current moment, the predicted value of the communication state includes the predicted values of the communication states at M second moments after the current moment, and the coherent time window length is N, where L, M, and N are integers, L > N > 1, M ≥ 1.
[0008] Determining the predicted value of the communication state of the terminal device according to the coherent time window length and the multiple historical values of the communication state of the terminal device in the first working mode includes: when M = 1, determining, according to the coherent time window length N and the communication states at the L first moments, a weight coefficient corresponding to the first second moment, where the weight coefficient corresponding to the first second moment is used to indicate the weights of the communication states at the multiple first moments within the coherent time window of the first second moment; determining the predicted value of the communication state at the first second moment according to the weight coefficient corresponding to the first second moment and the communication states from the (L - N + 1)-th first moment to the L-th first moment.
[0009] In this embodiment, the weight coefficient can be trained according to the coherent time window length N and the communication states at the L first moments to obtain the weight coefficient corresponding to the first second moment, and the predicted value of the communication state of the terminal device at the next moment (i.e., the first second moment) can be determined according to the weight coefficient corresponding to the first second moment and the communication states from the (L - N + 1)-th first moment to the L-th first moment, thereby improving the accuracy of the predicted value of the communication state.
[0010] According to the first possible implementation manner of the first aspect, in the second possible implementation manner of the working mode adjustment method, determining the predicted value of the communication state of the terminal device according to the coherent time window length and the multiple historical values of the communication state of the terminal device in the first working mode further includes: when M > 1, for the j-th second moment, determining, according to the coherent time window length N, the communication states at the L first moments, the predicted values of the communication states from the first second moment to the (j - 1)-th second moment, and the weight coefficient corresponding to the (j - 1)-th second moment, a weight coefficient corresponding to the j-th second moment, where the weight coefficient corresponding to the j-th second moment is used to indicate the weights of the communication states at the first moments and the predicted values of the communication states at the second moments within the coherent time window of the j-th second moment, where 1 < j ≤ M < N; determining the predicted value of the communication state at the j-th second moment according to the weight coefficient corresponding to the j-th second moment, the coherent time window length N, the communication states at the L first moments, and the predicted values of the communication states from the first second moment to the (j - 1)-th second moment.
[0011] In this embodiment, based on the communication states at L first moments and the predicted values of the communication states from the 1st second moment to the jth second moment, the communication state at the j+1th second moment can be iteratively predicted to obtain the predicted value of the communication state at the j+1th second moment, thereby realizing multi-step prediction.
[0012] According to the first possible implementation manner of the first aspect, in the third possible implementation manner of the working mode adjustment method, the weight coefficient corresponding to the first second moment is determined according to the coherent time window length N and the communication status of the L first moments, including: determining the predicted value of the communication status of the i+Nth first moment according to the i-1th group of weight coefficients and the communication status from the i-th first moment to the i+N-1th first moment, where i is an integer and 0≤i≤LN, and the 0th group of weight coefficients is the initial value of the weight coefficient; determining the i-th group of weight coefficients according to the i-1th group of weight coefficients, the communication status of the i+Nth first moment and the predicted value of the communication status of the i+Nth first moment; and determining the L-N+1th group of weight coefficients as the weight coefficients corresponding to the first second moment.
[0013] In this embodiment, the weight coefficient is trained by the above-mentioned stochastic gradient descent method to obtain the weight coefficient corresponding to the first second moment, so that the weight coefficient can be adaptively adjusted to adapt to different channel scenarios, thereby improving the accuracy of the weight coefficient.
[0014] According to a first possible implementation manner of the first aspect, in a fourth possible implementation manner of the working mode adjustment method, determining the weight coefficient corresponding to the first second moment according to the coherent time window length N and the communication states of the L first moments includes: preprocessing the communication states of the L first moments to obtain the preprocessed communication states of the L first moments, wherein the preprocessing includes normalization and differential processing; determining the differential weight coefficient corresponding to the first second moment according to the coherent time window length N and the preprocessed communication states of the L first moments;
[0015] Among them, the method of determining the predicted value of the communication state of the first second moment according to the weight coefficient corresponding to the first second moment and the communication states from the L-N+1th first moment to the Lth first moment includes: determining the differential predicted value of the communication state of the first second moment according to the differential weight coefficient corresponding to the first second moment and the pre-processed communication states from the L-N+1th first moment to the Lth first moment; post-processing the differential predicted value to obtain the predicted value of the communication state of the first second moment, and the post-processing includes inverse difference and anti-normalization processing.
[0016] In this embodiment, the communication states of L first moments can be normalized and differentiated to obtain the preprocessed communication states of L first moments, and the differential weight coefficient corresponding to the first second moment is determined according to the coherent time window length N and the preprocessed communication states of the L first moments, and then the differential prediction value of the communication state of the first second moment is determined, and then the differential prediction value is post-processed by inverse differentiation and anti-normalization to obtain the prediction value of the communication state of the first second moment, and when the prediction value meets the preset conditions, the working mode of the terminal device is adjusted to the second working mode, so that the non-stationarity of the communication state can be reduced by preprocessing the communication state, and the prediction accuracy of the communication state can be improved by making a prediction based on the preprocessed communication state.
[0017] According to the first aspect or one or more of the multiple possible implementations of the first aspect, in a fifth possible implementation of the working mode adjustment method, the first working mode and the second working mode are any one of a primary card data traffic working mode, a secondary card data traffic working mode, and a Wi-Fi wireless communication working mode.
[0018] In this embodiment, the first working mode is any one of the main card data traffic working mode, the secondary card data traffic working mode, and the Wi-Fi wireless communication working mode, and the second working mode is also any one of the main card data traffic working mode, the secondary card data traffic working mode, and the Wi-Fi wireless communication working mode, so that the working mode of the terminal device can be switched between the main card data traffic working mode, the secondary card data traffic working mode, and the Wi-Fi wireless communication working mode.
[0019] In a second aspect, an embodiment of the present application provides a working mode adjustment device, which is applied to a terminal device, and the device includes: a coherent time window determination module, used to determine the coherent time window length corresponding to the current first working mode of the terminal device; a prediction module, used to determine the predicted value of the communication state of the terminal device based on the coherent time window length and multiple historical values of the communication state of the terminal device in the first working mode, wherein the communication state includes at least one of signal strength, transmission delay or network bandwidth; an adjustment module, used to adjust the working mode of the terminal device to a second working mode when the predicted value meets a preset condition, wherein the second working mode is different from the channel of the first working mode, and the preset condition includes at least one of the signal strength in the predicted value is less than or equal to a preset signal strength threshold, the transmission delay in the predicted value is greater than or equal to a preset transmission delay threshold, and the network bandwidth in the predicted value is less than or equal to a preset network bandwidth threshold.
[0020] According to the embodiments of the present application, the coherent time window length (i.e., different channel scenarios) can be considered when determining the predicted value of the communication status of the terminal device, and the working mode of the terminal device can be adjusted when the predicted value of the communication status meets the preset conditions. Thus, when the communication status is poor (for example, weak signal, large transmission delay, small network bandwidth, etc.), the working mode of the terminal device can be adjusted in advance, thereby reducing the sense of lag during communication and preventing users from feeling network fluctuations during communication, thereby effectively improving the user experience.
[0021] According to the second aspect, in a first possible implementation manner of the working mode adjustment device, the multiple historical values of the communication state include L communication states at first moments before the current moment, the predicted value of the communication state includes the predicted value of the communication state at M second moments after the current moment, and the coherent time window length is N, wherein L, M, and N are integers, L>N>1, and M≥1,
[0022] The prediction module includes: a first coefficient determination submodule, which is used to determine the weight coefficient corresponding to the first second moment according to the coherent time window length N and the communication status of the L first moments when M=1, and the weight coefficient corresponding to the first second moment is used to indicate the weight of the communication status of multiple first moments within the coherent time window of the first second moment; a first prediction submodule, which is used to determine the predicted value of the communication status of the first second moment according to the weight coefficient corresponding to the first second moment and the communication status from the L-N+1th first moment to the Lth first moment.
[0023] In this embodiment, the weight coefficient can be trained according to the coherent time window length N and the communication status of L first moments to obtain the weight coefficient corresponding to the first second moment, and according to the weight coefficient corresponding to the first second moment and the communication status from the L-N+1th first moment to the Lth first moment, the predicted value of the communication status of the terminal device at the next moment (i.e., the first second moment) is determined, thereby improving the accuracy of the predicted value of the communication status.
[0024] According to the first possible implementation manner of the second aspect, in the second possible implementation manner of the working mode adjustment device, the prediction module further includes: a second coefficient determination sub-module, configured to, when M>1, for the j-th second moment, according to the coherent time window length N, the communication states of the L first moments, the predicted values of the communication states from the 1st second moment to the (j-1)-th second moment, and the weight coefficient corresponding to the (j-1)-th second moment, determine the weight coefficient corresponding to the j-th second moment, where the weight coefficient corresponding to the j-th second moment is used to indicate the weights of the communication states of the first moments within the coherent time window of the j-th second moment and the predicted values of the communication states of the second moments, where 1<j≤M<N; a second prediction sub-module, configured to determine the predicted value of the communication state of the j-th second moment according to the weight coefficient corresponding to the j-th second moment, the coherent time window length N, the communication states of the L first moments, and the predicted values of the communication states from the 1st second moment to the (j-1)-th second moment.
[0025] In this embodiment, based on the communication states of the L first moments and the predicted values of the communication states from the 1st second moment to the j-th second moment, the communication state of the (j+1)-th second moment can be iteratively predicted to obtain the predicted value of the communication state of the (j+1)-th second moment, thereby realizing multi-step prediction.
[0026] According to the first possible implementation manner of the second aspect, in the third possible implementation manner of the working mode adjustment device, the first coefficient determination sub-module is configured to: determine the predicted value of the communication state of the (i+N)-th first moment according to the (i-1)-th group of weight coefficients and the communication states of the i-th first moment to the (i+N-1)-th first moment, where i is an integer and 0≤i≤L-N, and the 0-th group of weight coefficients is the initial value of the weight coefficient; determine the i-th group of weight coefficients according to the (i-1)-th group of weight coefficients, the communication state of the (i+N)-th first moment, and the predicted value of the communication state of the (i+N)-th first moment; determine the (L-N+1)-th group of weight coefficients as the weight coefficient corresponding to the 1st second moment.
[0027] In this embodiment, the weight coefficients are trained by the above-mentioned stochastic gradient descent method to obtain the weight coefficient corresponding to the 1st second moment, so that the weight coefficients can be adaptively adjusted to adapt to different channel scenarios, thereby improving the accuracy of the weight coefficients.
[0028] According to a first possible implementation manner of the second aspect, in a fourth possible implementation manner of the working mode adjustment device, the first coefficient determination submodule is configured to: preprocess the communication states at the L first moments to obtain the preprocessed communication states at the L first moments, wherein the preprocessing includes normalization and differential processing; determine the differential weight coefficient corresponding to the first second moment according to the coherent time window length N and the preprocessed communication states at the L first moments;
[0029] Among them, the first prediction submodule is configured to: determine the differential prediction value of the communication state at the first second moment according to the differential weight coefficient corresponding to the first second moment and the pre-processed communication state from the L-N+1th first moment to the Lth first moment; post-process the differential prediction value to obtain the prediction value of the communication state at the first second moment, and the post-processing includes inverse difference and anti-normalization processing.
[0030] In this embodiment, the communication states of L first moments can be normalized and differentiated to obtain the preprocessed communication states of L first moments, and the differential weight coefficient corresponding to the first second moment is determined according to the coherent time window length N and the preprocessed communication states of the L first moments, and then the differential prediction value of the communication state of the first second moment is determined, and then the differential prediction value is post-processed by inverse differentiation and anti-normalization to obtain the prediction value of the communication state of the first second moment, and when the prediction value meets the preset conditions, the working mode of the terminal device is adjusted to the second working mode, so that the non-stationarity of the communication state can be reduced by preprocessing the communication state, and the prediction accuracy of the communication state can be improved by making a prediction based on the preprocessed communication state.
[0031] According to the second aspect or one or more of the multiple possible implementations of the second aspect, in a fifth possible implementation of the working mode adjustment device, the first working mode and the second working mode are any one of a primary card data traffic working mode, a secondary card data traffic working mode, and a Wi-Fi wireless communication working mode.
[0032] In this embodiment, the first working mode is any one of the main card data traffic working mode, the secondary card data traffic working mode, and the Wi-Fi wireless communication working mode, and the second working mode is also any one of the main card data traffic working mode, the secondary card data traffic working mode, and the Wi-Fi wireless communication working mode, so that the working mode of the terminal device can be switched between the main card data traffic working mode, the secondary card data traffic working mode, and the Wi-Fi wireless communication working mode.
[0033] In a third aspect, an embodiment of the present application provides a working mode adjustment device, comprising: a processor; a memory for storing processor executable instructions; wherein the processor is configured to implement the above-mentioned first aspect or one or several working mode adjustment methods of the multiple possible implementation methods of the first aspect when executing the instructions.
[0034] According to the embodiments of the present application, the coherent time window length (i.e., different channel scenarios) can be considered when determining the predicted value of the communication status of the terminal device, and the working mode of the terminal device can be adjusted when the predicted value of the communication status meets the preset conditions. Thus, when the communication status is poor (for example, weak signal, large transmission delay, small network bandwidth, etc.), the working mode of the terminal device can be adjusted in advance, thereby reducing the sense of lag during communication and preventing users from feeling network fluctuations during communication, thereby effectively improving the user experience.
[0035] In a fourth aspect, an embodiment of the present application provides a non-volatile computer-readable storage medium having computer program instructions stored thereon, which, when executed by a processor, implement the working mode adjustment method of the above-mentioned first aspect or one or several of the multiple possible implementation methods of the first aspect.
[0036] According to the embodiments of the present application, the coherent time window length (i.e., different channel scenarios) can be considered when determining the predicted value of the communication status of the terminal device, and the working mode of the terminal device can be adjusted when the predicted value of the communication status meets the preset conditions. Thus, when the communication status is poor (for example, weak signal, large transmission delay, small network bandwidth, etc.), the working mode of the terminal device can be adjusted in advance, thereby reducing the sense of lag during communication and preventing users from feeling network fluctuations during communication, thereby effectively improving the user experience.
[0037] In a fifth aspect, an embodiment of the present application provides a computer program product, comprising a computer-readable code, or a non-volatile computer-readable storage medium carrying a computer-readable code. When the computer-readable code is running in an electronic device, a processor in the electronic device executes the working mode adjustment method of the above-mentioned first aspect or one or several possible implementation methods of the first aspect.
[0038] According to the embodiments of the present application, the coherent time window length (i.e., different channel scenarios) can be considered when determining the predicted value of the communication status of the terminal device, and the working mode of the terminal device can be adjusted when the predicted value of the communication status meets the preset conditions. Thus, when the communication status is poor (for example, weak signal, large transmission delay, small network bandwidth, etc.), the working mode of the terminal device can be adjusted in advance, thereby reducing the sense of lag during communication and preventing users from feeling network fluctuations during communication, thereby effectively improving the user experience.
[0039] These and other aspects of the present application will become more apparent from the following description of the embodiment(s). BRIEF DESCRIPTION OF THE DRAWINGS
[0040] The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate exemplary embodiments, features, and aspects of the present application and, together with the description, serve to explain the principles of the present application.
[0041] Figure 1 A schematic diagram of the structure of a terminal device according to an embodiment of the present application is shown.
[0042] Figure 2 A schematic diagram showing an application scenario of a working mode adjustment method according to an embodiment of the present application.
[0043] Figure 3 A schematic diagram showing an application scenario of a working mode adjustment method according to an embodiment of the present application.
[0044] Figure 4 A flow chart of a method for adjusting a working mode according to an embodiment of the present application is shown.
[0045] Figure 5 A flow chart of a method for adjusting a working mode according to an embodiment of the present application is shown.
[0046] Figure 6 A block diagram of a working mode adjustment device according to an embodiment of the present application is shown. DETAILED DESCRIPTION
[0047] Various exemplary embodiments, features and aspects of the present application will be described in detail below with reference to the accompanying drawings. The same reference numerals in the accompanying drawings represent elements with the same or similar functions. Although various aspects of the embodiments are shown in the accompanying drawings, the drawings are not necessarily drawn to scale unless otherwise specified.
[0048] The word “exemplary” is used exclusively herein to mean “serving as an example, example, or illustration.” Any embodiment described herein as “exemplary” is not necessarily to be construed as preferred or advantageous over other embodiments.
[0049] In addition, in order to better illustrate the present application, numerous specific details are given in the following specific embodiments. It should be understood by those skilled in the art that the present application can also be implemented without certain specific details. In some examples, methods, means, components and circuits well known to those skilled in the art are not described in detail in order to highlight the subject matter of the present application.
[0050] At present, in data services, it is usually determined whether the working mode of the terminal device needs to be adjusted based on real-time network fluctuations. For example, the signal collector at the bottom layer of the terminal device (such as a modem processor, etc.) collects signals in real time and reports the collected signals to the upper layer of the terminal device; the upper layer of the terminal device reads the signals reported by the bottom layer and compares the read signals with a preset threshold; when the read signals are less than the preset threshold, the working mode of the terminal device is adjusted.
[0051] However, the signal collector at the bottom layer of the terminal device generally has a collection cycle of 100ms, while the upper layer of the terminal device generally has a signal reading cycle of 1s, that is, the upper layer of the terminal device will filter the signal reported by its bottom layer, and then make a decision on whether to adjust the working mode based on the filtered signal. In the case of weak signals, coupled with the delay of the upper layer filtering, when adjusting the working mode of the terminal device, the user can already feel the lag, which is poor in timeliness and affects the user experience.
[0052] In other technical solutions, the signal at the next moment can be predicted based on a fixed time window length and filter coefficient, and the prediction result can be used to determine whether the working mode of the terminal device needs to be adjusted. Although this solution uses the prediction result to determine the adjustment of the working mode of the terminal device, it sets the time window length and filter coefficient to fixed values based on empirical values, which cannot adapt to channel changes in different scenarios. There is also a problem that users can clearly feel the freeze when adjusting the working mode of the terminal device.
[0053] In addition, when distributing media streams such as video applications, the terminal device reports the real-time network status to the server, and the server distributes the appropriate bitstream accordingly. This method also has processing delays, which can easily cause short-term video freezes and poor user experience.
[0054] In order to solve the above technical problems, the present application provides a working mode adjustment method. The working mode adjustment method of the embodiment of the present application can consider the coherent time window length (that is, different channel scenarios) when determining the predicted value of the communication state of the terminal device, and adjust the working mode of the terminal device when the predicted value of the communication state meets the preset conditions. In this way, the working mode of the terminal device can be adjusted in advance when the communication state is poor (for example, weak signal, large transmission delay, small network bandwidth, etc.), thereby reducing the sense of jamming during communication, so that the user does not feel the network fluctuations during communication, and effectively improves the user experience.
[0055] Among them, the communication status includes at least one of signal strength, transmission delay or network bandwidth, and the preset conditions include at least one of the signal strength in the predicted value of the communication status is less than or equal to the preset signal strength threshold, the transmission delay in the predicted value of the communication status is greater than or equal to the preset transmission delay threshold, and the network bandwidth in the predicted value of the communication status is less than or equal to the preset network bandwidth threshold.
[0056] It should be noted that the communication status may also include other communication information, and accordingly, the preset conditions may be set according to the specific content included in the communication status. Those skilled in the art may set the specific content included in the communication status and the preset conditions according to actual conditions, and this application does not limit this.
[0057] The working mode adjustment method of the embodiment of the present application can be applied to a terminal device. The terminal device can be an intelligent terminal device with a wireless communication function. Wireless communication includes communication through wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), 2G / 3G / 4G / 5G networks, etc. The present application does not limit the specific method of wireless communication. The terminal device of the present application may also have the function of communicating through a wired connection.
[0058] The terminal device of the embodiment of the present application may be a touch screen, a non-touch screen, or no screen. A touch screen terminal device may be controlled by clicking, sliding, etc. on the display screen with fingers, a stylus, etc. A non-touch screen terminal device may be connected to an input device such as a mouse, keyboard, or touch panel to control the terminal device through the input device. A terminal device without a screen may be, for example, a Bluetooth speaker without a screen.
[0059] Figure 1 A schematic diagram of the structure of a terminal device according to an embodiment of the present application is shown.
[0060] The terminal device 100 may include at least one of a mobile phone, a foldable electronic device, a tablet computer, a desktop computer, a laptop computer, a handheld computer, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a cellular phone, a personal digital assistant (PDA), an augmented reality (AR) device, a virtual reality (VR) device, an artificial intelligence (AI) device, a wearable device, an in-vehicle device, a smart home device, or a smart city device. The embodiment of the present application does not impose any special restrictions on the specific type of the terminal device 100.
[0061] The terminal device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) connector 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.
[0062] It is understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the terminal device 100. In other embodiments of the present application, the terminal device 100 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0063] The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Among them, different processing units may be independent devices or integrated into one or more processors. The processor may generate an operation control signal according to the instruction opcode and the timing signal to complete the control of fetching and executing instructions.
[0064] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 may be a cache memory. The memory may store instructions or data that have been used or are frequently used by the processor 110. If the processor 110 needs to use the instruction or data, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
[0065] In some embodiments, the processor 110 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc. The processor 110 may be connected to a touch sensor, an audio module, a wireless communication module, a display, a camera, and other modules through at least one of the above interfaces.
[0066] It is understandable that the interface connection relationship between the modules illustrated in the embodiment of the present application is only a schematic illustration and does not constitute a structural limitation on the terminal device 100. In other embodiments of the present application, the terminal device 100 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
[0067] The wireless communication function of the terminal device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
[0068] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in terminal device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of antennas. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.
[0069] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G applied to the terminal device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110.
[0070] The modem processor may include a modulator and a demodulator. Among them, the modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to a speaker 170A, a receiver 170B, etc.), or displays an image or video through a display screen 194. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110 and be set in the same device as the mobile communication module 150 or other functional modules.
[0071] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), bluetooth low energy (BLE), ultra wide band (UWB), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to the terminal device 100. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the electromagnetic wave signal and performs filtering, and sends the processed signal to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate the frequency, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.
[0072] In some embodiments, the antenna 1 of the terminal device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the terminal device 100 can communicate with the network and other electronic devices through wireless communication technology. The wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology, etc. The GNSS may include a global positioning system (GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS) and / or a satellite based augmentation system (SBAS).
[0073] The gyro sensor 180B can be used to determine the motion posture of the terminal device 100. In some embodiments, the angular velocity of the terminal device 100 around three axes (i.e., x, y, and z axes) can be determined by the gyro sensor 180B. In some embodiments, the gyro sensor 180B can be used to measure the angular velocity of the terminal device.
[0074] The acceleration sensor 180E can detect the magnitude of the acceleration of the terminal device 100 in various directions (generally three axes). When the terminal device 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of the electronic device, and is applied to applications such as horizontal and vertical screen switching and pedometers. In some embodiments, the acceleration sensor 180E can be used to measure the movement acceleration of the terminal device, and the acceleration sensor 180E can also be combined with the gyroscope sensor 180B to determine the movement speed of the terminal device.
[0075] The SIM card interface 195 is used to connect a SIM card. The SIM card can be connected to and separated from the terminal device 100 by inserting it into the SIM card interface 195 or pulling it out from the SIM card interface 195. The terminal device 100 can support one or more SIM card interfaces. The SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, etc. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of multiple cards can be the same or different. The SIM card interface 195 can also be compatible with different types of SIM cards. The SIM card interface 195 can also be compatible with external memory cards. The terminal device 100 interacts with the network through the SIM card to implement functions such as calls and data communications. In some embodiments, the terminal device 100 uses an eSIM, i.e., an embedded SIM card. The eSIM card can be embedded in the terminal device 100 and cannot be separated from the terminal device 100.
[0076] For example, when the terminal device includes two SIM card interfaces, one SIM card interface can be set as the primary card interface, and the SIM card inserted into the primary card interface is the primary card of the terminal device; the other SIM card interface can be set as the secondary card interface, and the SIM card inserted into the secondary card interface is the secondary card of the terminal device. The terminal device can communicate with other devices through the primary card or the secondary card.
[0077] In some embodiments, the gyroscope sensor 180B, acceleration sensor 180E, mobile communication module 150, wireless communication module 160, modem processor and other acquisition and measurement modules of the terminal device 100 can report the collected sensor data and / or measured signal parameter values to the processor 110 according to a preset period.
[0078] The processor 110 can obtain the moving speed, Doppler frequency deviation and other information of the terminal device 100 from the sensor data and / or signal parameter values reported by the acquisition and measurement module, and then determine the coherent time window length corresponding to the current first working mode of the terminal device 100 according to the moving speed, Doppler frequency deviation and other information of the terminal device 100, and determine the predicted value of the communication state of the terminal device 100 according to the coherent time window length and multiple historical values of the communication state of the terminal device 100 in the first working mode; when the predicted value of the communication state meets the preset conditions, the working mode of the terminal device 100 is adjusted to the second working mode, and the second working mode has a different channel from the first working mode. In some embodiments, the acquisition and measurement module of the terminal device may also include other modules, which are not limited by the present application.
[0079] Figure 2 A schematic diagram showing an application scenario of a method for adjusting a working mode according to an embodiment of the present application is shown. Figure 2As shown, the terminal device 200 includes an application processor 210, a wireless interface layer 220, a baseband processor 230, and a collection and measurement module 240. Among them, the application processor 210 is used to execute processing related to the application program on the terminal device 200, and the baseband processor 230 is used to execute processing related to communication (such as cellular communication, Wi-Fi communication, etc.) on the terminal device 200. The processing related to communication may include air interface status analysis, downlink bandwidth estimation, air interface status prediction, air interface status reporting, etc.
[0080] The acquisition and measurement module 240 may include modules such as a physical layer (PHY), a radio resource control (RRC), a media access control address (MAC address, also known as a physical address), a forward error correction (FEC), a modem processor, etc. Optionally, the acquisition and measurement module may also include sensors, such as a gyroscope sensor, an acceleration sensor, etc.
[0081] The acquisition and measurement module 240 may report the collected sensor data and / or the measured signal parameter value to the baseband processor 230 at a preset period (e.g., 100 ms). The signal parameter value may include the value of at least one parameter of received signal strength indication (RSSI), reference signal receiving power (RSRP), block error rate (BLER), signal-noise ratio (SNR), Doppler frequency deviation, etc.
[0082] The baseband processor 230 may obtain information such as the moving speed and Doppler frequency deviation of the terminal device 200 from the signal parameter value and / or sensor data reported by the acquisition and measurement module 240, and determine the coherent time window length corresponding to the current first working mode of the terminal device 200 according to the moving speed and Doppler frequency deviation of the terminal device 200;
[0083] Then, according to the coherent time window length and multiple historical values of the communication state of the terminal device 200 in the first working mode (i.e., multiple historical air interface states), the predicted value of the communication state of the terminal device (i.e., the predicted value of the air interface state) is determined, and the predicted value of the communication state is reported to the application processor 210 through the radio interface layer (radio interface layer, RIL) 220. The communication state may include at least one of signal strength, transmission delay, or network bandwidth, and the first working mode is any one of the primary card data flow working mode, the secondary card data flow working mode, and the Wi-Fi wireless communication working mode.
[0084] The application processor 210 may determine whether the received predicted value of the communication state meets the preset conditions, and adjust the working mode of the terminal device to the second working mode if the predicted value of the communication state meets the preset conditions. The second working mode is any one of the primary card data flow working mode, the secondary card data flow working mode, and the Wi-Fi wireless communication working mode, and the second working mode has a different channel from the first working mode; the preset conditions may include at least one of the signal strength in the predicted value of the communication state being less than or equal to the preset signal strength threshold, the transmission delay in the predicted value of the communication state being greater than or equal to the preset transmission delay threshold, and the network bandwidth in the predicted value of the communication state being less than or equal to the preset network bandwidth threshold.
[0085] For example, the terminal device 200 has a main card and a secondary card, and the current first working mode is the main card data flow working mode. When the signal strength in the predicted value of the communication state of the terminal device 200 is less than or equal to the preset signal strength threshold, the working mode of the terminal device 200 can be adjusted to the secondary card data flow working mode (i.e., the second working mode). That is, when the main card Internet signal is poor, switch to the secondary card to access the Internet.
[0086] Figure 3 A schematic diagram showing an application scenario of a method for adjusting a working mode according to an embodiment of the present application is shown. Figure 3 As shown, the terminal device includes a modem processor 310, a baseband processor 320 and an application processor 330. The modem processor 310 can be regarded as a collection and measurement module of the terminal device, and the baseband processor 320 includes an interface adaptation layer 321 and an air interface state prediction module 322.
[0087] The modem processor 310 may report the measured signal parameter value to the baseband processor 320 through the interface control device (ICD) in the terminal device according to a preset period. After receiving the signal parameter value reported by the modem processor 310, the interface adaptation layer 321 (including the parameter adaptation interface and the control adaptation interface) of the baseband processor 320 may format the signal parameter value to obtain the formatted signal parameter value, and send the formatted signal parameter value to the air interface state prediction module 322.
[0088] The air interface status prediction module 322 can obtain information such as the moving speed and Doppler frequency deviation of the terminal device from the formatted signal parameter value, and determine the coherent time window length corresponding to the current first working mode of the terminal device based on the moving speed and Doppler frequency deviation of the terminal device, and then predict the air interface status of the terminal device based on the coherent time window length and multiple historical air interface states of the terminal device in the first working mode (i.e., multiple historical values of the communication status), obtain the predicted value of the air interface status (i.e., the predicted value of the communication status), and send the predicted value to the application processor 330 through the wireless interface layer (not shown in the figure).
[0089] The application processor 330 can determine whether the predicted value of the received communication status meets the preset conditions, and if the predicted value meets the preset conditions, adjust the working mode, that is, adjust the working mode of the terminal device from the first working mode to the second working mode.
[0090] It should be noted that Figure 3 Only the modem processor is used as an example to illustrate the reporting process of the signal parameter value measured by the acquisition and measurement module of the terminal device. In other embodiments of the present application, the acquisition and measurement module can also be other modules, and the present application does not limit the specific implementation of the acquisition and measurement module.
[0091] Figure 4 FIG. 1 is a flow chart showing a method for adjusting a working mode according to an embodiment of the present application. Figure 4 As shown, the working mode adjustment method includes:
[0092] Step S410, determining a coherent time window length corresponding to the current first working mode of the terminal device.
[0093] In a possible implementation, the moving speed, Doppler frequency deviation and other information of the terminal device can be obtained from the sensor data and / or signal parameter values periodically reported by the acquisition and measurement module of the terminal device (i.e., the bottom layer of the terminal device). The acquisition and measurement module may include at least one of a physical layer PHY, a radio resource control RRC, a MAC address, a forward error correction FEC, a modem processor, a gyroscope sensor or an acceleration sensor.
[0094] Optionally, the moving speed of the terminal device can be obtained from data reported by sensors related to the motion state of the terminal device, such as a gyroscope sensor and an acceleration sensor. The Doppler frequency deviation can be obtained from signal parameter values reported by a modem processor and the like. For example, the modem processor of the terminal device can report signal parameter values through an interface control device ICD, and the message processing function in the interface control device ICD can apply for a buffer area to store the signal parameter values reported by the modem processor according to a preset period (e.g., 100ms) in the buffer area; the baseband processor of the terminal device can obtain the Doppler frequency deviation of the terminal device from the signal parameter values stored in the above buffer area.
[0095] The coherent time window length corresponding to the current first working mode of the terminal device can be determined according to the moving speed, Doppler frequency deviation and other information of the terminal device. Among them, the first working mode can be any one of the main card data flow working mode, the secondary card data flow working mode, and the Wi-Fi wireless communication working mode. It should be noted that the first working mode can also be other working modes of the terminal device, and this application does not limit this.
[0096] The coherence time window is the channel coherence time window, which is the maximum time difference range for the channel to remain constant. Continuous physical signals within the channel coherence time window have good correlation, and it is generally believed that they are subject to similar wireless fading. However, the channel coherence time windows in different mobile scenarios are generally different. For example, in the high-speed rail scenario, due to the influence of the Doppler effect, the channel is in a fast fading mode, and the channel coherence time window will be very short; in static scenarios such as office buildings and residential areas, the channel is relatively more stable, and the channel coherence time window will be longer.
[0097] By determining the coherent time window length corresponding to the current first working mode of the terminal device through information such as the moving speed and Doppler frequency deviation of the terminal device, the terminal device can be mapped to different channel scenarios, thereby combining the working mode adjustment of the terminal device with the channel scenario to improve the timeliness of the working mode adjustment.
[0098] Step S420: Determine a predicted value of the communication state of the terminal device according to the coherent time window length and multiple historical values of the communication state of the terminal device in the first working mode.
[0099] According to the autocorrelation characteristics of the signal, within the channel coherence time window, the predicted signal value at the second moment after the current moment (i.e., the future moment) is related to the historical signal values at multiple first moments before the current moment (i.e., historical moments). Based on this assumption, the predicted value of the communication state of the terminal device can be determined according to the coherence time window length and multiple historical values of the communication state of the terminal device in the first working mode.
[0100] For example, assuming that the coherent time window length is 5, that is, the communication status of the terminal device at the next moment after the current moment is related to the communication status of the 5 moments before the current moment, then the predicted value of the communication status at the second moment after the current moment can be determined based on the communication status of the 5 first moments before the current moment through smoothing filtering and other methods.
[0101] In a possible implementation, the smoothing filter can be expressed by the following formula (1):
[0102]
[0103] In formula (1), N represents the coherent time window length, n represents a total of n moments, where the first n-1 moments are the first moments before the current moment, and the nth moment is the second moment after the current moment. represents the predicted value of the communication state at the second moment, y n-1 ,y n-2 , …, y n-N represents the communication status of the N first moments before the current moment (real value), α 1 , α 2 , …, α N Represents the weight coefficient.
[0104] In a possible implementation, the weight coefficient may be a fixed coefficient corresponding to the coherent time window length, and the corresponding weight coefficient may be different for different coherent time window lengths. The weight coefficient may also be a coefficient that is adaptively updated based on the coherent time window length and multiple historical values of the communication state of the terminal device in the first working mode.
[0105] In a possible implementation, the multiple historical values of the communication state may include the communication states of L first moments before the current moment, the predicted value of the communication state may include the predicted value of the communication state of M second moments after the current moment, and the coherent time window length is N, where L, M, and N are integers, L>N>1, and M≥1.
[0106] Step S420 may include: when M=1, determining a weight coefficient corresponding to the first second moment according to the coherent time window length N and the communication states of the L first moments, the weight coefficient corresponding to the first second moment being used to indicate the weights of the communication states of multiple first moments within the coherent time window of the first second moment; determining a predicted value of the communication state of the first second moment according to the weight coefficient corresponding to the first second moment and the communication states from the L-N+1th first moment to the Lth first moment.
[0107] For example, assuming that the coherent time window length N=5, the number of first moments L=20, and accordingly, there are 5 weight coefficients, and the initial values of the weight coefficients can be preset.
[0108] When determining the weight coefficient corresponding to the 1st second moment based on the coherent time window length 5 and the communication status at 20 first moments, the predicted value of the communication status at the 6th first moment can be first determined based on the 0th group of weight coefficients (i.e., the initial value of the weight coefficient) and the communication status from the 1st first moment to the 5th first moment; and the 1st group of weight coefficients can be determined based on the 0th group of weight coefficients, the communication status at the 6th first moment (the actual value) and the predicted value of the communication status at the 6th first moment.
[0109] Optionally, the difference between the communication state (real value) at the 6th first moment and the predicted value of the communication state at the 6th first moment may be determined, and the 0th group of weight coefficients may be updated according to the difference to obtain the 1st group of weight coefficients.
[0110] Optionally, when determining the first group of weight coefficients, the communication status from the first first moment to the fifth first moment may also be considered. The difference between the communication status (real value) at the sixth first moment and the predicted value of the communication status at the sixth first moment may be determined, and based on the difference and the communication status from the first first moment to the fifth first moment, the adjustment value of each weight coefficient in the 0th group of weight coefficients is determined, and based on the adjustment value of each weight coefficient, the 0th group of weight coefficients is updated to obtain the 1st group of weight coefficients.
[0111] After determining the first set of weight coefficients, the predicted value of the communication status at the 7th first moment can be determined based on the first set of weight coefficients and the communication status from the 2nd first moment to the 6th first moment; the second set of weight coefficients can be determined based on the first set of weight coefficients, the communication status at the 7th first moment and the predicted value of the communication status at the 7th first moment.
[0112] By analogy, the predicted value of the communication status at the i+Nth first moment can be determined based on the i-1th group of weight coefficients and the communication status from the i-th first moment to the i+N-1th first moment, where i is an integer and 0≤i≤LN; and the i-1th group of weight coefficients can be determined based on the i-1th group of weight coefficients, the communication status at the i+Nth first moment and the predicted value of the communication status at the i+Nth first moment.
[0113] Optionally, the difference between the communication state (true value) at the i+Nth first moment and the predicted value of the communication state at the i+Nth first moment can be determined, and the i-1th group of weight coefficients can be updated according to the difference to obtain the ith group of weight coefficients.
[0114] Optionally, when determining the i-th group of weight coefficients, the communication state from the i-th first moment to the i+N-1th first moment may also be considered. The difference between the communication state at the i+Nth first moment and the predicted value of the communication state at the i+Nth first moment may be determined, and based on the difference and the communication state from the i-th first moment to the i+N-1th first moment, the adjustment value of each weight coefficient in the i-1th group of weight coefficients may be determined, and based on the adjustment value of each weight coefficient, the i-1th group of weight coefficients may be updated to obtain the i-th group of weight coefficients.
[0115] In a similar manner, by sliding the coherent time window, the L-N+1th group of weight coefficients can be determined, and the L-N+1th group of weight coefficients can be determined as the weight coefficients corresponding to the first second moment. For example, when the coherent time window length N=5 and the number of first moments L=20, 20-5+1=16, the 16th group of weight coefficients can be determined as the weight coefficients corresponding to the first second moment. The weight coefficient corresponding to the first second moment can be used to indicate the weights of the communication states of multiple first moments within the coherent time window of the first second moment.
[0116] By means of the above-mentioned stochastic gradient descent method, the weight coefficient is trained to obtain the weight coefficient corresponding to the first second moment, so that the weight coefficient can be adaptively adjusted to adapt to different channel scenarios, thereby improving the accuracy of the weight coefficient.
[0117] After determining the weight coefficient corresponding to the first second moment, the predicted value of the communication state at the first second moment can be determined according to the weight coefficient corresponding to the first second moment and the communication state from the L-N+1th first moment to the Lth first moment. For example, when the coherent time window length N=5 and the number of first moments L=20, the predicted value of the communication state at the first second moment can be determined according to the weight coefficient corresponding to the first second moment and the communication state from the 16th first moment to the 20th first moment by the above formula (1).
[0118] In this way, the weight coefficients can be trained according to the coherent time window length N and the communication states at the L first moments, to obtain the weight coefficients corresponding to the first second moment, and based on the weight coefficients corresponding to the first second moment, and the communication states at the (L - N + 1)-th to L-th first moments, determine the predicted value of the communication state of the terminal device at the next moment (i.e., the first second moment), thereby improving the accuracy of the predicted value of the communication state.
[0119] In a possible implementation manner, step S420 may further include: when M > 1, for the j-th second moment, determine the weight coefficient corresponding to the j-th second moment according to the coherent time window length N, the communication states at the L first moments, the predicted values of the communication states from the first second moment to the (j - 1)-th second moment, and the weight coefficient corresponding to the (j - 1)-th second moment, where the weight coefficient corresponding to the j-th second moment is used to indicate the weights of the communication states at the first moments and the predicted values of the communication states at the second moments within the coherent time window of the j-th second moment, where 1 < j ≤ M < N; determine the predicted value of the communication state at the j-th second moment according to the weight coefficient corresponding to the j-th second moment, the coherent time window length N, the communication states at the L first moments, and the predicted values of the communication states from the first second moment to the (j - 1)-th second moment.
[0120] For example, assume that the coherent time window length N = 5, and the number of first moments L = 20. For the second second moment, the weight coefficient corresponding to the second second moment can be determined in a similar manner as above according to the communication states at the 17th to 20th of the 20 first moments, the predicted value of the communication state at the first second moment, and the weight coefficient corresponding to the first second moment. Among them, the weight coefficient corresponding to the second second moment is used to indicate the weights of the communication states at the 17th to 20th first moments within the coherent time window of the second second moment and the predicted value of the communication state at the first second moment.
[0121] Then, according to the weight coefficient corresponding to the second second moment, the communication states at the 17th to 20th first moments, and the predicted value of the communication state at the first second moment, the predicted value of the communication state at the second second moment can be determined through the above formula (1).
[0122] For the third second moment, the weight coefficient corresponding to the third second moment can be determined in a similar manner to the above according to the communication states from the 18th first moment to the 20th first moment, the predicted values of the communication states from the 1st second moment to the 2nd second moment, and the weight coefficient corresponding to the 2nd second moment among the communication states of the 20 first moments. The weight coefficient corresponding to the third second moment is used to indicate the weight of the predicted values of the communication states from the 18th first moment to the 20th first moment and the communication states from the 1st second moment to the 2nd second moment within the coherent time window of the third second moment.
[0123] Then, the predicted value of the communication status at the third second moment can be determined according to the weight coefficient corresponding to the third second moment, the communication status from the 18th first moment to the 20th first moment, and the predicted value of the communication status from the 1st second moment to the 2nd second moment through the above formula (1).
[0124] When j is other values, the method for determining the predicted value of the communication state at the j-th second moment is similar to the above, and a repetitive description is not given here.
[0125] In this way, based on the communication states at L first moments and the predicted values of the communication states from the 1st second moment to the jth second moment, the communication state at the j+1th second moment can be iteratively predicted to obtain the predicted value of the communication state at the j+1th second moment, thereby achieving multi-step prediction.
[0126] It should be noted that those skilled in the art can determine the specific values of N, L, and M according to actual conditions, and this application does not impose any limitation on this.
[0127] Step S430: When the predicted value meets a preset condition, the working mode of the terminal device is adjusted to a second working mode.
[0128] The second working mode is any one of the primary card data flow working mode, the secondary card data flow working mode, and the Wi-Fi wireless communication working mode, and the second working mode has a different channel from the first working mode. It should be noted that the second working mode can also be other working modes of the terminal device, and this application does not limit this.
[0129] The communication status may include at least one of signal strength, transmission delay or network bandwidth. Correspondingly, the predicted value of the communication status may also include at least one of signal strength, transmission delay or network bandwidth.
[0130] The preset conditions may include at least one of the following: the signal strength in the predicted value of the communication status is less than or equal to a preset signal strength threshold, the transmission delay in the predicted value of the communication status is greater than or equal to a preset transmission delay threshold, and the network bandwidth in the predicted value of the communication status is less than or equal to a preset network bandwidth threshold.
[0131] When judging whether the predicted value of the communication status meets the preset conditions, the signal strength, transmission delay, and network bandwidth included in the predicted value can be judged separately, and when any item in the predicted value meets the preset conditions, the predicted value of the communication status is considered to meet the preset conditions, or, when all items in the predicted value meet the preset conditions, the predicted value of the communication status is considered to meet the preset conditions.
[0132] For example, when the predicted value of the communication state includes signal strength, the signal strength in the predicted value of the communication state may be compared with a preset signal strength threshold. When the predicted value of the communication state is one, that is, the predicted value of the communication state is the predicted value of the communication state of the terminal device at the first second moment, the signal strength in the predicted value of the communication state at the first second moment may be compared with the signal strength threshold, and when the signal strength in the predicted value of the communication state at the first second moment is less than or equal to the signal strength threshold, it is considered that the predicted value of the terminal device meets the preset condition, and the working mode of the terminal device may be adjusted to the second working mode.
[0133] In the case where there are multiple predicted values of the communication state, the signal strength in the predicted value of the communication state at the last second moment may be compared with the signal strength threshold. For example, in the case where there are four predicted values of the communication state, the signal strength in the predicted value of the communication state at the fourth second moment may be compared with the signal strength threshold, and when the signal strength in the prediction of the communication state at the fourth second moment is less than or equal to the signal strength threshold, it is considered that the predicted value of the terminal device meets the preset condition, and the working mode of the terminal device may be adjusted to the second working mode.
[0134] In the case where the predicted value of the communication status includes transmission delay or network bandwidth, the method of determining whether the predicted value of the communication status meets the preset condition is similar to the above, and a repeated description is not made here.
[0135] According to the embodiments of the present application, the coherent time window length (i.e., different channel scenarios) can be considered when determining the predicted value of the communication status of the terminal device, and the working mode of the terminal device can be adjusted when the predicted value of the communication status meets the preset conditions. Thus, when the communication status is poor (for example, weak signal, large transmission delay, small network bandwidth, etc.), the working mode of the terminal device can be adjusted in advance, thereby reducing the sense of lag during communication and preventing users from feeling network fluctuations during communication, thereby effectively improving the user experience.
[0136] Figure 5 FIG. 1 is a flow chart showing a method for adjusting a working mode according to an embodiment of the present application. Figure 5 As shown, the working mode adjustment method includes step S410, step S4201, step S4202, step S4203, step S4204 and step S430. Among them, step S4201 to step S4204 are Figure 4 A possible more detailed implementation of step S420 in the illustrated embodiment.
[0137] Step S410: determining a coherent time window length corresponding to the current first working mode of the terminal device. Figure 5 In the embodiment shown, step S410 is Figure 4 Step S410 in the illustrated embodiment is similar and will not be described again here.
[0138] Step S4201, preprocessing the L communication states at the first moment to obtain L preprocessed communication states at the first moment, wherein the preprocessing includes normalization and differential processing.
[0139] The L communication states at the first moments may be preprocessed by normalization and differentiation to obtain L preprocessed communication states at the first moments, so as to reduce the non-stationarity of the communication state.
[0140] In a possible implementation, the L communication states at the first moment may be normalized by the following formula (2):
[0141]
[0142] In formula (2), p and q are integers, and 0≤p≤L-1, 0≤q≤L-1, n represents a total of n moments, the first n-1 moments are the first moments before the current moment, and the nth moment is the first second moment after the current moment. y(nL), y(n-L+1), ..., y(n-2), y(n-1) represent the communication status of L moments before the current moment.
[0143] Among them, y(nL) represents the communication status at the 1st first moment, and also represents the communication status at the nLth moment; y(n-L+1) represents the communication status at the 2nd first moment, and also represents the communication status at the n-L+1th moment; ...; y(n-2) represents the communication status at the L-1th first moment, and also represents the communication status at the n-2th moment; y(n-1) represents the communication status at the Lth first moment, and also represents the communication status at the n-1th moment.
[0144] y(n-L+q) is the communication state at the q+1th first moment, and also represents the communication state at the n-L+qth moment; y(n-L+p) is the communication state at the p+1th first moment, and also represents the communication state at the n-L+pth moment; y ′ (n-L+p) represents the communication state after normalization at the p+1th first moment, and also represents the communication state after normalization at the n-L+pth moment.
[0145] In a possible implementation, the L normalized communication states at the first moment may be differentially processed by the following formula (3) to obtain the L pre-processed communication states at the first moment:
[0146]
[0147] In formula (3), represents the communication state after preprocessing at the first moment, and also represents the communication state after preprocessing at the nLth moment; represents the communication state after preprocessing at the p+1th first moment, and also represents the communication state after preprocessing at the n-L+pth moment; It indicates the communication state after preprocessing at the Lth first moment, and also indicates the communication state after preprocessing at the n-1th moment.
[0148] Step S4202, determining a differential weight coefficient corresponding to the first second moment according to the coherent time window length N and the pre-processed communication states of the L first moments.
[0149] Among them, the differential weight coefficient corresponding to the first second moment is also the differential weight coefficient corresponding to the nth moment.
[0150] In one possible implementation, the differential prediction value of the communication state at the N+1th first moment can be determined based on the preset initial value of the differential weight coefficient (i.e., the 0th group of differential weight coefficients) and the preprocessed communication state from the 1st first moment to the Nth first moment.
[0151] For example, the preset initial value of the differential weight coefficient is The communication state after preprocessing from the first moment to the Nth moment can be The differential prediction value of the communication state at the N+1th first moment is determined by the following formula (4):
[0152]
[0153] In formula (4), v is an integer and 1≤v≤N, α vrepresents the vth weight coefficient, It indicates the communication state after preprocessing at the N-v+1th first moment, and also indicates the communication state after preprocessing at the n-L+Nvth moment.
[0154] Then, the 0th group of differential weight coefficients can be adjusted according to the preprocessed communication state from the 2nd first moment to the N+1th first moment and the differential prediction value of the communication state at the N+1th first moment to obtain the 1st group of differential weight coefficients.
[0155] The first group of differential weight coefficients (i.e., the differential weight coefficients at the n-L+Nth moment) can be determined by the following formula (5):
[0156]
[0157] In formula (5), represents the differential weight coefficient of group 0, that is, the differential weight coefficient before updating; represents the first group of differential weight coefficients, i.e., the updated differential weight coefficients; represents the communication state after preprocessing at the N+1th first moment, and also represents the communication state after preprocessing at the n-L+Nth moment; represents the communication state after preprocessing at the Nth first moment, and also represents the communication state after preprocessing at the n-L+N-1th moment; It indicates the communication state after preprocessing at the second first moment, and also indicates the communication state after preprocessing at the n-L+1th moment.
[0158] The sliding coherent time window can be used to determine the second group of differential weight coefficients (i.e., the differential weight coefficients at the n-L+N+1th moment), the third group of differential weight coefficients (i.e., the differential weight coefficients at the n-L+N+2th moment), ..., the L-N+1th group of differential weight coefficients (i.e., the differential weight coefficients at the nth moment) in sequence in the above manner.
[0159] Then, the L-N+1th group of differential weight coefficients (ie, the differential weight coefficients at the nth moment) are determined as the differential weight coefficients corresponding to the first second moment.
[0160] Step S4203, determining the differential prediction value of the communication state at the first second moment according to the differential weight coefficient corresponding to the first second moment and the preprocessed communication state from the L-N+1th first moment to the Lth first moment.
[0161] For example, assuming that the differential weight coefficient corresponding to the first second moment is According to the difference weight coefficient and the preprocessed communication state from the L-N+1th first moment to the Lth first moment (i.e. the preprocessed communication state from the nNth moment to the n-1th moment), determine the differential prediction value of the communication state at the 1st second moment (i.e. the nth moment).
[0162] In a possible implementation, the differential prediction value of the communication state at the first second moment (i.e., the nth moment) can be determined by the following formula (6):
[0163]
[0164] In formula (6), α″ v represents the vth weight coefficient, It represents the communication state after preprocessing at the L-v+1th first moment, and also represents the communication state after preprocessing at the nvth moment.
[0165] Step S4204, post-processing the differential prediction value to obtain a prediction value of the communication state at the first second moment, wherein the post-processing includes inverse difference and inverse normalization processing.
[0166] After determining the differential prediction value of the communication state at the first second moment (i.e., the nth moment), the differential prediction value can be post-processed, and the post-processing includes inverse difference and inverse normalization to obtain the prediction value of the communication state at the first second moment (i.e., the nth moment).
[0167] In a possible implementation, the predicted value of the communication state at the first second moment (i.e., the nth moment) can be determined by the following formula (7):
[0168]
[0169] In formula (7), u is an integer and nL≤u≤n-1.
[0170] In a possible implementation, the coherent time window may also be slid, and the communication state at the j-th second moment may be iteratively predicted in the above manner to obtain a predicted value of the communication state at the j-th second moment, thereby achieving multi-step prediction.
[0171] Step S430: When the predicted value meets a preset condition, the working mode of the terminal device is adjusted to a second working mode.
[0172] Among them, the second working mode has a different channel from the first working mode, and the preset conditions include at least one of the signal strength in the predicted value is less than or equal to a preset signal strength threshold, the transmission delay in the predicted value is greater than or equal to a preset transmission delay threshold, and the network bandwidth in the predicted value is less than or equal to a preset network bandwidth threshold.
[0173] Optionally, Figure 5 Step S430 in the illustrated embodiment is Figure 4 Step S430 in the illustrated embodiment is similar and will not be described again here.
[0174] In this embodiment, the communication states of L first moments can be normalized and differentiated to obtain the preprocessed communication states of L first moments, and the differential weight coefficient corresponding to the first second moment is determined according to the coherent time window length N and the preprocessed communication states of the L first moments, and then the differential prediction value of the communication state of the first second moment is determined, and then the differential prediction value is post-processed by inverse differentiation and anti-normalization to obtain the prediction value of the communication state of the first second moment, and when the prediction value meets the preset conditions, the working mode of the terminal device is adjusted to the second working mode, so that the non-stationarity of the communication state can be reduced by preprocessing the communication state, and the prediction accuracy of the communication state can be improved by making a prediction based on the preprocessed communication state.
[0175] In addition, when the predicted value of the communication status meets the preset conditions, the working mode of the terminal device is adjusted, so that when the communication status is poor (for example, weak signal, large transmission delay, small network bandwidth, etc.), the working mode of the terminal device can be adjusted in advance, so that the user does not feel the network fluctuations during the communication process, effectively improving the user experience.
[0176] The working mode adjustment method described in the embodiment of the present application is applied to a terminal device and can adjust the working mode of the terminal device based on the predicted value of the communication status in different channel scenarios. Thus, when the communication status is poor, the working mode of the terminal device can be adjusted in advance, thereby reducing the sense of lag during communication and preventing users from feeling network fluctuations during communication, thereby effectively improving the user experience.
[0177] In addition, when distributing media streams such as video applications, the video bit rate can be adjusted in advance based on the predicted value of the communication status to reduce the sense of lag when users watch the video and improve the user experience.
[0178] Figure 6 FIG. 1 is a block diagram of a working mode adjustment device according to an embodiment of the present application. The working mode adjustment device is applied to a terminal device. Figure 6As shown, the working mode adjustment device includes:
[0179] A coherence time window determination module 610, configured to determine a coherence time window length corresponding to the current first working mode of the terminal device;
[0180] A prediction module 620, configured to determine a predicted value of the communication state of the terminal device according to the coherence time window length and multiple historical values of the communication state of the terminal device in the first working mode, wherein the communication state includes at least one of signal strength, transmission delay or network bandwidth;
[0181] The adjustment module 630 is configured to adjust the working mode of the terminal device to a second working mode when the predicted value meets a preset condition.
[0182] Among them, the second working mode has a different channel from the first working mode, and the preset conditions include at least one of the signal strength in the predicted value is less than or equal to a preset signal strength threshold, the transmission delay in the predicted value is greater than or equal to a preset transmission delay threshold, and the network bandwidth in the predicted value is less than or equal to a preset network bandwidth threshold.
[0183] In a possible implementation, the multiple historical values of the communication state include the communication states of L first moments before the current moment, the predicted value of the communication state includes the predicted value of the communication state of M second moments after the current moment, and the coherent time window length is N, where L, M, and N are integers, L>N>1, and M≥1.
[0184] The prediction module 620 includes: a first coefficient determination submodule, which is used to determine the weight coefficient corresponding to the first second moment according to the coherent time window length N and the communication status of the L first moments when M=1, and the weight coefficient corresponding to the first second moment is used to indicate the weight of the communication status of multiple first moments within the coherent time window of the first second moment; a first prediction submodule, which is used to determine the predicted value of the communication status of the first second moment according to the weight coefficient corresponding to the first second moment and the communication status from the L-N+1th first moment to the Lth first moment.
[0185] In a possible implementation, the prediction module 620 further includes: a second coefficient determination sub-module, configured to, when M>1, for the j-th second moment, determine a weight coefficient corresponding to the j-th second moment according to the coherent time window length N, the communication states of the L first moments, the predicted values of the communication states from the 1st second moment to the (j - 1)-th second moment, and the weight coefficient corresponding to the (j - 1)-th second moment, where the weight coefficient corresponding to the j-th second moment is used to indicate the weights of the communication states of the first moments and the predicted values of the communication states of the second moments within the coherent time window of the j-th second moment, where 1 < j ≤ M < N; a second prediction sub-module, configured to determine the predicted value of the communication state of the j-th second moment according to the weight coefficient corresponding to the j-th second moment, the coherent time window length N, the communication states of the L first moments, and the predicted values of the communication states from the 1st second moment to the (j - 1)-th second moment.
[0186] In a possible implementation, the first coefficient determination sub-module is configured to: determine the predicted value of the communication state of the (i + N)-th first moment according to the (i - 1)-th set of weight coefficients and the communication states of the i-th first moment to the (i + N - 1)-th first moment, where i is an integer and 0 ≤ i ≤ L - N, and the 0-th set of weight coefficients is the initial value of the weight coefficients; determine the i-th set of weight coefficients according to the (i - 1)-th set of weight coefficients, the communication state of the (i + N)-th first moment, and the predicted value of the communication state of the (i + N)-th first moment; determine the (L - N + 1)-th set of weight coefficients as the weight coefficient corresponding to the 1st second moment.
[0187] In a possible implementation, the first coefficient determination sub-module is configured to: preprocess the communication states of the L first moments to obtain the preprocessed communication states of the L first moments, where the preprocessing includes normalization and difference processing; determine the difference weight coefficient corresponding to the 1st second moment according to the coherent time window length N and the preprocessed communication states of the L first moments.
[0188] Wherein, the first prediction sub-module is configured to: determine the difference predicted value of the communication state of the 1st second moment according to the difference weight coefficient corresponding to the 1st second moment and the preprocessed communication states of the (L - N + 1)-th first moment to the L-th first moment; post-process the difference predicted value to obtain the predicted value of the communication state of the 1st second moment, where the post-processing includes inverse difference and anti-normalization processing.
[0189] In a possible implementation, the first working mode and the second working mode are any one of the main card data traffic working mode, the secondary card data traffic working mode, and the Wi-Fi wireless communication working mode.
[0190] An embodiment of the present application provides a working mode adjustment device, comprising: a processor and a memory for storing processor executable instructions; wherein the processor is configured to implement the above method when executing the instructions.
[0191] An embodiment of the present application provides a non-volatile computer-readable storage medium on which computer program instructions are stored. When the computer program instructions are executed by a processor, the above method is implemented.
[0192] An embodiment of the present application provides a computer program product, including a computer-readable code, or a non-volatile computer-readable storage medium carrying the computer-readable code. When the computer-readable code runs in a processor of an electronic device, the processor in the electronic device executes the above method.
[0193] A computer-readable storage medium may be a tangible device that can hold and store instructions used by an instruction execution device. A computer-readable storage medium may be, for example, but not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. More specific examples of computer-readable storage media (a non-exhaustive list) include: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a static random access memory (SRAM), a portable compact disc read-only memory (CD-ROM), a digital versatile disc (DVD), a memory stick, a floppy disk, a mechanical encoding device, such as a punch card or a raised structure in a groove on which instructions are stored, and any suitable combination of the foregoing.
[0194] The computer-readable program instructions or codes described herein can be downloaded from a computer-readable storage medium to each computing / processing device, or downloaded to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network can include copper transmission cables, optical fiber transmissions, wireless transmissions, routers, firewalls, switches, gateway computers, and / or edge servers. The network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in the computer-readable storage medium in each computing / processing device.
[0195] The computer program instructions for performing the operation of the present application may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages, such as Smalltalk, C++, etc., and conventional procedural programming languages, such as "C" language or similar programming languages. Computer-readable program instructions may be executed completely on a user's computer, partially on a user's computer, as an independent software package, partially on a user's computer, partially on a remote computer, or completely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., using an Internet service provider to connect via the Internet). In some embodiments, by utilizing the state information of computer-readable program instructions to personalize an electronic circuit, such as a programmable logic circuit, a field programmable gate array (FPGA) or a programmable logic array (PLA), the electronic circuit can execute the computer-readable program instructions to implement various aspects of the present application.
[0196] Various aspects of the present application are described herein with reference to the flowcharts and / or block diagrams of the methods, devices (systems) and computer program products according to the embodiments of the present application. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer-readable program instructions.
[0197] These computer-readable program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a machine, so that when these instructions are executed by the processor of the computer or other programmable data processing device, a device that implements the functions / actions specified in one or more boxes in the flowchart and / or block diagram is generated. These computer-readable program instructions can also be stored in a computer-readable storage medium, and these instructions cause the computer, programmable data processing device, and / or other equipment to work in a specific manner, so that the computer-readable medium storing the instructions includes a manufactured product, which includes instructions for implementing various aspects of the functions / actions specified in one or more boxes in the flowchart and / or block diagram.
[0198] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device so that a series of operating steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to implement the functions / actions specified in one or more boxes in the flowchart and / or block diagram.
[0199] The flow chart and block diagram in the accompanying drawings show the possible architecture, function and operation of the device, system, method and computer program product according to multiple embodiments of the present application. In this regard, each square frame in the flow chart or block diagram can represent a part of a module, program segment or instruction, and a part of the module, program segment or instruction includes one or more executable instructions for realizing the logical function of the specification. In some alternative implementations, the functions marked in the square frame can also occur in a sequence different from that marked in the accompanying drawings. For example, two continuous square frames can actually be executed substantially in parallel, and they can also be executed in reverse order sometimes, depending on the functions involved.
[0200] It should also be noted that each box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart, can be implemented by hardware (such as a circuit or ASIC (Application Specific Integrated Circuit)) that performs the corresponding function or action, or can be implemented by a combination of hardware and software, such as firmware.
[0201] Although the present invention is described herein in conjunction with various embodiments, in the process of implementing the claimed invention, those skilled in the art may understand and implement other variations of the disclosed embodiments by viewing the drawings, the disclosure, and the appended claims. In the claims, the word "comprising" does not exclude other components or steps, and "one" or "an" does not exclude multiple situations. A single processor or other unit may implement several functions listed in the claims. Certain measures are recorded in different dependent claims, but this does not mean that these measures cannot be combined to produce good results.
[0202] The embodiments of the present application have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and changes will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The selection of terms used herein is intended to best explain the principles of the embodiments, practical applications, or improvements to the technology in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein.
Claims
1. A method for adjusting a working mode, characterized in that: The method is applied to a terminal device, and the method comprises: Determining a coherence time window length corresponding to the current first working mode of the terminal device; Determining a predicted value of the communication state of the terminal device according to the coherent time window length and multiple historical values of the communication state of the terminal device in the first working mode, wherein the communication state includes at least one of signal strength, transmission delay or network bandwidth; When the predicted value meets a preset condition, adjusting the working mode of the terminal device to a second working mode, The second working mode has a different channel from the first working mode, and the preset condition includes at least one of the following: the signal strength in the predicted value is less than or equal to a preset signal strength threshold, the transmission delay in the predicted value is greater than or equal to a preset transmission delay threshold, and the network bandwidth in the predicted value is less than or equal to a preset network bandwidth threshold; The multiple historical values of the communication state include L communication states at first moments before the current moment, the predicted value of the communication state includes M predicted values of the communication state at second moments after the current moment, and the coherent time window length is N, where L, M, and N are integers, L>N>1, and M≥1. The step of determining a predicted value of the communication state of the terminal device according to the coherent time window length and a plurality of historical values of the communication state of the terminal device in the first working mode includes: In the case of M=1, according to the coherent time window length N and the communication states of the L first moments, the weight coefficient is updated by a random gradient descent method to determine the weight coefficient corresponding to the first second moment, and the weight coefficient corresponding to the first second moment is used to indicate the weight of the communication states of multiple first moments within the coherent time window of the first second moment; The predicted value of the communication state at the first second moment is determined according to the weight coefficient corresponding to the first second moment and the communication states from the L-N+1th first moment to the Lth first moment.
2. The method according to claim 1, characterized in that The step of determining the predicted value of the communication state of the terminal device according to the coherent time window length and multiple historical values of the communication state of the terminal device in the first working mode further includes: In the case of M>1, for the j-th second moment, according to the coherent time window length N, the communication states of the L first moments, the predicted values of the communication states from the 1st second moment to the j-1st second moment, and the weight coefficient corresponding to the j-1st second moment, determine the weight coefficient corresponding to the j-th second moment, the weight coefficient corresponding to the j-th second moment is used to indicate the weight of the predicted values of the communication state of the first moment and the communication state of the second moment within the coherent time window of the j-th second moment, wherein 1 <j≤M<N; The predicted value of the communication state at the jth second moment is determined based on the weight coefficient corresponding to the jth second moment, the coherent time window length N, the communication states of the L first moments, and the predicted values of the communication states from the 1st second moment to the j-1th second moment.
3. The method according to claim 1, characterized in that The determining, according to the coherent time window length N and the communication states of the L first moments, a weight coefficient corresponding to the first second moment comprises: Determine a predicted value of the communication state at the i+Nth first moment according to the i-1th group of weight coefficients and the communication states from the i-th first moment to the i+N-1th first moment, where i is an integer and 0≤i≤LN, and the 0th group of weight coefficients is an initial value of the weight coefficient; Determine the i-th group of weight coefficients according to the i-1-th group of weight coefficients, the communication state at the i+N-th first moment, and the predicted value of the communication state at the i+N-th first moment; The L-N+1th group of weight coefficients is determined as the weight coefficients corresponding to the first second moment.
4. The method according to claim 1, characterized in that: The determining, according to the coherent time window length N and the communication states of the L first moments, a weight coefficient corresponding to the first second moment comprises: Preprocessing the L communication states at the first moment to obtain L preprocessed communication states at the first moment, wherein the preprocessing includes normalization and differential processing; Determining a differential weight coefficient corresponding to the first second moment according to the coherent time window length N and the preprocessed communication states at the L first moments; Wherein, determining the predicted value of the communication state at the first second moment according to the weight coefficient corresponding to the first second moment and the communication states from the L-N+1th first moment to the Lth first moment includes: Determine a differential prediction value of the communication state at the first second moment according to the differential weight coefficient corresponding to the first second moment and the preprocessed communication state from the L-N+1th first moment to the Lth first moment; The differential prediction value is post-processed to obtain a prediction value of the communication state at the first second moment, wherein the post-processing includes inverse difference and inverse normalization processing.
5. The method according to any one of claims 1 to 4, characterized in that: The first working mode and the second working mode are any one of a primary card data flow working mode, a secondary card data flow working mode, and a Wi-Fi wireless communication working mode.
6. A working mode adjustment device, characterized in that: The device is applied to a terminal device, and the device includes: A coherent time window determination module, used to determine a coherent time window length corresponding to the current first working mode of the terminal device; a prediction module, configured to determine a predicted value of the communication state of the terminal device according to the coherent time window length and a plurality of historical values of the communication state of the terminal device in the first working mode, wherein the communication state includes at least one of signal strength, transmission delay or network bandwidth; an adjustment module, configured to adjust the working mode of the terminal device to a second working mode when the predicted value meets a preset condition, The second working mode has a different channel from the first working mode, and the preset condition includes at least one of the following: the signal strength in the predicted value is less than or equal to a preset signal strength threshold, the transmission delay in the predicted value is greater than or equal to a preset transmission delay threshold, and the network bandwidth in the predicted value is less than or equal to a preset network bandwidth threshold; The multiple historical values of the communication state include L communication states at first moments before the current moment, the predicted value of the communication state includes M predicted values of the communication state at second moments after the current moment, and the coherent time window length is N, where L, M, and N are integers, L>N>1, and M≥1. The prediction module comprises: A first coefficient determination submodule, for, when M=1, updating the weight coefficient by a random gradient descent method according to the coherent time window length N and the communication states at the L first moments, and determining the weight coefficient corresponding to the first second moment, wherein the weight coefficient corresponding to the first second moment is used to indicate the weights of the communication states at multiple first moments within the coherent time window of the first second moment; The first prediction submodule is used to determine the predicted value of the communication state at the first second moment according to the weight coefficient corresponding to the first second moment and the communication state from the L-N+1th first moment to the Lth first moment.
7. The device according to claim 6, characterized in that The prediction module further includes: The second coefficient determination submodule is used for determining, for the j-th second moment, a weight coefficient corresponding to the j-th second moment according to the coherent time window length N, the communication states of the L first moments, the predicted values of the communication states from the 1st second moment to the j-1st second moment, and the weight coefficient corresponding to the j-1st second moment when M>1, wherein the weight coefficient corresponding to the j-th second moment is used to indicate the weight of the predicted values of the communication state of the first moment and the communication state of the second moment within the coherent time window of the j-th second moment, wherein 1 <j≤M<N; The second prediction submodule is used to determine the predicted value of the communication state at the jth second moment based on the weight coefficient corresponding to the jth second moment, the coherent time window length N, the communication states of the L first moments, and the predicted values of the communication states from the 1st second moment to the j-1th second moment.
8. The device according to claim 6, characterized in that The first coefficient determination submodule is configured as follows: Determine a predicted value of the communication state at the i+Nth first moment according to the i-1th group of weight coefficients and the communication states from the i-th first moment to the i+N-1th first moment, where i is an integer and 0≤i≤LN, and the 0th group of weight coefficients is an initial value of the weight coefficient; Determine the i-th group of weight coefficients according to the i-1-th group of weight coefficients, the communication state at the i+N-th first moment, and the predicted value of the communication state at the i+N-th first moment; The L-N+1th group of weight coefficients is determined as the weight coefficients corresponding to the first second moment.
9. The device according to claim 6, characterized in that The first coefficient determination submodule is configured as follows: Preprocessing the L communication states at the first moment to obtain L preprocessed communication states at the first moment, wherein the preprocessing includes normalization and differential processing; Determining a differential weight coefficient corresponding to the first second moment according to the coherent time window length N and the preprocessed communication states at the L first moments; Wherein, the first prediction submodule is configured as follows: Determine a differential prediction value of the communication state at the first second moment according to the differential weight coefficient corresponding to the first second moment and the preprocessed communication state from the L-N+1th first moment to the Lth first moment; The differential prediction value is post-processed to obtain a prediction value of the communication state at the first second moment, wherein the post-processing includes inverse difference and inverse normalization processing.
10. The device according to any one of claims 6 to 9, characterized in that: The first working mode and the second working mode are any one of a primary card data flow working mode, a secondary card data flow working mode, and a Wi-Fi wireless communication working mode.
11. A working mode adjustment device, characterized in that: include: processor; a memory for storing processor-executable instructions; Wherein, the processor is configured to implement the method described in any one of claims 1-5 when executing the instructions.
12. A non-volatile computer-readable storage medium having computer program instructions stored thereon, characterized in that: When the computer program instructions are executed by a processor, the method according to any one of claims 1 to 5 is implemented.
Citation Information
Patent Citations
Wi-fi adaptive receiver diversity and wi-fi adaptive transmit antenna selection
CN105578550A
Detecting media access control (MAC) address spoofing in a wi-fi network using channel correlation
CN110546933A
Adaptive configuration of modulation and coding scheme tables for new radio
US20190260495A1
Method and network node, for handling link adaption of a channel
US20210036804A1
Instruction receiving method, instruction sending method, and communication apparatus
WO2021063210A1
