WO2022052852A1 - 数据缓存方法及电子设备 - Google Patents
数据缓存方法及电子设备 Download PDFInfo
- Publication number
- WO2022052852A1 WO2022052852A1 PCT/CN2021/116165 CN2021116165W WO2022052852A1 WO 2022052852 A1 WO2022052852 A1 WO 2022052852A1 CN 2021116165 W CN2021116165 W CN 2021116165W WO 2022052852 A1 WO2022052852 A1 WO 2022052852A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- abnormal area
- data
- target application
- information
- abnormal
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Ceased
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/433—Content storage operation, e.g. storage operation in response to a pause request, caching operations
- H04N21/4331—Caching operations, e.g. of an advertisement for later insertion during playback
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W28/00—Network traffic management; Network resource management
- H04W28/02—Traffic management, e.g. flow control or congestion control
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W28/00—Network traffic management; Network resource management
- H04W28/02—Traffic management, e.g. flow control or congestion control
- H04W28/0231—Traffic management, e.g. flow control or congestion control based on communication conditions
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/10—Flow control; Congestion control
- H04L47/38—Flow control; Congestion control by adapting coding or compression rate
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/44—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
- H04N21/4402—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display
- H04N21/440281—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display by altering the temporal resolution, e.g. by frame skipping
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/442—Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
- H04N21/44209—Monitoring of downstream path of the transmission network originating from a server, e.g. bandwidth variations of a wireless network
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W28/00—Network traffic management; Network resource management
- H04W28/02—Traffic management, e.g. flow control or congestion control
- H04W28/0226—Traffic management, e.g. flow control or congestion control based on location or mobility
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W28/00—Network traffic management; Network resource management
- H04W28/02—Traffic management, e.g. flow control or congestion control
- H04W28/0231—Traffic management, e.g. flow control or congestion control based on communication conditions
- H04W28/0236—Traffic management, e.g. flow control or congestion control based on communication conditions radio quality, e.g. interference, losses or delay
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W28/00—Network traffic management; Network resource management
- H04W28/02—Traffic management, e.g. flow control or congestion control
- H04W28/10—Flow control between communication endpoints
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W40/00—Communication routing or communication path finding
- H04W40/02—Communication route or path selection, e.g. power-based or shortest path routing
- H04W40/18—Communication route or path selection, e.g. power-based or shortest path routing based on predicted events
Definitions
- the present application relates to the technical field of electronic devices, and in particular, to a data caching method and electronic device.
- the embodiments of the present application disclose a data caching method and an electronic device, which can try to avoid a situation where a user cannot normally use online applications such as audio and video when passing through an area with abnormal network services, and improve user experience.
- an embodiment of the present application provides a data caching method, which is applied to an electronic device, where the electronic device includes a target application and a control component, and the method includes: the electronic device runs the target application, and uses a first caching strategy to cache For the data of the target application, the first caching strategy includes at least one of the following: using a first download rate to download the data of the target application, using a first bit rate to download the data of the target application, using a first resolution to download the target application
- the data of the target application is downloaded using the first frame rate, and the data of the target application is requested using the first number of requests, where the first number of requests is the number of requests per unit time; the first type of data and the second type of data are cached , the above-mentioned first type is different from the above-mentioned second type; the data of the above-mentioned target application is downloaded using the first sampling frequency, the data of the above-mentioned target application is downloaded using the first sampling number of digits, and
- the number of times to request the data of the target application is the number of requests per unit time, and the number of times of the second request is greater than the number of times of the first request; the data of the first type is cached and the data of the second type is not cached;
- the data of the target application is downloaded at two sampling frequencies, and the second sampling frequency is lower than the first sampling frequency; the data of the target application is downloaded using the second sampling number of bits, and the second sampling number of bits is smaller than the first sampling number of bits;
- the second channel number downloads the data of the target application, and the second channel number is smaller than the first channel number.
- the first indication information is used to indicate that there is an abnormal area in the forward direction of the electronic device, and the abnormal area is at least one of the following areas: an area where the signal quality is lower than a preset threshold; an area where the network is disconnected; Dropping the standard means that the first network standard is changed to a second network standard lower than the above-mentioned first network standard; the area where the quality of experience QoE is lower than the first QoE level.
- the target application uses different caching strategies to cache the data of the target application before and after receiving the first indication information, wherein the usage duration of the amount of data downloaded per unit time using the first caching strategy before receiving the first indication information , less than, the usage duration of the amount of data downloaded in a unit time using the second cache strategy after receiving the first indication information. That is to say, after receiving the first indication information for indicating that there is an abnormal area in the forward direction, the target application uses the second caching strategy to cache data, thereby increasing the usage time of the amount of data downloaded per unit time, so as to minimize the It may allow users to use the target application normally when they pass through abnormal areas, avoid business freezes, and improve user experience.
- the method further includes: the above-mentioned target application sends a registration message to the above-mentioned control component; the above-mentioned registration message is used to obtain the above-mentioned first indication information Indication information, the first indication information is used to indicate that there is an abnormal area in the forward direction of the electronic device, and the abnormal area is at least one of the following areas: an area where the signal quality is less than a preset threshold value; an area where the network is disconnected; an area where the system is dropped , the above-mentioned dropped standard means that the first network standard is changed to a second network standard lower than the above-mentioned first network standard; the area where the quality of experience QoE is lower than the first QoE level.
- the target application that receives the first indication information and uses the second caching strategy to cache data is an application that sends a registration message to the control component. Therefore, the target application can independently choose whether to receive the first indication information and use the second The caching strategy caches data, and the flexibility of implementation is greatly increased.
- a first location exists between the abnormal area and the current location, and no other cell exists between the current location and the first location, and the first location refers to the control component sending the first indication information or, the above-mentioned abnormal area is an area whose distance from the current location is within the first distance range.
- the distance between the current location and the abnormal area is not too close.
- the time to reach the abnormal area will not be too short (for example, it will not be 0), and more data will be downloaded, so that the target application can be used normally when passing through the abnormal area as much as possible, avoiding business freezes, and improving user experience.
- the method further includes: when the duration of entering the abnormal area from the current position of the electronic device is within a first preset time range, the control component sends the first indication information to the target application.
- the duration for which the target application uses the second caching strategy to cache data is within the first preset time range, and the duration for which the target application uses the second caching strategy to cache data can be realized by controlling the first preset time range. control.
- the first preset time range can be determined according to requirements. For example, when the power is low, the first preset time range can be reduced to reduce the excessive power consumption caused by the target application using the second download rate to download data. For example When the duration of the abnormal area is long, the first preset time range can be increased, so that the target application can be used normally when passing through the abnormal area as much as possible, so as to avoid business freezes and improve user experience.
- the above-mentioned target application sends a registration message to the above-mentioned control component, including: the above-mentioned target application sends the above-mentioned registration information to the above-mentioned control component when detecting that the above-mentioned target application is switched from running in the background to running in the foreground or started .
- the target application may send a registration message to the control component when it is in use, so that the control component only sends the first indication information when the target application is in use, so as to avoid adopting the second caching strategy when the target application is not in use
- Cached data may cause excessive power consumption, poor definition of viewing content, and incomplete viewing content, which may affect the user experience.
- the method further includes: acquiring current cell information of the electronic device; determining whether there is an abnormal area record corresponding to the current cell information in a data file of the abnormal area;
- the above-mentioned control component generates the above-mentioned first indication information; or, obtains the current location information of the above-mentioned electronic device; determines whether there is an abnormal area record corresponding to the above-mentioned current location information in the data file of the above-mentioned abnormal area;
- the above-mentioned control component In the case of the above-mentioned abnormal area, the above-mentioned control component generates the above-mentioned first indication information; or obtains the above-mentioned current cell information and the above-mentioned current location information of the above-mentioned electronic device; in the data file of the above-mentioned abnormal area, it is determined whether there is a corresponding and above-mentioned current cell information and Recording of the abnormal area corresponding to the above-mentione
- the method further includes: determining whether there is an abnormal area record corresponding to the above-mentioned current cell information in the data file of the abnormal area; if the above-mentioned abnormal area record exists, the above-mentioned control component generates the above-mentioned abnormal area record.
- the first indication information; the above-mentioned current location information is used to determine the time to send the above-mentioned first indication information.
- the electronic device can obtain the current cell information to determine whether to generate the first indication information, which can be applied to a variety of scene, the usability is good.
- the method further includes: acquiring information that the electronic device passes through a cell; when a service abnormality notification event is detected, determining whether the electronic device passes through a cell before the second preset time range in the information about the electronic device passing through the cell.
- the area record or the above-mentioned second abnormal area record includes the information of the above-mentioned at least one cell; the above-mentioned service abnormality notification event is used to indicate at least one of the following information: the signal quality is lower than the preset threshold, the network is disconnected, and the first network standard is changed to be lower than the above-mentioned
- the second network standard of the first network standard, the QoE is lower than the first QoE level; or, when the above-mentioned service abnormality notification event is detected, the location information of the above-mentioned electronic device is obtained, and the data file of the above-mentioned abnormal area is added.
- the area record, or the fourth abnormal area record in the data file of the abnormal area is updated, and the location information in the third abnormal area record or the fourth abnormal area
- the data file of the abnormal area is used to generate the first indication information, that is, used to determine whether there is an abnormal area in the forward direction.
- the electronic device can update the data file of the abnormal area according to the currently acquired information when detecting the business abnormality notification event. Increase the accuracy of judging whether there is an abnormal area, try to avoid using the second caching strategy to cache data when there is no abnormal area or not detect when there is an abnormal area, and improve the user experience.
- the first abnormal area record when passing through the at least one cell, is added to the data file of the abnormal area, or the second abnormal area record in the data file of the abnormal area is updated. , including: in the case of passing through the above-mentioned at least one cell, obtaining the location information of the above-mentioned electronic equipment, and adding the first abnormal area record in the data file of the above-mentioned abnormal area, or updating the data file of the above-mentioned abnormal area.
- the second abnormal area in the data file is updated
- the area record, the first abnormal area record or the second abnormal area record includes the information of the at least one cell, and the location information in the first abnormal area record or the second abnormal area record is obtained according to the location information of the electronic device. of.
- the abnormal area record in the data file of the abnormal area may not only be obtained according to the updated cell information, but also may be obtained according to the location information.
- the electronic device can generate the first indication information according to the real-time location information and the location information recorded in the abnormal area in the data file of the abnormal area, thereby increasing the accuracy of judging whether there is an abnormal area, and trying to avoid the abnormal area.
- the second caching strategy is used to cache data or when there is an abnormal area that is not detected, the user experience is improved.
- the first abnormal area record is added to the data file of the abnormal area, or the second abnormal area record in the data file of the abnormal area is updated. , including: in the case of passing through the at least one cell, obtaining at least one of the following information: the time of entering the above-mentioned abnormal area, the time of leaving the above-mentioned abnormal area, and the duration of the above-mentioned abnormal area; adding in the data file of the above-mentioned abnormal area
- the first abnormal area record, or the second abnormal area record in the data file of the above-mentioned abnormal area is updated; the time of entering the abnormal area in the above-mentioned first abnormal area record or the above-mentioned second abnormal area record is based on the above-mentioned entry into the above-mentioned abnormal area.
- the time obtained from the above-mentioned first abnormal area record or the above-mentioned second abnormal area record The duration of the abnormal area in the abnormal area record is obtained
- the abnormal area record in the data file of the abnormal area may further include the time information of entering the abnormal area, the time information of leaving the abnormal area, and the duration information of the abnormal area in the historical records.
- the control component can refer to the above information in the database file of the abnormal area for generating the first indication information and sending the first indication information, so as to assist in judging the actual time of entering the abnormal area, the time of leaving the abnormal area, and the duration of the abnormal area, thereby increasing the In order to determine the accuracy of whether there is an abnormal area, try to avoid using the second caching strategy to cache data when there is no abnormal area or not detect when there is an abnormal area, so as to improve the user experience.
- the method further includes: when the electronic device is in the abnormal area , adopt at least one of the following methods: use a third download rate to download the data of the above-mentioned target application, and the above-mentioned third download rate is smaller than the above-mentioned first download rate; use the above-mentioned third code rate to download the data of the above-mentioned target application, the above-mentioned third code rate is less than or equal to the above-mentioned second bit rate; use the above-mentioned third resolution to download the data of the above-mentioned target application, and the above-mentioned third resolution is less than or equal to the second resolution; use the above-mentioned third frame rate to download the data of the above-mentioned target application, the above-mentioned first The third frame rate is less than or equal to the above-mentioned second
- the target application when the electronic device is in an abnormal area, the target application can further reduce parameters such as the resolution, bit rate, and frame rate of the downloaded data, so as to increase the usage time of the downloaded data per unit time, so as to minimize the It is possible to enable users to use the target application even in the abnormal area.
- the first caching strategy is resumed to cache the data of the target application, so that the user can continue to use the target application normally.
- using the first caching strategy to cache the data of the target application includes: when the playback duration of the data amount of the target application cached by using the first caching strategy is greater than the first preset duration, Stopping the caching of the data of the target application; the caching of the data of the target application by adopting the second caching strategy includes: when the playback duration of the data amount of the target application cached by adopting the second caching strategy is greater than the first preset duration, Continue to cache the data of the above target application.
- the usage duration of the data cached by the target application using the first caching strategy is shorter than the usage duration of the data cached by the target application using the second caching strategy. Therefore, when there is an abnormal area in the forward direction, the target application can use the second caching strategy to cache data, so that the user can use the target application for a longer period of time when passing through the abnormal area, try to avoid business freezes, and improve user experience.
- using the second caching strategy to cache the data of the target application after the target application receives the first indication information includes: in response to receiving the first indication information, using the first indication information The second cache strategy caches the data of the target application; and/or, within a second preset time period of receiving the first indication information, the step of using the second cache strategy to cache the data of the target application is started, and the second cache strategy is used to cache the data of the target application. Set the duration to be less than 1 second.
- the target application uses the second caching strategy to cache the data of the target application within a short period of time, so that the usage time of the cached data is as long as possible before entering the abnormal area, so that the user can
- the target application is used for a longer period of time when passing through the abnormal area, so as to avoid business freezes as much as possible and improve the user experience.
- the above-mentioned first indication information further includes: first time information, where the above-mentioned first time information is used to indicate the time for entering the above-mentioned abnormal area; and/or, the above-mentioned first indication information further includes: the first time information Second time information, the second time information is used to indicate the time of leaving the abnormal area; and/or the first indication information further includes: third time information, the third time information is used to indicate the duration of the abnormal area .
- the first indication information may further include the detailed time of entering the abnormal area, the time of leaving the abnormal area, or the duration of the abnormal area, and the target application may select the second caching strategy according to the first indication information, for example, abnormal When the duration of the region is longer, the second download rate can be a little larger to download more data.
- the flexibility of implementation is greatly increased, and the availability is high.
- using a second caching strategy to cache the data of the above-mentioned target application includes: after the above-mentioned target application receives the above-mentioned first indication information, The data of the target application whose playback duration is a third preset duration is cached using the second caching strategy, wherein the third preset duration is the duration obtained according to the first time information and the second time information, or, the above The third preset duration is the duration indicated by the third duration information.
- the playback duration of the data downloaded by the target application before entering the abnormal area may be equal to the duration of the abnormal area, thereby ensuring that the target application can be used normally when the user passes through the abnormal area.
- the above-mentioned target application is a video application
- the above-mentioned second caching strategy includes at least one of the following: using the above-mentioned second download rate to download the data of the above-mentioned target application, and using the above-mentioned second bit rate to download the above-mentioned target application
- the data of the above-mentioned target application is downloaded by the above-mentioned second resolution
- the data of the above-mentioned target application is downloaded by the above-mentioned second frame rate
- the data of the above-mentioned target application is requested by the above-mentioned second number of requests; or, the above-mentioned target application is an audio application.
- the above-mentioned second caching strategy includes at least one of the following: using the above-mentioned second download rate to download the data of the above-mentioned target application, using the above-mentioned second request times to request the data of the above-mentioned target application, and using the above-mentioned second sampling frequency to download the data of the above-mentioned target application , using the second sampling bit number to download the data of the target application, and using the second channel number to download the data of the target application.
- the embodiments of the present application can be applied to different target applications, such as video applications and audio applications, and for different applications, the second caching strategy can be different, the application scenarios are more extensive, and the usability is high.
- an embodiment of the present application provides a chip, the chip includes at least one processor and an interface circuit, and optionally, the chip further includes a memory; the memory, the interface circuit, and the at least one processor are interconnected through a line , a computer program is stored in the above-mentioned memory; when the above-mentioned computer program is executed by the above-mentioned at least one processor, it is realized: receiving a registration message sent by the target application; the above-mentioned registration message is used to register the first notification event; The indication information is used to indicate that there is an abnormal area in the forward direction of the chip, and the abnormal area is at least one of the following areas: an area where the signal quality is less than a preset threshold, an area where the network is disconnected, an area where the system is dropped, and the quality of experience QoE is less than the first area.
- the above-mentioned dropped standard is that the first network standard is changed to a second network standard lower than the above-mentioned first network standard; the above-mentioned first indication information is sent to the above-mentioned target application registered with the above-mentioned first notification event.
- the chip may send first indication information to the target application registered with the first notification time, where the first indication information is used to indicate that there is an abnormal area in the forward direction, so that the target application can make a decision based on the first indication information
- Corresponding actions such as increasing the download rate, make it possible for the user to use the target application normally when passing through the abnormal area as much as possible, to avoid service freezes, and to improve the user experience.
- the chip when the chip generates the first indication information, it specifically implements: acquiring current cell information; determining whether there is an abnormal area record corresponding to the above-mentioned current cell information in the data file of the abnormal area; In the case of an abnormal area, the above-mentioned control component generates the above-mentioned first indication information; or, obtains the current location information; determines whether there is an abnormal area record corresponding to the above-mentioned current location information in the data file of the above-mentioned abnormal area; In the case of the above-mentioned control component, the above-mentioned first indication information is generated; or, the above-mentioned current cell information and the above-mentioned current location information are obtained; in the data file of the above-mentioned abnormal area, it is determined whether there is a corresponding to the above-mentioned current cell information and the above-mentioned current location information Corresponding abnormal area record; when the abnormal area exists, the control component generates the first
- the above-mentioned chip when the above-mentioned chip generates the first indication information, it is specifically implemented: obtain the current cell information and current location information of the above-mentioned chip; and determine whether there is a data file corresponding to the above-mentioned current cell information in the data file of the abnormal area.
- Abnormal area record when the abnormal area record exists, the control component generates the first indication information; the current location information is used to determine the time to send the first indication information.
- the chip can obtain the current cell information to determine whether to generate the first indication information, which is applicable to various scenarios , the usability is better.
- the above-mentioned chip is further configured to: obtain the information that the above-mentioned chip passes through a cell; when a service abnormality notification event is detected, determine whether the above-mentioned chip passes through the cell before the second preset time range.
- the area record or the above-mentioned second abnormal area record includes the information of the above-mentioned at least one cell; the above-mentioned service abnormality notification event is used to indicate at least one of the following information: the signal quality is lower than the preset threshold, the network is disconnected, and the first network standard is changed to be lower than the above-mentioned
- the second network standard of the first network standard, the QoE is lower than the first QoE level; or, when the above-mentioned service abnormality notification event is detected, the location information of the above-mentioned chip is obtained, and the data file of the above-mentioned abnormal area is added.
- a third abnormal area is added record or update the fourth abnormal area record in the data file of the abnormal area, and the location information in the third abnormal area record or the fourth abnormal
- the data file of the abnormal area is used to generate the first indication information, that is, used to determine whether there is an abnormal area in the forward direction.
- the chip can update the data file of the abnormal area according to the currently obtained information when detecting the business abnormality notification event, and the data source in the data file of the abnormal area used to generate the first indication information is real, reliable, timely and effective, thereby greatly increasing the In order to determine the accuracy of whether there is an abnormal area, try to avoid using the second caching strategy to cache data when there is no abnormal area or not detect when there is an abnormal area, so as to improve the user experience.
- the first abnormal area record is added to the data file of the abnormal area, or the second abnormal area in the data file of the abnormal area is updated.
- recording it is specifically implemented: in the case of passing through the above at least one cell, the location information of the above-mentioned chip is obtained, and the first abnormal area record is added to the data file of the above-mentioned abnormal area, or the data file of the above-mentioned abnormal area is updated.
- Two abnormal area records; the first abnormal area record or the second abnormal area record includes the information of the at least one cell, and the location information in the first abnormal area record or the second abnormal area record is based on the location information of the chip owned.
- the abnormal area record in the data file of the abnormal area may not only be obtained according to the updated cell information, but also may be obtained according to the location information.
- the chip can generate the first indication information according to the real-time location information and the location information recorded in the abnormal area in the data file of the abnormal area, thereby increasing the accuracy of judging whether there is an abnormal area and avoiding the absence of the abnormal area as much as possible.
- the second caching strategy is used to cache data in an abnormal area or if there is an abnormal area that is not detected, the user experience is improved.
- the first abnormal area record is added to the data file of the abnormal area, or the second abnormal area in the data file of the abnormal area is updated.
- recording it is specifically implemented: in the case of passing through the above-mentioned at least one cell, obtain at least one of the following information: the time of entering the above-mentioned abnormal area, the time of leaving the above-mentioned abnormal area, the duration of the above-mentioned abnormal area; the data in the above-mentioned abnormal area
- the first abnormal area record is added to the file, or the second abnormal area record in the data file of the above-mentioned abnormal area is updated; the time for entering the abnormal area in the above-mentioned first abnormal area record or the above-mentioned second abnormal area record is based on the above-mentioned
- the time of leaving the abnormal area is obtained, or, the time of leaving the abnormal area in the above-mentioned first abnormal area record or the above-mentioned second abnormal
- the abnormal area record in the data file of the abnormal area may further include the time information of entering the abnormal area, the time information of leaving the abnormal area, and the duration information of the abnormal area in the historical records.
- the control component can refer to the above information in the database file of the abnormal area for generating the first indication information and sending the first indication information, so as to assist in judging the actual time of entering the abnormal area, the time of leaving the abnormal area, and the duration of the abnormal area, thereby increasing the In order to determine the accuracy of whether there is an abnormal area, try to avoid using the second caching strategy to cache data when there is no abnormal area or not detect when there is an abnormal area, so as to improve the user experience.
- the chip is further configured to: receive a deregistration message sent by the target application; and the deregistration message is used to deregister the first notification event.
- the target application can send a deregistration message to the chip when it does not need to obtain the first indication information, that is, the target application can independently choose whether to receive the first indication information, which greatly increases the flexibility of implementation.
- an embodiment of the present application provides an electronic device, including a transceiver, a processor, and a memory; the above-mentioned memory is used to store computer program codes, and the above-mentioned computer program codes include computer instructions, and the above-mentioned processor invokes the above-mentioned computer instructions to make
- the above-mentioned user equipment executes the data caching method provided by the first aspect and any one of the implementation manners of the first aspect in the embodiments of the present application.
- an embodiment of the present application provides a computer storage medium, where the computer storage medium stores a computer program, the computer program includes program instructions, and when the program instructions are executed by a processor, is used to execute the first step in the embodiment of the present application.
- a data caching method provided by any implementation manner of the first aspect.
- the embodiments of the present application provide a computer program product that, when the computer program product runs on a communication device, enables the communication device to perform any one of the first aspect and the first aspect in the embodiments of the present application.
- the data caching method provided by the method.
- an embodiment of the present application provides an electronic device, where the electronic device includes executing the method or apparatus described in any embodiment of the present application.
- the above-mentioned electronic device is, for example, a chip.
- the electronic device provided by the third aspect, the computer storage medium provided by the fourth aspect, the computer program product provided by the fifth aspect, and the electronic device provided by the sixth aspect are all used to execute the data provided by the first aspect. cache method. Therefore, for the beneficial effects that can be achieved, reference may be made to the beneficial effects of the data caching method provided in the first aspect, which will not be repeated here.
- FIGS. 1A to 1M are schematic diagrams of some application scenarios provided by embodiments of the present application.
- FIGS. 2 to 4 are schematic structural diagrams of some electronic devices provided by embodiments of the present application.
- FIG. 5 is a schematic flowchart of a data caching method provided by an embodiment of the present application.
- FIG. 6 is a schematic diagram of another application scenario provided by an embodiment of the present application.
- FIG. 7 is a schematic flowchart of a learning process provided by an embodiment of the present application.
- FIG. 8 is a schematic flowchart of a prediction process provided by an embodiment of the present application.
- FIG. 13 is a schematic flowchart of another data caching method provided by an embodiment of the present application.
- Network service anomalies may include, but are not limited to: no network signal (ie, network disconnection), falling to a low network standard (for example, falling from the fifth generation mobile networks (5G) to the third generation mobile communication technology (3rd-generation, 3G)), the signal quality is poor, and the application experience quality is poor.
- no network signal ie, network disconnection
- 5G fifth generation mobile networks
- 3rd-generation, 3G third generation mobile communication technology
- the poor signal quality may be that the parameters used to characterize the signal quality (hereinafter referred to as signal quality parameters) do not meet the preset conditions, for example, the signal-to-noise ratio, reference signal receiving power (RSRP), reference signal receiving quality ( The reference signal receiving quality, RSRQ) is less than the preset threshold, and the packet loss rate is greater than the preset threshold.
- the application experience quality is poor, for example, the quality of experience (quality of experience, QoE) is lower than the first QoE level. Among them, the lower the QoE level, the worse the user experience.
- the QoE level includes three: 0, 1, 2, 0 means poor user experience, 1 means average user experience, 2 means good user experience, and the first QoE level is 2 , an abnormal area is an area with a QoE rating of 0 or 1.
- the user opens the video application of the electronic device 100 before leaving home, and watches videos through the video application during the journey from home to the company.
- the normal area may be the coverage area of a normal cell.
- the user's electronic device 100 can access the normal cell and can be used normally.
- the video application of the electronic device 100 does not freeze or the freeze time is short (eg, less than 3 seconds) when playing the video.
- the abnormal area may be a coverage area of an abnormal cell, a weak coverage area of a normal cell, or a non-coverage area.
- abnormal cells cannot provide normal network services for electronic devices, for example, they cannot provide networks for electronic devices or can only provide 2Generation wireless telephone technology (2G) networks for electronic devices. Therefore, when the user passes through the abnormal area, the electronic device 100 cannot be used normally. For example, the video application of the electronic device 100 freezes for a long time (eg, more than 20 seconds) or fails to play the video.
- 2G 2Generation wireless telephone technology
- the electronic device 100 may display the user interface 110 of the video application.
- the user interface 110 may include a signal quality indicator 111 , a time indicator 112 , black dots 113 , and gray dots 114 .
- the signal quality identifier 111 is used to indicate that the electronic device 100 is currently accessing a 5G network with a signal grid number of 5 (ie, full grid), and the signal quality is good at this time.
- the time mark 112 is "15:00/48:52", wherein "48:52” is used to indicate that the total duration of the video currently played by the video application (that is, the 17th episode video) is 48 minutes and 52 seconds, and "15:00 " is used to indicate that the currently playing picture of the video application is the picture of the video at 15 minutes.
- the black dots 113 are used to indicate that the current playback has reached 15 minutes.
- the gray dot 114 is used to indicate that the current cache is up to 15 minutes and 30 seconds.
- the video application may use a first caching strategy to cache video data, where the first caching strategy includes at least one of the following: using a first download rate to download the data of the target application, using a first bit rate to download all data the data of the target application, use the first resolution to download the data of the target application, use the first frame rate to download the data of the target application, and use the first number of requests to request the data of the target application, and the first number of requests is The number of requests per unit time.
- the first download rate is to download video data with a playback duration of 10 seconds per second.
- the first usage duration and the second usage duration may also be other values.
- the electronic device 100 when the user passes through the first normal area, the electronic device 100 is connected to a 5G network with a signal grid number of 5 (ie, full grid), and the signal quality is good.
- the video application of the electronic device 100 adopts the above-mentioned No. A caching strategy caches video data.
- the currently cached duration in the user interface 110 is 15 minutes and 30 seconds, and the currently played duration is 15 minutes, and the difference between the two is equal to 30 seconds. Therefore, 30 seconds have elapsed from this moment, that is, during the process of the user traveling from the normal point A to the normal point B, the first download rate is maintained as the video data with the duration of 10 seconds downloaded per second.
- the black dots 113 and the gray dots 114 in the user interface 110 move, and the time mark 112 also changes.
- the black dots 113 in the user interface 110 are used to indicate that the current playback has reached 15 minutes and 30 seconds
- the gray dots 114 are used to indicate that the current buffer has reached 20 minutes and 30 seconds.
- the black dots 113 and the gray dots 114 in the user interface 110 move, and the time mark 112 also changes.
- the black dot 113 is used to indicate that the current playback has reached 29 minutes and 30 seconds
- the gray dot 114 is used to indicate that the current buffer has reached 30 minutes, and the difference between the two is equal to 30 seconds. Therefore, in the next 30 seconds, that is, when the user travels from the normal point C to the abnormal point, 5 minutes of video data will be downloaded.
- the black dots 113 in the user interface 110 are used to indicate that the current playback has reached 30 minutes, and the gray dots 114 are used to indicate that the current buffer has reached 35 minutes.
- the signal quality indicator 111 in the user interface 110 is used to indicate that the electronic device 100 cannot access the network and the network is disconnected. At this time, the rate of downloading video data is 0.
- the black dot 113 in the user interface 110 moves and the time mark 112 also changes.
- the gray circle 114 in the user interface 110 does not move.
- the black dots 113 in the user interface 110 are used to indicate that the current playback has reached 35 minutes, and the gray dots 114 still indicate that the current buffer has reached 35 minutes.
- the black dots 113 and the gray dots 114 coincide.
- the gray dot 114 in the user interface 110 cannot move, so the user cannot continue to watch the video, nor can the black dot 113 and the time marker 112 move.
- the signal quality indicator 111 in the user interface 110 is used to indicate that the electronic device 100 is connected to a 5G network with 5 signal bars (ie, full bars), and the signal quality is relatively low. OK, therefore, the video data can be continued to be downloaded by adopting the above-mentioned first caching strategy, and the gray circle 114 can be moved. At this time, the gray dot 114 can be used to indicate that the current cache is 35 minutes and 30 seconds.
- the video application of the electronic device 100 can continue to work normally using the above-mentioned first caching strategy, and the user can also continue to watch through the video application. video.
- the black dot 113 in the user interface 110 displayed by the electronic device 100 is used to indicate that the current playback has reached 35 minutes and 30 seconds.
- the embodiments of the present application provide a data caching method, which can be applied to electronic devices, and can also be applied to chips or processing systems in electronic devices, such as Huawei mobile services (huawei mobile services, HMS), Android (Android) )system.
- the electronic device can perform service abnormality prediction during the user's travel, and when it is predicted that the abnormal area is about to be entered, the electronic device performs a pre-cache operation for the target application.
- the target application is an application that sends a registration message to the control component of the system during installation or running, and the registration message is used to obtain the first indication information sent by the control component and used to indicate that there is an abnormal area in the forward direction.
- the control component may be a component in a processing system, such as a Huawei inter-device communication mobile service (huawei mobile services hi device to device, HMS HiD2D) in an HMS system, a processing module in an Android system, and the like.
- the control component may also be a chip or a module in a chip, eg a module in a modem chip.
- the pre-cache operation may include at least one of the following: increasing the download rate, reducing the amount of data used by the download data in a unit time, and increasing the number of requests per unit time.
- Increasing the download rate may include increasing the number of requests per unit time and increasing the amount of data per request.
- reducing the amount of data used by the downloaded data in a unit time may be: reducing the amount of data played by the downloaded video data in a unit time, for example, reducing the resolution, frame rate, code, etc. of the downloaded video data. Rate.
- reducing the amount of data used by the downloaded data in a unit time may also be: reducing the amount of data played by the downloaded audio data in a unit time, for example, reducing the sampling rate and the number of sampling bits of the downloaded audio data. , the number of channels.
- the user can use the target application in the electronic device 100 normally during the period of passing through the abnormal area as much as possible. Improve user experience.
- the following describes the process of executing the data caching method of the embodiment of the present application.
- the commute route please refer to the route shown in FIG. 1A-FIG. 1C.
- the user opens the video application of the electronic device 100 before leaving home.
- the video application sends a registration message to the control component in the electronic device 100 to obtain the first indication information.
- the control component continues to perform the prediction process and obtains the first indication information.
- the prediction process refer to the embodiments shown in FIG. 8 to FIG. 13 below, which will not be described in detail for the time being.
- the electronic device 100 When the user passes through the first normal area, the electronic device 100 is connected to a 5G network with a signal grid number of 5 (ie, full grid), and the signal quality is good.
- the process when the user travels from home to the normal point C (that is, when the user is in the first normal area) is the same as the process shown in FIG. 1A , for details, please refer to the description of FIG. 1A .
- the first indication information may include type, optionally, a first time t 1 , optionally a second time t 2 , and optionally a third time t 3 .
- the first value of type indicates that there is an abnormal area, and the value of type is the second value to indicate that the previously sent broadcast message is invalid.
- t 1 can be the moment of entering the abnormal area, or the time period from the current position to entering the abnormal area (that is, the time period from the normal point C to the abnormal point is 30 seconds).
- t 2 can be the moment of leaving the abnormal area, or the time period from the current position to leaving the abnormal area.
- t 3 can be the time period from entering the abnormal area to leaving the abnormal area (ie, the time period from the abnormal point to the recovery point), that is, the duration of the abnormal area.
- the video application receives the first indication information sent by the control component, and in response to the first indication information, performs a pre-cache operation, optionally, within a preset execution duration (for example, 5 ms, 10 ms, 1 seconds, 3 seconds, etc.), perform a pre-cache operation.
- a preset execution duration for example, 5 ms, 10 ms, 1 seconds, 3 seconds, etc.
- the data of the video application is cached using a second caching strategy, wherein the second caching strategy includes at least one of the following: using a second download rate to download the data of the target application, and using a second bit rate to download the target application
- the data of the target application is downloaded using the second resolution
- the data of the target application is downloaded using the second frame rate
- the data of the target application is requested using the second number of requests, which is the number of requests per unit time.
- the second download rate is higher than the first download rate
- the second bit rate is lower than the first bit rate
- the second resolution is lower than the first resolution
- the second frame rate is lower than the first frame rate
- the second number of requests is greater than the number of first requests.
- the pre-cache operation is to increase the download rate to a preset multiple of the original rate (for example: 1.8 times, 3 times, etc.), taking the preset multiple of 3 times as an example, the download time is 30 seconds of video data per second , and after downloading the content whose cache reaches the first usage time, the cache will not be stopped, but will continue to be cached.
- the video application uses the second caching strategy to cache the video data.
- the second download rate is 3 times the first download rate, the first resolution is the same as the second resolution or the second resolution is smaller than the first resolution, the first frame rate and the second frame rate are the same or the second frame rate is less than The first frame rate, the first code rate and the second code rate are the same or the second code rate is smaller than the first code rate.
- the number of times of requesting data per unit time may be greater, that is, the number of times of second requests is greater than the number of times of first requests.
- the second download rate being greater than the first download rate may be specifically: the number of times of the second requests is greater than the number of times of the first requests.
- the electronic device can adjust one or more parameters of download rate, bit rate, frame rate, resolution, and the number of times of requesting data per unit time, and the electronic device can adjust any combination of these five parameters.
- the video application performs the above-mentioned pre-cache operation when the user travels from the normal point C to the abnormal point (ie, within t 1 )
- video data with a duration of 15 minutes is downloaded within t 1 . Therefore, when the user reaches the abnormal point, the black dots 113 in the user interface 110 are used to indicate that the current playback has reached 30 minutes, and the gray dots 114 are used to indicate that the current buffer has reached 45 minutes.
- the cached content ( 15 minutes) is longer than the first preset duration (300s).
- the video application downloads the video data at a third download rate, and the third download rate is lower than the first download rate, or downloads the video data at a third bit rate, and the third bit rate is less than or equal to
- the second bit rate or, use a third resolution to download video data, and the third resolution is less than or equal to the second resolution, or, use a third frame rate to download video data, and the third frame rate is less than or equal to the second frame rate , or download the video data by adopting the third number of requests, where the third number of requests is the number of requests within a unit time, and the number of third requests is less than or equal to the number of first requests.
- the signal quality indicator 111 in the user interface 110 is used to indicate that the electronic device 100 cannot access the network and the network is dropped, so the third download rate is 0.
- the user may also drop to a low network standard when passing through the abnormal area.
- the user interface displayed by the electronic device 100 is, for example, the user interface 110 shown in FIG. 1E .
- the user interface 110 The signal quality indicator 111 in is used to represent a 2G network with a signal grid number of 5 grids (that is, full grids) accessed by the electronic device.
- the signal quality may also be poor.
- the user interface displayed by the electronic device 100 is, for example, the user interface 110 shown in FIG. 1F . It is used to characterize a 5G network with a signal grid of 1 grid connected to an electronic device.
- the application experience quality may also be poor.
- the user interface displayed by the electronic device 100 is, for example, the user interface 110 shown in FIG. 1G .
- the signal quality indicator 111 in the user interface 110 Although the 5G network characterized by the number of signal bars connected to electronic devices is 5 bars (that is, full bars), the QoE of the application is poor, resulting in a lower download rate.
- the third rate is less than the first rate, and the third rate is less than the first rate, for example, the number of requests per unit time is less than the number of first requests, and the amount of data downloaded per unit time is less than the first amount of data.
- the black dot 113 in the user interface 110 moves and the time mark 112 also changes.
- the second rate in the abnormal area is 0, that is, the video data cannot be downloaded, the gray circle 114 in the user interface 110 does not move.
- the third resolution is less than or equal to the second resolution, or the third frame rate is less than or equal to the second frame rate, or the third bit rate is less than or equal to the second bit rate, or the third number of requests is less than or equal to the first 2. Number of requests.
- the black dots 113 in the user interface 110 are used to indicate that the current playback has reached 35 minutes, and the gray dots 114 still indicate that the current buffer has reached 45 minutes. Therefore, when the user continues to travel from the intermediate point for 10 minutes, the black dot 113 and the time marker 112 can continue to move, and the user can continue to watch the video.
- the black dots 113 in the user interface 110 are used to indicate that the current playback has reached 44 minutes, and the gray dots 114 It still means that it is currently cached to 45 minutes.
- the signal quality indicator 111 in the user interface 110 is used to indicate that the number of signal bars connected by the electronic device is 5 bars (that is, full bars) of 5G network, the signal quality is good, and the video application can download the video data by adopting the above-mentioned first caching strategy.
- the rate of downloading video data is restored to the first rate, or the resolution of the video data is restored to the first resolution, or the frame rate of the video data is restored to the first frame rate, or the bit rate of the video data is restored is the first bit rate.
- the number of requests per unit time is restored to the first number of requests.
- restoring the rate of downloading video data to the first rate may specifically include: restoring the number of requests per unit time to the first number of requests.
- the control component may send the first indication information whose type is the second value to the video application to notify the video application to send the The first indication information of is invalid.
- the video application receives the first indication information whose type is the first value, and performs a pre-cache operation, that is, the second cache strategy is used to cache the video data.
- the control component may send the first indication information with the type value of the second value to the video application.
- the video application receives the first indication information whose type value is the second value, and stops the currently executed pre-cache operation, that is, the first caching strategy is used to cache the video data.
- the pre-cache operation is to reduce the bit rate of the downloaded video data (for example, to reduce the bit rate to the original bit rate) times, times, etc.), at the second code rate of the first code rate
- the amount of video data played in a unit time can be increased to three times the original.
- the process of the user traveling from the normal point C to the company can be referred to in Figs. 1I to 1K below.
- the video application performs the above pre-cache operation during the user's journey from the normal point C to the abnormal point (ie, within t1 )
- the video data with a duration of 15 minutes is downloaded within t1 . Therefore, when the user reaches the abnormal point, the black dots 113 in the user interface 110 are used to indicate that the current playback has reached 30 minutes, and the gray dots 114 are used to indicate that the current buffer has reached 45 minutes.
- the cached content ( 15 minutes) is longer than the first use time (300s).
- the third code rate is smaller than the first code rate, or the third resolution is smaller than the first resolution, or the third code rate is smaller than the first code rate
- the bit rate, or the third frame rate is less than the first frame rate, or the third resolution is less than or equal to the second resolution, or the third bit rate is less than or equal to the second bit rate, or the third frame rate is less than or equal to the first Second frame rate. Therefore, the sharpness of the user interface 110 is poor, its sharpness is less than that of the first normal area, or its sharpness is less than or equal to the sharpness during traveling from the normal point C to the abnormal point.
- the third request number is less than the first request number or the second request number.
- the black dot 113 in the user interface 110 moves and the time mark 112 also changes.
- the gray circle 114 in the user interface 110 does not move.
- the black dots 113 in the user interface 110 are used to indicate that the current playback has reached 35 minutes, and the gray dots 114 still indicate that the current buffer has reached 45 minutes. Therefore, while the user continues to travel from the intermediate point for 10 minutes, the black 113 and the time mark 112 can continue to move and the user can continue to watch the video.
- the resolution, frame rate, and bit rate of the video data played by the video application when the user passes through the abnormal area is the second resolution, or the second frame rate, or the second bit rate.
- the second bit rate is lower than the first bit rate, or the second resolution is lower than the first resolution, or the second frame rate is lower than the first frame rate, so the definition of the user interface 110 is poor.
- the black dots 113 in the user interface 110 are used to indicate that the current playback has reached 44 minutes, and the gray dots 114 It still means that it is currently cached to 45 minutes.
- the resolution, frame rate, and code rate of the video data played by the video application are still the second resolution, or the second frame rate, or the second code rate, so the definition of the user interface 110 is poor.
- the signal quality indicator 111 in the user interface 110 is used to indicate that the number of signal bars connected by the electronic device is 5 bars (that is, full bars) of 5G network, the signal quality is good, the video application can continue to work normally by adopting the above-mentioned first caching strategy, and the user can also continue to watch the video through the video application.
- the black dot 113 in the user interface 110 is used to indicate that the current playback has reached 45 minutes, and the signal quality indicator 111 in the user interface 110 is used for A 5G network with 5 grids (that is, full grids) of signals connected to electronic devices has better signal quality.
- the video application downloads 10 minutes of data from the normal point C to the abnormal point, while the user only plays 9 minutes of video from the abnormal point to the recovery point.
- the resolution, bit rate, and frame rate of the video played by the video application are still the second resolution, or the second bit rate, or the second frame rate, Then the clarity of the user interface 110 is still poor.
- the video data played by the video application may be downloaded when it is in the second normal area, and the resolution, frame rate, and bit rate of the video data are the first resolution, or the first resolution.
- One frame rate, or the first bit rate so the definition of the user interface 110 is normal. For example, when the normal point E is reached, the black dot 113 in the user interface 110 is used to indicate that the current playback has reached 45 minutes and 30 seconds.
- the video application may re-download the video data after 44 minutes using the above-mentioned first caching strategy from the moment when the user continues from the recovery point, and the bit rate of the video data is the first bit rate, or the frame rate of the video data is the first frame rate, or the resolution of the video data is the first resolution. Then after a certain period of time (for example, 5 seconds, 10 seconds, 30 seconds, etc.), the bit rate of the video data played by the video application is the first bit rate, or the frame rate of the video data is the first frame rate, or the video data is the first resolution, so the displayed user interface has normal clarity.
- a certain period of time for example, 5 seconds, 10 seconds, 30 seconds, etc.
- the gray circle 114 in the user interface 110 indicates that the buffer has been stored for 35 minutes. Moreover, in FIG. 1C , when the user is at the middle point, the black dots 113 and the gray dots 114 overlap. In FIGS. 1D , 1H, and 1I-1J, when the user is at an abnormal point or an intermediate point (ie, when passing through an abnormal area), the gray circle 114 in the user interface 110 indicates that the buffer has been stored for 45 minutes. Therefore, in FIGS. 1B-1C , the user cannot continue watching the video during the 9 minutes from the intermediate point to the recovery point. However, in FIG. 1D, FIG. 1H, and FIG. 1I-FIG. 1J, the user can continue to watch the video during the 9 minutes from the intermediate point to the recovery point.
- the user may click on the next episode before entering the exception area to cause the video application to play the video data for episode 18. Assuming that the user clicks the next episode at the normal point C, the process of the user traveling from the normal point C to the abnormal point is as shown in FIG. 1L or FIG. 1M below.
- the video application does not send a registration message to the control component.
- the user clicks on the next episode.
- the user interface 110 has not yet played the video data, and the prompt 115 "play now" included in the user interface 110 is used to prompt the user that the video of episode 18 is about to be played.
- the time mark 112 in the user interface 110 has not been successfully obtained, so it is "00:00/00:00".
- the black dots 113 and the gray dots 114 overlap, indicating that the currently played and cached are both 0.
- the video application keeps downloading video data with a duration of 10 seconds per second. Then when the user reaches the abnormal point, the video application has downloaded 300 seconds (ie, 5 minutes) of video data, so the black dots 113 in the user interface 110 are used to indicate that the video has been played to 30 seconds, and the gray dots 114 are used for for 5 minutes that are currently cached to the video.
- the video application when the user opens the video application of the electronic device 100 before leaving home, the video application sends a registration message to the control component.
- the user operation and the user interface 110 when the user reaches the normal point C are the same as those in FIG. 1L , and will not be repeated here.
- the video application performs a pre-cache operation, assuming that the pre-cache operation is shown in Figure 1D and Figure 1H to increase the download rate by 3 times the original, or The code rate of the reduced downloaded video data shown in FIG. 1I-FIG.
- 1J is the original one
- the video application has downloaded 10 minutes of video data, so the black dots 113 in the user interface 110 are used to indicate that the video has been played for 30 seconds, and the gray dots 114 are used to indicate that the current has been cached. to 15 minutes of this video.
- the duration of the downloaded video data in FIG. 1M is greater than the duration of the downloaded video data in FIG. 1L.
- the first indication information includes the first time t 1 and the second time t 2 , or includes the third time t 3 .
- the pre-cache operation performed by the video application is used to download video data whose playback duration is greater than or equal to the duration of the abnormal area before reaching the abnormal area, so as to ensure that the user can watch the video normally when passing through the abnormal area.
- the duration of the abnormal area may be obtained according to the difference between the first time t 1 and the second time t 2 , or may be obtained directly according to the third time t 3 .
- a video application when a video application plays a video, each time the video application requests data from the server of the video application, the number of times of requesting data may be increased by one, and the number of times of requesting data may be recorded.
- the currently recorded number of times of requesting data can be cleared, and the above recording process can be restarted for the currently played video.
- Other content eg: audio, web pages, games, etc.
- the audio application plays the next song, the number of times of request data currently recorded is cleared, and the number of times of request data is re-recorded for the currently played song.
- the user interface 110 displayed by the electronic device 100 may not include the gray dots 114 , but the actual cache situation may be consistent with the cache situation represented by the gray circles 114 .
- the first caching strategy and the first caching strategy adopted during downloading The two caching strategies are similar.
- the first caching strategy of the audio application includes at least one of the following: using the first download rate to download the data of the target application, using the first sampling frequency to download the data of the target application, using the first sampling bit to download the data of the target application, using The first number of channels is used to download the data of the target application, and the first number of requests is used to request the data of the target application.
- the second caching strategy of the audio application includes at least one of the following: using the second download rate to download the data of the target application, using the second sampling frequency to download the data of the target application, using the second sampling number to download the data of the target application, using the second sampling frequency.
- the number of channels is used to download the data of the target application, and the second number of requests is used to request the data of the target application.
- the data of the news application includes the first type of data (that is, the picture data) and the second type of data (that is, the text data), and the first caching strategy of the news application includes at least one of the following: using the first download rate to download the target application
- the data of the target application is downloaded at the first resolution, and the data of the first type and the data of the second type are cached.
- the second caching strategy of the news application includes at least one of the following: using a second download rate to download the data of the target application, using a second resolution to download the data of the target application, caching the data of the first type and not caching the data of the second type data.
- the enabling and disabling of the prediction function may be preset by the system, such as being enabled by default, or may be user-defined settings.
- the user can turn on the "Enable prediction function" option on the setting interface displayed by the electronic device 100, then the application program on the electronic device 100 sends a registration message to the control component during installation or running, and the control component is in the process of the user's travel.
- the prediction process is always performed and the first indication information is obtained.
- the control component may send the first indication information to the application program that has sent the registration message, so that the application program performs the pre-cache operation.
- the setting interface displayed by the electronic device 100 may include an option of "enable prediction function” for different applications, and the user may turn on or off the option of “enable prediction function” of any application program on the setting interface. Understandably, when the "Enable prediction function" option of at least one application on the setting interface is turned on, the control component will always perform the prediction process and obtain the first indication information while the user is traveling, but when the setting interface is When the "Turn on forecasting" option for each application is turned off, the control component can stop the forecasting process. The user can turn on the "Enable prediction function” option of the video application on the setting interface, and the video application can send a registration message to the control component during installation or running, so that the control component sends the first indication information to the video application. The pre-cache operation can be performed according to the first indication information, so that the user can also use the video application normally when passing through the abnormal area.
- the electronic device 100 involved in the embodiments of the present application may be a mobile phone, a tablet computer, a desktop computer, a laptop computer, a notebook computer, an Ultra-mobile Personal Computer (UMPC), a handheld computer, a netbook, a personal digital assistant ( Personal Digital Assistant, PDA), wearable electronic devices, smart screens and other devices.
- UMPC Ultra-mobile Personal Computer
- PDA Personal Digital Assistant
- FIG. 2 shows a schematic structural diagram of an electronic device 100 .
- the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charge management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2 , mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, sensor module 180, buttons 190, motor 191, indicator 192, camera 193, display screen 194, and Subscriber identification module (subscriber identification module, SIM) card interface 195 and so on.
- SIM Subscriber identification module
- 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, and ambient light. Sensor 180L, bone conduction sensor 180M, etc.
- the structures illustrated in the embodiments of the present application do not constitute a specific limitation on the electronic device 100 .
- the electronic device 100 may include more or less components than shown, or combine some components, or separate some components, or arrange different components.
- the illustrated components may be implemented in hardware, software, or a combination of software and hardware.
- the processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (application processor, AP), a modem processor (modem), a graphics processor (graphics processing unit, GPU), image Image signal processor (ISP), controller, video codec, digital signal processor (DSP), baseband processor and/or neural-network processing unit (NPU) Wait. Wherein, different processing units may be independent devices, or may be integrated in one or more processors.
- application processor application processor, AP
- modem modem
- graphics processor graphics processor
- ISP image Image signal processor
- DSP digital signal processor
- NPU neural-network processing unit
- the wireless communication function of the electronic device 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modulation and demodulation processor, the baseband processor, and the like.
- Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals.
- Each antenna in electronic device 100 may be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization.
- the antenna 1 can be multiplexed as a diversity antenna of the wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
- the mobile communication module 150 may provide wireless communication solutions including 2G/3G/4G/5G etc. applied on the electronic device 100 .
- the mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA) and the like.
- the mobile communication module 150 can receive electromagnetic waves from the antenna 1, filter and amplify 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 then turn it into an electromagnetic wave for radiation through the antenna 1 .
- at least part of the functional modules of the mobile communication module 150 may be provided in the processor 110 .
- at least part of the functional modules of the mobile communication module 150 may be provided in the same device as at least part of the modules of the processor 110 .
- a modem processor may include a modulator and a demodulator.
- the modulator is used to modulate the low frequency baseband signal to be sent into a medium and high frequency signal.
- the demodulator is used to demodulate the received electromagnetic wave signal into a low frequency baseband signal. Then the demodulator transmits the demodulated low-frequency baseband signal to the baseband processor for processing.
- the low-frequency baseband signal is processed by the baseband processor and delivered to the AP.
- the AP outputs sound signals through audio devices (not limited to the speaker 170A, the receiver 170B, etc.), or displays images or videos through the display screen 194 .
- the modem processor may be a stand-alone device.
- the modulation and demodulation processor may be independent of the processor 110, and may be provided in the same device as the mobile communication module 150 or other functional modules.
- the wireless communication module 160 can provide applications on the electronic device 100 including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellites Wireless communication solutions such as global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), and infrared technology (IR).
- WLAN wireless local area networks
- BT Bluetooth
- GNSS global navigation satellite system
- FM frequency modulation
- NFC near field communication
- IR infrared technology
- the wireless communication module 160 may be one or more devices integrating at least one communication processing module.
- the wireless communication module 160 receives electromagnetic waves via the antenna 2 , frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110 .
- the wireless communication module 160 can also receive the signal to be sent from the processor 110 , perform frequency modulation on it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2 .
- the antenna 1 of the electronic device 100 is coupled with the mobile communication module 150, and the antenna 2 is coupled with the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology.
- wireless communication technology can include global system for mobile communications (GSM), general packet radio service (general packet radio service, GPRS), code division multiple access (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 above-mentioned GNSS may include global positioning system (global positioning system, GPS), global navigation satellite system (global navigation satellite system, GLONASS), Beidou navigation satellite system (beidou navigation satellite system, BDS), quasi-zenith satellite system (quasi- zenith satellite system, QZSS) and/or satellite based augmentation systems (SBAS).
- global positioning system global positioning system, GPS
- global navigation satellite system global navigation satellite system
- GLONASS global navigation satellite system
- Beidou navigation satellite system beidou navigation satellite system, BDS
- quasi-zenith satellite system quasi-zenith satellite system
- QZSS quasi-zenith satellite system
- SBAS satellite based augmentation systems
- the GNSS can also be implemented by an independent device, for example, the electronic device 100 further includes a positioning module.
- the positioning module can acquire the position information of the electronic device 100 through GNSS (eg GPS): latitude and longitude information, optionally, and direction (angle) information (eg, northeast direction), optionally, and speed information.
- the modem processor may acquire the cell information of the electronic device 100 through the mobile communication module 150 and the wireless communication module 160 .
- the identity of the serving cell (cell id), the cell id of the neighboring cell, the signal quality parameters of the serving cell and/or the neighboring cell.
- the signal quality parameters are, for example, but not limited to, packet loss rate, signal-to-noise ratio, RSRP, RSRQ, and the like.
- the AP can receive the cell information sent by the modem processor, so as to obtain the location information of the electronic device according to the cell information: longitude and latitude information, optionally, and direction (angle) information (for example, 20 north by east degrees), optionally, and speed information.
- the AP can receive service exception notification events, such as a notification that the modem processor reports network drop, drop to a low network standard, RSRP, and RSRQ are less than a preset threshold.
- the AP can also count the network quality parameters (such as bandwidth and delay) of at least one application by itself to obtain a comprehensive numerical QoE, which is used to characterize the quality and performance of services such as networks and services experienced by users.
- the AP receives the service abnormality notification message and determines that the QoE is less than the first QoE level, the AP can determine that the network service is abnormal and the service service of the application is abnormal.
- the AP can also receive the location information sent by the positioning module or the modem processor, and the cell information sent by the modem processor.
- the AP can perform a learning process, that is, identify and count abnormal areas based on the above information, so as to obtain a data file of the abnormal areas (which may also be referred to as an abnormal area database later).
- the abnormal area database includes at least one record, and each record is used to identify an abnormal area and the information including the abnormal area.
- An example of the records of the abnormal area database (that is, the information of the abnormal area therein) can be found in Table 2 in FIG. 7 below, which will not be described in detail for the time being.
- the learning process please refer to the descriptions of Figures 6 to 7 below, and will not be described in detail for the time being.
- the AP may also send the above-mentioned information to the cloud server through the mobile communication module 150 and the wireless communication module 160, and the cloud server performs the above-mentioned learning process.
- the cloud server can receive the relevant information on the route of the user sent by at least one electronic device, so the abnormal area recorded in the abnormal area database learned by the cloud server may be the abnormal area that the electronic device 100 does not pass through.
- the processor 110 may perform service anomaly prediction (hereinafter referred to as the prediction process) according to the abnormal area database obtained in the above learning process, the cell information obtained in real time, and optionally, the location information obtained in real time, and obtain first indication information.
- the processor 110 may perform a pre-cache operation in the process of sending the request message to the server of the target application according to the first indication information.
- the first indication information reference may be made to the description of the first indication information in FIG. 1A to FIG. 1M , and details are not repeated here.
- the pre-cache operation may include at least one of the following: increasing the download rate, reducing the amount of data used by the downloaded data in a unit time, and increasing the number of times data is requested in a unit time.
- increasing the download rate may include: increasing the number of times of requesting data per unit time, and/or increasing the amount of data requested in a single request message.
- reducing the amount of data in the unit time of the downloaded data in use may be: reducing the amount of data played in the unit time of the downloaded video data, for example, reducing the resolution and frame rate of the downloaded video data. , code rate.
- reducing the data volume in a unit time of the downloaded data during use may also be: reducing the data volume played by the downloaded audio data in a unit time, for example, reducing the sampling rate, sampling rate, and sampling rate of the downloaded audio data. Number of digits, number of channels.
- the electronic device 100 implements a display function through a GPU, a display screen 194, an application processor, and the like.
- the GPU is a microprocessor for image processing, and is connected to the display screen 194 and the application processor.
- the GPU is used to perform mathematical and geometric calculations for graphics rendering.
- Processor 110 may include one or more GPUs that execute program instructions to generate or alter display information.
- Display screen 194 is used to display images, videos, and the like.
- Display screen 194 includes a display panel.
- the display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (active-matrix organic light).
- LED diode AMOLED
- flexible light-emitting diode flexible light-emitting diode (flex light-emitting diode, FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diode (quantum dot light emitting diodes, QLED) and so on.
- the electronic device 100 may include one or N display screens 194 , where N is a positive integer greater than one.
- the electronic device 100 may implement audio functions through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, an application processor, and the like. Such as music playback, recording, etc.
- the audio module 170 is used for converting digital audio information into analog audio signal output, and also for converting analog audio input into digital audio signal. Audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be provided in the processor 110 , or some functional modules of the audio module 170 may be provided in the processor 110 .
- Speaker 170A also referred to as a "speaker" is used to convert audio electrical signals into sound signals.
- the electronic device 100 can listen to music through the speaker 170A, or listen to a hands-free call.
- the receiver 170B also referred to as "earpiece" is used to convert audio electrical signals into sound signals.
- the voice can be answered by placing the receiver 170B close to the human ear.
- FIG. 3 is a schematic structural diagram of another electronic device 100 provided by an embodiment of the present application.
- the electronic device 100 may include a service abnormality prediction unit 310 , a reporting unit 320 and an application unit 330 .
- the service abnormality prediction unit 310 may include a monitoring unit 311 , a prediction unit 312 , and optionally, a learning unit 313 .
- the reporting unit 320 may include a first reporting unit 321 , a second reporting unit 322 , and a third reporting unit 323 .
- the service abnormality prediction unit 310 , the reporting unit 320 and the application unit 330 may all belong to the processor 110 shown in FIG. 2 .
- the service abnormality prediction unit 310 and the application unit 330 belong to APs
- the first reporting unit 321 is a positioning module or AP
- the second reporting unit 322 is a modem processor
- the third reporting unit 323 is an AP.
- the description of each unit included in the electronic device 100 is as follows:
- the monitoring unit 311 is used for monitoring information.
- the monitored information may include location information sent by the first reporting unit 321 , cell information sent by the second reporting unit 322 , and service exception notification events sent by the third reporting unit 323 .
- the location information includes latitude and longitude information, direction information, and speed information.
- the cell information includes the cell id of the serving cell, the cell id of the neighboring cell, and signal quality parameters (eg, packet loss rate, signal-to-noise ratio, RSRP, RSRQ) of the serving cell and/or the neighboring cell.
- the service abnormality notification event includes a notification message whose RSRP and RSRQ are less than a preset threshold, and a notification message whose QoE is less than the first QoE level.
- the information monitored by the monitoring unit 311 may be sent to the learning unit 313 to perform the learning process.
- the learning unit 313 may perform identification and statistics of abnormal areas based on the information to obtain a database of abnormal areas.
- the abnormal area database includes at least one record, and each record is used to identify an abnormal area and information including the abnormal area.
- An example of the records of the abnormal area database (that is, the information of the abnormal area therein) can be found in Table 2 in FIG. 7 below, which will not be described in detail for the time being.
- the information monitored by the monitoring unit 311 may also be sent to the cloud server to perform the learning process. For the description of the learning process, refer to the embodiments shown in FIGS. 6 to 7 below, which will not be described in detail for the time being.
- the prediction unit 312 is configured to obtain the first indication information according to the real-time information monitored by the monitoring unit 311 , the abnormal area database (also referred to as a historical record) sent by the cloud server or the learning unit 313 .
- the prediction unit 312 may trigger the service exception broadcast, so as to send the first indication information to the application unit 330 .
- the abnormal area database may include valid location information, and the monitoring unit 311 may also monitor real-time valid location information. Therefore, the prediction unit 312 can perform the prediction process according to the abnormal area database, the real-time cell information and real-time location information sent by the monitoring unit 311, and obtain the first indication information.
- the prediction unit 312 can perform the prediction process according to the abnormal area database, the real-time cell information and real-time location information sent by the monitoring unit 311, and obtain the first indication information.
- the abnormal area database does not include valid location information, and the monitoring unit 311 cannot monitor real-time valid location information.
- the prediction unit 312 can perform the prediction process according to the abnormal area database and the real-time cell information sent by the monitoring unit 311, and obtain the first indication information.
- the description of the process can refer to the embodiment shown in FIG. 12 below, which will not be described in detail.
- For the description of the first indication information reference may be made to the description of the first indication information in FIG. 1A to FIG. 1M , and details are not repeated here.
- the application unit 330 may include at least one target application, and the description of the target application may refer to the descriptions of FIGS. 1A-1M and the following FIGS. 4-5 , which will not be described in detail for now.
- the target application in the application unit 330 After receiving the first indication information, the target application in the application unit 330 performs a pre-cache operation.
- the description of the pre-cache operation refer to the description of the pre-cache operation in FIGS. 1A to 1M , and details are not repeated here.
- the prediction unit 312 may trigger a service exception broadcast after performing the prediction process and obtain the first indication information, so as to send the first indication information to the application unit 330 .
- the predicting unit 312 may also trigger the service abnormality broadcast when the predicted duration of entering the abnormal area is within the first preset time range, so as to send the first indication information to the application unit 330 .
- the first preset time range may be a range with a relatively small duration, for example, [25 seconds, 35 seconds], [50 seconds, 70 seconds] and so on.
- the first preset time range can also be determined according to the scene information, for example, the first preset time range in the route to work is [25 seconds, 35 seconds], and the first preset time range in the route back to home is [50 seconds, 70 seconds]. ].
- This implementation can avoid the situation that the target application performs the pre-cache operation earlier and causes the electronic device to be affected and affects the user experience.
- the resolution, frame rate, and bit rate of the video data result in a lower definition of the subsequently displayed video picture.
- the prediction unit 312 obtains the first indication information according to the real-time location information of the electronic device 100, when the first indication information is sent to the application unit 330, the distance between the current predicted location of the electronic device and the abnormal area is relatively close, for example, from The duration of the current location entering the abnormal area is 30 seconds. In this case, the possibility of the user changing the route is small, i.e. the possibility of the user entering the abnormal area is high, thereby improving the accuracy of the prediction.
- the software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture.
- the embodiments of the present application exemplarily illustrate the software system of the electronic device 100 with a layered architecture.
- FIG. 4 is a schematic structural diagram of a software system of an electronic device 100 provided by an embodiment of the present application.
- the software system may be an Android system, an HMS system, or a software system such as a Microsoft Windows operating system (microsoft windows), an operating system kernel (linux), a mobile device operating system (iphone operation system, IOS).
- Microsoft Windows operating system Microsoft windows
- linux operating system kernel
- IOS mobile device operating system
- the layered architecture divides the software system into several layers, and each layer has a clear role and division of labor. Layers communicate with each other through software interfaces.
- the software system is divided into four layers, which are an application layer, an application framework layer, a kernel layer and a hardware layer from top to bottom.
- the application layer can include a series of application packages.
- the application package can include applications such as camera, calendar, navigation, SMS, gallery, calling, Bluetooth, video, music, games, learning, etc.
- FIG. 4 takes the video application as the target application as an example for description. That is, the video application sends a registration message to the registration module of the application framework layer during installation or running, where the registration message is used to obtain the first indication information from the service abnormality prediction module of the application framework layer.
- the first indication information reference may be made to the description of the first indication information in FIG. 1A to FIG. 1M , and details are not repeated here.
- the application framework layer provides an application programming interface (application programming interface, API) and a programming framework for applications in the application layer.
- the application framework layer includes some predefined functions.
- the application framework layer can include business exception notification modules, control components, content providers, view systems, and so on.
- the control component may include a registration module, a service abnormality prediction module and a transceiver module.
- the software system shown in FIG. 4 is an HMS system
- the control component may be HMS HiD2D in the HMS.
- the business exception notification module can be used to receive notification messages of business service exceptions and network service exceptions of the application (also referred to as business exception prediction notification events).
- the service exception notification module may receive a notification message of service exception of the application, such as the QoE being less than the first QoE level, sent by the application at the application layer.
- the QoE can be a value obtained comprehensively according to parameters such as bandwidth and delay of the application.
- the service exception notification module can also receive the dropped network reported by the processor driver (such as the modem driver) at the kernel layer, and dropped to a low network standard. Notification messages for network service exceptions such as preset thresholds.
- the registration module may be configured to receive a registration message sent by a video application at the application layer, so as to determine the video application as a target application.
- the registration module may also notify the service abnormality prediction module and the transceiver module in the control component that the target application is a video application, so as to send the first indication information to the target application subsequently.
- the service abnormality prediction module can be used to perform the prediction process based on the abnormal area database and the cell information reported in real time by the processor driver (such as the modem driver) at the kernel layer. For example, it will not be described in detail.
- the service anomaly prediction module can also perform the prediction process in combination with the processor driver (for example, a modem driver) or the location information reported by the positioning driver in real time at the kernel layer.
- the processor driver for example, a modem driver
- the location information reported by the positioning driver in real time at the kernel layer.
- the transceiver module may be configured to send the first indication information obtained by the service abnormality prediction module to the video application of the application layer. After receiving the first indication information, the video application may perform a pre-cache operation before the electronic device 100 reaches the abnormal area.
- the pre-cache operation please refer to the description of the pre-cache operation in FIGS.
- the abnormal area database may be obtained by the business abnormality prediction module performing the learning process.
- the service abnormality prediction module can monitor at least one of the following messages: the location information reported by the processor driver (eg, modem driver) or positioning driver at the kernel layer, and the location information reported by the processor driver (eg, modem driver) at the kernel layer.
- the service abnormality prediction module can identify and count abnormal areas based on the above-mentioned message, so as to obtain the abnormal area database.
- the cloud server may also acquire at least one message monitored by the electronic device 100 and perform a learning process to obtain the above-mentioned abnormal area database.
- the learning process refer to the embodiments shown in FIGS. 6 to 7 below, which will not be described in detail for the time being.
- the business anomaly prediction module executes the learning process or the prediction process, it can obtain scene information of the user's route and route from an application at the application layer (eg, Huawei Smart Assistant).
- the scene information may also be obtained through other modules in the application framework layer, and the scene information may also be obtained by self-identification, which is not limited in this embodiment of the present application.
- the scene information may include, but is not limited to: route type (eg, commute route, commute route, play route, etc.), route starting point (eg, home, company), route end point, and the like.
- the business exception prediction module of the application framework layer may be the business exception prediction unit 310 in FIG. 3
- the business exception notification module of the application framework layer and the processor driver and positioning driver of the kernel layer may be the one in FIG. 3 .
- the reporting unit 320, the video application of the application layer may be the application unit 330 in FIG. 3 .
- the service exception notification module may be the third reporting unit 323 in FIG. 3
- the processor driver may be the second reporting unit 322 in FIG. 3
- the positioning driver may be the The first reporting unit 321 .
- a window manager is used to manage window programs.
- the window manager can get the size of the display screen, determine whether there is a status bar, lock the screen, take screenshots, etc.
- Content providers are used to store and retrieve data and make these data accessible to applications.
- This data can include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, and more.
- the view system includes visual controls, such as controls for displaying text, controls for displaying pictures, and so on. View systems can be used to build applications.
- a display interface can consist of one or more views.
- the display interface including the short message notification icon may include a view for displaying text and a view for displaying pictures.
- the kernel layer is the layer between hardware and software.
- the kernel layer contains at least processor drivers, positioning drivers, display drivers, and sensor drivers.
- the hardware layer is the hardware structure of the electronic device 100, which may at least include a processor, a positioning module, a display screen, and a sensor module.
- the processor driver can be used to drive the processor in the hardware layer
- the positioning driver can be used to drive the positioning module of the hardware layer
- the display driver can be used to drive the display screen in the hardware layer
- the sensor driver can be used to drive the hardware layer. of multiple sensors.
- the positioning module may also be integrated in the processor, and the positioning driver may also be integrated in the processor driver.
- the processor at the hardware layer may include an application processor and a modem processor
- the processor driver at the kernel layer may also include an application processor driver and a modem driver.
- the application processor driver of the kernel layer is used to drive the application processor in the hardware layer
- the modulation and demodulation driver of the kernel layer is used to drive the modulation and demodulation processor in the hardware layer.
- the software system shown in FIG. 4 is the Android system, and the Android runtime (Android runtime) and the system library may also be included between the application framework layer and the kernel layer. in:
- Android Runtime includes core libraries and a virtual machine. Android runtime is responsible for scheduling and management of the Android system.
- the core library consists of two parts: one is the function functions that the java language needs to call, and the other is the core library of Android.
- the application layer and the application framework layer run in virtual machines.
- the virtual machine executes the java files of the application layer and the application framework layer as binary files.
- the virtual machine is used to perform functions such as object life cycle management, stack management, thread management, safety and exception management, and garbage collection.
- a system library can include multiple functional modules. For example: surface manager (surface manager), media library (Media Libraries), 3D graphics processing library (eg: OpenGL ES), 2D graphics engine (eg: SGL), etc.
- surface manager surface manager
- media library Media Libraries
- 3D graphics processing library eg: OpenGL ES
- 2D graphics engine eg: SGL
- the Surface Manager is used to manage the display subsystem and provides a fusion of 2D and 3D layers for multiple applications.
- the media library supports playback and recording of a variety of commonly used audio and video formats, as well as still image files.
- the media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
- the 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.
- 2D graphics engine is a drawing engine for 2D drawing.
- a data caching method provided by an embodiment of the present application is described below in conjunction with a scenario of an abnormal area of a user path (application scenario shown in FIG. 1A-FIG. 1M ). Specifically, as shown in FIG. 5 , the method may include but not be limited to the following steps:
- S501 The target application of the application layer is running, and the data of the target application is cached by adopting the first caching strategy.
- the first caching strategy includes at least one of the following: using a first download rate to download the data of the target application, using a first bit rate to download the data of the target application, using a first resolution to download the data of the target application Data, use the first frame rate to download the data of the target application, use the first number of requests to request the data of the target application, and the first number of requests is the number of requests per unit time; cache the first type of data and the second type of data.
- Type data the first type is different from the second type; the first sampling frequency is used to download the data of the target application, the first sampling number of bits is used to download the data of the target application, and the first channel number is used to download For the data of the target application; for a specific example, refer to the description of the first cache policy in FIG. 1A to FIG. 1M , and details are not repeated here.
- S502 The target application of the application layer sends a registration message to the registration module of the application framework layer.
- the target application may send a registration message to the registration module at installation, startup, foreground running, background running, switching from background running to foreground running, and switching from foreground running to background running.
- the registration message is used to obtain the first indication information obtained by the service abnormality prediction module.
- the target application may also send a deregistration message to the registration module when running in the foreground, running in the background, switching from running from the background to running in the foreground, or switching from running from the foreground to running in the background.
- the deregistration message is used to cancel the acquisition of the first indication information obtained by the service abnormality prediction module.
- the target application sends a registration message to the registration module when switching from the background running to the foreground running, and sends a de-registration message to the registration module when switching from the foreground running to the background running.
- the registration message is used to register the first notification event. For example, after receiving the registration message sent by the video application, the registration module determines the video application as the target application registered with the first notification event, and notifies the service abnormality prediction module and the transceiver module in the control component. Therefore, after generating the first indication information, the service abnormality prediction module will send the first indication information to the video application registered with the first notification event through the transceiver module (ie, execute S504).
- the deregister message is used to unregister the first notification event. For example, after receiving the deregistration message sent by the video application, the registration module determines the video application as the target application not registered with the first notification event, and notifies the service abnormality prediction module and the transceiver module in the control component. Therefore, after the service abnormality prediction module generates the first indication information, it will not send the first indication information to the video application through the transceiver module.
- the function of the application framework layer: registeredSignalQualityPrediction( ) is called, so as to send a registration message to the registration module through this function.
- the service abnormality prediction module predicts whether there is an abnormal area in the advancing direction of the electronic device, and generates first indication information if there is an abnormal area.
- the abnormal area is at least one of the following areas: an area where the signal quality is lower than a preset threshold; an area where the network is disconnected;
- the second network standard of the standard for example, 2G
- the area where the quality of experience QoE is lower than the first QoE level the smaller the QoE level, the worse the user experience.
- the QoE level includes three: 0, 1, 2, 0 means poor user experience, 1 means average user experience, 2 means good user experience, and the first QoE level is 1 , the abnormal area is the area with a QoE level of 0.
- the service anomaly prediction module can perform a prediction process according to the abnormal area database, cell information acquired in real time, and location information to obtain the first indication information.
- the prediction process please refer to Figure 8- Figure The embodiment shown in 11 will not be described in detail for the time being.
- the service abnormality prediction module can perform a prediction process according to the abnormal area database and the real-time acquired cell information to obtain the first indication information.
- the prediction process please refer to the implementation shown in FIG. 12 .
- a first location exists between the abnormal area and the current location, no other cell exists between the current location and the first location, and the first location refers to the location where the control component sends the first indication information; or, the abnormality
- the area is the area whose distance from the current location is within the first distance range.
- the first position is, for example, the normal point C in FIG. 1A to FIG. 1M and the preset point in FIG. 6 and FIG. 9 to FIG. 11 .
- the control component when the predicted duration of entering the abnormal area from the current position of the electronic device is within the first preset time range, the control component sends first indication information to the target application through the transceiver module, wherein the first preset time
- the first preset time For the description of the range, reference may be made to the description of the first preset time range in FIG. 1A to FIG. 1M , and details are not repeated here.
- the service abnormality prediction module sends the first indication information to the target application in the form of a broadcast message through the transceiver module.
- the transceiver module may send the first indication information to the video application through the function of the application framework layer: send broadcast sendBroadcast().
- the first indication information may include type, optionally, first time information t 1 , optionally second time information t 2 , optionally, third time information t 3 .
- the first value of type indicates that there is an abnormal area, and the value of type is the second value to indicate that the previously sent broadcast message is invalid.
- t 1 can be the moment of entering the abnormal area, or the time period from the current position to entering the abnormal area.
- t 2 can be the moment of leaving the abnormal area, or the time period from the current position to leaving the abnormal area.
- t 3 may be the time period from entering the abnormal area to leaving the abnormal area, that is, the duration of the abnormal area.
- Table 1 For an example of the parameters included in the first indication information, please refer to Table 1 below.
- the first indication information may also include only t 2 , or t 2 and type, or only t 1 , or t 1 and type, or t 1 and t 2 , or t 1 , t 2 and type, the present The application examples are not limited.
- the target application After receiving the first indication information, the target application uses the second caching strategy to cache the data of the target application.
- the target application when it receives the first indication information whose type value is the first value, it performs a pre-cache operation, that is, caches the data of the target application by adopting the second caching strategy.
- the second caching strategy includes at least one of the following: using a second download rate to download the data of the target application, and the second download rate is greater than the first download rate; using a second code rate to download the data of the target application, the second code rate is less than the first bit rate; use the second resolution to download the data of the target application, and the second resolution is smaller than the first resolution; use the second frame rate to download the data of the target application, and the second frame rate is smaller than the first frame rate; use the second The number of requests requests the data of the target application, the second number of requests is the number of requests per unit time, and the number of second requests is greater than the number of first requests; the first type of data is cached and the second type of data is not cached; the second sampling frequency is used to download the target application data, the second sampling frequency is lower
- the target application caches the data of the target application by using a second caching strategy, and optionally, within a second preset time period after receiving the first indication information, the target application starts to use the second caching strategy.
- the second preset duration may be a duration shorter than 1 second, such as 5 milliseconds, 10 milliseconds, and 30 milliseconds, or may be 1 second, 3 seconds, 5 seconds, and so on.
- the second preset duration is the preset execution duration in FIGS. 1A-1M .
- the target application performs the pre-cache operation within the first time t 1 after receiving the first indication information, but is not limited to this, and may also perform the pre-cache operation within 0.5 ⁇ t 1 after receiving the first indication information , which is not limited in the embodiments of the present application.
- a second caching strategy is used to cache the data of the target application whose playback duration is a third preset duration (ie, the duration of the abnormal area), so as to ensure that the user
- the target application can be used normally during the passage of the abnormal area.
- the third preset duration is the duration obtained according to the first time information t 1 and the second time information t 2 (that is, the difference between t 1 and t 2 ), or the third preset duration is an indication of the third duration information length of time.
- the target application is a video application.
- the video application determines that the download duration within t 1 is (t 1 +t according to the first indication information) 2 ) video data, an example of the expression of the data amount D 1 of the video data whose duration is (t 1 +t 2 ) is as follows:
- F is the frame rate of the video data
- I is the resolution of the video data
- C is the data amount of the currently buffered video.
- an example of the rate R 1 at which the video application buffers the video data is as follows:
- the pre-cache operation may include at least one of the following: increase R 1 , decrease I, decrease F.
- the process of caching the video data by the video application may satisfy at least one of the following: R 1 is greater than the download rate before t 1 , I is less than the resolution of the cached content before t 1 , and F is less than the frame rate of the cached content before t 1 .
- R 1 is greater than the download rate before t 1 , specifically: the frequency of sending request messages to the server of the target application is greater than the frequency before t 1 , and/or the amount of data requested to be downloaded in a single request message is greater than before t 1 amount of data.
- the target application is an audio application.
- the audio application can determine, according to the first indication information, that the audio data of the duration t 2 needs to be downloaded within t 1 , and the duration of the audio data of the duration is (t 1 + t 2 ).
- An example of the data volume D 2 expression is shown below:
- H is the sampling frequency of the audio data
- B is the number of sampling bits of the audio data
- S is the number of channels of the audio data (for example, 8)
- Q is the data volume of the currently buffered audio.
- an example of the rate R 2 at which the audio application buffers the audio data is as follows:
- the pre-cache operation may include at least one of the following: increase R 2 , decrease H, decrease B, decrease S.
- the process of buffering the audio data by the audio application can satisfy at least one of the following: R 2 is greater than the download rate before t 1 , H is less than the sampling frequency of the cached content before t 1 , and B is less than the sampling number of bits of the cache content before t 1 , S is less than the number of channels of buffered content before t1 .
- the target application is a reading application.
- the reading application can determine, according to the first instruction information, the amount of data D that needs to be downloaded within t 1 for the user to read within the duration of (t 1 +t 2 ) 3 .
- D 3 may be determined by the reading application according to the reading habit of the user, for example, the reading habit is that the user reads 0.3 pages of a document per second. Therefore, the pre-cache operation may be to increase the rate at which D 3 is downloaded within t 1 .
- the target application is a news application
- the user interface of the news application may include text and pictures.
- the news application can determine, according to the first indication information, to download within t1 the amount of data D4 viewed by the user within a duration of ( t1 + t2 ).
- D4 may be determined by the news application according to the user's habit of viewing news, for example, viewing 0.2 news per second, and prefers to view news that does not include pictures
- the pre-cache operation may include at least one of the following: increasing the download rate, only Cached text does not cache images.
- the target application is a game application.
- the game application can determine, according to the first indication information, to download the data amount D 5 used by the user within the duration of (t 1 +t 2 ) within t 1 .
- the data cached by the online game application is, for example, but not limited to, game mall data, friend data, and other data that can be cached in advance.
- the data cached by the game application can be determined by the game application according to the user's habit of using the game application. For example, if the user prefers to use the game arcade instead of viewing friend data, the pre-cache operation can only cache the game arcade data and not the friend data. .
- the target application uses different caching strategies to cache the data of the target application before and after receiving the first indication information, wherein the amount of data downloaded in a unit time using the first caching strategy before receiving the first indication information
- the usage duration is less than the usage duration of the amount of data downloaded in a unit time using the second caching strategy after receiving the first indication information. That is to say, after receiving the first indication information for indicating that there is an abnormal area in the forward direction, the target application uses the second caching strategy to cache data, thereby increasing the usage time of the amount of data downloaded per unit time, so as to minimize the It may allow users to use the target application normally when they pass through abnormal areas, avoid business freezes, and improve user experience.
- the electronic device 100 may perform the learning process by itself. Next, the above learning process is described in combination with the application scenario shown in FIG. 6 and the schematic flowchart shown in FIG. 7 .
- FIG. 6 is a schematic diagram of another application scenario of a user path abnormal area provided by an embodiment of the present application.
- the application scenario shown in FIG. 6 is similar to the application scenario shown in FIG. 1A-FIG. 1M.
- FIG. 6 takes as an example that the first cell and the second cell exist between the home and the abnormal point.
- the first cell and the second cell may be a single cell, or may be a cell group composed of multiple cells (eg, neighboring cells). Not limited to this, in a specific implementation, there may also be more or less cells.
- the preset point is the position where the preset control component sends the first indication information to the target application, which can also be understood as the position where the target application starts to perform the pre-cache operation.
- the duration from the preset point to the abnormal point preset by the electronic device 100 is the first duration T_trig.
- the first duration may be any duration in the first preset time range shown in FIG. 3 , for example, 30 seconds. For details, please refer to the description of the first preset time range in FIG. 3 .
- T_trig may also be equal to the time duration from the second cell to the abnormal point, that is, the preset point is any point in the second cell.
- T_trig may also be equal to the time duration from the first cell to the abnormal point, that is, the preset point is any point in the first cell.
- T_trig may also be shorter than the time duration from the second cell to the abnormal point, but greater than the time duration from the first cell to the abnormal point, that is, the preset point may be between the first cell and the second cell.
- FIG. 7 is a schematic flowchart of a learning process provided by an embodiment of the present application.
- the learning process may include but is not limited to the following steps:
- the cell may include a serving cell of the electronic device 100, optionally, a neighboring cell, optionally, a serving cell and signal quality parameters of neighboring cells (for example, RSRP, RSRQ, packet loss rate, signal quality, etc.). noise ratio, etc.).
- the cell handover list recorded by the electronic device may include the identifier of the serving cell, optionally, the identifier of the neighbor cell, and optionally, the signal quality parameters of the serving cell and the neighbor cell.
- the electronic device 100 monitors messages: whether the cell changes, cell information, service abnormality notification event, service recovery notification event. During the process of the user traveling from home to the abnormal point, the electronic device 100 monitors the cell change: the first cell is changed to the second cell, and records the cell switching list as: the first cell and the second cell. Optionally, the electronic device 100 may also record the information of the first cell and the second cell.
- the cell handover list may record the cell information after going to ping pong, that is, the cell information that appears for the first time. For example, during the process of traveling from the first cell to the second cell, the user monitors cell changes: the first cell, the second cell, and the first cell, and the recorded cell handover list is the first cell and the second cell.
- S702 When monitoring the service abnormality notification event, the electronic device determines whether there is a fenced cell at the abnormal point.
- the service abnormality notification event may include but is not limited to: network drop, drop to a low network standard, signal-to-noise ratio, RSRP, RSRQ less than a preset threshold, QoE less than the first QoE level, packet loss rate greater than a preset threshold, etc. .
- the electronic device 100 When listening to the service abnormality notification event, the electronic device 100 considers the current location as the abnormal point.
- the fenced cells may be one or more cells, which are used to measure the duration of reaching the abnormal point and determine the route, so that the electronic device 100 can subsequently perform a corresponding prediction process for different routes.
- the embodiment of the present application uses two fenced cells as an example for description. It is understandable that since two points determine a line, it is more accurate to determine the route of the current route through two fenced cells, and there is no need to record A large amount of cell information can be used to reduce the storage pressure and processing pressure of the electronic device 100 .
- the fenced cells that are farther from the abnormal point or the preset point are called the first fenced cell
- the fenced cells that are closer to the abnormal point or the preset point are called the second fenced cell.
- the electronic device may determine whether there are at least two cells outside the abnormal point or the preset point through the cell switching list recorded in S701. When it exists, the two nearest cells outside the abnormal point or the preset point are determined as fence cells. Exemplarily, as shown in FIG. 6 , the user passes through the first cell and the second cell while traveling from home to the abnormal point, and the electronic device 100 records the information of the first cell and the second cell in the cell switching list. When the user reaches the abnormal point, the electronic device 100 monitors the service abnormal notification event. Then, the electronic device 100 may determine, according to the cell switching list, that the first cell and the second cell exist outside the abnormal point, and thus determine the first cell and the second cell as the fenced cells of the abnormal point.
- the information of the abnormal area is not recorded.
- the abnormal point is adjacent to the starting point of the route (as shown in the home in FIG. 6 ), and the user arrives at the abnormal point without passing through other cells when starting, so the information of the abnormal area is not recorded.
- the information on the abnormal area may include information on the abnormal point and information on the recovery point.
- the information of the abnormal point may include, but is not limited to: the information of the fenced cell, the time from the first fenced cell to the abnormal point, the time from the second fenced cell to the abnormal point, the service exception type, and the number of service exceptions.
- the information of the abnormal area may further include location information of the abnormal point.
- the type of business exception and the number of occurrences of business exceptions can be obtained through the monitored business exception notification events during the period when the electronic device passes through the abnormal area. For example, the number of business exceptions is received from entering the abnormal area to leaving the abnormal area. The number of business exception notification events.
- the electronic device 100 when the user passes through the abnormal area, the electronic device 100 records the information of the abnormal point: the identification information of the second cell, the signal quality parameter, the duration from the second cell to the abnormal point (the second duration T_avgfen ), the business exception type and the number of business exception occurrences in the business exception notification event monitored when passing through the exception area.
- the route shown in FIG. 6 is a route that can obtain location information such as on the ground
- the abnormal point information recorded by the electronic device 100 may further include: latitude and longitude information, direction information, and speed information of the abnormal point.
- the information of the recovery point may include, but is not limited to, the duration from the abnormal point to the recovery point, and optionally, may also include location information of the recovery point.
- the electronic device 100 listens to the service recovery notification event, and the electronic device 100 records the information of the recovery point: the duration from the abnormal point to the recovery point (the third duration T_avgrec) .
- the route shown in FIG. 6 is a route that can obtain location information such as on the ground
- the information of the recovery point recorded by the electronic device 100 may further include: latitude and longitude information, direction information, and speed information of the recovery point.
- S705 The electronic device updates the abnormal area database according to the recorded abnormal area information.
- the information of the abnormal area includes the information of the starting point (ie, the abnormal point) of the abnormal area and the information of the end point (that is, the recovery point) of the abnormal area.
- the electronic device 100 can update the original data in the abnormal area database according to the recorded information of the abnormal area. A record exists or a new record is added to the database. Assuming that there is a record of the user's route from home to the company (ie, the route to work) in the abnormal area database, an example of the record is shown in Table 2 below.
- weakLoc 116.2, 40.6, 17.79, 23
- the longitude of the abnormal point is 116.2
- the latitude is 40.6
- the speed is 17.79 (for example, the unit is kilometers per hour)
- the direction angle is 23 degrees north by east.
- recoverLoc 116.3, 40.2, 18.6, 25
- the latitude is 40.2
- the speed is 18.6 (for example, the unit is kilometers per hour)
- the direction angle is 25 degrees north by east.
- the embodiments of the present application do not limit the representations of the location information, such as the precision, the unit, and the value.
- firstFenceCell is the cell id of the first fence cell
- secondFenceCell is the cell id of the second fence cell
- the cell id is a unique identifier.
- historyTimeFence2Weak 57, 47, 48, 0, 0
- historyTimeWeak2Recover 34, 33, 32, 0, 0
- the time durations from the abnormal point to the recovery point in the last three historical records are 34 seconds, 33 seconds, and 32 seconds, respectively.
- avgTimeFenceToWeak "49" indicates that the average duration from the second fenced cell to the abnormal point is 49 seconds.
- avgTimeFenceToWeak can be obtained by averaging the values of historyTimeFence2Weak, and the specific calculation process is as follows:
- avgTimeWeakToRecover 33" indicates that the average time from the abnormal point to the recovery point is 33 seconds.
- avgTimeWeakToRecover may be obtained by averaging the values of historyTimeWeak2Recover, and the specific calculation process is as follows:
- avgTimeFenceToWeak can also be obtained by removing the maximum and minimum values in the historyTimeFence2Weak value and then taking the average value
- avgTimeWeakToRecover can also be obtained by removing the maximum value and the minimum value in the historyTimeWeak2Recove value and then taking the average value Yes, this embodiment of the present application does not limit this.
- the characteristic information of the abnormal area may also include the duration from the first fenced cell to the abnormal point, the time stamp of the last departure from the recovery point, etc., which are not limited in this embodiment of the present application. .
- description will be given by taking the information of the abnormal area included in the abnormal area database as the information shown in Table 2 as an example.
- the electronic device 100 can update the records shown in Table 2 according to the information of the abnormal area in the commuting route recorded this time, or update the records in the database. Add a record of this abnormal area in . Specific examples are as follows:
- the process of updating historyTimeWeak2Recover and avgTimeWeakToRecover is similar to the process of updating historyTimeFence2Weak and avgTimeFenceToWeak.
- the calculation process of the updated avgTimeWeakToRecover is as follows:
- t_newrecover is obtained by averaging the values of the updated historyTimeWeak2Recove.
- the value range of b is the same as that of a, and a and b can be the same or different.
- the maximum value and the minimum value may be removed first, and then the average value may be taken, which is not limited in this embodiment of the present application.
- Example 2 it is assumed that when the electronic device 100 passes through the abnormal area of the commute route for the fourth time, the detected firstFenceCell and secondFenceCell remain unchanged, and the difference between the position (ie, the abnormal point) when the service abnormality prediction notification event is detected and the weakLoc in Table 2. If the value is less than the preset threshold, for example, the distance is less than 100 meters, the electronic device 100 can obtain the updated weakLoc according to the abnormal point detected this time and weakLoc in Table 2, for example, taking the middle position of these two positions.
- the electronic device 100 can obtain the updated recoveryLoc according to the recovery point detected this time and the recoverLoc in Table 2, for example, taking the middle position of the two positions.
- the methods of updating weakLoc and updating recoverLoc may be the same or different.
- Example 3 it is assumed that when the electronic device 100 passes through the abnormal area of the commute route for the fourth time, the detected firstFenceCell and secondFenceCell remain unchanged, and the difference between the position (ie, the abnormal point) when the service abnormality prediction notification event is detected and the weakLoc in Table 2. If the value is greater than the preset threshold, for example, the distance is greater than 100 meters, the electronic device 100 may re-add a record of the abnormal area detected this time in the database.
- the electronic device 100 may re-add a record of the abnormal area detected this time in the database.
- the preset threshold corresponding to weakLoc and the preset threshold corresponding to recoverLoc may be the same or different.
- Example 4 assuming that when the electronic device 100 passes through the abnormal area of the work route for the fourth time, it detects that the cell id of any one of the two nearest cells outside the abnormal point is not firstFenceCell or secondFenceCell in Table 2, then the electronic device 100 A record of the abnormal area detected this time can be re-added in the database.
- the electronic device 100 may periodically delete records in the abnormal area database whose timeStamp is less than a preset threshold, for example, delete records in abnormal areas that have not been updated for three months every other month.
- the electronic device 100 may re-add a record of the abnormal area detected this time in the database, which is not limited in this embodiment of the present application.
- the electronic device may not record the cell switching list, nor determine the fenced cell.
- the electronic device can obtain the location information of the electronic device when detecting the business abnormality notification event, and optionally, can also obtain at least one of the following information: the time of entering the abnormal area, the time of leaving the abnormal area, the duration of the abnormal area, Then, the abnormal area database is updated according to the obtained location information and the above at least one item of information. This embodiment of the present application does not limit this.
- the electronic device 100 can execute the method shown in FIG. 7 every time the electronic device 100 passes the same route, thereby obtaining real and reliable abnormal area information, which facilitates subsequent execution of the prediction process and improves the accuracy of the first indication information.
- the prediction process performed by the electronic device 100 may refer to the embodiments shown in FIGS. 8-11 .
- the prediction process performed by the electronic device 100 may refer to the embodiment shown in FIG. 12 .
- FIG. 8 is a schematic flowchart of a prediction process provided by an embodiment of the present application.
- FIG. 8 illustrates by taking as an example that the latitude and longitude information and the speed information can be obtained in the route area.
- the forecasting process may include, but is not limited to, the following steps:
- S801 The electronic device determines the target record in the abnormal area database that matches the cell that has passed currently.
- the electronic device 100 may extract from the abnormal area database at least one record whose "count of times of passing the abnormal area" is greater than a preset threshold (for example, 3), and extract from the at least one record. Identify the target record within a record.
- the "identification of the first fence cell firstFenceCell” and the “identity of the second fence cell secondFenceCell” are the identifications of two consecutive cells that the electronic device 100 has currently passed.
- the electronic device 100 determines that the fenced cell in the target record has been passed, that is, the scene information of the current route is the scene information in the target record (eg, the commute route in Table 2).
- the electronic device 100 may also obtain scene information of the current route. If the scene information is the "scene information scene” existing in the abnormal area database, and it is determined that at least two cells have been passed through, the electronic device may S801 is executed.
- FIG. 9 is a schematic diagram of another application scenario of an abnormal user path area provided by an embodiment of the present application.
- the application scenario shown in FIG. 9 is similar to FIG. 1A-FIG. 1M and FIG. See the description of FIGS. 1A-1M and FIG. 6 .
- the electronic device 100 passes through the first cell and the second cell.
- the electronic device 100 can determine from the abnormal area database that "firstFenceCell" is the identifier of the first cell and "secondFenceCell” is the target record of the identifier of the second cell, that is, the fenced cell is the first cell and the target record of the second cell.
- the record shown in Table 2 is taken as the target record as an example for description.
- the electronic device obtains the location information of the abnormal point in the target record, the location information of the recovery point, the average duration T_avgfen from the second fenced cell to the abnormal point, and the average duration T_avgrec from the abnormal point to the recovery point.
- the electronic device acquires the latitude and longitude information S_drop and the velocity information V_drop of the abnormal point in the target record, and the latitude and longitude information S_rec and the velocity information V_rec of the recovery point.
- the target record is the record shown in Table 2, and the obtained information is: weakLoc of the abnormal point in Table 2, recoverLoc of the recovery point, and the average duration avgTimeFenceToWeak from the second fence cell to the abnormal point (that is, in Figure 6 ).
- T_avgfen the average time from the outlier to the recovery point avgTimeWeakToRecover (ie T_avgrec in Figure 6).
- the time required for the electronic device 100 to pass through the second cell, the abnormal point, and the recovery point may refer to the time duration shown in FIG. 6 above.
- S803 The electronic device acquires the location information of the current location.
- the electronic device 100 obtains the latitude and longitude information S_Loc and the velocity information V_Loc of the current location for the first time.
- S804 The electronic device calculates and obtains the fourth duration T_drop and the fifth duration T_rec according to the target record and the location information of the current location.
- the fourth time length T_drop is the time length from the current position to the abnormal point calculated according to the target record, the latitude and longitude information of the current position, and the speed information
- the fifth time length T_rec is calculated according to the target record, the latitude and longitude information of the current position, and the speed information. The length of time from the anomaly point to the recovery point.
- the fourth duration T_drop is the duration of reaching the abnormal point calculated by the electronic device 100 at the first point, and the calculation method is as follows:
- the fifth duration T_rec is the duration from the abnormal point to the recovery point calculated by the electronic device 100 at the first point, and the calculation method is as follows:
- T_rec is obtained according to D_droptorec and V_droptorec, and the expression is as follows:
- the electronic device obtains the sixth duration T_newfen according to the average duration T_avgfen from the second fenced cell to the abnormal point in the target record.
- the sixth time duration T_newfen from the current location to the abnormal point is obtained by subtracting the time duration from the second cell to the current location from the average time duration T_avgfen from the second cell to the abnormal point.
- S806 The electronic device obtains the seventh duration T_newdrop according to the fourth duration T_drop and the sixth duration T_newfen.
- T_newdrop is the time period from the current position to the abnormal point predicted by the electronic device 100 at the first point.
- An example of an expression for T_newdrop is shown below:
- T_newdrop c ⁇ T_drop+(1-c) ⁇ T_newfen
- S807 The electronic device obtains the eighth duration T_newrec according to the fifth duration T_rec and the third duration T_avgrec.
- T_newrec is the time period from the abnormal point to the recovery point predicted by the electronic device 100 at the first point.
- An example of an expression for T_newrec is shown below:
- T_newrec d ⁇ T_rec+(1-d) ⁇ T_avgrec
- c and d can be the same or different.
- the predicted duration of reaching the abnormal point is: the fourth duration T_drop calculated in combination with the real-time position and the sixth duration T_newfen obtained according to the target record.
- the seventh duration T_newdrop is: the predicted duration from the abnormal point to the recovery point.
- the predicted duration from the abnormal point to the recovery point is: the eighth duration T_newrec obtained by combining the fifth duration T_rec calculated from the real-time position and the third duration T_avgrec in the target record.
- S808 The electronic device determines whether the seventh duration T_newdrop is less than or equal to the first duration T_trig.
- the electronic device 100 determines whether T_newdrop ⁇ T_trig is satisfied. When satisfied, the electronic device 100 determines that the current position has passed the preset point (for example, the current position is the second point shown in FIG. 10 ), then the electronic device 100 performs a pre-cache operation for the target application according to the first indication information (ie, executes S809 ). ). Otherwise, the electronic device 100 performs S810.
- the electronic device performs a pre-cache operation according to the first indication information, that is, the above-mentioned target application receives the first indication information sent by the control component, and uses the second caching strategy to cache the data of the target application.
- the first indication information, the second caching strategy and the pre-cache operation please refer to the description of the first indication information and the pre-cache operation in FIG. 1A-FIG. 1M, FIG. 3, and FIG.
- the preset point may be any point in the second cell, and the preset duration is equal to the seventh duration T_newdrop obtained for the first time.
- the electronic device can directly execute S809 without executing S808 and S810.
- each time S803 is performed the number of times Cnt for obtaining a location may be incremented by 1. Specifically, the initial value of the number of times of obtaining the position Cnt is 0.
- S808 may specifically include: the electronic device 100 determines whether the following conditions are met: the number of times of obtaining the position Cnt ⁇ the first threshold C_max (eg 5) and (T_newdrop-T_trig)>the second threshold Th (eg 5 seconds). When it is satisfied, the electronic device 100 considers the prediction process to be inaccurate and stops the prediction, otherwise, the electronic device 100 continues to execute: judging whether T_newdrop ⁇ T_trig is satisfied, and when satisfied, the electronic device 100 executes the prediction for the target application according to the first indication information Cache operation (ie, perform S809), otherwise, the electronic device 100 performs S810.
- the electronic device 100 determines whether Cnt ⁇ C_max and (T_newdrop-T_trig) ⁇ Th are satisfied. When it is satisfied, the electronic device 100 determines that although the current position does not pass the preset point, but the distance to the preset point is very close (for example, the third point shown in FIG. 11 ), the electronic device 100 targets the target application according to the first indication information A pre-cache operation is performed (ie, S809 is performed). Otherwise, the electronic device 100 performs S810.
- the prediction process can increase the limit of the number of times of obtaining the position, so as to ensure the accuracy of the first indication information, avoid unnecessary power consumption and overhead of the electronic device as much as possible, and improve the battery life.
- S810 The electronic device obtains the ninth duration T_test according to the seventh duration T_newdrop and the first duration T_trig.
- the ninth duration T_test is the duration from the current time to the next execution of S803.
- the electronic device 100 may calculate T_test by using the dichotomy method, and the expression of T_test is as follows:
- S811 The electronic device determines whether the elapsed duration is greater than or equal to the ninth duration T_test.
- the electronic device 100 determines that the current elapsed time period is greater than or equal to T_test, that is, the time when the position information of the current location is obtained next time has been reached, the electronic device 100 executes S803, otherwise, it continues to wait.
- T_test the time when the position information of the current location is obtained next time has been reached
- the electronic device 100 executes S803, otherwise, it continues to wait.
- the moment when the user is at the first point is the first moment
- the moment when the user executes S803 next time is the moment when the duration T_test elapses from the first moment, that is, the sum of the first moment and T_test.
- sequence of S801-S802 and S803 is not limited, and may be executed simultaneously.
- sequence of S804-S806 and S807 is not limited, and can also be executed simultaneously.
- sequence of S804 and S805 is not limited, and may be executed simultaneously.
- the electronic device can perform the prediction process according to the historical records in the abnormal area database, the cell information and location information acquired in real time, and obtain the first indication information and the time of sending the first indication information, thereby increasing the number of The accuracy of judging whether there is an abnormal area, try to avoid using the second caching strategy to cache data when there is no abnormal area or the situation that is not detected when there is an abnormal area, so as to improve the user experience.
- the pre-cache operation performed by the target application may be determined according to the first indication information, for example, the playback duration of the downloaded data in the pre-cache operation is the duration of the abnormal area. duration.
- the real-time location information of the electronic device changes, for example, when the moving speed is fast or slow
- the obtained first indication information is different, so the pre-cache operations determined according to the first indication information may also be different.
- the pre-cache operation can be dynamically adjusted according to different application scenarios, so as to ensure that the target application can be used normally when the user passes through the abnormal area in different application scenarios, avoid business jams, and improve the user experience.
- FIG. 12 is a schematic flowchart of another prediction process provided by an embodiment of the present application.
- FIG. 12 takes as an example that the latitude and longitude information and the speed information cannot be obtained in the route area.
- the forecasting process may include, but is not limited to, the following steps:
- S1201 The electronic device determines the target record in the abnormal area database that matches the cell that has passed currently.
- S1201 is similar to S801 in FIG. 8 , and details are not repeated here.
- the electronic device acquires the average time duration T_avgfen from the second fenced cell to the abnormal point and the average time duration T_avgrec from the abnormal point to the recovery point in the target record.
- the target record is the record shown in Table 2
- the obtained information is: the average duration avgTimeFenceToWeak (that is, T_avgfen in Figure 6) from the second fenced cell to the abnormal point, the average duration from the abnormal point to the recovery point avgTimeWeakToRecover (ie T_avgrec in Figure 6).
- the time required for the electronic device 100 to travel to the second cell, the abnormal point, and the recovery point may refer to the time length shown in FIG. 6 above.
- S1203 The electronic device determines whether the elapsed duration is equal to (T_avgfen-T_trig).
- S1204 The electronic device performs a pre-cache operation.
- the electronic device 100 determines that the currently elapsed time period is less than (T_avgfen-T_trig), that is, the electronic device 100 has not reached the preset point, the electronic device 100 continues to wait.
- the electronic device 100 executes S1202-S1203, and at this time, the elapsed time period is equal to 0. Since the preset point in FIG. 9 is closer to the abnormal point than the second cell is, the time T_trig from the preset point to the abnormal point is less than T_avgfen in the target record, (T_avgfen-T_trig)>0. Therefore, if the elapsed time period is less than (T_avgfen-T_trig), the electronic device 100 continues to wait.
- the electronic device performs a pre-cache operation according to the first indication information, that is, the above-mentioned target application receives the first indication information sent by the control component, and uses the second caching strategy to cache the data of the target application.
- the first indication information that is, the above-mentioned target application receives the first indication information sent by the control component, and uses the second caching strategy to cache the data of the target application.
- the second caching strategy and the pre-cache operation reference may be made to the description of the first indication information and the pre-cache operation in FIG. 1A-FIG. 1M , FIG. 3 , and FIG.
- the electronic device 100 determines that the current elapsed time period is equal to (T_avgfen-T_trig), that is, when the electronic device 10 has reached a preset point (eg, the third point shown in FIG. 11 ), the electronic device 100 targets the target according to the first indication information
- the application performs a pre-cache operation (ie, performs S1204).
- the first indication information includes the time duration T_trig from the current position (ie, the preset point) to the abnormal point, and the time duration T_avgrec from the abnormal point to the recovery point.
- the preset point may be any point in the second cell, and the first duration T_trig is equal to T_avgfen.
- the electronic device can directly execute S1204 without executing S1203.
- the electronic device can perform the prediction process and obtain the first indication information according to the historical records in the abnormal area database and the cell information obtained in real time.
- a pre-cache operation can be performed for the target application according to the first indication information, so that the target application can be used normally when passing through an abnormal area as much as possible, so as to avoid service jams and improve user experience.
- the electronic device can also only obtain the current location information of the electronic device, and determine in the abnormal area database whether the abnormal area record corresponding to the current location information is in the abnormal area record. In the case of existence, the first indication information is generated, and the first indication information is sent.
- the electronic device may obtain both the location information of the electronic device and the current location information of the electronic device, and determine in the abnormal area database whether there is an abnormal area record corresponding to the current cell information and corresponding to the current location information, in the existing abnormal area record. In this case, the first indication information is generated, and the first indication information is sent. This embodiment of the present application does not limit this.
- the learning process shown in FIG. 7 and/or the prediction process shown in FIG. 8 or FIG. 12 may be performed.
- FIG. 13 is a data caching method provided by an embodiment of the present application.
- the method can be applied to the electronic device 100 and the processor 110 of the electronic device 100 shown in FIG. 2 .
- the method can also be applied to the electronic device 100 shown in FIG. 3 .
- the method can also be applied to the software system shown in FIG. 4 , such as the Android system and the HMS system of the electronic device 100 .
- the method may include but is not limited to the following steps:
- S1301 For the first abnormal area, the electronic device performs a first prediction process, and for the second abnormal area, the electronic device performs a second prediction process to obtain the first indication information.
- the first abnormal area is an area where the electronic device can obtain location information.
- the electronic device may perform the first prediction process according to the database of the abnormal area, the network information obtained in real time, and the location information to obtain the first indication information, wherein the specific implementation of the first prediction process can refer to the embodiments shown in FIGS. 8-11 .
- the second abnormal area is an area where the electronic device cannot obtain location information.
- the electronic device may perform the second prediction process according to the database records of the abnormal area and the network information acquired in real time to obtain the first indication information, wherein the specific implementation of the second prediction process can refer to the embodiment shown in FIG. 12 .
- the method may further include: monitoring information.
- the monitored information may include, but is not limited to, location information such as longitude and latitude information, speed information, and direction information of the electronic device, the cell id of the serving cell of the electronic device, the cell id of the neighboring cell, the current cell and/or the neighboring cell Cell information such as signal quality parameters, RSRP and RSRQ are less than preset thresholds, and QoE is less than the first QoE level and other network and service service exception notification messages.
- the method may further include: performing a learning process.
- the electronic device may perform identification and statistics of abnormal areas based on the above-mentioned monitored information, so as to generate the above-mentioned abnormal area database.
- the above-mentioned abnormal area database may also be obtained by the cloud server performing a learning process based on monitoring information sent by at least one electronic device.
- the learning process reference may be made to the embodiments shown in FIG. 6 to FIG. 7 , and details are not repeated here.
- S1302 The electronic device performs a pre-cache operation according to the first indication information.
- the electronic device performs a pre-cache operation according to the first indication information, that is, the above-mentioned target application receives the first indication information sent by the control component, and uses the second caching strategy to cache the data of the target application.
- the pre-cache operation and the second cache strategy are described in the above-mentioned FIGS. 1A-1M , FIG. 3 , and FIG.
- the first indication information may include type, optionally, first time information t 1 , optionally second time information t 2 , optionally, third time information t 3 .
- the first value of type indicates that there is an abnormal area, and the value of type is the second value to indicate that the previously sent broadcast message is invalid.
- t 1 can be the moment of entering the abnormal area, or the time period from the current position to entering the abnormal area.
- t 2 can be the moment of leaving the abnormal area, or the time period from the current position to leaving the abnormal area.
- t 3 may be the time period from entering the abnormal area to leaving the abnormal area, that is, the duration of the abnormal area.
- the first time t 1 is the seventh time duration T_newdrop
- the second time t 2 is the eighth time duration T_newrec
- the third time t 3 is the difference between the two.
- the first time t 1 is the first time duration T_trig
- the second time t 2 is the third time duration T_avgrec
- the third time t 3 is the difference between the two.
- the pre-cache operation can be targeted to the target application.
- the target application is an online application with a caching mechanism, such as an audio application, a video application, a learning application, and a reading application.
- the target application is an application registered with a service abnormality prediction notification event during installation or running. For details, please refer to the description of the target application in FIGS. 1A to 1M and FIGS. 2 to 5 .
- the prediction process performed by the electronic device can be different for the area where the location information can be obtained and the area where the location information cannot be obtained, so that it can be well applied to different application scenarios, and the first Indicate the accuracy of the information.
- the electronic device can perform a pre-cache operation according to the first indication information, thereby ensuring that the electronic device can be used normally during the passage to the abnormal area, avoiding service jams, and improving user experience.
- the abnormal area database used by the electronic device to perform the prediction process is obtained by the electronic device or the cloud server learning historical monitoring information, which ensures the authenticity and reliability of the data used in the prediction process, thereby further improving the accuracy of the first indication information. sex.
- the above-mentioned embodiments it may be implemented in whole or in part by software, hardware, firmware or any combination thereof.
- software it can be implemented in whole or in part in the form of a computer program product.
- the computer program product described above includes one or more computer instructions.
- the computer program instructions described above are loaded and executed on a computer, the procedures or functions described above in accordance with the present application are produced in whole or in part.
- the aforementioned computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable device.
- the above-mentioned computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the above-mentioned computer instructions may be transmitted from a website site, computer, server or data center via wired communication. (eg coaxial cable, optical fiber, digital subscriber line) or wireless (eg infrared, wireless, microwave, etc.) to another website site, computer, server or data center.
- the above-mentioned computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server, a data center, etc. that includes one or more available media integrated.
- the above-mentioned usable media may be magnetic media (eg, floppy disks, hard disks, magnetic tapes), optical media (eg, DVD), or semiconductor media (eg, Solid State Disk), and the like.
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Computer Networks & Wireless Communication (AREA)
- Multimedia (AREA)
- Databases & Information Systems (AREA)
- Information Transfer Between Computers (AREA)
- Mobile Radio Communication Systems (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Telephonic Communication Services (AREA)
- Stored Programmes (AREA)
- Telephone Function (AREA)
Abstract
Description
Claims (25)
- 一种数据缓存方法,其特征在于,应用于电子设备,所述电子设备包括目标应用和控制组件,所述方法包括:所述电子设备运行所述目标应用,且采用第一缓存策略缓存所述目标应用的数据,所述第一缓存策略包括以下至少一种:采用第一下载速率下载所述目标应用的数据,采用第一码率下载所述目标应用的数据,采用第一分辨率下载所述目标应用的数据,采用第一帧率下载所述目标应用的数据,采用第一请求次数请求所述目标应用的数据,所述第一请求次数为单位时间内的请求次数;缓存第一类型数据和第二类型数据,所述第一类型和所述第二类型不同;采用第一采样频率下载所述目标应用的数据,采用第一采样位数下载所述目标应用的数据,采用第一声道数下载所述目标应用的数据;所述目标应用接收所述控制组件发送的第一指示信息;在所述目标应用接收到所述第一指示信息之后,采用第二缓存策略缓存所述目标应用的数据,所述第二缓存策略包括以下至少一种:采用第二下载速率下载所述目标应用的数据,所述第二下载速率大于所述第一下载速率;采用第二码率下载所述目标应用的数据,所述第二码率小于所述第一码率;采用第二分辨率下载所述目标应用的数据,所述第二分辨率小于所述第一分辨率;采用第二帧率下载所述目标应用的数据,所述第二帧率小于所述第一帧率;采用第二请求次数请求所述目标应用的数据,所述第二请求次数为单位时间内的请求次数,所述第二请求次数大于所述第一请求次数;缓存所述第一类型数据且不缓存所述第二类型数据;采用第二采样频率下载所述目标应用的数据,所述第二采样频率小于所述第一采样频率;采用第二采样位数下载所述目标应用的数据,所述第二采样位数小于所述第一采样位数;采用第二声道数下载所述目标应用的数据,所述第二声道数小于所述第一声道数。
- 如权利要求1所述的方法,其特征在于,在所述目标应用接收所述控制组件发送的第一指示信息之前,所述方法还包括:所述目标应用向所述控制组件发送注册消息;所述注册消息用于获取所述第一指示信息,所述第一指示信息用于指示所述电子设备的前进方向上存在异常区域,所述异常区域是以下至少一种区域:信号质量小于预设阈值的区域;断网的区域;掉制式的区域,所述掉制式是第一网络制式变更为低于所述第一网络制式的第二网络制式;体验质量QoE小于第一QoE等级的区域。
- 如权利要求2所述的方法,其特征在于,所述异常区域与当前位置之间存在第一位置,当前位置与所述第一位置之间不存在其他小区,所述第一位置指所述控制组件发送所述第一指示信息的位置;或者,所述异常区域是和当前位置的距离在第一距离范围内的区域。
- 如权利要求2或3所述的方法,其特征在于,所述方法还包括:在从所述电子设备当前位置进入所述异常区域的时长在第一预设时间范围时,所述控制组件向所述目标应用发送所述第一指示信息。
- 如权利要求2所述的方法,其特征在于,所述目标应用向所述控制组件发送注册消息,包括:所述目标应用在检测到所述目标应用从后台运行切换到前台运行或者启动时,向所述控制组件发送所述注册信息。
- 如权利要求2或3所述的方法,其特征在于,所述方法还包括:获取所述电子设备的当前小区信息;在异常区域的数据文件中确定是否存在和所述当前小区信息对应的异常区域记录;在存在所述异常区域的情况下,所述控制组件生成所述第一指示信息;或者,获取所述电子设备的当前位置信息;在所述异常区域的数据文件中确定是否存在和所述当前位置信息对应的异常区域记录;在存在所述异常区域的情况下,所述控制组件生成所述第一指示信息;或者,获取所述电子设备的所述当前小区信息和所述当前位置信息;在所述异常区域的数据文件中确定是否存在和所述当前小区信息对应且和所述当前位置信息对应的异常区域记录;在存在所述异常区域的情况下,所述控制组件生成所述第一指示信息。
- 如权利要求2或3所述的方法,其特征在于,所述方法还包括:获取所述电子设备的当前小区信息和当前位置信息;在异常区域的数据文件中确定是否存在和所述当前小区信息对应的异常区域记录;在存在所述异常区域记录的情况下,所述控制组件生成所述第一指示信息;所述当前位置信息用于确定发送所述第一指示信息的时刻。
- 如权利要求6或7所述的方法,其特征在于,所述方法还包括:获取所述电子设备经过小区的信息;当检测到业务异常通知事件时,在所述电子设备经过小区的信息中确定第二预设时间范围之前是否经过至少一个小区;在经过所述至少一个小区的情况下,在所述异常区域的数据文件中添加第一异常区域记录,或者更新所述异常区域的数据文件中的第二异常区域记录,所述第一异常区域记录或所述第二异常区域记录包括所述至少一个小区的信息;所述业务异常通知事件用于指示以下至少一项信息:信号质量小于预设阈值,断网,第一网络制式变更为低于所述第一网络制式的第二网络制式,QoE小于第一QoE等级;或者,当检测到所述业务异常通知事件时,获取所述电子设备的位置信息,并在所述异常区域的数据文件中添加第三异常区域记录,或者更新所述异常区域的数据文件中的第四异常区域记录,所述第三异常区域记录或所述第四异常区域记录中的位置信息是根据所述电子设备的位置信息得到的。
- 如权利要求8所述的方法,其特征在于,所述在经过所述至少一个小区的情况下,在所述异常区域的数据文件中添加第一异常区域记录,或者更新所述异常区域的数据文件中的第二异常区域记录,包括:在经过所述至少一个小区的情况下,获取所述电子设备的位置信息,并在所述异常区域的数据文件中添加第一异常区域记录,或者更新所述异常区域的数据文件中的第二异常区域记录,所述第一异常区域记录或所述第二异常区域记录包括所述至少一个小区的信息,所述第一异常区域记录或所述第二异常区域记录中的位置信息是根据所述电子设备的位置信息得到的。
- 如权利要求8所述的方法,其特征在于,所述在经过所述至少一个小区的情况下,在所述异常区域的数据文件中添加第一异常区域记录,或者更新所述异常区域的数据文件中 的第二异常区域记录,包括:在经过所述至少一个小区的情况下,获取以下至少一项信息:进入所述异常区域的时间、离开所述异常区域的时间、所述异常区域的持续时长;在所述异常区域的数据文件中添加第一异常区域记录,或者更新所述异常区域的数据文件中的第二异常区域记录;所述第一异常区域记录或所述第二异常区域记录中的进入异常区域的时间是根据所述进入所述异常区域的时间得到的,或者,所述第一异常区域记录或所述第二异常区域记录中的离开异常区域的时间是根据所述离开所述异常区域的时间得到的,或者,所述第一异常区域记录或所述第二异常区域记录中的异常区域的持续时长是根据所述异常区域的持续时长得到的。
- 如权利要求1所述的方法,其特征在于,所述在所述目标应用接收到所述第一指示信息之后,采用第二缓存策略缓存所述目标应用的数据之后,所述方法还包括:在所述电子设备处于所述异常区域时,采用以下至少一种方式:采用第三下载速率下载所述目标应用的数据,所述第三下载速率小于所述第一下载速率;采用所述第三码率下载所述目标应用的数据,所述第三码率小于或等于所述第二码率;采用所述第三分辨率下载所述目标应用的数据,所述第三分辨率小于或等于第二分辨率;采用所述第三帧率下载所述目标应用的数据,所述第三帧率小于或等于所述第二帧率;采用第三请求次数请求所述目标应用的数据,所述第三请求次数为单位时间内的请求次数,所述第三请求次数小于或等于所述第一请求次数;离开所述异常区域之后,采用所述第一缓存策略缓存所述目标应用的数据。
- 如权利要求1所述的方法,其特征在于,所述采用第一缓存策略缓存所述目标应用的数据,包括:在采用所述第一缓存策略缓存的所述目标应用的数据量的播放时长大于第一预设时长时,停止缓存所述目标应用的数据;所述采用第二缓存策略缓存所述目标应用的数据,包括:在采用所述第二缓存策略缓存的所述目标应用的数据量的播放时长大于所述第一预设时长时,继续缓存所述目标应用的数据。
- 如权利要求1所述的方法,其特征在于,所述在所述目标应用接收到所述第一指示信息之后,采用第二缓存策略缓存所述目标应用的数据,包括:响应于接收到所述第一指示信息,采用所述第二缓存策略缓存所述目标应用的数据;和/或,在接收到所述第一指示信息的第二预设时长内,启动采用所述第二缓存策略缓存所述目标应用的数据的步骤,所述第二预设时长小于1秒。
- 如权利要求1所述的方法,其特征在于,所述第一指示信息还包括:第一时间信息,所述第一时间信息用于指示进入所述异常区域的时间;和/或,所述第一指示信息还包括:第二时间信息,所述第二时间信息用于指示离开所述异常区域的时间;和/或,所述第一指示信息还包括:第三时间信息,所述第三时间信息用于指示所述异常区域的持续时长。
- 如权利要求12所述的方法,其特征在于,所述在所述目标应用接收到所述第一指示信息之后,采用第二缓存策略缓存所述目标应用的数据,包括:在所述目标应用接收到所述第一指示信息之后,采用所述第二缓存策略缓存播放时长为第三预设时长的所述目标应用的数据,其中,所述第三预设时长为根据所述第一时间信息和所述第二时间信息得到的时长,或者,所述第三预设时长为所述第三时长信息指示的时长。
- 如权利要求1所述的方法,其特征在于,所述目标应用为视频应用,所述第二缓存策略包括以下至少一种:采用所述第二下载速率下载所述目标应用的数据,采用所述第二码率下载所述目标应用的数据,采用所述第二分辨率下载所述目标应用的数据,采用所述第二帧率下载所述目标应用的数据,采用所述第二请求次数请求所述目标应用的数据;或,所述目标应用为音频应用,所述第二缓存策略包括以下至少一种:采用所述第二下载速率下载所述目标应用的数据,采用所述第二请求次数请求所述目标应用的数据,采用所述第二采样频率下载所述目标应用的数据,采用所述第二采样位数下载所述目标应用的数据,采用所述第二声道数下载所述目标应用的数据。
- 一种芯片,其特征在于,所述芯片包括至少一个处理器、接口电路和存储器,所述存储器、所述接口电路和所述至少一个处理器通过线路互联,所述存储器中存储有计算机程序,所述计算机程序被所述至少一个处理器执行时,所述芯片实现:接收目标应用发送的注册消息;所述注册消息用于注册第一通知事件;生成第一指示信息;所述第一指示信息用于指示所述芯片的前进方向上存在异常区域,所述异常区域是以下至少一种区域:信号质量小于预设阈值的区域、断网的区域、掉制式的区域、体验质量QoE小于第一QoE等级的区域,所述掉制式是第一网络制式变更为低于所述第一网络制式的第二网络制式;向注册有所述第一通知事件的所述目标应用发送所述第一指示信息。
- 如权利要求17所述的芯片,其特征在于,所述芯片生成第一指示信息时,具体实现:获取当前小区信息;在异常区域的数据文件中确定是否存在和所述当前小区信息对应的异常区域记录;在存在所述异常区域的情况下,所述控制组件生成所述第一指示信息;或者,获取当前位置信息;在所述异常区域的数据文件中确定是否存在和所述当前位置信息对应的异常区域记录;在存在所述异常区域的情况下,所述控制组件生成所述第一指示信息;或者,获取所述当前小区信息和所述当前位置信息;在所述异常区域的数据文件中确定是否存在和所述当前小区信息对应且和所述当前位置信息对应的异常区域记录;在存在所述异常区域的情况下,所述控制组件生成所述第一指示信息。
- 如权利要求17所述的芯片,其特征在于,所述芯片生成第一指示信息时,具体实现:获取所述芯片的当前小区信息和当前位置信息;在异常区域的数据文件中确定是否存在和所述当前小区信息对应的异常区域记录;在存在所述异常区域记录的情况下,所述控制组件生成所述第一指示信息;所述当前位置信息用于确定发送所述第一指示信息的时刻。
- 如权利要求18或19所述的芯片,其特征在于,所述芯片还用于实现:获取所述芯片经过小区的信息;当检测到业务异常通知事件时,在所述芯片经过小区的信息中确定第二预设时间范围之前是否经过至少一个小区;在经过所述至少一个小区的情况下,在所述异常区域的数据文件中添加第一异常区域记录,或者更新所述异常区域的数据文件中的第二异常区域记录,所述第一异常区域记录或所述第二异常区域记录包括所述至少一个小区的信息;所述业务异常通知事件用于指示以下至少一项信息:信号质量小于预设阈值,断网,第一网络制式变更为低于所述第一网络制式的第二网络制式,QoE小于第一QoE等级;或者,当检测到所述业务异常通知事件时,获取所述芯片的位置信息,并在所述异常区域的数据文件中添加第三异常区域记录,或者更新所述异常区域的数据文件中的第四异常区域记录,所述第三异常区域记录或所述第四异常区域记录中的位置信息是根据所述芯片的位置信息得到的。
- 如权利要求20所述的芯片,其特征在于,所述芯片在经过所述至少一个小区的情况下,在所述异常区域的数据文件中添加第一异常区域记录,或者更新所述异常区域的数据文件中的第二异常区域记录时,具体实现:在经过所述至少一个小区的情况下,获取所述芯片的位置信息,并在所述异常区域的数据文件中添加第一异常区域记录,或者更新所述异常区域的数据文件中的第二异常区域记录;所述第一异常区域记录或所述第二异常区域记录包括所述至少一个小区的信息,所述第一异常区域记录或所述第二异常区域记录中的位置信息是根据所述芯片的位置信息得到的。
- 如权利要求20所述的芯片,其特征在于,所述芯片在经过所述至少一个小区的情况下,在所述异常区域的数据文件中添加第一异常区域记录,或者更新所述异常区域的数据文件中的第二异常区域记录时,具体实现:在经过所述至少一个小区的情况下,获取以下至少一项信息:进入所述异常区域的时间、离开所述异常区域的时间、所述异常区域的持续时长;在所述异常区域的数据文件中添加第一异常区域记录,或者更新所述异常区域的数据文件中的第二异常区域记录;所述第一异常区域记录或所述第二异常区域记录中的进入异常区域的时间是根据所述进入所述异常区域的时间得到的,或者,所述第一异常区域记录或所述第二异常区域记录中的离开异常区域的时间是根据所述离开所述异常区域的时间得到的,或者,所述第一异常区域记录或所述第二异常区域记录中的异常区域的持续时长是根据所述异常区域的持续时长得到的。
- 如权利要求17所述的芯片,其特征在于,所述芯片还用于实现:接收目标应用发送的去注册消息;所述去注册消息用于取消注册第一通知事件。
- 一种电子设备,其特征在于,包括收发器、处理器和存储器,所述存储器用于存储计算机程序,所述处理器调用所述计算机程序,用于执行如权利要求1-16任一项所述的方法。
- 一种计算机存储介质,其特征在于,所述计算机存储介质存储有计算机程序,所述计算机程序被处理器执行时,实现权利要求1-16任一项所述的方法。
Priority Applications (4)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202180054920.XA CN116235535A (zh) | 2020-09-10 | 2021-09-02 | 数据缓存方法及电子设备 |
| JP2023515719A JP7609380B2 (ja) | 2020-09-10 | 2021-09-02 | データキャッシュ方法及び電子デバイス |
| EP21865906.8A EP4199575A4 (en) | 2020-09-10 | 2021-09-02 | DATA BUFFERING METHOD AND ELECTRONIC DEVICE |
| US18/180,967 US20230232065A1 (en) | 2020-09-10 | 2023-03-09 | Data Caching Method and Electronic Device |
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010950649.5A CN114173372B (zh) | 2020-09-10 | 2020-09-10 | 数据缓存方法及电子设备 |
| CN202010950649.5 | 2020-09-10 |
Related Child Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| US18/180,967 Continuation US20230232065A1 (en) | 2020-09-10 | 2023-03-09 | Data Caching Method and Electronic Device |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2022052852A1 true WO2022052852A1 (zh) | 2022-03-17 |
Family
ID=80475885
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2021/116165 Ceased WO2022052852A1 (zh) | 2020-09-10 | 2021-09-02 | 数据缓存方法及电子设备 |
Country Status (5)
| Country | Link |
|---|---|
| US (1) | US20230232065A1 (zh) |
| EP (1) | EP4199575A4 (zh) |
| JP (1) | JP7609380B2 (zh) |
| CN (2) | CN114173372B (zh) |
| WO (1) | WO2022052852A1 (zh) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN116744328A (zh) * | 2022-10-17 | 2023-09-12 | 荣耀终端有限公司 | 一种网络加速方法和装置 |
Families Citing this family (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN114817089B (zh) * | 2022-04-26 | 2024-11-12 | 北京奇艺世纪科技有限公司 | 多下载任务的缓存管理方法和装置 |
| CN116709367B (zh) * | 2022-10-17 | 2024-07-12 | 荣耀终端有限公司 | 一种网络加速方法和装置 |
| US12323647B2 (en) * | 2023-11-10 | 2025-06-03 | Avago Technologies International Sales Pte. Limited | Video quality monitoring system |
| WO2025258873A1 (ko) * | 2024-06-10 | 2025-12-18 | 엘지전자 주식회사 | 등록해제 관련 정보 |
| CN120740659B (zh) * | 2025-09-03 | 2026-01-02 | 临海市新睿电子科技股份有限公司 | 一种总线编码器检测方法、系统、电子设备及存储介质 |
Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104065834A (zh) * | 2014-06-20 | 2014-09-24 | 宇龙计算机通信科技(深圳)有限公司 | 降低终端功耗的方法、装置和终端 |
| CN105872974A (zh) * | 2016-05-05 | 2016-08-17 | 捷开通讯(深圳)有限公司 | 缓存预加载系统、方法及移动终端 |
| CN107529097A (zh) * | 2016-06-20 | 2017-12-29 | 北京信威通信技术股份有限公司 | 一种自适应调整视频缓冲大小的方法及装置 |
| CN108551436A (zh) * | 2018-03-12 | 2018-09-18 | 联想(北京)有限公司 | 数据传输方法和装置 |
| CN109819040A (zh) * | 2019-02-02 | 2019-05-28 | 腾讯科技(深圳)有限公司 | 应用数据缓存方法、装置、智能终端及存储介质 |
| CN110519451A (zh) | 2019-08-01 | 2019-11-29 | 华为技术有限公司 | 一种电子设备的关机管控方法和装置 |
Family Cites Families (14)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20090143078A1 (en) * | 2007-11-30 | 2009-06-04 | Palm, Inc. | Techniques to manage a radio based on location information |
| US20100121977A1 (en) * | 2008-11-10 | 2010-05-13 | Nokia Corporation | Predictive Bit-Rate Modification of Content Delivery in a Wireless Network |
| JP5277148B2 (ja) * | 2009-12-15 | 2013-08-28 | 富士フイルム株式会社 | ブラウザシステム |
| US9596670B2 (en) * | 2013-01-16 | 2017-03-14 | Apple Inc. | Location assisted service capability monitoring |
| US10264043B2 (en) * | 2014-04-23 | 2019-04-16 | Ericsson Ab | Outage notification with client control modification in an ABR streaming network |
| US9338486B2 (en) * | 2014-09-02 | 2016-05-10 | Ericsson Ab | Optimizing ABR segment sizes for mobile video outage coverage in an ABR streaming network |
| WO2016182482A1 (en) * | 2015-05-08 | 2016-11-17 | Telefonaktiebolaget Lm Ericsson (Publ) | Network recommended buffer management of a service application in a radio device |
| US9838893B2 (en) * | 2015-06-25 | 2017-12-05 | Alcatel Lucent | System and method for cooperatively controlling an application |
| US10405017B1 (en) * | 2017-08-03 | 2019-09-03 | Cox Communications, Inc. | Secure access to content provided over a distributed network |
| US10136408B1 (en) * | 2017-08-17 | 2018-11-20 | Colby Green | Determining high value geographic locations |
| JP6837151B2 (ja) * | 2017-09-11 | 2021-03-03 | 株式会社日立製作所 | 情報処理システム |
| EP3565261B1 (en) * | 2018-05-02 | 2020-05-27 | Spotify AB | Predictive caching |
| US11811854B2 (en) * | 2018-12-30 | 2023-11-07 | Dish Network Technologies India Private Limited | Delivery of digital video content based upon geographic location |
| CN113163470B (zh) * | 2019-02-21 | 2023-06-09 | 荣耀终端有限公司 | 对特定路线上的特定位置进行识别的方法及电子设备 |
-
2020
- 2020-09-10 CN CN202010950649.5A patent/CN114173372B/zh active Active
-
2021
- 2021-09-02 JP JP2023515719A patent/JP7609380B2/ja active Active
- 2021-09-02 EP EP21865906.8A patent/EP4199575A4/en active Pending
- 2021-09-02 WO PCT/CN2021/116165 patent/WO2022052852A1/zh not_active Ceased
- 2021-09-02 CN CN202180054920.XA patent/CN116235535A/zh active Pending
-
2023
- 2023-03-09 US US18/180,967 patent/US20230232065A1/en active Pending
Patent Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104065834A (zh) * | 2014-06-20 | 2014-09-24 | 宇龙计算机通信科技(深圳)有限公司 | 降低终端功耗的方法、装置和终端 |
| CN105872974A (zh) * | 2016-05-05 | 2016-08-17 | 捷开通讯(深圳)有限公司 | 缓存预加载系统、方法及移动终端 |
| CN107529097A (zh) * | 2016-06-20 | 2017-12-29 | 北京信威通信技术股份有限公司 | 一种自适应调整视频缓冲大小的方法及装置 |
| CN108551436A (zh) * | 2018-03-12 | 2018-09-18 | 联想(北京)有限公司 | 数据传输方法和装置 |
| CN109819040A (zh) * | 2019-02-02 | 2019-05-28 | 腾讯科技(深圳)有限公司 | 应用数据缓存方法、装置、智能终端及存储介质 |
| CN110519451A (zh) | 2019-08-01 | 2019-11-29 | 华为技术有限公司 | 一种电子设备的关机管控方法和装置 |
Non-Patent Citations (1)
| Title |
|---|
| See also references of EP4199575A4 |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN116744328A (zh) * | 2022-10-17 | 2023-09-12 | 荣耀终端有限公司 | 一种网络加速方法和装置 |
| CN116744328B (zh) * | 2022-10-17 | 2024-04-23 | 荣耀终端有限公司 | 一种网络加速方法和装置 |
Also Published As
| Publication number | Publication date |
|---|---|
| EP4199575A4 (en) | 2024-01-03 |
| JP2023541875A (ja) | 2023-10-04 |
| US20230232065A1 (en) | 2023-07-20 |
| JP7609380B2 (ja) | 2025-01-07 |
| CN116235535A (zh) | 2023-06-06 |
| EP4199575A1 (en) | 2023-06-21 |
| CN114173372B (zh) | 2025-08-29 |
| CN114173372A (zh) | 2022-03-11 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| WO2022052852A1 (zh) | 数据缓存方法及电子设备 | |
| US10667157B2 (en) | Individualized adaptive wireless parameter tuning for streaming content | |
| US10375620B2 (en) | Determining routing of proxy traffic between mobile client and proxy devices | |
| EP3241362B1 (en) | Cloud support for discovery and data transfer for mobile client devices | |
| US10085294B2 (en) | Determining when to establish connection between mobile client and proxy devices | |
| US10033847B2 (en) | Dropped call warning and prevention methods | |
| US9432961B2 (en) | Location-assisted service capability monitoring | |
| US8620339B2 (en) | System and method for providing quality of service mapping | |
| US9420477B2 (en) | Signal strength management | |
| US10448283B2 (en) | Dynamic predictive buffering | |
| CN105191261A (zh) | 对等系统中的内容管理 | |
| AU2017435235B2 (en) | Application management method and terminal | |
| US11026283B2 (en) | Determining when to establish connection between mobile client and proxy devices | |
| CN113747347A (zh) | 电子设备及其上网卡切换方法、可读介质 | |
| CN117835169A (zh) | 一种短信通道的确定方法和相关装置 | |
| CN106993327A (zh) | 网络定位方法、装置及计算机设备 | |
| WO2019183783A1 (zh) | 一种终端内外围器件的管理方法及终端 | |
| CN118524418B (zh) | 网络预测方法及其终端设备、服务器和通信系统 | |
| US20240334531A1 (en) | Electronic device interaction method and apparatus | |
| CN116962794A (zh) | 应用优化方法及电子设备 | |
| CN111093148A (zh) | 一种信号频率调节方法、装置、存储介质及终端 | |
| CN120128652A (zh) | 显示方法和电子设备 |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 21865906 Country of ref document: EP Kind code of ref document: A1 |
|
| ENP | Entry into the national phase |
Ref document number: 2023515719 Country of ref document: JP Kind code of ref document: A |
|
| WWE | Wipo information: entry into national phase |
Ref document number: 202317019178 Country of ref document: IN |
|
| ENP | Entry into the national phase |
Ref document number: 2021865906 Country of ref document: EP Effective date: 20230315 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| WWG | Wipo information: grant in national office |
Ref document number: 202317019178 Country of ref document: IN |

