Sharing method of radio frequency front end, terminal device and computer readable storage medium
By allocating RF front-end resources for Cat.1 and Wifiscan tasks through a multi-mode management mechanism, the conflict between Cat.1 and Wifiscan in RF front-end configuration is resolved, achieving efficient coexistence and an optimized user experience.
Patent Information
- Application Number
- CN202211442860.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-17
- Publication Date
- 2025-12-12
- Estimated Expiration
- 2042-11-17
AI Technical Summary
Cat.1 and Wifiscan, as wireless communication technologies, conflict in their radio frequency front-end configurations and cannot work efficiently at the same time. Existing solutions may increase costs or affect user experience.
A multi-mode management mechanism is adopted, which allocates radio frequency front-end resources to Cat.1 and Wifiscan tasks through time allocation, realizes efficient time division multiplexing, ensures the priority of Cat.1 communication tasks, and executes Wifiscan search tasks during idle time periods.
It improves the efficiency of the RF front-end and the user experience, reduces resource waste, and optimizes the coexistence performance of Cat.1 and Wifiscan.
Smart Images

Figure CN115913275B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] Embodiments of the present application relate to the technical field of communication, in particular to a sharing method of a radio frequency front end, a terminal device and a computer readable storage medium. BACKGROUND
[0002] LTE UE-Category 1 (Cat.1 for short) is a classification of the wireless performance of a user terminal device under an LTE network, with an uplink peak rate of about 5Mbit / s and a downlink peak rate of about 10Mbit / s, which can meet the medium rate Internet of Things demand and voice demand. Cat.1 also has the characteristics of low cost and low power consumption, and is very suitable for application in the Internet of Things, so Cat.1 is highly concerned by communication operators, chip manufacturers, module manufacturers and physical network terminal manufacturers.
[0003] Considering that many Internet of Things terminals work in indoor scenarios and have location service requirements, but in indoor scenarios satellite signals are blocked by buildings and cannot be used for positioning by satellites, therefore wireless sniffing Wi-Fi scan positioning technology has emerged as the times require, and Internet of Things terminals on the market have basically supported Wi-Fi scan positioning.
[0004] However, Cat.1 and Wi-Fi scan both belong to wireless communication, and there is a demand for them to work at the same time, but the configuration requirements of the two for the radio frequency front end are different, and only one set of radio frequency front end configuration cannot meet the demand for Cat.1 and Wi-Fi scan to work at the same time. Either increase the cost and use two sets of radio frequency front ends to meet the coexistence of Cat.1 and Wi-Fi scan, or sacrifice the real-time performance and user experience of one of the two, and preempt the radio frequency front end according to the set priority. SUMMARY
[0005] Embodiments of the present application aim to provide a sharing method of a radio frequency front end, a terminal device and a computer readable storage medium, which uses a multi-mode management mechanism to allocate time for Cat.1 and Wi-Fi scan to use radio frequency front end resources, efficiently time-division multiplexes radio frequency front end resources, and improves the use efficiency of the radio frequency front end.
[0006] To solve the above technical problems, embodiments of the present application provide a sharing method of a radio frequency front end, comprising the following steps: when receiving a location service request information, establishing a Wi-Fi scan search task corresponding to the location service request information; detecting whether a first executable time period is allocated for a Cat.1 communication task; if it is detected that the first executable time period is allocated for the Cat.1 communication task, allocating a second executable time period for the Wi-Fi scan search task according to a time period other than the first executable time period and the location service request information; at a starting moment of the second executable time period, configuring a radio frequency front end of a terminal device into a Wi-Fi scan mode, executing the Wi-Fi scan search task, and releasing the radio frequency front end at an ending moment of the second executable time period.
[0007] Embodiments of the present application also provide a terminal device, comprising: a hardware layer and a software layer, the hardware layer has and only has one radio frequency front end, and the software layer comprises multi-mode management software, Cat.1 communication software, positioning application software and Wi-Fi scan software; the Cat.1 communication software is used for establishing a Cat.1 communication task when there is a Cat.1 communication demand; the multi-mode management software is used for allocating a first executable time period for the Cat.1 communication task after the Cat.1 communication task is established; the Cat.1 communication software is further used for configuring the radio frequency front end into a Cat.1 mode at a starting moment of the first executable time period, executing the Cat.1 communication task, and releasing the radio frequency front end at an ending moment of the first executable time period; the positioning application software is used for requesting the Wi-Fi scan software to establish a Wi-Fi scan search task corresponding to a location service request information after receiving the location service request information; the multi-mode management software is further used for detecting whether a first executable time period is allocated after the Wi-Fi scan search task is established, and allocating a second executable time period for the Wi-Fi scan search task according to a time period other than the first executable time period and the location service request information when it is detected that the first executable time period is allocated; and the Wi-Fi scan software is further used for configuring the radio frequency front end into a Wi-Fi scan mode at a starting moment of the second executable time period, executing the Wi-Fi scan search task, and releasing the radio frequency front end at an ending moment of the second executable time period.
[0008] Embodiments of the present application also provide a computer readable storage medium, which stores a computer program, and the computer program is executed by a processor to implement the above-mentioned sharing method of a radio frequency front end.
[0009] The embodiments of the present application provide a method for sharing a radio frequency front end, a terminal device and a computer readable storage medium. When receiving a location service request information, the terminal device first establishes a Wi-Fi scan search task corresponding to the received location service request information, then detects whether a first executable time period is allocated for a Cat.1 communication task, and if the first executable time period is detected to be allocated for the Cat.1 communication task, a second executable time period is allocated for the Wi-Fi scan search task according to a time period other than the first executable time period and the received location service request information. The radio frequency front end of the terminal device is configured as a Wi-Fi scan mode at a start time of the second executable time period, the established Wi-Fi scan search task is executed, and the radio frequency front end is released at an end time of the second executable time period. Considering that the Cat.1 and the Wi-Fi scan have different configuration requirements for the radio frequency front end, only one radio frequency front end configuration cannot meet the requirement that the Cat.1 and the Wi-Fi scan work simultaneously. The embodiments of the present application use a multi-mode management mechanism to allocate time for the Cat.1 communication task and the Wi-Fi scan search task to use the radio frequency front end resource, efficiently time-division multiplexes the radio frequency front end resource, improves the use efficiency of the radio frequency front end, and improves the user experience of the Cat.1 and the Wi-Fi scan.
[0010] In addition, after detecting whether the first executable time period is allocated for the Cat.1 communication task, the method further includes: if it is detected that the first executable time period is not allocated for the Cat.1 communication task, directly allocating the second executable time period for the Wi-Fi scan search task according to the location service request information. The present application gives priority to the execution of the Cat.1 communication task, that is, the Cat.1 communication task uses the radio frequency front end resource first. If the terminal device does not allocate the first executable time period for the Cat.1 communication task, it indicates that there is no Cat.1 communication requirement in the whole time period, and the whole time period is a time period that can be allocated. Therefore, the second executable time period can be directly allocated for the Wi-Fi scan search task according to the location service request information, and the user experience of the Wi-Fi scan is further improved.
[0011] In addition, the first executable time period is a plurality of time periods, and the second executable time period is a plurality of time periods. After the Wifiscan search task is allocated with the second executable time period, if a new Cat.1 communication demand is detected, a new Cat.1 communication task is established, and a current time is determined. If the current time is in the second executable time period, each second executable time period after the second executable time period in which the current time is located is cleared, and a total time length of each second executable time period after the second executable time period in which the current time is located is determined. According to the new Cat.1 communication demand, a plurality of third executable time periods are allocated to the new Cat.1 communication task on a time axis after the second executable time period in which the current time is located. According to a time period other than the plurality of third executable time periods and the total time length, a plurality of new second executable time periods are allocated to the Wifiscan search task. The application gives priority to the execution of the Cat.1 communication task. If there is a new Cat.1 communication task, the terminal device suspends the Wifiscan search task and executes the new Cat.1 communication task. At this time, if there is a second executable time period that has not been executed, the second executable time period needs to be completely cleared to make way for the new Cat.1 communication task. After the third executable time period is allocated to the new Cat.1 communication task, the new second executable time period is allocated to the Wifiscan search task, and the user experience of Cat.1 is further improved.
[0012] In addition, the first executable time period is a plurality of time periods, and the second executable time period is a plurality of time periods. After the Wifiscan search task is allocated with the second executable time period, if a new Cat.1 communication demand is detected, a new Cat.1 communication task is established, and a current time is determined. If the current time is in the second executable time period, each second executable time period after the second executable time period in which the current time is located is cleared, and a total time length of each second executable time period after the second executable time period in which the current time is located is determined. According to the new Cat.1 communication demand, a plurality of third executable time periods are allocated to the new Cat.1 communication task on a time axis after the second executable time period in which the current time is located. According to a time period other than the plurality of third executable time periods and the total time length, a plurality of new second executable time periods are allocated to the Wifiscan search task. The application gives priority to the execution of the Cat.1 communication task. If there is a new Cat.1 communication task, the terminal device suspends the Wifiscan search task and executes the new Cat.1 communication task. At this time, if there is a second executable time period that has not been executed, the second executable time period needs to be completely cleared to make way for the new Cat.1 communication task. After the third executable time period is allocated to the new Cat.1 communication task, the new second executable time period is allocated to the Wifiscan search task, and the user experience of Cat.1 is further improved.
[0013] Additionally, after the several third executable time periods are allocated for the new Cat.1 communication task, the method further comprises: configuring the radio frequency front end of the terminal device into Cat.1 mode at the start time of the third executable time period, executing the new Cat.1 communication task, and releasing the radio frequency front end at the end time of the third executable time period.
[0014] Additionally, the location service request information is location service request information sent by a target server to the terminal device, and the executing the Wifi scan search task specifically comprises searching for Wifi hotspot information around the terminal device. After the second executable time periods are allocated for the Wifi scan search task, the method further comprises: if the location service termination information sent by the target server to the terminal device is received, clearing the unexecuted second executable time periods, and determining that the Wifi scan search task is completed. The target server can confirm whether the positioning requirement can be met according to the received Wifi hotspot information. If the currently searched Wifi hotspot information can meet the positioning requirement, the target server can directly send the location service termination information to the terminal device, and the terminal device will not continue searching, thereby effectively reducing the waste of resources. BRIEF DESCRIPTION OF DRAWINGS
[0015] One or more embodiments are illustrated by way of example in the figures that form a part of this patent document. These illustrations are not intended to limit the application in any way.
[0016] Figure 1 is a flow of a sharing method of a radio frequency front end provided by an embodiment of the present application Figure One ;
[0017] Figure 2 is a schematic diagram of a terminal device executing a Wifi scan search task to search for Wifi hotspot information around the terminal device in an embodiment of the present application
[0018] Figure 3 is a flow of a sharing method of a radio frequency front end provided by another embodiment of the present application Figure Two ;
[0019] Figure 4 is a flow of a sharing method of a radio frequency front end provided by another embodiment of the present application Figure Three ;
[0020] Figure 5 is a flow of a sharing method of a radio frequency front end provided by another embodiment of the present application Figure Four ;
[0021] Figure 6 is a schematic diagram of a terminal device provided by another embodiment of the present application
[0022] Figure 7 is an interaction flow diagram between a hardware layer and a software layer of a terminal device provided in another embodiment of the present application. DETAILED DESCRIPTION
[0023] To make the objectives, technical solutions, and advantages of the embodiments of the present application clearer, the embodiments of the present application will be described in detail below with reference to the drawings. However, those skilled in the art can understand that, in the embodiments of the present application, many technical details are presented in order to make the readers better understand the present application. However, the technical solutions claimed by the present application can be implemented even without these technical details and based on various changes and modifications of the following embodiments. The division of the following embodiments is for the convenience of description, and should not constitute any limitation on the specific implementation of the present application, and the embodiments can be combined and referenced with each other on the premise of no contradiction.
[0024] Cat.1 and WiFi scan both belong to wireless communication, and both have the demand of working simultaneously, but the configuration demands of the radio frequency front end are different, and the demand of Cat.1 and WiFi scan working simultaneously cannot be met under a set of radio frequency front end configuration, and several solutions are proposed in the industry to solve this problem.
[0025] The first solution is to set two sets of radio frequency front ends in the terminal device to support Cat.1 and WiFi scan respectively, so as to meet the demand of Cat.1 and WiFi scan working simultaneously. This will greatly increase the volume of the terminal device, and at the same time, the cost of the terminal device will also increase.
[0026] The second solution is that Cat.1 and WiFi scan share a set of radio frequency front end, when there is a WiFi scan search task, the Cat.1 communication task is suspended, and when the WiFi scan search task is completed, the Cat.1 communication task is resumed. But this solution will interrupt the ongoing Cat.1 communication task, and the communication priority and real-time of Cat.1 are actually required to be higher, which will bring the user a bad use experience, at the same time, the Cat.1 communication task and the WiFi scan search task need to carry out multiple handshakes and interactions, and suspending the Cat.1 communication task will lead to more complex work flow, and the utilization rate of hardware resources of the terminal device is low.
[0027] The third is that Cat. 1 and Wifiscan share a set of radio frequency front ends. Once there is a Cat. 1 communication task requirement, the Wifiscan search task is immediately stopped, and the Cat. 1 communication task is executed, that is, the priority of the Cat. 1 communication task is higher than that of the Wifiscan search task. Even if the Wifiscan search task is using the radio frequency front end for communication, the Cat. 1 communication task will preempt the use of the radio frequency front end. However, considering that Cat. 1 communication task and Wifiscan search task need to perform multiple handshakes and interactions, frequently interrupting the Wifiscan search task will lead to more complex workflow, lower utilization of hardware resources of terminal equipment, and affect user experience.
[0028] To solve the above technical problem that only one radio frequency front end configuration cannot meet the demand of simultaneous work of Cat. 1 and Wifiscan, an embodiment of the present application proposes a radio frequency front end sharing method applied to a terminal device. The terminal device can be an Internet of Things terminal, a portable mobile device, and the like, which has both Cat. 1 communication demand and Wifiscan communication demand. The implementation details of the radio frequency front end sharing method of the embodiment will be described in detail below. The following content is only provided for the implementation details for easy understanding, and is not necessary for implementing the scheme.
[0029] The specific process of the radio frequency front end sharing method of the embodiment can be as shown in Figure 1 , which includes:
[0030] Step 101, when receiving the location service request information, establishing a Wifiscan search task corresponding to the location service request information.
[0031] In a specific implementation, the terminal device can receive the location service request information in real time. The location service request information is sent by the target server to the terminal device when the target server needs to obtain the location information of the terminal device. After receiving the location service request information, the terminal device can establish a Wifiscan search task corresponding to the location service request information.
[0032] In one example, the Wifiscan search task is to search for Wifi hotspot information around the terminal device. The location service request information can specify that the terminal device needs to search for Wifi hotspot information at a certain frequency point or several frequency points, and can also specify that the terminal device searches for several times at each frequency point.
[0033] In one example, the terminal device can obtain the location service request information sent by the target server to the terminal device itself in the Cat. 1 communication task.
[0034] Step 102, detecting whether there is a first executable time period allocated for the Cat. 1 communication task.
[0035] Specifically, after establishing the Wi-Fi scan search task corresponding to the location service request information, the terminal device can detect whether the terminal device has the first executable time period allocated for the Cat.1 communication task.
[0036] In a specific implementation, when the terminal device has the Cat.1 communication demand, the terminal device establishes the Cat.1 communication task, allocates the first executable time period for the established Cat.1 communication task on the time axis, the first executable time period can be several, after the allocation of the first executable time period is completed, the terminal device can wait for the arrival of the first executable time period, at the start time of the first executable time period, the terminal device configures the radio frequency front end to the Cat.1 mode, starts to execute the Cat.1 communication task, and releases the radio frequency front end at the end time of the first executable time period, until the next first executable time period arrives.
[0037] In a specific implementation, the terminal device detects whether the first executable time period is allocated for the Cat.1 communication task, that is, whether the time period allocated for the Cat.1 communication task on the time axis.
[0038] If it is detected that the first executable time period is allocated for the Cat.1 communication task, the terminal device allocates the second executable time period for the Wi-Fi scan search task according to the time period other than the first executable time period and the location service request information.
[0039] In a specific implementation, if the terminal device detects that the first executable time period is allocated for the Cat.1 communication task on the time axis, the terminal device can allocate the second executable time period for the Wi-Fi scan search task according to the time period other than the first executable time period and the location service request information, that is, the time period not allocated on the time axis is allocated to the Wi-Fi scan search task.
[0040] In an example, the terminal device allocates the first executable time period for the Cat.1 communication task, and the first executable time period is several, so that the time axis is spaced by several time periods, and the terminal device selects enough time periods from the spaced time periods as the second executable time period to allocate to the Wi-Fi scan search task.
[0041] At the start time of the second executable time period, the terminal device configures the radio frequency front end to the Wi-Fi scan mode, executes the Wi-Fi scan search task, and releases the radio frequency front end at the end time of the second executable time period.
[0042] In a specific implementation, after the terminal device allocates the second executable time period for the Wifi scan search task, the terminal device can continue to execute various allocated time periods on the time axis, when the second executable time period arrives, the terminal device configures the radio frequency front end of the terminal device to the Wifi scan mode at the start time of the second executable time period, executes the Wifi scan search task, and releases the radio frequency front end at the end time of the second executable time period.
[0043] In one example, the Wifi scan search task specifically searches for Wifi hotspot information around the terminal device in units of Wifi frequency points, and the Wifi hotspot information can include a service set identifier (SSID) of a Wifi hotspot, a signal strength of the Wifi hotspot, and a basic service set identifier (BSSID) of the Wifi hotspot, etc.
[0044] In one example, the terminal device searches for the Wifi hotspot information around the terminal device by executing the Wifi scan search task, which can be as shown in Figure 2 The terminal device can also send the searched Wifi hotspot information around the terminal device to a server that needs to obtain the terminal device location information in the Cat.1 communication task.
[0045] It is worth noting that the sharing method of the radio frequency front end proposed in the present application is not only applicable to sharing a set of radio frequency front ends between Cat.1 and Wifi scan, but also applicable to sharing a set of radio frequency front ends between LTE 4G and Wifi scan, sharing a set of radio frequency front ends between 5G and Wifi scan, etc.
[0046] In this embodiment, when receiving the location service request information, the terminal device first establishes a Wi-Fi scan search task corresponding to the received location service request information, and then detects whether a first executable time period is allocated for the Cat.1 communication task. If it is detected that the first executable time period is allocated for the Cat.1 communication task, a second executable time period is allocated for the Wi-Fi scan search task according to the time period except the first executable time period and the received location service request information. The radio frequency front end of the terminal device is configured in the Wi-Fi scan mode at the start time of the second executable time period, the established Wi-Fi scan search task is executed, and the radio frequency front end is released at the end time of the second executable time period. Considering that the Cat.1 and the Wi-Fi scan have different configuration requirements for the radio frequency front end, only one radio frequency front end configuration cannot meet the requirement that the Cat.1 and the Wi-Fi scan work simultaneously. In this embodiment, a multi-mode management mechanism is used to allocate the time for the Cat.1 communication task and the Wi-Fi scan search task to use the radio frequency front end resource, the radio frequency front end resource is efficiently time-division multiplexed, the use efficiency of the radio frequency front end is improved, and the user experience of the Cat.1 and the Wi-Fi scan is improved.
[0047] Another embodiment of the present application relates to a radio frequency front end sharing method applied to a terminal device. The implementation details of the radio frequency front end sharing method of this embodiment are specifically described below. The following details are provided for the convenience of understanding, and are not essential for implementing this solution. The specific process of the radio frequency front end sharing method of this embodiment can be as shown in Figure 3
[0048] Step 201: When receiving the location service request information, a Wi-Fi scan search task corresponding to the location service request information is established.
[0049] Step 202: Whether a first executable time period is allocated for the Cat.1 communication task is detected.
[0050] Steps 201 to 202 are substantially the same as steps 101 to 102, and will not be described here.
[0051] Step 203: If it is detected that the first executable time period is not allocated for the Cat.1 communication task, a second executable time period is directly allocated for the Wi-Fi scan search task according to the location service request information.
[0052] In a specific implementation, if the terminal device detects that no first executable time period is allocated for the Cat.1 communication task, it indicates that the terminal device currently does not need to perform Cat.1 communication, and the entire time axis is idle and can be allocated, at this time, the terminal device directly allocates a second executable time period for the Wifiscan search task according to the location service request information.
[0053] In one example, since the entire time axis is idle, the terminal device can directly demarcate a time period long enough as the second executable time period and allocate it to the Wifiscan search task.
[0054] Step 204, at the start time of the second executable time period, configure the radio frequency front end of the terminal device to the Wifiscan mode, perform the Wifiscan search task, and release the radio frequency front end at the end time of the second executable time period.
[0055] The step 204 is substantially the same as the step 104, and will not be described herein again.
[0056] In this embodiment, the terminal device gives priority to guaranteeing the execution of the Cat.1 communication task, that is, the Cat.1 communication task uses the radio frequency front end resource first. If the terminal device does not allocate a first executable time period for the Cat.1 communication task, it indicates that there is no Cat.1 communication demand in the entire time period, at this time, the entire time period is an allocatable time period, and the second executable time period can be directly allocated to the Wifiscan search task according to the location service request information, further improving the user experience of Wifiscan.
[0057] Another embodiment of the present application relates to a radio frequency front end sharing method applied to a terminal device. The implementation details of the radio frequency front end sharing method of this embodiment will be specifically described below. The following details are provided for the convenience of understanding, and are not necessary for implementing this solution. In this embodiment, the first executable time period is a plurality of time periods, and the second executable time period is also a plurality of time periods. The specific process of the radio frequency front end sharing method of this embodiment can be as shown in Figure 4 The radio frequency front end sharing method of this embodiment includes the following steps:
[0058] Step 301, when receiving the location service request information, establish a Wifiscan search task corresponding to the location service request information.
[0059] Step 302, detect whether a first executable time period is allocated for the Cat.1 communication task.
[0060] Step 303, if it is detected that no first executable time period is allocated for the Cat.1 communication task, directly allocate a second executable time period for the Wifiscan search task according to the location service request information.
[0061] Step 304, at the beginning time of the second executable time period, configure the radio frequency front end of the terminal device into a Wi-Fi scan mode, perform a Wi-Fi scan search task, and release the radio frequency front end at the end time of the second executable time period.
[0062] Steps 301 to 304 are substantially the same as steps 201 to 204, and will not be described here.
[0063] Step 305, if a new Cat.1 communication demand is detected, establish a new Cat.1 communication task, and determine a current time.
[0064] In a specific implementation, the terminal device can have a new Cat.1 communication demand at any time, and therefore the terminal device can monitor whether there is a new Cat.1 communication demand in real time, and establish a new Cat.1 communication task when a new Cat.1 communication demand is detected. The time when the new Cat.1 communication demand is detected is the current time, and the terminal device records the current time when the new Cat.1 communication task is established.
[0065] Step 306, if the current time is in the second executable time period, clear each second executable time period after the second executable time period in which the current time is located, and determine the total duration of each second executable time period after the second executable time period in which the current time is located.
[0066] In a specific implementation, the terminal device can detect whether the current time is in the second executable time period. If the current time is in the second executable time period, the terminal device can clear each second executable time period after the second executable time period in which the current time is located, and determine the total duration of each second executable time period after the second executable time period in which the current time is located. Based on this, the second executable time period in which the current time is located is not cleared, and the Wi-Fi scan search task can be performed in this time period, that is, the second executable time period being executed will not be interrupted. In order to ensure that the new Cat.1 communication task is performed preferentially, each second executable time period that has not been executed on the time axis needs to be cleared to make way for the new Cat.1 communication task.
[0067] In one example, if the current time is not in the second executable time period, the terminal device can clear each second executable time period after the current time.
[0068] Step 307, according to the new Cat.1 communication demand, allocate a plurality of third executable time periods for the new Cat.1 communication task on the time axis after the second executable time period in which the current time is located.
[0069] In a specific implementation, after the terminal device clears the second executable time periods after the second executable time period in which the current time point is located, the terminal device can allocate a plurality of third executable time periods for a new Cat.1 communication task on the time axis after the second executable time period in which the current time point is located according to a new Cat.1 communication requirement.
[0070] In one example, if there is no other second executable time period after the second executable time period in which the current time point is located, the terminal device can directly allocate a plurality of third executable time periods for a new Cat.1 communication task on the time axis after the second executable time period in which the current time point is located according to a new Cat.1 communication requirement, without the process of clearing.
[0071] Step 308: allocating a plurality of new second executable time periods for the Wi-Fi scan search task according to the time periods other than the plurality of third executable time periods and the total time length.
[0072] In a specific implementation, after the terminal device allocates a plurality of third executable time periods for a new Cat.1 communication task, the terminal device can allocate a plurality of new second executable time periods for the Wi-Fi scan search task on the time axis according to the time periods other than the plurality of third executable time periods and the total time length of the second executable time periods after the second executable time period in which the current time point is located.
[0073] In one example, if there is no other second executable time period after the second executable time period in which the current time point is located, it means that the Wi-Fi scan search task will be completed after the second executable time period ends, and at this time, the server can allocate a plurality of third executable time periods for a new Cat.1 communication task, without allocating new second executable time periods for the Wi-Fi scan search task.
[0074] In this embodiment, the terminal device gives priority to guaranteeing the execution of the Cat.1 communication task. If there is a new Cat.1 communication task, the terminal device suspends the Wi-Fi scan search task and executes the new Cat.1 communication task. At this time, if there is a second executable time period that has not been executed, it needs to be completely emptied to make room for the new Cat.1 communication task. After allocating third executable time periods for the new Cat.1 communication task, the terminal device allocates new second executable time periods for the Wi-Fi scan search task, further improving the user experience of Cat.1.
[0075] Another embodiment of the present application relates to a sharing method of a radio frequency front end, applied to a terminal device. The implementation details of the sharing method of the radio frequency front end are specifically explained as follows. The following implementation details are provided for the convenience of understanding, and are not necessary for implementing the present application. In the present embodiment, the first executable time period is several, and the second executable time period is also several. The specific process of the sharing method of the radio frequency front end can be as shown in Figure 5
[0076] Step 401, when receiving the location service request information, a Wifiscan search task corresponding to the location service request information is established.
[0077] Step 402, it is detected whether the first executable time period is allocated for the Cat.1 communication task.
[0078] Step 403, if it is detected that the first executable time period is not allocated for the Cat.1 communication task, the second executable time period is directly allocated for the Wifiscan search task according to the location service request information.
[0079] Step 404, at the start time of the second executable time period, the radio frequency front end of the terminal device is configured to the Wifiscan mode, the Wifiscan search task is executed, and the radio frequency front end is released at the end time of the second executable time period.
[0080] Step 405, if a new Cat.1 communication demand is detected, a new Cat.1 communication task is established, and the current time is determined.
[0081] The steps 401 to 405 are substantially the same as the steps 301 to 305, and thus are not described herein.
[0082] Step 406, the total length of each second executable time period which has not been executed is determined, and the time axis after the current time is emptied.
[0083] Step 407, according to the new Cat.1 communication demand, several third executable time periods are allocated for the new Cat.1 communication task.
[0084] In the specific implementation, as long as the terminal device detects the new Cat.1 communication demand, the time axis is emptied after the new Cat.1 communication task is established. At this time, the time axis of the terminal device is all idle, and can be allocated at will. The terminal device directly allocates several third executable time periods for the new Cat.1 communication task according to the new Cat.1 communication demand.
[0085] At step 408, a plurality of new second executable time periods are allocated for the Wifiscan search task according to time periods other than the plurality of third executable time periods and the total time length.
[0086] At step 408, the process is substantially the same as step 308, which will not be described again.
[0087] In this embodiment, in order to further ensure that the Cat.1 communication task is given priority, the terminal device will not wait for the end of the second executable time period being executed after a new Cat.1 communication demand is generated, but will directly clear the time axis and allocate a third executable time period for the new Cat.1 communication task, thereby further improving the user experience of Cat.1.
[0088] In another embodiment, after the terminal device allocates a plurality of third executable time periods for the new Cat.1 communication task, the terminal device can continue to perform the task on the time axis, and at the start time of the third executable time period, the radio frequency front end of the terminal device is configured in the Cat.1 mode, the new Cat.1 communication task is executed, and at the end time of the third executable time period, the radio frequency front end is released.
[0089] In another embodiment, the location service request information is location service request information sent by a target server to the terminal device, and the terminal device performing the Wifiscan search task specifically refers to searching for Wifi hotspot information around the terminal device. After the terminal device allocates a second executable time period for the Wifiscan search task, the terminal device can receive location service termination information sent by the target server to the terminal device in real time. If the terminal device receives the location service termination information sent by the target server to the terminal device, the terminal device can clear the unexecuted second executable time periods and determine that the Wifiscan search task is completed.
[0090] In this embodiment, the target server can confirm whether the positioning demand can be met according to the received Wifi hotspot information. If the currently searched Wifi hotspot information can meet the positioning demand, the target server can directly send location service termination information to the terminal device, and the terminal device will not continue to search, thereby effectively reducing the waste of resources.
[0091] The step division of the above methods is only for the purpose of clear description. In actual implementation, one step can be combined or some steps can be split and decomposed into multiple steps, as long as the same logical relationship is included, which is within the protection scope of the patent. Irrelevant modifications or irrelevant designs can be added to the algorithm or the process, but the core design of the algorithm and the process is within the protection scope of the patent.
[0092] Another embodiment of the present application relates to a terminal device, and the implementation details of the terminal device of the present embodiment are specifically described as follows. The following implementation details are provided for the convenience of understanding, and are not essential to implement the present solution. The schematic diagram of the terminal device of the present embodiment can be as shown in Figure 6 The terminal device includes a hardware layer and a software layer. The hardware layer has and only has one radio frequency front end 41. The software layer includes multimode management software 42, Cat.1 communication software 43, positioning application software 44 and Wi-Fi scan software 45.
[0093] The Cat.1 communication software 43 is configured to establish a Cat.1 communication task when there is a Cat.1 communication demand.
[0094] The multimode management software 42 is configured to assign a first executable time period to the Cat.1 communication task after the establishment of the Cat.1 communication task.
[0095] The Cat.1 communication software 43 is further configured to configure the radio frequency front end 41 into a Cat.1 mode at the start time of the first executable time period, execute the Cat.1 communication task, and release the radio frequency front end 41 at the end time of the first executable time period.
[0096] The positioning application software 44 is configured to request the Wi-Fi scan software 45 to establish a Wi-Fi scan search task corresponding to the location service request information after receiving the location service request information.
[0097] The multimode management software 42 is further configured to detect whether the first executable time period is assigned after the establishment of the Wi-Fi scan search task, and assign a second executable time period to the Wi-Fi scan search task according to the time period other than the first executable time period and the location service request information when it is detected that the first executable time period has been assigned.
[0098] The Wi-Fi scan software 45 is further configured to configure the radio frequency front end 41 into a Wi-Fi scan mode at the start time of the second executable time period, execute the Wi-Fi scan search task, and release the radio frequency front end 41 at the end time of the second executable time period.
[0099] In one example, the positioning application software 44 is specifically configured to send a start request information to the Wifi scan software 45 to wake up the Wifi scan software 45 after receiving the location service request information, and the Wifi scan software 45 is specifically configured to establish a Wifi scan search task corresponding to the location service request information after being woken up, and send a Wifi scan allocation request information to the multimode management software 42, and the multimode management software 42 is specifically configured to detect whether a first executable time period has been allocated after receiving the Wifi scan allocation request information, and allocate a second executable time period for the Wifi scan search task according to the first executable time period and the location service request information when it is detected that the first executable time period has been allocated, and send the second executable time period to the Wifi scan software 45.
[0100] In one example, the positioning application software 44 is further configured to send a stop request information to the Wifi scan software 45 after determining that the Wifi scan search task has been completed, and the Wifi scan software 45 is further configured to send a Wifi scan clearing request information to the multimode management software 42 after receiving the stop request information, and the multimode management software 42 is further configured to clear each second executable time period that has not been executed according to the Wifi scan clearing request information.
[0101] In one example, the interaction between the hardware layer and the software layer of the terminal device can be as shown in the figure Figure 7 The AFE is a radio frequency front end and is the only one in the hardware layer, and the hardware layer is further provided with a digital signal processing hardware, and the digital signal processing hardware and the radio frequency front end jointly complete the signal processing on the hardware layer, the Cat.1 SW is Cat.1 communication software, and is responsible for completing the data transmission and reception of the Cat.1 communication service, the Wifi_main is the Wifiscan software, and is responsible for searching the surrounding Wifi hotspot information, the WifiAPP is the positioning application software, and is responsible for initiating and stopping the Wifiscan search task, collecting the search results and reporting to the cloud server, and the Multimode is the multimode management software, and is responsible for allocating executable time periods for the Cat.1 communication task and the Wifiscan search task.
[0102] It is worth mentioning that each module involved in the embodiment is a logical module, and in actual application, one logical unit can be one physical unit, or a part of one physical unit, or realized by a combination of multiple physical units. In addition, in order to highlight the innovative part of the present application, units not closely related to solving the technical problems proposed in the present application are not introduced in the embodiment, but this does not mean that there are no other units in the embodiment.
[0103] Another embodiment of the present application relates to a computer readable storage medium storing a computer program. The computer program is executed by a processor to implement the method embodiments.
[0104] That is, those skilled in the art can understand that all or part of the steps in the above-mentioned method embodiments can be completed by instructing the relevant hardware through a program, the program is stored in a storage medium, and includes a plurality of instructions for causing a device (which can be a single-chip microcomputer, a chip, etc.) or a processor to execute all or part of the steps of the method described in each embodiment of the present application. The foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and various media that can store program codes.
[0105] Those skilled in the art can understand that the above-mentioned embodiments are specific embodiments for implementing the present application, and in actual applications, various changes can be made in form and details without departing from the spirit and scope of the present application.
Claims
1. A method of sharing of a radio frequency front end, characterized by, The application is applied to a terminal device, comprising: when receiving a location service request information, establishing a Wi-Fi scan search task corresponding to the location service request information; detecting whether a first executable time period is allocated for a Cat.1 communication task; if it is detected that the first executable time period is allocated for the Cat.1 communication task, allocating a second executable time period for the Wi-Fi scan search task according to a time period other than the first executable time period and the location service request information; configuring a radio frequency front end of the terminal device into a Wi-Fi scan mode at a starting time of the second executable time period, executing the Wi-Fi scan search task, and releasing the radio frequency front end at an ending time of the second executable time period; wherein, after the detection of whether the first executable time period is allocated for the Cat.1 communication task, further comprising: if it is detected that the first executable time period is not allocated for the Cat.1 communication task, directly allocating a second executable time period for the Wi-Fi scan search task according to the location service request information; wherein, the first executable time period is a plurality of, the second executable time period is a plurality of, after the allocation of the second executable time period for the Wi-Fi scan search task, further comprising: if a new Cat.1 communication demand is detected, establishing a new Cat.1 communication task and determining a current time; if the current time is in a second executable time period, clearing each second executable time period after the second executable time period where the current time is located and determining a total time length of each second executable time period after the second executable time period where the current time is located; allocating a plurality of third executable time periods for the new Cat.1 communication task on a time axis after the second executable time period where the current time is located according to the new Cat.1 communication demand; allocating a plurality of new second executable time periods for the Wi-Fi scan search task according to a time period other than the plurality of third executable time periods and the total time length.
2. The sharing method of a radio frequency front end according to claim 1, characterized by, after the allocation of the plurality of third executable time periods for the new Cat.1 communication task, further comprising: configuring the radio frequency front end of the terminal device into a Cat.1 mode at a starting time of the third executable time period, executing the new Cat.1 communication task, and releasing the radio frequency front end at an ending time of the third executable time period.
3. The sharing method of a radio frequency front end according to claim 1, characterized by, The location service request information is location service request information sent by a target server to the terminal device, and the execution of the Wi-Fi scan search task specifically refers to searching for Wi-Fi hotspot information around the terminal device, after the allocation of the second executable time period for the Wi-Fi scan search task, further comprising: if receiving location service termination information sent by the target server to the terminal device, clearing each second executable time period that has not been executed and determining that the Wi-Fi scan search task has been completed.
4. A terminal device, characterized by comprising: The terminal device comprises a hardware layer and a software layer, the hardware layer has and only has one radio frequency front end, and the software layer comprises multimode management software, Cat.1 communication software, positioning application software and Wi-Fi scan software; The Cat.1 communication software is used for establishing a Cat.1 communication task when there is a Cat.1 communication demand; The multimode management software is used for allocating a first executable time period for the Cat.1 communication task after the Cat.1 communication task is established; The Cat.1 communication software is further used for configuring the radio frequency front end into a Cat.1 mode at a starting moment of the first executable time period, executing the Cat.1 communication task, and releasing the radio frequency front end at an ending moment of the first executable time period; The positioning application software is used for requesting the Wi-Fi scan software to establish a Wi-Fi scan search task corresponding to the location service request information after receiving the location service request information; The multimode management software is further used for detecting whether a first executable time period is allocated after the Wi-Fi scan search task is established, and allocating a second executable time period for the Wi-Fi scan search task according to a time period other than the first executable time period and the location service request information when it is detected that the first executable time period has been allocated; The Wi-Fi scan software is further used for configuring the radio frequency front end into a Wi-Fi scan mode at a starting moment of the second executable time period, executing the Wi-Fi scan search task, and releasing the radio frequency front end at an ending moment of the second executable time period; The first executable time period is a plurality of, the second executable time period is a plurality of, and the multimode management software is further used for: After the second executable time period is allocated for the Wi-Fi scan search task, if a new Cat.1 communication demand is detected, a new Cat.1 communication task is established, and a current moment is determined; If the current moment is in a second executable time period, each second executable time period after the second executable time period in which the current moment is located is cleared, and a total duration of each second executable time period after the second executable time period in which the current moment is located is determined; According to the new Cat.1 communication demand, a plurality of third executable time periods are allocated for the new Cat.1 communication task on a time axis after the second executable time period in which the current moment is located; According to a time period other than the plurality of third executable time periods and the total duration, a plurality of new second executable time periods are allocated for the Wi-Fi scan search task.
5. The terminal device according to claim 4, characterized by The positioning application software is specifically used for sending opening request information to the Wi-Fi scan software to wake up the Wi-Fi scan software after receiving the location service request information; The Wifiscan software is specifically configured to establish a Wifiscan search task corresponding to the location service request information after being woken up, and send Wifiscan allocation request information to the multi-mode management software; The multi-mode management software is specifically configured to, after receiving the Wifiscan allocation request information, detect whether a first executable time period is allocated, and when it is detected that the first executable time period is allocated, allocate a second executable time period for the Wifiscan search task according to the first executable time period and the location service request information, and issue the second executable time period to the Wifiscan software.
6. The terminal device according to claim 5, characterized by The positioning application software is further configured to send a closing request information to the Wifiscan software after determining that the Wifiscan search task is completed; The Wifiscan software is further configured to send Wifiscan clearing request information to the multi-mode management software after receiving the closing request information; The multi-mode management software is further configured to clear each second executable time period that has not been executed according to the Wifiscan clearing request information.
7. A computer readable storage medium storing a computer program, characterized in that, The computer program is executed by a processor to implement the sharing method of the radio frequency front end according to any one of claims 1 to 3.
Citation Information
Patent Citations
MoCA-WiFi multiplexing
CN103650484A
Radio frequency module distribution method, wireless communication device and storage medium
CN111953376A