Data service processing methods, apparatus, electronic devices and readable storage media

By constructing a signal fingerprint database, the system can predict locations of weak signals and adjust data service strategies in advance, thus solving the problem of poor video playback when electronic devices have weak signals. This results in more efficient data service processing and a better user experience.

CN115859071BActive Publication Date: 2026-04-07HUAWEI TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-24
Publication Date
2026-04-07

AI Technical Summary

Technical Problem

In urban areas with high-rise buildings, electronic devices may experience weak signals or be unable to connect to the network, resulting in poor video playback. Existing methods for reducing video clarity are not timely and provide a poor user experience.

Method used

By constructing a signal fingerprint database, the system can predict when electronic devices will reach a weak signal location based on their signal parameters, and adjust data service strategies in advance, such as preloading videos, to ensure smooth playback even in weak signal locations.

Benefits of technology

It improved the timeliness of data services and user experience, avoided video playback stuttering, and enhanced the accuracy and applicability of signal prediction.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115859071B_ABST
    Figure CN115859071B_ABST
Patent Text Reader

Abstract

This application provides a data service processing method, apparatus, electronic device, and readable storage medium. The method includes: acquiring a first parameter of the electronic device; acquiring features of the first parameter based on the first parameter; matching the features of the first parameter within a first preset time period with a signal fingerprint in a signal fingerprint database, wherein the signal fingerprint is obtained based on the features of a second parameter before the electronic device is at a target location, the type of the second parameter is the same as the type of the first parameter, and the signal quality at the target location is less than a preset signal quality; if the features of the first parameter within the first preset time period successfully match the signal fingerprint in the signal fingerprint database, then controlling the electronic device to adopt the strategy corresponding to the application running in the foreground to process the application's data service. The electronic device of this application can detect whether the electronic device is about to enter a weak signal location based on the signal fingerprint database, thereby improving the timeliness of the electronic device's data service processing.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to communication technology, and more particularly to a data service processing method, apparatus, electronic device, and readable storage medium. Background Technology

[0002] With the development of communication technology, users often enjoy watching videos on electronic devices while traveling. However, in cities filled with tall buildings, signal and data transmission is lost due to reflections from different buildings. This leads to problems such as weak signals or even inability to connect to the internet in certain locations, such as inside buildings, parking lots, and subways, causing considerable inconvenience to users.

[0003] Currently, when electronic devices detect a weak signal, they can reduce the resolution of the video to ensure smooth playback. However, users need to wait for a period of time to see the video, resulting in low timeliness. Summary of the Invention

[0004] This application provides a data service processing method, apparatus, electronic device, and readable storage medium, which offers high timeliness in processing data services.

[0005] Firstly, embodiments of this application provide a data service processing method. The execution subject of this method can be an electronic device or a chip within an electronic device, or it can be executed through interaction between an electronic device and the cloud. The following description will first use an electronic device as the execution subject:

[0006] In this method, the electronic device can acquire a first parameter related to the signal quality of the electronic device. In one embodiment, the first parameter includes at least one of the following: reference signal received power, reference signal received quality, received signal strength indication, signal-to-interference-plus-noise ratio, Doppler signal, and the position of the electronic device. The electronic device can acquire features of the first parameter based on the first parameter. In one embodiment, the features of the first parameter may be, but are not limited to, a feature vector or matrix composed of the first parameter.

[0007] The electronic device can match the features of a first parameter within a first preset time period with signal fingerprints in a signal fingerprint database. If the features of the first parameter within the first preset time period successfully match the signal fingerprints in the signal fingerprint database, the electronic device is controlled to use the strategy corresponding to the application running in the foreground to process the data services of the application. The signal fingerprint is obtained based on the features of a second parameter before the electronic device is at the target location. The type of the second parameter is the same as the type of the first parameter. The signal quality at the target location is less than a preset signal quality. Refer to the following description of the electronic device constructing a signal fingerprint database based on the second parameter.

[0008] In this embodiment, the electronic device pre-stores a signal fingerprint database. Since the signal fingerprints in the database are obtained based on the second parameters of the electronic device before it entered a weak signal location, the electronic device can detect whether it is about to enter a weak signal location based on the signal fingerprints in the database. This allows for pre-adjustment of data service strategies when the electronic device is about to enter a weak signal location, ensuring smooth data service execution and improving user experience.

[0009] In one possible implementation, the signal fingerprint database includes at least one signal fingerprint. The electronic device matches the features of a first parameter within a first preset time period with the signal fingerprints in the signal fingerprint database. Specifically, the electronic device obtains the similarity between the features of the first parameter within the first preset time period and each signal fingerprint; if there is a similarity greater than a preset similarity, then a successful match is determined.

[0010] The similarity between the features of the first parameter acquired by the electronic device within the first preset time period and each signal fingerprint can be: the Euclidean distance, cosine distance, etc. between the features of the first parameter acquired by the electronic device within the first preset time period and each signal fingerprint.

[0011] In one possible implementation, the first parameter includes the location of the electronic device, and the signal fingerprint database includes the location corresponding to the signal fingerprint, which is obtained based on the location in the second parameter. When the electronic device matches the features of the first parameter within a first preset time period with the signal fingerprints in the signal fingerprint database, it can obtain the distance between the location of the electronic device and the location corresponding to the signal fingerprint, and then match the features of the first parameter within the first preset time period with signal fingerprints whose distance is less than a preset distance.

[0012] In this way, electronic devices can avoid having to recalculate the features of the first parameter and each signal fingerprint in the signal fingerprint database, reducing the amount of computation and improving matching efficiency.

[0013] The first parameter includes at least one of the following: reference signal received power, reference signal received quality, received signal strength indication, signal-to-interference-plus-noise ratio, and Doppler signal. The electronic device can store strategies corresponding to different values ​​of the first parameter. Thus, when the electronic device processes the data services of an application running in the foreground using the strategy corresponding to that application, the electronic device can control itself to process the application's data services according to the first parameter and the strategy corresponding to that application. Specifically, the electronic device can process the application's data services using a strategy corresponding to the value of the first parameter, based on the parameter value and the strategy corresponding to that parameter value.

[0014] In this implementation, the electronic device can process the data services of the application using a strategy corresponding to the parameter value of the first parameter, resulting in finer granularity and higher processing accuracy.

[0015] The following describes the process of constructing a fingerprint database based on the second parameter of the electronic device:

[0016] The electronic device can acquire a second parameter. Specifically, the electronic device can acquire this second parameter after powering on. The second parameter includes at least one of the following: reference signal received power, reference signal received quality, received signal strength indication, signal-to-interference-plus-noise ratio, Doppler signal, and the position of the electronic device. Based on the second parameter, the electronic device can obtain its characteristics, and then, in response to detecting that the electronic device is at a target position, acquire a signal fingerprint based on the characteristics of the second parameter within a first preset time period, and construct a signal fingerprint database based on the signal fingerprint.

[0017] The target location is a weak signal location, i.e., a location where the signal quality of the electronic device is less than a preset signal quality. To improve the accuracy of detecting both the target fingerprint and the signal fingerprint, the electronic device can, in response to detecting that it is at the target location within a second preset time period, acquire the signal fingerprint based on the characteristics of a second parameter within the first preset time period prior to the second preset time period. The electronic device can detect whether it is at the target location within the second preset time period in the following manner:

[0018] First, the second parameter is at least one. If the electronic device detects that the target parameter in the second parameter is less than the threshold of the target parameter within the second preset time period, then the electronic device determines that it is at the target location. The target parameter is one or more of the second parameters.

[0019] Secondly, if the electronic device detects an abnormality in the foreground application within the second preset time period, it determines that the electronic device is at the target location.

[0020] Third, if the electronic device detects that the number of signal strength bars displayed on the interface of the electronic device is less than the preset number of bars within the second preset time period, then the electronic device is determined to be at the target location.

[0021] Specifically, the electronic device obtains a signal fingerprint based on the features of the second parameter within the first preset time period. This may include: the electronic device clustering the features of the second parameter within the first preset time period to obtain at least one cluster, with each cluster being a signal fingerprint.

[0022] In one possible implementation, after acquiring the signal fingerprint, the electronic device can also use the center position of the electronic device's position in the second parameter within the first preset time period as the position corresponding to the signal fingerprint, and store the position corresponding to the signal fingerprint.

[0023] In one possible implementation, after acquiring the signal fingerprint, the electronic device may further store a second parameter corresponding to the signal fingerprint within the first preset time period. In this possible implementation, the second parameter includes at least one of the following: reference signal received power, reference signal received quality, received signal strength indication, signal-to-interference-plus-noise ratio, and Doppler signal.

[0024] The above implementations all describe electronic devices as the execution entity, executing the data service processing method provided in the embodiments of this application. The following describes the interaction between electronic devices and the cloud to execute the data service processing method provided in the embodiments of this application:

[0025] After acquiring the second parameter of the electronic device, it can report the second parameter to the cloud. The cloud can respond by detecting that the electronic device is in a weak signal location, generating a signal fingerprint based on the second parameter, and building a signal fingerprint database, as can be seen in the relevant description of the electronic device mentioned above.

[0026] Specifically, the cloud's response to detecting that an electronic device is in a weak signal location can be as follows: if the electronic device detects that it is in a weak signal location based on the methods described in "one to three" above, it can send a weak signal message to the cloud; if the electronic device detects that it has moved out of the weak signal location based on the methods described in "one to three" above, it can send a weak signal cancellation message to the cloud. Accordingly, the cloud can detect whether the electronic device is in a weak signal location based on the weak signal message and the weak signal cancellation message from the electronic device.

[0027] If the cloud does not receive a weak signal cancellation message from the electronic device within the second preset time period after receiving a weak signal message from the electronic device, it can determine that the electronic device is at the target location (i.e., the weak signal location).

[0028] In one possible implementation, after acquiring its first parameter, the electronic device can report the first parameter to the cloud. The cloud then obtains the characteristics of the first parameter and matches these characteristics within a first preset time period with signal fingerprints in a signal fingerprint database. If the characteristics of the first parameter within the first preset time period successfully match the signal fingerprints in the database, the cloud can notify the electronic device to use the strategy corresponding to the application running in the foreground to process the application's data services.

[0029] Specifically, the cloud can send weak signal indication information to the electronic device, which instructs the electronic device to adopt the strategy corresponding to the application to process the application's data services. Upon receiving the weak signal indication information, the cloud can process the application's data services using the strategy corresponding to the application running in the foreground on the electronic device.

[0030] In this embodiment, the electronic device can report its parameters to the cloud. The cloud can construct a signal fingerprint database based on the parameters of multiple electronic devices. Compared with the signal fingerprint database constructed by the electronic device based on its own parameters, the signal fingerprint database constructed by the cloud has more and richer signal fingerprints. When the electronic device reaches a position for the first time, the cloud can use the signal fingerprint constructed by the parameters of other electronic devices to detect whether the electronic device is about to enter a weak signal position. It has a wider range of applications and higher accuracy.

[0031] Secondly, embodiments of this application provide a data service processing apparatus, which may be the electronic device or a chip in the electronic device described in the first aspect, or the cloud or a chip in the cloud described in the first aspect. The data service processing apparatus may include:

[0032] The communication protocol layer is used to obtain the first parameters of the electronic device.

[0033] The signal fingerprint module is used to: obtain the features of the first parameter based on the first parameter; and match the features of the first parameter within a first preset time period with the signal fingerprint in the signal fingerprint database, wherein the signal fingerprint is obtained based on the second parameter before the electronic device is in the target position, and the type of the second parameter is the same as the type of the first parameter.

[0034] If the features of the first parameter within the first preset time period successfully match the signal fingerprint in the signal fingerprint database, then the application processor (AP) controls the electronic device to use the strategy corresponding to the application running in the foreground of the electronic device to process the data services of the application.

[0035] In one possible implementation, the first parameter is characterized as a feature vector, which is a vector composed of the first parameter.

[0036] In one possible implementation, the signal fingerprint database includes at least one signal fingerprint.

[0037] The signal fingerprint module is specifically used to obtain the similarity between the features of the first parameter within the first preset time period and each signal fingerprint; if there is a similarity greater than the preset similarity, then the match is determined to be successful.

[0038] In one possible implementation, the first parameter includes the location of the electronic device, and the signal fingerprint database includes the location corresponding to the signal fingerprint, which is obtained based on the location in the second parameter.

[0039] The signal fingerprint module is specifically used to obtain the distance between the location of the electronic device and the location corresponding to the signal fingerprint; and to match the features of the first parameter within the first preset time period with the signal fingerprint whose distance is less than the preset distance.

[0040] In one possible implementation, the first parameter includes at least one of the following: reference signal received power, reference signal received quality, received signal strength indication, signal-to-interference-plus-noise ratio, and Doppler signal.

[0041] AP, specifically used to control the electronic device to process the data services of the application according to the first parameter and the strategy corresponding to the application.

[0042] In one possible implementation, the first parameter includes at least one of the following: reference signal received power, reference signal received quality, received signal strength indication, signal-to-interference-plus-noise ratio, Doppler signal, and the position of the electronic device.

[0043] In one possible implementation, the AP is specifically used to send weak signal indication information to the electronic device, the weak signal indication information being used to instruct the electronic device to adopt the strategy corresponding to the application and process the data services of the application.

[0044] In one possible implementation, the communication protocol layer is also used to obtain the second parameter.

[0045] The signal fingerprint module is further configured to acquire features of the second parameter based on the second parameter; in response to detecting that the electronic device is at a target location, acquire a signal fingerprint based on the features of the second parameter within the first preset time period; and construct the signal fingerprint database based on the signal fingerprint.

[0046] In one possible implementation, the signal fingerprint module is specifically used to obtain the signal fingerprint based on the characteristics of the second parameter within the first preset time period prior to the second preset time period in response to detecting that the electronic device is at the target location within the second preset time period.

[0047] In one possible implementation, the second parameter is at least one signal fingerprint module, specifically used to determine that the electronic device is at the target location if the target parameter in the second parameter is detected to be less than the threshold of the target parameter within the second preset time period.

[0048] In one possible implementation, the signal fingerprint module is specifically used to determine that the electronic device is at the target location if an abnormality is detected in the foreground application of the electronic device within the second preset time period.

[0049] In one possible implementation, the signal fingerprint module is specifically used to determine that the electronic device is at the target location if the number of signal strength bars displayed on the interface of the electronic device is less than a preset number of bars within the second preset time period.

[0050] In one possible implementation, the signal fingerprint module is specifically used to determine that the electronic device is at a target location if no weak signal cancellation message is received from the electronic device within a second preset time period after receiving a weak signal message from the electronic device. The weak signal message is sent by the electronic device when it detects that it is at the target location, and the weak signal cancellation message is sent by the electronic device when it detects that it has moved out of the target location.

[0051] In one possible implementation, the signal fingerprint module is specifically used to cluster the features of the second parameter within the first preset time period to obtain at least one cluster, and each cluster is a signal fingerprint.

[0052] In one possible implementation, the signal fingerprint module is further configured to take the center position of the electronic device in the second parameter within the first preset time period as the position corresponding to the signal fingerprint; and store the position corresponding to the signal fingerprint.

[0053] In one possible implementation, the second parameter includes at least one of the following: reference signal received power, reference signal received quality, received signal strength indication, signal-to-interference-plus-noise ratio, and Doppler signal.

[0054] The signal fingerprint module is also used to store the second parameter within the first preset time period corresponding to the signal fingerprint.

[0055] Thirdly, embodiments of this application provide an electronic device that may include a processor and a memory. The memory stores computer-executable program code, which includes instructions; when the processor executes the instructions, the instructions cause the electronic device to perform the method described in the first aspect.

[0056] Fourthly, embodiments of this application provide an electronic device, which may be the data service processing apparatus of the second aspect or the electronic device described in the first aspect. The electronic device may include units, modules, or circuits for performing the methods provided in the first aspect.

[0057] Fifthly, embodiments of this application provide a computer program product containing instructions that, when run on a computer, cause the computer to perform the method described in the first aspect above.

[0058] In a sixth aspect, embodiments of this application provide a computer-readable storage medium storing instructions that, when executed on a computer, cause the computer to perform the method described in the first aspect.

[0059] The beneficial effects of the various possible implementations of the second to sixth aspects mentioned above can be found in the beneficial effects of the first aspect mentioned above, and will not be elaborated here.

[0060] This application provides a data service processing method, apparatus, electronic device, and readable storage medium. The signal fingerprint in the signal fingerprint database is obtained by the signal fingerprint module based on the parameters of the electronic device before it entered a weak signal location. Therefore, the electronic device can detect whether it is about to enter a weak signal location based on the signal fingerprint in the database. This allows for pre-adjustment of data service strategies when the electronic device is about to enter a weak signal location, ensuring smooth execution of data services, improving the timeliness of data service processing, and enhancing user experience. Attached Figure Description

[0061] Figure 1A This is a schematic diagram of a scene;

[0062] Figure 1B This is a schematic diagram of another scenario;

[0063] Figure 2A schematic diagram of the structure of an electronic device provided in an embodiment of this application;

[0064] Figure 3 A flowchart illustrating one embodiment of the data service processing method provided in this application;

[0065] Figure 4 A schematic diagram of the sliding window and feature vector provided in the embodiments of this application;

[0066] Figure 5 A schematic diagram illustrating the construction of a signal fingerprint database provided in an embodiment of this application;

[0067] Figure 6 A flowchart illustrating another embodiment of the data service processing method provided in this application;

[0068] Figure 7 This is a schematic diagram illustrating a scenario applicable to an embodiment of this application;

[0069] Figure 8 A flowchart illustrating another embodiment of the data service processing method provided in this application;

[0070] Figure 9 This is a flowchart illustrating another embodiment of the data service processing method provided in this application. Detailed Implementation

[0071] The signal strength of an electronic device varies depending on its location, thus affecting its ability to perform data services. The signal strength of the electronic device can be the signal strength of a wireless network, which may include, but is not limited to, Wi-Fi networks, Global System for Mobile Communications (GSM) networks, Code Division Multiple Access (CDMA) networks, Wideband Code Division Multiple Access (WCDMA) networks, 3rd-generation (3G) networks, 4G networks, and 5G networks. This application embodiment does not impose any limitations on this. Data services are services that the electronic device needs to perform through a wireless network. In one embodiment, data services may include, but are not limited to, information services, entertainment services, and messaging services. Information services may include providing users with news, weather, sports, travel, and financial information. Entertainment services may include ringtones, videos, music, games, chat, reading, and web browsing. Messaging services may include SMS, MMS, and instant messaging. This application embodiment does not limit the data services performed by the electronic device; the following embodiment uses video playback by the electronic device as an example.

[0072] The electronic devices in this application embodiment can be referred to as user equipment (UE), terminal, etc. For example, the electronic devices can be mobile phones, portable Android devices (PADs), personal digital assistants (PDAs), handheld devices with wireless communication functions, computing devices, in-vehicle devices or wearable devices, virtual reality (VR) terminal devices, augmented reality (AR) terminal devices, etc. The form of the electronic devices is not specifically limited in this application embodiment. The following embodiments use mobile phones as an example for illustration. It should be understood that the electronic devices can be portable electronic devices.

[0073] Figure 1A This is a schematic diagram of a scenario. (Refer to...) Figure 1A When a user watches a video on their phone, and moves to location A, the phone's signal strength is strong, allowing the video to play smoothly. Figure 1A The image shows the phone's display screen indicating smooth video playback. When the user moves to location B, the phone's signal strength weakens, causing video playback to stutter. Figure 1AThe "Loading" indicator 10 on the mobile phone indicates video stuttering. The reason the phone can play the video smoothly at location A but stutters at location B is that: at location A, the phone's signal strength is strong, allowing the phone to interact with the server and cache the video, resulting in smooth playback. However, at location B, the signal strength is weaker, reducing the phone's ability to cache the video and causing stuttering.

[0074] To address this issue, existing technology provides a method for switching between primary and secondary data cards. The phone includes one primary data card and one secondary data card, both of which can enable internet access. Specifically, when the phone's signal strength is strong at location A, the phone can use the primary data card to cache videos. At location B, when the phone detects a weakening signal strength on the primary data card, it can automatically switch to the secondary data card with the stronger signal to cache videos, thus enabling smooth video playback. However, this method requires two data cards, making it unsuitable for phones that only support a single SIM card or those with only one data card, limiting its applicability.

[0075] Existing technology also provides a method for a mobile phone to change its data service execution strategy based on signal strength. In this method, if the mobile phone detects that the signal strength at location B is lower than a preset strength value, it can reduce the video resolution to ensure smooth video playback. For example, if the mobile phone plays a video at "Blu-ray 1080P" resolution at location A, when the user moves to location B, the mobile phone can reduce the resolution to "standard definition 270P" to ensure smooth video playback. (See reference...) Figure 1B When in position B, the phone can display a message saying "Switching to standard definition" on the screen. After waiting for a while, the user can see a video playing in "standard definition 270P". It should be understood that... Figure 1B The image with dashed lines represents the reduced resolution of video playback on electronic devices.

[0076] While reducing video resolution can solve the problem of limited applicability of switching between primary and secondary SIM cards, this method requires the phone to adjust its data service strategy based on the signal strength at location B only when the user moves to location B. This results in poor timeliness, and the reduced video resolution leads to a poor viewing experience for the user.

[0077] Currently, users often travel the same routes repeatedly, such as from home to work or from home to a shopping mall. If electronic devices could pre-detect locations with low signal strength along the travel route, they could pre-load video before reaching those locations, ensuring smooth video playback when the user arrives, thus improving the user experience. Accordingly, this application provides a data service processing method. Based on its parameters, the electronic device detects whether it is about to reach a location with low signal strength. If so, it can pre-process the data service using a corresponding strategy based on the type of data service, ensuring successful data service execution even in low-signal locations, thereby improving the user experience.

[0078] It should be understood that in the following embodiments, the location with low signal strength is referred to as the weak signal location or the target location, both of which indicate that the network quality of the electronic device at that location is poor.

[0079] Before introducing the data service processing method provided in the embodiments of this application, the structure of the electronic device in the embodiments of this application will be described first:

[0080] Figure 2 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. (Refer to...) Figure 2 The electronic device includes an application processor (AP) and a baseband processor. In one embodiment, the AP can be referred to as the A core of the electronic device, and the baseband processor can be referred to as the C core of the electronic device. The AP and the baseband processor can communicate through a radio interface layer (RIL).

[0081] The A core can include an application package containing at least one application (APP). These applications may include, but are not limited to: camera, gallery, calendar, call, map, navigation, Bluetooth, music, video, and SMS. Figure 2 The specific application package is not shown; "AP" is used as an example for explanation.

[0082] The C core includes: a communication protocol layer, an interface control document (ICD) layer, a chip adaptation layer, a parameter adaptation interface, a signal fingerprint database, and a signal fingerprint module.

[0083] The communication protocol layer includes a physical layer (PHY), a data link layer, and a radio resource control (RRC) layer. This application embodiment does not elaborate on the functions of each layer in the communication protocol layer. The data link layer can also be called the media access control (MAC) layer. In this application embodiment, the communication protocol layer is used to obtain parameters of the electronic device.

[0084] In one embodiment, the parameters of the electronic device may include, but are not limited to: reference signal receiving power (RSRP), reference signal receiving quality (RSRQ), received signal strength indication (RSSI), signal to interference plus noise ratio (SINR), Doppler signal, and the location of the electronic device.

[0085] In this embodiment of the application, after the communication protocol layer obtains the parameters of the electronic device, it can report the parameters of the electronic device to the chip adapter layer through the ICD.

[0086] In one embodiment, the signal fingerprint database and the signal fingerprint module are integrated on a single chip. A chip adaptation layer is used to convert the format of parameters from the electronic device obtained from the communication protocol layer into a format recognizable by the C core (i.e., a format recognizable by the signal fingerprint module). For example, if the parameters of the electronic device obtained by the communication protocol layer are in data packet format, the chip adaptation layer can parse the data packets from the communication protocol layer to obtain the parameters of the electronic device, and then convert the parameters of the electronic device into a format recognizable by the chip before reporting them to the parameter adaptation interface.

[0087] The parameter adaptation interface is used to preprocess the parameters of the electronic device and report the preprocessed parameters of the electronic device to the signal fingerprint module.

[0088] The signal fingerprint module is used to obtain signal fingerprints based on parameters from the electronic device via the parameter adapter interface, and to construct a signal fingerprint database. It should be understood that the signal fingerprint database includes a collection of signal fingerprints. Additionally, the signal fingerprint module is also used to match the parameters of the electronic device with the signal fingerprints in the signal fingerprint database based on the parameters from the electronic device via the parameter adapter interface, and to detect whether the electronic device is about to reach a weak signal location.

[0089] The parameter adaptation interface and signal fingerprint module can be referred to the relevant descriptions in the following embodiments.

[0090] The signal fingerprint module is also used to report information about the electronic device's impending arrival at a weak signal location to the AP via the RIL (such as the weak signal alert information in the following embodiments).

[0091] An access point (AP) is used to adjust its data service execution strategy in response to information that an electronic device is about to reach a weak signal location. For example, taking video playback on an electronic device as an example, the AP can increase the video buffer size in response to this information. It should be understood that the AP's data service execution strategy will differ depending on the data service being performed by the electronic device, as described in the following embodiments.

[0092] The data service processing method provided in this application will be described below with reference to specific embodiments. These embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments. Figure 3 First, we will introduce the process of constructing a signal fingerprint database based on the parameters of electronic devices:

[0093] Figure 3 This is a flowchart illustrating one embodiment of the data service processing method provided in this application. (Refer to...) Figure 3 The data service processing method provided in this application embodiment may include:

[0094] S301, the communication protocol layer sends the first parameters of the electronic device collected by the communication protocol layer to the chip adapter layer through the ICD.

[0095] In this embodiment of the application, after the electronic device is powered on, the signal fingerprint module can register an icd message event with the ICD. The icd message event is used to instruct the ICD to send the first parameter of the electronic device to the signal fingerprint module through the chip adaptation layer and the parameter adaptation interface after receiving the first parameter of the electronic device collected from the communication protocol layer.

[0096] The first parameter is related to the signal quality of the electronic device. In one embodiment, the first parameter includes, but is not limited to, RSRP, RSRQ, RSSI, SINR, doppler, and the location of the electronic device. For example, the signal quality of the electronic device varies depending on its location.

[0097] It should be understood that the terms "first," "second," etc., used in the embodiments of this application are for descriptive purposes only and should not be construed as indicating or implying relative importance, nor as indicating or implying order. In one embodiment, Figure 3The first parameter in the illustrated embodiment can be referred to as the second parameter, and the second parameter in the following embodiments can be referred to as the first parameter accordingly.

[0098] S302, the chip adapter layer converts the first parameter into the target format.

[0099] S303, the chip adapter layer sends the first parameter after conversion to the parameter adapter interface.

[0100] For details regarding S301-S303, please refer to the above. Figure 2 The relevant description is provided in the documentation. The target format can be understood as the format that the chip can recognize.

[0101] S304, the parameter adaptation interface preprocesses the first parameter after the format conversion to obtain the processed first parameter.

[0102] The communication protocol layer collects the first parameter at different frequencies, therefore, the communication protocol layer reports the first parameter of the electronic device to the chip adapter layer at different frequencies via the ICD. For example, taking RSRP and RSRQ as examples, if the communication protocol layer reports RSRP 10 times and RSRQ 5 times to the chip adapter layer within 1 second, then the chip adapter layer receives 10 RSRPs and 5 RSRQs within 1 second. Correspondingly, the parameter adaptation interface can also receive 10 RSRPs and 5 RSRQs within 1 second.

[0103] The parameter adaptation interface can preprocess the first parameter received within a preset duration. For example, the preset duration can be 1 second. It should be noted that 1 second is an example; the preset duration can also be other values, such as 3 seconds, 10 seconds, etc. In one embodiment, the parameter adaptation interface can also adaptively adjust the preset duration. For example, when the electronic device detects that it has been in one position (or within a certain area) for a long time, the parameter adaptation interface can increase the preset duration. This application embodiment does not limit this.

[0104] For example, taking a preset duration of 1 second, the parameter adaptation interface can smooth the first parameters received from the electronic device within 1 second to obtain a parameter value for each first parameter, and then report the processed first parameters (i.e., the parameter values ​​of each first parameter) to the signal fingerprint module. Taking RSRP and RSRQ as examples, if the parameter adaptation interface can receive 10 RSRPs and 5 RSRQs within 1 second, then the parameter adaptation interface can smooth the 10 RSRPs to obtain one RSRP. Similarly, the parameter adaptation interface can smooth the 5 RSRQs to obtain one RSRQ.

[0105] Taking RSRP as an example, the smoothing process of the parameter adaptation interface is illustrated. The parameter adaptation interface can use a weighted average method to smooth the 10 RSRPs. The weight of an RSRP received further away from the end of 1 second is lower, and the weight of an RSRP received closer to the end of 1 second is higher. For example, within 1 second, the RSRPs received by the parameter adaptation interface are a1, a2, ..., a10, with the weights of the RSRPs increasing sequentially. The parameter adaptation interface can use a weighted average method to process the RSRPs and their corresponding weights to obtain the processed RSRPs.

[0106] It should be understood that the smoothing process of each first parameter in the parameter adaptation interface can be the same. For details, please refer to the smoothing process of RSRP. In this way, the parameter adaptation interface can obtain the processed first parameter of the electronic device within 1 second.

[0107] S305, the parameter adapter interface sends the processed first parameter to the signal fingerprint module.

[0108] S306, in response to the electronic device being in a weak signal position, the signal fingerprint module generates a signal fingerprint based on the processed first parameter.

[0109] The signal fingerprint module can detect whether an electronic device is in a weak signal location. In one embodiment, the weak signal location can be referred to as the target location. The signal quality at the target location is low. In this embodiment, the signal quality at the target location is less than a preset signal quality. The specific detection method can be referred to below:

[0110] In one embodiment, the signal fingerprint module can detect whether the electronic device is in a weak signal location based on the processed first parameter. Specifically, the signal fingerprint module can determine that the electronic device is in a weak signal location if it detects that at least one of the following first parameters is less than a threshold corresponding to the first parameter: RSRP, RSRQ, RSSI, SINR, and doppler. For example, taking RSRP as an example, when the signal fingerprint module detects that RSRP is less than the threshold corresponding to RSRP, the signal fingerprint module can determine that the electronic device is in a weak signal location. It should be understood that different first parameters may correspond to different thresholds. In this embodiment, a signal quality less than a preset signal quality can be characterized as: at least one first parameter of the electronic device is less than the threshold corresponding to the first parameter.

[0111] To avoid the problem of the first parameter falling below its corresponding threshold due to instantaneous signal jitter, in this embodiment, the signal fingerprint module can determine that the electronic device is in a weak signal position when it detects that at least one of the first parameters is consistently less than the threshold within a first preset duration. For example, the first preset duration can be 4 seconds. Taking RSRP as an example, when the signal fingerprint module detects that RSRP is consistently less than the threshold within 4 seconds, the signal fingerprint module can determine that the electronic device is in a weak signal position. In one embodiment, the first preset duration can be referred to as the second preset duration, and the second preset duration can be correspondingly referred to as the first preset duration.

[0112] In one embodiment, the access point (AP) can detect whether the electronic device is in a weak signal location based on the running status of the application running in the foreground. Specifically, if the AP detects that the running status of the application running in the foreground is abnormal, it determines that the electronic device is in a weak signal location. It should be understood that different applications exhibit different abnormal states. For example, for video applications, an abnormal state is characterized by no data packet transmission between the AP and the server. In this embodiment, a signal quality lower than a preset signal quality can be characterized as the running status of the application running in the foreground being abnormal.

[0113] In this embodiment, in response to detecting that the electronic device is in a weak signal location, the AP can send a first weak signal message to the signal fingerprint module. The first weak signal message is used to indicate that the electronic device is in a weak signal location. In this way, the signal fingerprint module can determine that the electronic device is in a weak signal location in response to receiving the first weak signal message.

[0114] Additionally, when the AP detects that the running state of an application in the foreground of the electronic device has switched from an abnormal state to a normal state, it can send a first weak signal cancellation message to the signal fingerprint module. This message indicates that the electronic device has moved out of a weak signal location. In this embodiment, to improve the detection accuracy of the electronic device, if the signal fingerprint module does not receive a first weak signal cancellation message from the AP within a first preset time period after receiving the first weak signal message, the signal fingerprint module can determine that the electronic device is in a weak signal location.

[0115] In one embodiment, reference is made to... Figure 2As shown, the electronic device may include a signal strength detection module. This module can acquire the number of signal strength bars displayed on the electronic device's interface, and the number of signal strength bars is positively correlated with the electronic device's signal strength. In this embodiment, in response to detecting that the number of signal strength bars displayed on the electronic device's interface is less than a preset number, the signal strength detection module can determine that the electronic device is in a weak signal location, and then send a second weak signal message to the signal fingerprint module. The second weak signal message indicates that the electronic device is in a weak signal location. Thus, in response to receiving the second weak signal message, the signal fingerprint module can determine that the electronic device is in a weak signal location. For example, the full number of signal strength bars displayed on the electronic device is 5, and the preset number of bars is 2. In this embodiment, a signal quality less than the preset signal quality can be characterized as: the number of signal strength bars displayed on the electronic device's interface is less than the preset number of bars.

[0116] Furthermore, when the signal strength detection module detects that the number of signal strength bars displayed on the electronic device's interface changes from less than a preset number to greater than or equal to a preset number, it can send a second weak signal cancellation message to the signal fingerprint module. This second weak signal cancellation message instructs the electronic device to move out of a weak signal location. In this embodiment, to improve the detection accuracy of the electronic device, if the signal fingerprint module does not receive a second weak signal cancellation message from the signal strength detection module within a first preset time period after receiving the second weak signal message, it can determine that the electronic device is in a weak signal location.

[0117] The signal fingerprint module responds to the electronic device being in a weak signal position and can generate a signal fingerprint based on the processed first parameter.

[0118] After receiving the processed first parameter, the signal fingerprint module can obtain the features of the processed first parameter. In one embodiment, the features of the processed first parameter are not limited to feature vectors, matrices, etc. The following embodiment uses a feature vector as an example. For example, if the parameter adaptation interface reports the processed first parameter to the signal fingerprint module once every 1 second, the signal fingerprint module can obtain a feature vector based on the processed first parameter received every second.

[0119] For example, the first parameter includes RSRP, RSRQ, RSSI, SINR, doppler, and the position of the electronic device. The feature vector can be a vector constructed in the order of RSRP, RSRQ, RSSI, SINR, doppler, and position (position of the electronic device), such as the feature vector being (RSRP, RSRQ, RSSI, SINR, doppler, position). In this way, the signal fingerprint module can obtain one feature vector per second, and therefore the signal fingerprint module can obtain multiple feature vectors.

[0120] The signal fingerprint module can generate a signal fingerprint based on feature vectors within a sliding window (T). For example, refer to... Figure 4 The sliding window can be 20 seconds, and the aforementioned first preset duration of 4 seconds is the latter 1 / 5 of the sliding window. In this embodiment, in response to detecting that the electronic device is in a weak signal position in the latter 1 / 5 of the sliding window, the signal fingerprint module can generate a signal fingerprint based on the feature vectors of the first 4 / 5 of the sliding window. For example, the signal fingerprint module can generate a signal fingerprint based on the 16 feature vectors obtained in the first 16 seconds of the sliding window. It should be understood that the sliding window, as well as the proportions "last 1 / 5" and "first 4 / 5" in this embodiment, are merely illustrative examples. In other words, in response to detecting that the electronic device is in a weak signal position within the first preset duration, the signal fingerprint module can generate a signal fingerprint based on the feature vectors of the second parameter of the second preset duration preceding the first preset duration.

[0121] It should be understood that the reason why the signal fingerprint module uses the first 4 / 5 of the feature vector of the sliding window to generate the signal fingerprint in the embodiments of this application is because: the signal fingerprint module can obtain the signal fingerprint of the electronic device that is about to enter the weak signal position based on the first 4 / 5 of the feature vector of the sliding window. Then, the signal fingerprint module can detect whether the electronic device is about to enter the weak signal position based on the signal fingerprint, so as to adjust the strategy for executing data services in advance and improve timeliness and user experience.

[0122] In one embodiment, the signal fingerprint module can cluster the first 4 / 5 of the feature vectors of the sliding window to obtain at least one cluster, and each cluster can be understood as a signal fingerprint. Each signal fingerprint includes at least one feature vector, and the similarity between the feature vectors in a signal fingerprint is greater than a preset similarity. In one embodiment, the similarity between feature vectors can be characterized by Euclidean distance, cosine distance, and Manhattan distance, etc. The following embodiment uses Euclidean distance as an example for illustration.

[0123] The signal fingerprint module can employ a clustering algorithm to cluster the feature vectors of the first 4 / 5 of the sliding window. Clustering algorithms can include, but are not limited to, K-Means clustering, mean-shift clustering, and density-based spatial clustering of applications with noise (DBSCAN).

[0124] This section uses the K-Means clustering algorithm as an example to briefly describe the process of clustering feature vectors by the signal fingerprint module:

[0125] Step 1: The signal fingerprint module selects any k feature vectors as cluster centers from the first 4 / 5 of the feature vectors in the sliding window.

[0126] Step 2: The signal fingerprint module calculates the Euclidean distance between each feature vector in the first 4 / 5 of the sliding window and each cluster center, and divides the feature vectors whose Euclidean distance is less than the preset Euclidean distance into a cluster, thereby obtaining multiple initial clusters.

[0127] Step 3: Calculate the mean eigenvector of the eigenvectors in each initial cluster, and take the eigenvector in the initial cluster with the highest similarity to the mean eigenvector as the new cluster center.

[0128] Step 4: Repeat steps 2 and 3 until the cluster centers in each initial cluster remain unchanged. The clustering ends, and multiple clusters (i.e., signal fingerprints) are obtained.

[0129] S307, the signal fingerprint module builds a signal fingerprint database based on signal fingerprints.

[0130] The signal fingerprint module can store signal fingerprints in the memory of an electronic device to build a signal fingerprint database, which includes at least one signal fingerprint. For example, the memory of the electronic device can be a hard disk.

[0131] Figure 5 This is a schematic diagram illustrating the construction of a signal fingerprint database as provided in an embodiment of this application. (Refer to...) Figure 5 When the user is at location A, the signal fingerprint module detects that the phone is not in a weak signal location and can obtain the features of the first parameter. When the user moves to location B, the signal fingerprint module detects that the phone is in a weak signal location, and can generate a signal fingerprint based on the first 4 / 5 of the feature vector of the sliding window. If the signal fingerprint module continuously detects that the phone is in a weak signal location as the user moves to location D, it can continuously generate multiple signal fingerprints based on the first 4 / 5 of the feature vector of the second parameter of the sliding window, thereby constructing a signal fingerprint database.

[0132] In one embodiment, the signal fingerprint database may further store a first parameter corresponding to each signal fingerprint. The first parameter corresponding to the signal fingerprint may be the average value of the first parameters in the last 1 / 5 of the sliding window used to obtain the signal fingerprint. For example, the signal fingerprint module can generate a signal fingerprint based on the feature vector of the first 16 seconds of the sliding window (20 seconds). The first parameter corresponding to this signal fingerprint is the average value of the first parameters in the last 4 seconds of the sliding window (20 seconds). The average value of the first parameter may include: the average value a of RSRP, the average value b of RSRQ, the average value c of RSSI, the average value d of SINR, the average value e of doppler, and the average value f of position. Accordingly, the first parameter corresponding to this signal fingerprint is: the average value a of RSRP, the average value b of RSRQ, the average value c of RSSI, the average value d of SINR, the average value e of doppler, and the average value f of position. The average value of the electronic device's position can be understood as the center position of the electronic device in the last 1 / 5 of the sliding window.

[0133] In one embodiment, the signal fingerprint database may also store the location of the electronic device corresponding to each signal fingerprint. The location of the electronic device corresponding to the signal fingerprint can be the average of the locations of the electronic devices in the last 1 / 5 of the sliding window containing the signal fingerprint, such as the average location f.

[0134] In this embodiment, the signal fingerprint module can self-learn and construct a signal fingerprint database based on the first parameters of the electronic device during user operation. Because the signal fingerprints in the database are obtained by the signal fingerprint module based on the first parameters of the electronic device before it entered a weak signal location, the electronic device can detect whether it is about to enter a weak signal location based on the signal fingerprints in the database. This allows for pre-adjustment of data service strategies when the electronic device is about to enter a weak signal location, ensuring smooth data service execution and improving user experience. The detection of whether the electronic device is about to enter a weak signal location based on the signal fingerprint database can be described as follows: Figure 6 The relevant description in the document.

[0135] In one embodiment, after the electronic device is powered on for the first time, the above-described... Figure 3 During the steps mentioned, the following can also be performed: Figure 6 The steps in the process. Alternatively, in one embodiment, the electronic device may, in response to the number of signal fingerprints in the signal fingerprint database reaching a preset number, perform the following: Figure 6In this embodiment, because the signal fingerprint database contains a sufficient number of signal fingerprints, it can accurately detect whether the electronic device is about to enter a weak signal location, thereby improving the accuracy of data service processing. Alternatively, in one embodiment, the electronic device can perform the following actions upon initial power-on and after a period of use: Figure 6 The steps in this embodiment, for example, can take a period of one week, but this application does not limit this. This application embodiment performs the following on the electronic device. Figure 6 The scenarios for the steps in the process are not limited.

[0136] Figure 6 This is a flowchart illustrating another embodiment of the data service processing method provided in this application. (Refer to...) Figure 6 The data service processing method provided in this application embodiment may include:

[0137] S301A, the communication protocol layer sends the second parameters of the electronic device collected by the communication protocol layer to the chip adapter layer through the ICD.

[0138] S302A, the chip adapter layer converts the second parameter into the target format.

[0139] S303A, the chip adapter layer sends the converted second parameter to the parameter adapter interface.

[0140] S304A, the parameter adapter interface preprocesses the second parameter after the format conversion to obtain the processed second parameter.

[0141] S305A, the parameter adapter interface sends the processed second parameter to the signal fingerprint module.

[0142] S301A-S305A can be referred to in the relevant descriptions in S301-S305. It should be understood that the second parameter is of the same type as the first parameter. For example, if the first parameter includes the location and RSSI of the electronic device, then the second parameter also includes the location and RSSI of the electronic device.

[0143] S306A, the signal fingerprint module acquires the features of the processed second parameter.

[0144] The characteristics of the processed second parameter can be referred to the relevant description in S306 above. In the following embodiments, "characteristics of the second parameter" is used to characterize "characteristics of the processed second parameter".

[0145] S307A: The signal fingerprint module matches the features of the second parameter within a second preset time period in the sliding window with the signal fingerprint in the signal fingerprint database. If the match is successful, proceed to S308A; if the match is unsuccessful, slide the sliding window and proceed to S307A.

[0146] In one embodiment, the signal fingerprint module matches the features of the second parameter (hereinafter referred to as the features of the second parameter) within a second preset time period in the sliding window with the signal fingerprints in the signal fingerprint database in the following manner: The signal fingerprint module calculates the similarity between the features of the second parameter and each signal fingerprint in the signal fingerprint database to obtain at least one similarity. If at least one similarity is greater than or equal to a preset similarity, the signal fingerprint module determines that the features of the second parameter have successfully matched the signal fingerprints in the signal fingerprint database. If at least one similarity is not greater than or equal to the preset similarity, the signal fingerprint module determines that the features of the second parameter have not successfully matched the signal fingerprints in the signal fingerprint database. For example, the signal fingerprint module can obtain the Euclidean distance between the features of the second parameter and each signal fingerprint in the signal fingerprint database. The Euclidean distance is negatively correlated with the similarity; the larger the Euclidean distance, the lower the similarity, and the smaller the Euclidean distance, the higher the similarity.

[0147] In one embodiment, the signal fingerprint module may employ the k-nearest neighbor (KNN) algorithm to calculate the similarity between the features of the second parameter and the signal fingerprints in the signal fingerprint database.

[0148] If the characteristics of the second parameter successfully match the signal fingerprint in the signal fingerprint database, the signal fingerprint module can determine that the electronic device is about to enter a weak signal location, and can then execute S308A. If the characteristics of the second parameter fail to match the signal fingerprint in the signal fingerprint database, the signal fingerprint module can determine that the electronic device will not enter a weak signal location, and can then continue to slide the sliding window, matching the characteristics of the second parameter within a second preset time period in the new sliding window with the signal fingerprint in the signal fingerprint database.

[0149] Figure 7 This is a schematic diagram illustrating a scenario to which an embodiment of this application applies. (Refer to...) Figure 7Assuming the user is at location A at 10:00:00, the signal fingerprint module can match the features of the second parameter in the period from 9:59:44 to 10:00:00 (the sliding window can be from 9:59:44 to 10:00:04, where 9:59:44 to 10:00:00 is the first 16 seconds of the sliding window) with the signal fingerprints in the signal fingerprint database. If the matching result is unsuccessful, the signal fingerprint module can slide the sliding window as time progresses, matching the features of the second parameter in the period from 9:59:45 to 10:00:01 (the sliding window can be from 9:59:45 to 10:00:05) with the signal fingerprints in the database to obtain a matching result. If the matching result is still unsuccessful, the signal fingerprint module can continue to slide the sliding window, matching the features of the second parameter within a second preset time period in the sliding window with the signal fingerprints in the database. It should be understood that in this embodiment, the 1-second sliding of the sliding window is for illustrative purposes only, and this embodiment does not limit the way the sliding window slides.

[0150] Thus, if, when the user moves to position C, the second parameter feature within the second preset time period in the sliding window successfully matches the signal fingerprint in the signal fingerprint database, the signal fingerprint module can determine that the electronic device is about to enter a weak signal position. It should be understood that the weak signal position is position B, and position C is the point at which the device enters the weak signal position.

[0151] As in the above embodiment, the signal fingerprint module needs to match the second parameter features within a second preset time period in the sliding window with each signal fingerprint in the signal fingerprint database, resulting in a large computational load. To reduce the computational load of the signal fingerprint module and improve efficiency, in one embodiment, the second parameter of the electronic device may include the location of the electronic device. In this embodiment, referring to the description in S307 above, the signal fingerprint database may also store the location of the electronic device corresponding to each signal fingerprint. Thus, the signal fingerprint module can obtain the distance between the location of the electronic device and the location corresponding to each signal fingerprint. When the distance between the location of the electronic device and the first signal fingerprint is less than a preset distance, the signal fingerprint module matches the features of the second parameter within a second preset time period in the sliding window with the first signal fingerprint. The first signal fingerprint is a signal fingerprint from the signal fingerprint database.

[0152] In this embodiment, the signal fingerprint module responds to the distance between the location of the electronic device and the location corresponding to the signal fingerprint being less than a preset distance by matching the features of the second parameter within a second preset time period in the sliding window with the signal fingerprints in the signal fingerprint database. This avoids the signal fingerprint module needing to recalculate the features of the second parameter and each signal fingerprint, reducing the amount of computation and improving the efficiency of the signal fingerprint module.

[0153] S308A, the signal fingerprint module sends a weak signal alert to the AP via RIL.

[0154] If the characteristics of the second parameter within the second preset time period in the sliding window successfully match the signal fingerprint in the signal fingerprint database, the signal fingerprint module can determine that the electronic device is about to enter a weak signal location. The signal fingerprint module can then send a weak signal alert to the AP via RIL. The weak signal alert is used to indicate to the AP that the electronic device is about to enter a weak signal location, allowing the AP to adjust its data service execution strategy.

[0155] In response to a weak signal alert, the AP (Access Point) executes data services based on the application running in the foreground of the electronic device, using the corresponding policy of the application.

[0156] When an AP receives a weak signal alert, it can determine that an electronic device is about to enter a weak signal area. It can then detect the application running in the foreground of the electronic device and, based on the application running in the foreground, execute data services using the strategy corresponding to that application.

[0157] In one embodiment, the AP may include an Activity Manager Service (AMS) for managing the interfaces displayed on the electronic device. When the electronic device launches an application, switches applications, or switches interfaces within an application, the AMS can create interfaces, which are mapped to applications. In one embodiment, the AP can query the application to which the interface created by the AMS belongs to determine the application running in the foreground of the electronic device.

[0158] Alternatively, in one embodiment, the AP can query the application to which the foreground process belongs, and then use the application to which the foreground process belongs as the application running in the foreground of the electronic device. In this embodiment, there are no restrictions on the method by which the AP detects the application running in the foreground of the electronic device.

[0159] For video applications, if the AP detects that the application running in the foreground of an electronic device is a video application and that the electronic device is playing video, it can adopt a strategy such as "increasing the video buffer size" to continue playing the video. Specifically, if the AP detects that the amount of media stream data exceeds a data volume threshold, it can determine that the electronic device is playing video, and thus the AP can execute the "increasing the video buffer size" strategy.

[0160] In one embodiment, the AP can execute data services based on the application running in the foreground of the electronic device, using the corresponding strategy of the application. It should be understood that different applications employ different strategies for executing data services. Referring to Table 1 below, this embodiment exemplarily describes the strategies of the AP for executing data services in several applications; Table 1 does not enumerate all applications.

[0161] Table 1

[0162]

[0163] As shown in Table 1, for video applications, if the video buffer size is 10% (i.e., 10% of the total video size) before the AP receives a weak signal warning from the signal fingerprint module, the AP can increase the video buffer size to a preset value when it receives a weak signal warning from the signal fingerprint module. The preset value can be 30%.

[0164] Based on the description in S307, the signal fingerprint database can also store the first parameter of the electronic device corresponding to each signal fingerprint. In this embodiment, the weak signal prompt information may include the second parameter of the electronic device. In one embodiment, the AP can determine the specific value of increasing the video buffer size based on the target parameter in the second parameter of the electronic device. For example, taking RSRP as the target parameter, if the AP can store a mapping relationship between RSRP and the video buffer size, the AP can determine the value of increasing the video buffer size based on RSRP in the second parameter and the mapping relationship. It should be understood that the target parameter can be at least one second parameter, and the target parameter is preset.

[0165] For example, Table 2 shows the mapping relationship between RSRP and video buffer size:

[0166] Table 2

[0167]

[0168] Based on Table 2, in this embodiment, S309A can be replaced by S309B: In response to receiving a weak signal alert, the AP executes data services using the strategy corresponding to the application running in the foreground of the electronic device and the second parameter of the electronic device. Specifically, if the application running in the foreground of the electronic device is a video application, and the RSRP of the electronic device is a3, falling between "a1-a5", then the AP can increase the video buffer size by 40%. It should be understood that Tables 1 and 2 above are illustrative examples; in one embodiment, Tables 1 and 2 can be stored in the AP. Alternatively, in one embodiment, Tables 1 and 2 can be combined, as shown in Table 3 below; Table 3 can be stored in the AP.

[0169] Table 3

[0170]

[0171] For audio applications, the AP can use a strategy of increasing the audio buffer size to perform audio services, as described above for video applications.

[0172] For browser-based applications (such as news and social media applications), the application cache (AP) can cache the current page and the pages corresponding to all triggerable controls on that page. Cache of the current page means that the AP caches all elements on the current page. Elements can be images, text, controls, etc. Triggerable controls on the current page are those that the user can interact with. For example, if the current page includes control 1, and the user interacts with control 1, the current page of the electronic device can navigate to page 1. Therefore, the page corresponding to control 1 is page 1, and the AP can cache page 1.

[0173] Based on Table 3 above, for video and audio applications, the Access Point (AP) can execute data services by increasing caching based on the application running in the foreground of the electronic device and the device's secondary parameters. For browser applications, the AP can execute data services by pre-caching the user-browsed pages and all triggerable controls on the current page, without considering the device's secondary parameters. In other words, for target-type applications, the AP can execute data services using the application's corresponding strategy based on the application running in the foreground and the device's secondary parameters. Target-type applications can include video and audio applications, etc.

[0174] Reference Figure 7 Taking video playback on an electronic device as an example, when the user is at location A, the signal fingerprint module determines that the electronic device is not about to enter a weak signal area, and the electronic device can play the video smoothly. When the user moves to location C, the signal fingerprint module determines that the electronic device is about to enter a weak signal area, and the signal fingerprint module can send a weak signal warning message to the AP. In response to receiving the weak signal warning message, the AP can increase the video buffer size at location C. Because the electronic device has pre-buried more video, it can play the video smoothly when the user moves to location B.

[0175] In this embodiment, the signal fingerprint module can pre-learn a signal fingerprint database. Since the signal fingerprints in the database are all obtained based on the first parameters of the electronic device before it enters a weak signal location, the signal fingerprint module can detect whether the electronic device is about to enter a weak signal location based on the second parameters of the electronic device and the signal fingerprint database. This allows for prediction of whether the electronic device is about to enter a weak signal location, providing high timeliness. Furthermore, when the signal fingerprint module determines that the electronic device is about to enter a weak signal location, it can pre-adjust data service strategies based on the application in front of the electronic device, such as pre-increasing the video buffer size. This can avoid abnormal phenomena such as data service lag when the electronic device enters a weak signal location, improving the user experience.

[0176] As described in the above embodiments, an electronic device can build a signal fingerprint database based on its parameters through self-learning, and a method can be used to detect whether the electronic device is about to enter a weak signal location based on the signal fingerprint database. In the above embodiments, for the first location reached by the user, the electronic device cannot detect whether it is about to enter a weak signal location because it has not learned a signal fingerprint based on the parameters of the electronic device at that location through self-learning.

[0177] To address this issue, this application provides a data service processing method. Electronic devices from different users can interact with the cloud, reporting their own parameters to the cloud. The cloud then uses these parameters to self-learn and construct a signal fingerprint database, and uses this database to detect whether an electronic device is about to enter a weak signal location. Because a large number of electronic devices report to the cloud, the signal fingerprint database constructed by the cloud self-learning covers a wide range of locations, resulting in high accuracy in detecting whether an electronic device is about to enter a weak signal location.

[0178] In one embodiment, the cloud can be a server, or a cluster of multiple servers.

[0179] Figure 8 This is a flowchart illustrating another embodiment of the data service processing method provided in this application. (Refer to...) Figure 8 The data service processing method provided in this application embodiment may include:

[0180] S801, the electronic device acquires the first parameter of the electronic device.

[0181] As in the above embodiment, the communication protocol layer in the electronic device can collect the first parameters of the electronic device, which can be referred to in the relevant description in S301.

[0182] S802, the electronic device reports the first parameter to the cloud.

[0183] It should be understood that before the electronic device reports the first parameter to the cloud, it can execute S302-S304 as described above. Therefore, the first parameter reported by the electronic device to the cloud can be understood as the first parameter processed in S304 above.

[0184] S803, in response to the detection that the electronic device is in a weak signal location, generates a signal fingerprint based on the first parameter.

[0185] Based on the description in S306, the signal fingerprint module and / or AP can detect whether the electronic device is in a weak signal location. In one embodiment, in response to the signal fingerprint module and / or AP detecting that the electronic device is in a weak signal location, the electronic device can send a weak signal message to the cloud, indicating that the electronic device is in a weak signal location. In response to detecting that the electronic device has moved out of a weak signal location, the electronic device can send a weak signal cancellation message to the cloud.

[0186] In response to the prompts received from the electronic device, the cloud can determine that the electronic device is in a weak signal location. Upon determining that the electronic device is in a weak signal location, the cloud can generate a signal fingerprint based on the electronic device's first parameter, as described in section S306 above. It should be noted that the cloud can generate multiple signal fingerprints based on the first parameters of different electronic devices.

[0187] In one embodiment, if the cloud does not receive a weak signal cancellation message from the electronic device within a first preset time period after receiving the weak signal message, it can determine that the electronic device is in a weak signal position within the first preset time period. Then, the cloud can generate multiple signal fingerprints based on the first parameters of different electronic devices within a second preset time period before the first preset time period, as described in the relevant description in S306 above.

[0188] S804, based on signal fingerprinting, builds a signal fingerprint database in the cloud.

[0189] S804 can refer to the relevant description in S307. It should be noted that the signal fingerprint database built in the cloud includes multiple signal fingerprints, and different signal fingerprints can be obtained by the cloud based on the first parameters of different electronic devices.

[0190] In this embodiment, S805-S810 can also be executed in the cloud. It should be understood that S805-S810 and S801-S804 can be executed simultaneously, or S805-S810 can be executed after S801-S804. This embodiment does not impose any limitations on this.

[0191] S805, the electronic device acquires the second parameter of the electronic device.

[0192] S806, the electronic device reports the second parameter to the cloud.

[0193] S805 and S806 can be referenced from the relevant descriptions in S801 and S802.

[0194] S807, features of obtaining the second parameter from the cloud.

[0195] The characteristics of the second parameter obtained in the cloud are the same as those obtained by the signal fingerprint module, and can be referred to the relevant description in S306A.

[0196] In step S808, the cloud platform matches the features of the second parameter within the second preset time period in the sliding window with the signal fingerprint in the signal fingerprint database. If the match is successful, proceed to step S809; otherwise, slide the sliding window and proceed to step S808.

[0197] The method by which the cloud matches the features of the second parameter within the second preset time period in the sliding window with the signal fingerprint in the signal fingerprint database can be referenced from the method in S307A where the signal fingerprint module matches the features of the second parameter within the second preset time period in the sliding window with the signal fingerprint in the signal fingerprint database.

[0198] S809, the cloud sends a weak signal alert to the electronic device.

[0199] S810: In response to receiving a weak signal alert, the electronic device executes data services based on the application running in the foreground of the electronic device, using the strategy corresponding to the application.

[0200] For weak signal warning information, please refer to the relevant description in S308A; for S810, please refer to the relevant description in S309A.

[0201] In this embodiment, the electronic device can report its parameters to the cloud. The cloud can construct a signal fingerprint database based on the parameters of multiple electronic devices. Compared with the signal fingerprint database constructed by the electronic device based on its own parameters, the signal fingerprint database constructed by the cloud has more and richer signal fingerprints. When the electronic device reaches a position for the first time, the cloud can use the signal fingerprint constructed by the parameters of other electronic devices to detect whether the electronic device is about to enter a weak signal position. It has a wider range of applications and higher accuracy.

[0202] The structure of electronic devices can be referenced. Figure 2 In one embodiment, for an electronic device, reference is made to... Figure 9 The data service processing method provided in this application embodiment may include:

[0203] S901, Obtain the first parameter of the electronic device, which is related to the signal quality of the electronic device.

[0204] S901 can be referred to the relevant descriptions in S301A-S305A above. The first parameter in S901 can be understood as the processed second parameter in S305A. It should be understood that in the above embodiments, the parameter of obtaining the signal fingerprint from the signal fingerprint database is used as the first parameter, and the feature that matches the signal fingerprint is used as the feature of the second parameter. In S901-S904, the feature that matches the signal fingerprint is used as the feature of the first parameter, and the parameter of obtaining the signal fingerprint from the signal fingerprint database is used as the second parameter. The terms "first" and "second" are used only for the purpose of distinguishing descriptions and should not be construed as indicating or implying relative importance, nor should they be construed as indicating or implying order.

[0205] S902, based on the first parameter, obtain the characteristics of the first parameter.

[0206] S902 can be referred to the relevant description in S306A above. In one embodiment, the feature of the first parameter can be a feature vector, which can be referred to the relevant description in the above embodiments.

[0207] S903, the features of the first parameter within the first preset time period are matched with the signal fingerprint in the signal fingerprint database. The signal fingerprint is obtained based on the features of the second parameter before the electronic device is at the target position. The type of the second parameter is the same as the type of the first parameter. The signal quality at the target position is less than the preset signal quality.

[0208] S903 can be referred to in the relevant description in S307A above.

[0209] In one embodiment, the first parameter includes the location of the electronic device. In order to reduce the computational load of the electronic device, the electronic device can obtain the distance between the location of the electronic device and the location corresponding to the signal fingerprint, and then match the features of the first parameter within a first preset time period with the signal fingerprint whose distance is less than the preset distance. For details, please refer to the relevant description in the above embodiment.

[0210] S904, if the characteristics of the first parameter within the first preset time period successfully match the signal fingerprint in the signal fingerprint database, then the electronic device is controlled to use the strategy corresponding to the application running in the foreground of the electronic device to process the data service of the application.

[0211] S904 can refer to the relevant descriptions in S308A and S309A above. For example, if the application running in the foreground of the electronic device is a video application, and the electronic device detects that the application running in the foreground is a video application and the electronic device is playing a video, it can adopt a strategy such as "increasing the video buffer size" to play the video.

[0212] In one embodiment, the first parameter includes at least one of the following: reference signal received power, reference signal received quality, received signal strength indication, signal-to-interference-plus-noise ratio, and Doppler signal. The electronic device can control itself to process the application's data services according to the first parameter using a strategy corresponding to the application, as described in the above embodiments.

[0213] The principles and technical effects of the data service processing method provided in this application embodiment can be referred to the relevant descriptions in the above embodiments, and will not be repeated here.

[0214] In one embodiment, this application also provides an electronic device, which can be the electronic device or server described in the above embodiments. The electronic device may include a processor (e.g., CPU) and a memory. The memory may include high-speed random-access memory (RAM) and may also include non-volatile memory (NVM), such as at least one disk storage device. The memory can store various instructions for performing various processing functions and implementing the method steps of this application. Optionally, the electronic device involved in this application may further include a power supply, a communication bus, and a communication port. The communication port is used to enable communication between the electronic device and other peripherals. In this embodiment, the memory is used to store computer-executable program code, which includes instructions. When the processor executes the instructions, the instructions cause the processor of the electronic device to perform the actions in the above method embodiments. The implementation principle and technical effects are similar and will not be repeated here.

[0215] In one embodiment, the electronic device may include a display for displaying the interface of the electronic device.

[0216] It should be noted that the modules or components described in the above embodiments can be one or more integrated circuits configured to implement the above methods, such as one or more application-specific integrated circuits (ASICs), one or more digital signal processors (DSPs), or one or more field-programmable gate arrays (FPGAs), etc. Furthermore, when a module is implemented through processing element scheduler code, the processing element can be a general-purpose processor, such as a central processing unit (CPU) or other processors capable of calling program code, such as a controller. Additionally, these modules can be integrated together to implement a system-on-a-chip (SOC).

[0217] In the above embodiments, implementation can be achieved, in whole or in part, through software, hardware, firmware, or any combination thereof. When implemented in software, it can be implemented, in whole or in part, as a computer program product. A computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the flow or function according to the embodiments of this application is generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that integrates one or more available media. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., a solid-state disk (SSD)).

[0218] The term "multiple" in this document refers to two or more. The term "and / or" is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, or B alone. Furthermore, the character " / " in this document generally indicates an "or" relationship between the preceding and following related objects; in formulas, " / " indicates a "division" relationship. Additionally, it should be understood that in the description of this application, words such as "first" and "second" are used only for descriptive purposes and should not be construed as indicating or implying relative importance or order.

[0219] It is understood that the various numerical designations used in the embodiments of this application are merely for descriptive convenience and are not intended to limit the scope of the embodiments of this application.

[0220] It is understood that, in the embodiments of this application, the order of the above-mentioned process numbers does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.

Claims

1. A data service processing method, characterized in that, include: Obtain a first parameter of the electronic device, wherein the first parameter is related to the signal quality of the electronic device; Based on the first parameter, obtain the features of the first parameter; The features of the first parameter within a first preset time period are matched with the signal fingerprint in the signal fingerprint database. The signal fingerprint is obtained based on the features of the second parameter before the electronic device is at the target position. The type of the second parameter is the same as the type of the first parameter. The signal quality at the target position is less than the preset signal quality. If the features of the first parameter within the first preset time period successfully match the signal fingerprint in the signal fingerprint database, then the electronic device is controlled to use the strategy corresponding to the application running in the foreground of the electronic device to process the data services of the application.

2. The method according to claim 1, characterized in that, The first parameter is characterized by a feature vector, which is a vector composed of the first parameter.

3. The method according to claim 1, characterized in that, The signal fingerprint database includes at least one signal fingerprint, and the step of matching the features of the first parameter within a first preset time period with the signal fingerprint in the signal fingerprint database includes: Obtain the similarity between the features of the first parameter within the first preset time period and each signal fingerprint; The features of the first parameter within the first preset time period successfully match the signal fingerprint in the signal fingerprint database, including: If any of the similarities is greater than the preset similarity, then the match is considered successful.

4. The method according to any one of claims 1-3, characterized in that, The first parameter includes: the location of the electronic device; the signal fingerprint database includes: the location corresponding to the signal fingerprint, the location corresponding to the signal fingerprint is obtained based on the location in the second parameter; the step of matching the features of the first parameter within a first preset time period with the signal fingerprint in the signal fingerprint database includes: Obtain the distance between the location of the electronic device and the location corresponding to the signal fingerprint; The features of the first parameter within the first preset time period are matched with the signal fingerprints whose distance is less than the preset distance.

5. The method according to any one of claims 1-3, characterized in that, The first parameter includes at least one of the following: reference signal received power, reference signal received quality, received signal strength indication, signal-to-interference-plus-noise ratio, and Doppler signal. The control of the electronic device to use the strategy corresponding to the application running in the foreground of the electronic device to process the data services of the application includes: The electronic device is controlled to process the data services of the application according to the strategy corresponding to the application based on the first parameter.

6. The method according to any one of claims 1-3, characterized in that, The first parameter includes at least one of the following: reference signal received power, reference signal received quality, received signal strength indication, signal-to-interference-plus-noise ratio, Doppler signal, and the position of the electronic device.

7. The method according to any one of claims 1-3, characterized in that, The control of the electronic device to process the data services of the application running in the foreground of the electronic device using the corresponding strategy includes: The weak signal indication information is sent to the electronic device, which is used to instruct the electronic device to adopt the strategy corresponding to the application and process the data service of the application.

8. The method according to any one of claims 1-3, characterized in that, Before obtaining the first parameter of the electronic device, the method further includes: Obtain the second parameter; Based on the second parameter, obtain the features of the second parameter; In response to detecting that the electronic device is at the target location, a signal fingerprint is obtained based on the characteristics of the second parameter within the first preset time period; The signal fingerprint database is constructed based on the signal fingerprint.

9. The method according to claim 8, characterized in that, The step of obtaining a signal fingerprint based on the characteristics of a second parameter within the first preset time period in response to detecting that the electronic device is at the target location includes: In response to detecting that the electronic device is at the target location within a second preset time period, the signal fingerprint is obtained based on the characteristics of the second parameter within the first preset time period prior to the second preset time period.

10. The method according to claim 9, characterized in that, The second parameter is at least one, and detecting that the electronic device is at the target location within a second preset time period includes: If the target parameter in the second parameter is detected to be less than the threshold of the target parameter within the second preset time period, then the electronic device is determined to be at the target location.

11. The method according to claim 9, characterized in that, The detection that the electronic device is at the target location within a second preset time period includes: If an abnormality is detected in the foreground application of the electronic device within the second preset time period, the electronic device is determined to be at the target location.

12. The method according to claim 9, characterized in that, The detection that the electronic device is at the target location within a second preset time period includes: If the number of signal strength bars displayed on the interface of the electronic device is less than the preset number of bars within the second preset time period, then the electronic device is determined to be at the target location.

13. The method according to claim 9, characterized in that, The detection that the electronic device is at the target location within a second preset time period includes: If no weak signal cancellation message is received from the electronic device within the second preset time period after receiving a weak signal message from the electronic device, then the electronic device is determined to be at the target location. The weak signal message is sent by the electronic device when it detects that it is at the target location, and the weak signal cancellation message is sent by the electronic device when it detects that it has moved out of the target location.

14. The method according to any one of claims 9-13, characterized in that, The step of obtaining a signal fingerprint based on the features of the second parameter within the first preset time period includes: Cluster the features of the second parameter within the first preset time period to obtain at least one cluster, and each cluster is a signal fingerprint.

15. The method according to any one of claims 9-13, characterized in that, The second parameter includes the location of the electronic device. After acquiring the signal fingerprint, the method further includes: The center position of the electronic device in the second parameter within the first preset time period is taken as the position corresponding to the signal fingerprint; Store the location corresponding to the signal fingerprint.

16. The method according to any one of claims 9-13, characterized in that, The second parameter includes at least one of the following: reference signal received power, reference signal received quality, received signal strength indication, signal-to-interference-plus-noise ratio, and Doppler signal; after acquiring the signal fingerprint, it further includes: Store the second parameter within the first preset time period corresponding to the signal fingerprint.

17. A data service processing apparatus, characterized in that, include: The communication protocol layer is used to obtain the first parameters of the electronic device. The signal fingerprint module is used for: Based on the first parameter, obtain the features of the first parameter; The features of the first parameter within a first preset time period are matched with the signal fingerprint in the signal fingerprint database. The signal fingerprint is obtained based on the second parameter before the electronic device is in the target position. The type of the second parameter is the same as the type of the first parameter. If the features of the first parameter within the first preset time period successfully match the signal fingerprint in the signal fingerprint database, then the application processor (AP) controls the electronic device to use the strategy corresponding to the application running in the foreground of the electronic device to process the data services of the application.

18. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program or instructions that, when executed, implement the method as described in any one of claims 1-16.

19. A computer program product comprising a computer program or instructions, characterized in that, When the computer program or instructions are executed by a processor, they implement the method of any one of claims 1-16.

Citation Information

Patent Citations

  • Construction method for fingerprint database in WiFi indoor positioning system

    CN105338498A

  • Wireless channel 'fingerprint' characteristic using method based on cognitive radio technology

    CN105721079A