A wireless sharing method for cross-device resources and a mobile terminal

By configuring active locations and building a shared resource pool on mobile terminals, and monitoring resource usage events, wireless sharing of resources across devices is achieved, solving the problems of idle resources and insufficient processing power of smart devices, and improving overall computing power.

CN118828365BActive Publication Date: 2024-12-17SHEN ZHEN SHI LIAN HE TONG CHUANG KE JI YOU XIAN GONG SI
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202411305991.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-09-19
Publication Date
2024-12-17
Estimated Expiration
2044-09-19

AI Technical Summary

Technical Problem

The problem of both excess and insufficient performance of smart devices leads to idle device resources and insufficient processing power of individual devices.

Method used

By configuring the active locations and regions of mobile terminals, a shared resource pool is built, resource usage events are monitored, and resources are shared according to event requests, thereby realizing wireless sharing of resources across devices.

Benefits of technology

By effectively utilizing idle equipment resources, the problems of idle equipment resources and insufficient processing power of individual intelligent devices are solved, thereby improving the overall computing power.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118828365B_ABST
    Figure CN118828365B_ABST
Patent Text Reader

Abstract

The present invention proposes a wireless sharing method and a mobile terminal for cross-device resources. By configuring the active location of the mobile terminal and the area range of the active location, it is determined whether the mobile terminal is located in the area range of the active location. When the mobile terminal is located in the area range of any active location, the mobile terminal is configured as a resource sharing device of the active location. The resource sharing devices of the active location share idle resources by building a shared resource pool, and monitor resource usage events of the mobile terminal. The resource usage event is an event that triggers a resource request when an application is running in the background, or an event that triggers a resource request according to a user's operation in the foreground application. Shared resources are requested from the shared resource pool according to the resource usage event, so that idle device resources can be utilized, effectively solving the problems of idle device resources and insufficient processing power of a single smart device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of Internet technology, and in particular to a wireless sharing method for cross-device resources and a mobile terminal. Background Art

[0002] With the development of smartphone-related technologies, the issue of excess smartphone performance has become a hot topic. However, users who need to run large-scale games or need to run artificial intelligence models locally are troubled by the insufficient performance of smartphones, resulting in two common and extreme scenarios in the use of smartphones. On the one hand, the excess processing power of smartphones under conventional applications is idle for a long time, especially in a home or office environment, where there are often a large number of various types of smart devices that are idle for a long time; on the other hand, users with large computing needs are faced with the problem of insufficient performance of a single smart device, which is difficult to provide the required computing power. Summary of the invention

[0003] Based on the above problems, the present invention proposes a wireless sharing method and mobile terminal for cross-device resources, which can utilize idle device resources and effectively solve the problems of idle device resources and insufficient processing capacity of a single smart device.

[0004] In view of this, a first aspect of the present invention proposes a wireless sharing method for cross-device resources, comprising:

[0005] Configuring active locations of the mobile terminal and the area range of the active locations, wherein the active locations are geographical areas where the mobile terminal frequently and for a long time stays;

[0006] Determining whether the mobile terminal is located in the area of ​​the active location;

[0007] When the mobile terminal is within the area of ​​any active location, the mobile terminal is configured as a resource sharing device of the active location, and the resource sharing devices of the active location share idle resources by building a shared resource pool;

[0008] Monitoring resource usage events of the mobile terminal, wherein the resource usage events are events that trigger resource requests when an application is running in the background, or events that trigger resource requests when a foreground application is running according to a user's operation;

[0009] A shared resource is requested from the shared resource pool according to the resource usage event.

[0010] Furthermore, the step of configuring the mobile terminal as a resource sharing device of the active location specifically includes:

[0011] Connecting the mobile terminal to a wireless network at the active location, where the wireless network is a local area network provided by a wireless network hotspot device installed at the active location;

[0012] Scanning the shared resource broadcast of the wireless network to determine whether there is a shared resource pool that has been constructed at the active location, the shared resource broadcast including a list of resource sharing devices corresponding to the shared resource pool;

[0013] When there is a built shared resource pool at the active location, generating idle resource data of the local location;

[0014] Parsing a resource sharing device list in the shared resource broadcast, wherein the resource sharing device list includes wireless communication addresses of each resource sharing device;

[0015] The idle resource data is exchanged with each resource sharing device in the resource sharing device list based on the wireless communication address.

[0016] Furthermore, the step of generating the idle resource data of the local computer specifically includes:

[0017] Determining daily resource usage of the mobile terminal ;

[0018] Obtain the maximum available resource of the mobile terminal and pre-configured resource reservations ;

[0019] Calculate the idle resource amount of the mobile terminal:

[0020] ,

[0021] in Standard resource sharing unit The calibration quantity satisfies ,and The standard resource sharing unit An integer multiple of ;

[0022] The amount of idle resources corresponding to the mobile terminal The idle resources are configured as occupied;

[0023] The amount of idle resources corresponding to the mobile terminal The idle resources are divided into Standard resource sharing units, each of which is the size of a standard resource sharing unit. ;

[0024] Configuring a local unique identity of each standard resource sharing unit in the mobile terminal;

[0025] The local unique identification of each standard resource unit is packaged to generate the idle resource data.

[0026] The local unique identification of each standard resource unit is packaged to generate the idle resource data.

[0027] Further, determining the daily resource usage of the mobile terminal The steps specifically include:

[0028] Acquire resource usage data of the mobile terminal over a period of time in the past;

[0029] Generate a resource usage-time curve of the mobile terminal in the past period of time according to the resource usage data ;

[0030] Get pre-configured resource usage intervals;

[0031] Determine the peak point of the resource usage-time curve of the mobile terminal falling into each resource usage interval ,in 1 to A positive integer between 1 to A positive integer between is the number of resource usage intervals, For the The number of peak points in a resource usage interval;

[0032] Calculate the cumulative peak envelope area for each resource usage interval:

[0033] ,

[0034] in and The resource usage-time curve With two time points where the lower bounds of resource usage intervals intersect, and ;

[0035] The interval number corresponding to the resource usage interval with the largest cumulative peak envelope area is determined as , making the The cumulative peak envelope area of ​​each resource usage interval satisfies:

[0036] ;

[0037] The first The peak point number of the peak point with the largest resource usage in the resource usage interval is determined as , making the The resource usage interval The resource usage at each peak point satisfies:

[0038] ;

[0039] Will make the The resource usage interval Resource usage at peak points Determine the daily resource usage for:

[0040] .

[0041] Further, after the step of exchanging idle resource data with each resource sharing device in the resource sharing device list, the method further includes:

[0042] Obtain the number of times each resource sharing device in the resource sharing device list connects to the wireless network And the duration of each connection ,in 1 to A positive integer between 1 to A positive integer between is the number of resource sharing devices in the resource sharing device list, For the Resource sharing device the duration of the connection when connecting to the wireless network for the first time;

[0043] Based on the number of times each resource sharing device connects to the wireless network And the duration of each connection Calculate the activity of the corresponding resource sharing device in the active location corresponding to the wireless network:

[0044] ;

[0045] According to the activity of the resource sharing device at the active location A broadcast signal sending device of the wireless network is determined through negotiation, so that the broadcast signal sending device periodically sends a shared resource broadcast in the wireless network.

[0046] Furthermore, the step of requesting a shared resource from the shared resource pool according to the resource usage event specifically includes:

[0047] Splitting the resource calling task of the resource usage event into a plurality of parallel subtasks, wherein the parallel subtasks are tasks that have no temporal correlation with each other;

[0048] Determine the number of standard resource sharing units to be used by each parallel subtask ,in 1 to A positive integer between The number of parallel subtasks obtained by splitting the resource call task;

[0049] Requesting shared resources from the shared resource pool in units of parallel subtasks, so that the shared resource pool allocates standard resource sharing units with the same device number to the same parallel subtask;

[0050] Marking the allocated standard resource sharing unit as locked in the shared resource pool;

[0051] After any parallel subtask is executed, the corresponding standard resource sharing unit is marked as available in the shared resource pool.

[0052] Furthermore, the number of standard resource sharing units required for each parallel subtask is determined. After the steps, it also includes:

[0053] Obtain the number of standard resource sharing units shared by each resource sharing device in the resource sharing device list ,in 1 to A positive integer between ;

[0054] Determine the maximum number of resource requirements for the parallel subtasks:

[0055] ;

[0056] Determine the maximum resource sharing quantity shared by each resource sharing device in the resource sharing device list:

[0057] ;

[0058] Compare the maximum resource requirements and the maximum number of resource shares size;

[0059] when When executing the step of requesting shared resources from the shared resource pool in units of parallel subtasks.

[0060] Furthermore, the step of requesting shared resources from the shared resource pool in units of parallel subtasks specifically includes:

[0061] Get the The number of standard resource sharing units required for parallel subtasks ;

[0062] Determine a A sequence of resource sharing devices;

[0063] Determine a target resource sharing device in the resource sharing device sequence so that the number of standard resource sharing units shared by the target resource sharing device is the minimum value of the number of standard resource sharing units shared by each resource sharing device in the resource sharing device sequence;

[0064] Allocate from the standard resource sharing unit shared by the target resource sharing device Standard resource sharing unit for the parallel subtasks.

[0065] Further, a device is determined in the resource sharing device list. The resource sharing device sequence steps include:

[0066] Calculate the number of remaining standard resource sharing units of the mobile terminal:

[0067] ,

[0068] The remaining standard resource sharing units are standard resource sharing units in an available state among the standard resource sharing units shared by the mobile terminal. A standard resource sharing unit in a locked state among the standard resource sharing units shared by the mobile terminal;

[0069] Compare the number of remaining standard resource sharing units With The number of standard resource sharing units required for parallel subtasks size;

[0070] when When the mobile terminal shares the standard resource, the shared resource is allocated from the shared standard resource unit. Standard resource sharing unit for the parallel subtasks.

[0071] A second aspect of the present invention provides a mobile terminal, comprising a processor and a memory, wherein the processor executes a computer program stored in the memory to implement the wireless sharing method of cross-device resources as described in any one of the first aspects of the present invention.

[0072] The present invention proposes a wireless sharing method and a mobile terminal for cross-device resources. By configuring the active location of the mobile terminal and the area range of the active location, it is determined whether the mobile terminal is located in the area range of the active location. When the mobile terminal is located in the area range of any active location, the mobile terminal is configured as a resource sharing device of the active location. The resource sharing devices of the active location share idle resources by building a shared resource pool, and monitor resource usage events of the mobile terminal. The resource usage event is an event that triggers a resource request when an application is running in the background, or an event that triggers a resource request according to a user's operation in the foreground application. Shared resources are requested from the shared resource pool according to the resource usage event, so that idle device resources can be utilized, effectively solving the problems of idle device resources and insufficient processing power of a single smart device. BRIEF DESCRIPTION OF THE DRAWINGS

[0073] Figure 1 It is a flowchart of a method for wireless sharing of cross-device resources provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0074] In order to more clearly understand the above-mentioned purpose, features and advantages of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be noted that the embodiments of the present application and the features in the embodiments can be combined with each other without conflict.

[0075] In the following description, many specific details are set forth to facilitate a full understanding of the present invention. However, the present invention may also be implemented in other ways different from those described herein. Therefore, the protection scope of the present invention is not limited to the specific embodiments disclosed below.

[0076] In the description of the present invention, the term "multiple" refers to two or more. Unless otherwise clearly defined, the orientation or positional relationship indicated by the terms "upper", "lower", etc. is based on the orientation or positional relationship shown in the drawings. It is only for the convenience of describing the present invention and simplifying the description, and does not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation. Therefore, it cannot be understood as a limitation of the present invention. The terms "connection", "installation", "fixation", etc. should be understood in a broad sense. For example, "connection" can be a fixed connection, a detachable connection, or an integral connection; it can be directly connected or indirectly connected through an intermediate medium. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to the specific circumstances. In addition, the terms "first", "second", etc. are only used for descriptive purposes, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first", "second", etc. can explicitly or implicitly include one or more of the features. In the description of the present invention, unless otherwise specified, the meaning of "multiple" is two or more.

[0077] In the description of this specification, the description of the terms "one embodiment", "some implementations", "specific embodiments", etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in any one or more embodiments or examples in a suitable manner.

[0078] A method for wirelessly sharing cross-device resources and a mobile terminal provided according to some embodiments of the present invention are described below with reference to the accompanying drawings.

[0079] like Figure 1 As shown, the first aspect of the present invention proposes a wireless sharing method of cross-device resources, including:

[0080] Configuring active locations of the mobile terminal and the area range of the active locations, wherein the active locations are geographical areas where the mobile terminal frequently and for a long time stays;

[0081] Determining whether the mobile terminal is located in the area of ​​the active location;

[0082] When the mobile terminal is within the area of ​​any active location, the mobile terminal is configured as a resource sharing device of the active location, and the resource sharing devices of the active location share idle resources by building a shared resource pool;

[0083] Monitoring resource usage events of the mobile terminal, wherein the resource usage events are events that trigger resource requests when an application is running in the background, or events that trigger resource requests when a foreground application is running according to a user's operation;

[0084] A shared resource is requested from the shared resource pool according to the resource usage event.

[0085] Specifically, the active location may be the home address or office address of the owner of the mobile terminal, that is, the user of the mobile terminal, or other places where the user frequently visits and stays for a long time. The regional range of the active location may be a range independently configured for each active location, or may be a range included in a circular geographical area corresponding to a central position coordinate corresponding to each active location and a uniformly configured distance as a radius. In the technical solutions of some embodiments of the present invention, the location of a network hotspot of a designated wireless network may be used as the active location, and the regional range of the active location may be determined by the wireless signal coverage range of the wireless network.

[0086] Correspondingly, in the step of determining whether the mobile terminal is located in the area of ​​the active location, it can be determined by the positioning information of the mobile terminal, or by whether the mobile terminal is connected to a network hotspot of a designated wireless network to determine whether the mobile terminal is located in the area of ​​the active location.

[0087] The resource sharing device includes an intelligent terminal, such as a smart phone, a tablet computer, etc., which wirelessly shares idle resources in the wireless network of the active location by establishing a shared resource pool. In the technical solutions of some embodiments of the present invention, in addition to mobile terminal devices such as smart phones and tablet computers, the resource sharing device can also be other electronic devices connected to the same local area network, such as computer devices such as personal computers or smart devices such as smart TVs. The idle resources shared by the resource sharing device include but are not limited to processor resources, memory resources, hard disk resources, network resources, etc.

[0088] The resource usage events include active resource usage events and passive resource usage events. The active resource usage events are resource request events that are autonomously triggered by the application according to internal and external conditions during the background operation of the planned task. The internal and external conditions may be time conditions, positioning conditions or other customer conditions. For example, the background monitoring program monitors the user's location information in real time. When the user returns home and his location data meets the preset positioning conditions, a specific application such as an intelligent voice assistant is called to trigger the corresponding resource usage request. The passive resource usage event is a resource request event that is passively triggered by the application under the user's operation. For example, when the user clicks the icon of the intelligent voice assistant to start the intelligent voice assistant program, the corresponding resource usage request is triggered.

[0089] Furthermore, the step of configuring the mobile terminal as a resource sharing device of the active location specifically includes:

[0090] Connecting the mobile terminal to a wireless network at the active location, where the wireless network is a local area network provided by a wireless network hotspot device installed at the active location;

[0091] Scanning the shared resource broadcast of the wireless network to determine whether there is a shared resource pool that has been constructed at the active location, the shared resource broadcast including a list of resource sharing devices corresponding to the shared resource pool;

[0092] When there is a built shared resource pool at the active location, generating idle resource data of the local location;

[0093] Parsing a resource sharing device list in the shared resource broadcast, wherein the resource sharing device list includes wireless communication addresses of each resource sharing device;

[0094] The idle resource data is exchanged with each resource sharing device in the resource sharing device list based on the wireless communication address.

[0095] Specifically, the local area network is referred to as LAN (Local Area Network), which is a local network provided by a wireless network hotspot device installed at the active location, and the mobile terminal connects to the wireless network at the active location by establishing a wireless communication connection with the wireless network hotspot device. When there is already a shared resource pool constructed by one or more resource sharing devices in the wireless network, the resource sharing device that constructs the shared resource pool will periodically broadcast the shared resource broadcast of the shared resource pool in the wireless network.

[0096] Therefore, the step of the mobile terminal scanning the wireless network to determine whether there is a shared resource pool that has been constructed at the active location specifically includes:

[0097] Scanning for shared resource broadcasts in the wireless network;

[0098] When a shared resource broadcast in the wireless network is scanned, determining that the active location is in a shared resource pool that has been constructed;

[0099] Otherwise, it is determined that no shared resource pool has been constructed at the active site.

[0100] The idle resource data is used to materialize and quantify the local idle resources of the mobile terminal. On the one hand, it can be used to represent the quantity of the local idle resources of the mobile terminal. On the other hand, after the local idle resources are materialized, a unique identity is assigned to the materialized idle resources, that is, the idle resource data contains the unique identity of the local idle resources, so that other resource sharing devices that need to apply for idle resources can locate the corresponding idle resources according to the unique identity and use them.

[0101] Furthermore, the wireless communication address is an Internet Protocol Version 4 (IPv4) address or an Internet Protocol Version 6 (IPv6) address of the resource sharing device in the wireless network.

[0102] Furthermore, the step of generating the idle resource data of the local computer specifically includes:

[0103] Determining daily resource usage of the mobile terminal ;

[0104] Obtain the maximum available resource of the mobile terminal and pre-configured resource reservations ;

[0105] Calculate the idle resource amount of the mobile terminal:

[0106] ,

[0107] in Standard resource sharing unit The calibration quantity satisfies ,and The standard resource sharing unit An integer multiple of ;

[0108] The amount of idle resources corresponding to the mobile terminal The idle resources are configured as occupied;

[0109] The amount of idle resources corresponding to the mobile terminal The idle resources are divided into Standard resource sharing units, each of which is the size of a standard resource sharing unit. ;

[0110] Configuring a local unique identity of each standard resource sharing unit in the mobile terminal;

[0111] The local unique identification of each standard resource unit is packaged to generate the idle resource data.

[0112] Specifically, the daily resource usage is a value used to reflect the usage of various resource types in the daily use of the mobile terminal. The value can usually be expressed in the form of a percentage. When the resource usage is expressed in percentage, the maximum available resource amount of the mobile terminal is .

[0113] In the technical solutions of some embodiments of the present invention, various resource types may also be expressed in quantitative units, for example, OPS (Operations Per Second) or FLOPS (Floating-point Operations Per Second) may be used to represent the usage of processor resources, MB (Megabyte), GB (Gigabyte) or TB (Terabyte) may be used to represent the usage of memory or hard disk resources, and kbps (Kilobit Per Second), mbps (Megabit PerSecond) or gbps (Gigabit Per Second) may be used to represent the usage of memory or hard disk resources.

[0114] In the technical solution of the above implementation mode, the daily resource usage , maximum available resources and pre-configured resource reservations Lack refers to the resource usage of any shared resource, rather than the resource usage of a specific shared resource.

[0115] Further, when calculating the idle resource amount of the mobile terminal Before the steps, also include:

[0116] Calculate the maximum available resource of the mobile terminal Daily resource usage of the mobile terminal and pre-configured resource reservations The difference of the sum:

[0117] ;

[0118] when When the amount is less than a preset resource usage threshold, the step of generating idle resource data of the local computer is terminated;

[0119] In the step of exchanging idle resource data with each resource sharing device in the resource sharing device list based on the wireless communication address, only the idle resource data from other resource sharing devices is received, and the idle resource data of the local device is not sent.

[0120] The standard resource sharing unit is a resource sharing unit of a standard unit size, and its size is equal to a standard resource sharing unit. , the standard resource sharing unit It is the smallest pre-configured resource sharing unit. Resource sharing and requests between resource sharing devices are based on the standard resource sharing unit. That is, the amount of resources shared by any resource sharing device or the amount of resources requested for use should be the standard resource sharing unit. That is, an integer multiple of a standard resource sharing unit.

[0121] The local unique identity of the standard resource sharing unit is the local unique code of the standard resource unit in the local machine. Exemplarily, the local unique identity of each standard resource unit can be generated using a coding format of a timestamp code plus a serial number.

[0122] Further, determining the daily resource usage of the mobile terminal The steps specifically include:

[0123] Acquire resource usage data of the mobile terminal over a period of time in the past;

[0124] Generate a resource usage-time curve of the mobile terminal in the past period of time according to the resource usage data ;

[0125] Get pre-configured resource usage intervals;

[0126] Determine the peak point of the resource usage-time curve of the mobile terminal falling into each resource usage interval ,in 1 to A positive integer between 1 to A positive integer between is the number of resource usage intervals, For the The number of peak points in a resource usage interval;

[0127] Calculate the cumulative peak envelope area for each resource usage interval:

[0128] ,

[0129] in and The resource usage-time curve With two time points where the lower bounds of resource usage intervals intersect, and ;

[0130] The interval number corresponding to the resource usage interval with the largest cumulative peak envelope area is determined as , making the The cumulative peak envelope area of ​​each resource usage interval satisfies:

[0131] ;

[0132] The first The peak point number of the peak point with the largest resource usage in the resource usage interval is determined as , making the The resource usage interval The resource usage at each peak point satisfies:

[0133] ;

[0134] Will make the The resource usage interval Resource usage at peak points Determine the daily resource usage for:

[0135] .

[0136] Specifically, the resource usage data is various types of resource usage data periodically sampled and recorded by the mobile terminal, and the so-called past period of time can be configured as the past day, three days or a week according to actual needs. When generating a resource usage-time curve of the mobile terminal in the past period of time according to the resource usage data In the steps of The x-axis is the amount of resource usage The resource usage-time curve of the mobile terminal is fitted in the y-axis coordinate system .

[0137] The resource usage interval is a number of continuous intervals divided by corresponding interval boundary values. The interval boundary values ​​may be different depending on the unit or representation of the resource usage. For example, when the resource usage is expressed in percentage, the resource usage interval may be divided into [0%, 20%), [20%, 40%), [40%, 60%), [60%, 80%), [80%, 100%].

[0138] In the technical solution of the above-mentioned implementation mode, The lower bound of the resource usage interval is expressed as , then the resource usage-time curve With The two time points where the lower bounds of the resource usage intervals intersect and satisfy:

[0139] .

[0140] Further, the idle resource data includes a resource pool unique code of each standard resource sharing unit in the resource sharing device, and before the step of exchanging idle resource data with each resource sharing device in the resource sharing device list based on the wireless communication address, it also includes:

[0141] Negotiating and generating a device code of the mobile terminal in the shared resource pool;

[0142] The step of exchanging idle resource data with each resource sharing device in the resource sharing device list based on the wireless communication address specifically includes:

[0143] Based on the device code, the local unique identification of each standard resource sharing unit in the idle resource data is changed to a resource pool unique identification.

[0144] Specifically, the device code is a unique code in the same shared resource pool, and is used to uniquely represent the corresponding resource sharing device in the shared resource pool. In the step of changing the local unique identity of each standard resource sharing unit in the idle resource data into a resource pool unique identity based on the device code, the device code and the local unique identity are combined into the resource pool unique identity.

[0145] Further, after the step of exchanging idle resource data with each resource sharing device in the resource sharing device list, the method further includes:

[0146] Obtain the number of times each resource sharing device in the resource sharing device list connects to the wireless network And the duration of each connection ,in 1 to A positive integer between 1 to A positive integer between is the number of resource sharing devices in the resource sharing device list, For the Resource sharing device the duration of the connection when connecting to the wireless network for the first time;

[0147] Based on the number of times each resource sharing device connects to the wireless network And the duration of each connection Calculate the activity of the corresponding resource sharing device in the active location corresponding to the wireless network:

[0148] ;

[0149] According to the activity of the resource sharing device at the active location A broadcast signal sending device of the wireless network is determined through negotiation, so that the broadcast signal sending device periodically sends a shared resource broadcast in the wireless network.

[0150] Further, according to the activity of the resource sharing device at the active location The step of negotiating and determining the broadcast signal sending device of the wireless network so that the broadcast signal sending device periodically sends the shared resource broadcast in the wireless network is specifically to set the activity level in the resource sharing device list The highest resource sharing device is determined as the broadcast signal sending device.

[0151] Further, after the step of scanning the shared resource broadcast of the wireless network to determine whether there is a shared resource pool that has been constructed at the active location, the method further includes:

[0152] When there is no already constructed shared resource pool at the active location, a new resource sharing pool is established, and the mobile terminal is determined as the broadcast signal sending device.

[0153] Furthermore, the broadcast signal sending device periodically sends the shared resource broadcast signal in the wireless network at a first period as a time interval.

[0154] Further, after the step of exchanging idle resource data with each resource sharing device in the resource sharing device list, the method further includes:

[0155] Adding the mobile terminal to the resource sharing device list, so that the mobile terminal becomes one of the resource sharing devices in the shared resource pool;

[0156] The resource sharing device list is sent to the broadcast signal sending device for storage.

[0157] In the technical solution of the above implementation, the resource sharing devices in the resource sharing device list periodically establish a communication connection with the broadcast signal sending device at a second period as a time interval to synchronize the resource sharing device list.

[0158] Further, when any resource sharing device fails to successfully establish a communication connection with the broadcast signal sending device in several cycles, it negotiates with other resource sharing devices in the resource sharing device list to determine a new broadcast signal sending device. A resource sharing device whose activity level is second only to that of the previous broadcast signal sending device is determined as a new broadcast signal sending device.

[0159] Furthermore, when the broadcast signal sending device does not receive a request to establish a communication connection from one or more resource sharing devices in the resource sharing device list in several cycles, the corresponding resource sharing device is deleted from the resource sharing device list.

[0160] In the technical solutions of some embodiments of the present invention, according to the activity of the resource sharing device at the active location After the step of negotiating and determining the broadcast signal sending device of the wireless network, the step further includes determining the broadcast signal sending device as a data exchange device. In the step of exchanging idle resource data with each resource sharing device in the resource sharing device list based on the wireless communication address, the mobile terminal sends its idle resource data to the data exchange device, and obtains the idle resource data of other resource sharing devices in the resource sharing device list from the data exchange device.

[0161] In the technical solution of the above-mentioned implementation mode, the resource sharing devices in the resource sharing device list periodically establish a communication connection with the data exchange device at a time interval of the second period to send the idle resource data of the local device to the data exchange device, and obtain the idle resource data of other resource sharing devices in the resource sharing device list from the data exchange device.

[0162] Furthermore, the step of requesting a shared resource from the shared resource pool according to the resource usage event specifically includes:

[0163] Splitting the resource calling task of the resource usage event into a plurality of parallel subtasks, wherein the parallel subtasks are tasks that have no temporal correlation with each other;

[0164] Determine the number of standard resource sharing units to be used by each parallel subtask ,in 1 to A positive integer between The number of parallel subtasks obtained by splitting the resource call task;

[0165] Requesting shared resources from the shared resource pool in units of parallel subtasks, so that the shared resource pool allocates standard resource sharing units with the same device number to the same parallel subtask;

[0166] Marking the allocated standard resource sharing unit as locked in the shared resource pool;

[0167] After any parallel subtask is executed, the corresponding standard resource sharing unit is marked as available in the shared resource pool.

[0168] Specifically, the parallel subtasks have no temporal correlation, which means that these parallel subtasks can be executed in parallel at the same time, for example, they can be executed in parallel on the same device using multithreading, or they can be assigned to different devices for execution in parallel without causing timing errors or conflicts. For example, a large model file loading task can be decomposed into several sub-parts, and the decomposed sub-parts can be loaded separately at the same time.

[0169] In the technical solution of the above implementation, when a standard resource sharing unit is in a locked state, it is determined that the standard resource sharing unit has been allocated for use and cannot be allocated again. Conversely, when a standard resource sharing unit is in an available state, it means that the standard resource sharing unit can be allocated to any resource sharing device for use when the resource sharing device requests resource allocation.

[0170] Furthermore, the number of standard resource sharing units required for each parallel subtask is determined. After the steps, it also includes:

[0171] Obtain the number of standard resource sharing units shared by each resource sharing device in the resource sharing device list ,in 1 to A positive integer between ;

[0172] Determine the maximum number of resource requirements for the parallel subtasks:

[0173] ;

[0174] Determine the maximum resource sharing quantity shared by each resource sharing device in the resource sharing device list:

[0175] ;

[0176] Compare the maximum resource requirements and the maximum number of resource shares size;

[0177] when When executing the step of requesting shared resources from the shared resource pool in units of parallel subtasks.

[0178] Furthermore, when comparing the maximum resource requirement and the maximum number of resource shares After the size step, also include:

[0179] when When the resource usage event is reached, the step of requesting shared resources from the shared resource pool according to the resource usage event is terminated, and the interactive information that insufficient resources cannot complete the task is output. The step of requesting shared resources from the shared resource pool according to the resource usage event is specifically not executed by not requesting shared resources from the shared resource pool in units of parallel subtasks and its subsequent steps.

[0180] Furthermore, the step of requesting shared resources from the shared resource pool in units of parallel subtasks specifically includes:

[0181] Get the The number of standard resource sharing units required for parallel subtasks ;

[0182] Determine a A sequence of resource sharing devices;

[0183] Determine a target resource sharing device in the resource sharing device sequence so that the number of standard resource sharing units shared by the target resource sharing device is the minimum value of the number of standard resource sharing units shared by each resource sharing device in the resource sharing device sequence;

[0184] Allocate from the standard resource sharing unit shared by the target resource sharing device Standard resource sharing unit for the parallel subtasks.

[0185] Further, a device is determined in the resource sharing device list. The step of determining a resource sharing device sequence specifically includes determining a number sequence of a resource sharing device ,in , so that the number of standard resource sharing units shared by the resource sharing devices corresponding to the numbering sequence satisfies , that is, the resource sharing device sequence is a subset of the resource sharing device list.

[0186] Furthermore, the step of determining the target resource sharing device in the resource sharing device sequence is specifically to: Select the resource sharing device The smallest resource sharing device is used as the target resource sharing device.

[0187] Further, a device is determined in the resource sharing device list. The resource sharing device sequence steps include:

[0188] Calculate the number of remaining standard resource sharing units of the mobile terminal:

[0189] ,

[0190] The remaining standard resource sharing units are standard resource sharing units in an available state among the standard resource sharing units shared by the mobile terminal. A standard resource sharing unit in a locked state among the standard resource sharing units shared by the mobile terminal;

[0191] Compare the number of remaining standard resource sharing units With The number of standard resource sharing units required for parallel subtasks size;

[0192] when When the mobile terminal shares the standard resource, the shared resource is allocated from the shared standard resource unit. Standard resource sharing unit for the parallel subtasks.

[0193] In the technical solution of the above implementation, when the mobile terminal requests shared resources from the shared resource pool, the standard resource sharing units shared by the mobile terminal itself are preferentially allocated to the parallel subtasks. If and only if the standard resource sharing units shared by the mobile terminal itself are insufficient to perform the allocation, a resource sharing device in the resource sharing device list is determined. The resource sharing device sequence and its subsequent steps.

[0194] A second aspect of the present invention provides a mobile terminal, comprising a processor and a memory, wherein the processor executes a computer program stored in the memory to implement the wireless sharing method of cross-device resources as described in any one of the first aspects of the present invention.

[0195] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0196] According to the embodiments of the present invention as described above, these embodiments do not describe all the details in detail, nor do they limit the invention to the specific embodiments described. Obviously, many modifications and changes can be made based on the above description. This specification selects and specifically describes these embodiments in order to better explain the principles and practical applications of the present invention, so that those skilled in the art can make good use of the present invention and the modified use based on the present invention. The present invention is limited only by the claims and their full scope and equivalents.

Claims

1. A wireless sharing method for cross-device resources, characterized in that: include: Configuring active locations of the mobile terminal and the area range of the active locations, wherein the active locations are geographical areas where the mobile terminal frequently and for a long time stays; Determining whether the mobile terminal is located in the area of ​​the active location; When the mobile terminal is within the area of ​​any active location, the mobile terminal is configured as a resource sharing device of the active location, and the resource sharing devices of the active location share idle resources by building a shared resource pool; Monitoring resource usage events of the mobile terminal, wherein the resource usage events are events that trigger resource requests when an application is running in the background, or events that trigger resource requests when a foreground application is running according to a user's operation; requesting a shared resource from the shared resource pool according to the resource usage event; The step of configuring the mobile terminal as a resource sharing device of the active location specifically includes: Connecting the mobile terminal to a wireless network at the active location, where the wireless network is a local area network provided by a wireless network hotspot device installed at the active location; Scanning the shared resource broadcast of the wireless network to determine whether there is a shared resource pool that has been constructed at the active location, the shared resource broadcast including a list of resource sharing devices corresponding to the shared resource pool; When there is a built shared resource pool at the active location, generating idle resource data of the local location; Parsing a resource sharing device list in the shared resource broadcast, wherein the resource sharing device list includes wireless communication addresses of each resource sharing device; exchanging idle resource data with each resource sharing device in the resource sharing device list based on the wireless communication address; The steps of generating the idle resource data of the local machine specifically include: Determine the daily resource usage R of the mobile terminal u ; Get the maximum available resource R of the mobile terminal F and the pre-configured resource reservation R s ; Calculate the idle resource amount of the mobile terminal: R l =R F -(R u +R s )-ΔR cal , where ΔR cal is the calibration amount of the standard resource sharing unit R0, which satisfies ΔR cal < R0, and R F -(R u + R s ) - ΔR cal is an integer multiple of the standard resource sharing unit R0; The idle resource amount R corresponding to the mobile terminal l The idle resources are configured as occupied; The idle resource amount R corresponding to the mobile terminal l The idle resources are divided into Standard resource sharing units, each of which has a size of one standard resource sharing unit R0; Configuring a local unique identity of each standard resource sharing unit in the mobile terminal; Packing the local unique identification of each standard resource unit to generate the idle resource data; Determine the daily resource usage R of the mobile terminal u The steps specifically include: Acquire resource usage data of the mobile terminal over a period of time in the past; Generate a time curve R(t) of resource usage of the mobile terminal in the past period of time according to the resource usage data; Get pre-configured resource usage intervals; Determine the peak point R of the resource usage time curve of the mobile terminal falling into each resource usage interval ab , where a is 1 to n sec A positive integer between 1 and n. a A positive integer between sec is the number of resource usage intervals, n a is the number of peak points in the ath resource usage interval; Calculate the cumulative peak envelope area for each resource usage interval: where tt b and tb b are the two time points where the resource usage time curve R(t) intersects the lower bound of the a-th resource usage interval, and tt b >tb b ; The interval number corresponding to the resource usage interval with the largest cumulative peak envelope area is determined as a0, so that the cumulative peak envelope area of ​​the a0th resource usage interval satisfies: The peak point number of the peak point with the largest resource usage in the a0th resource usage interval is determined as b0, so that the resource usage of the b0th peak point in the a0th resource usage interval satisfies: This will make the resource usage at the b0th peak point in the a0th resource usage interval Determine the daily resource usage for:

2. The wireless sharing method of cross-device resources according to claim 1, characterized in that: After the step of exchanging idle resource data with each resource sharing device in the resource sharing device list, the method further includes: Get the count of the number of times each resource sharing device in the resource sharing device list connects to the wireless network i And the connection time t for each time ij , where i is 1 to n device A positive integer between 1 and count. i A positive integer between device is the number of resource sharing devices in the resource sharing device list, t ij is the connection duration of the i-th resource sharing device when it connects to the wireless network for the j-th time; According to the number of times each resource sharing device connects to the wireless network n i And the connection time t for each time ij Calculate the activity of the corresponding resource sharing device in the active location corresponding to the wireless network: According to the activity of the resource sharing device at the active location Act i A broadcast signal sending device of the wireless network is determined through negotiation, so that the broadcast signal sending device periodically sends a shared resource broadcast in the wireless network.

3. The wireless sharing method of cross-device resources according to claim 2, characterized in that: The step of requesting a shared resource from the shared resource pool according to the resource usage event specifically includes: Splitting the resource calling task of the resource usage event into a plurality of parallel subtasks, wherein the parallel subtasks are tasks that have no temporal correlation with each other; Determine the number of standard resource sharing units n that each parallel subtask needs to use tc , where tc is 1 to n task A positive integer between task The number of parallel subtasks obtained by splitting the resource call task; Requesting shared resources from the shared resource pool in units of parallel subtasks, so that the shared resource pool allocates standard resource sharing units with the same device number to the same parallel subtask; Marking the allocated standard resource sharing unit as locked in the shared resource pool; After any parallel subtask is executed, the corresponding standard resource sharing unit is marked as available in the shared resource pool.

4. The wireless sharing method of cross-device resources according to claim 3, characterized in that: In determining the number of standard resource sharing units n required for each parallel subtask tc After the steps, it also includes: Obtain the number n of standard resource sharing units shared by each resource sharing device in the resource sharing device list dc , where dc is 1 to n device A positive integer between ; Determine the maximum number of resource requirements for the parallel subtasks: Determine the maximum resource sharing quantity shared by each resource sharing device in the resource sharing device list: Compare the maximum resource requirement n tmax and the maximum resource sharing quantity n dmax size; When n tmax ≤n dmax When executing the step of requesting shared resources from the shared resource pool in units of parallel subtasks.

5. The wireless sharing method of cross-device resources according to claim 4, characterized in that: The step of requesting shared resources from the shared resource pool in units of parallel subtasks specifically includes: Get the number n of standard resource sharing units required for the tcth parallel subtask tc ; Determine an n in the resource sharing device list dc >n tc A sequence of resource sharing devices; Determine a target resource sharing device in the resource sharing device sequence so that the number of standard resource sharing units shared by the target resource sharing device is the minimum value of the number of standard resource sharing units shared by each resource sharing device in the resource sharing device sequence; Allocate n from the standard resource sharing unit shared by the target resource sharing device tc standard resource sharing unit for the tcth parallel subtask.

6. The wireless sharing method of cross-device resources according to claim 5, characterized in that: Determine an n in the resource sharing device list dc >n tc The resource sharing device sequence steps include: Calculate the number of remaining standard resource sharing units of the mobile terminal: n re =n l -n as , The remaining standard resource sharing units are standard resource sharing units in an available state among the standard resource sharing units shared by the mobile terminal. as The number of standard resource sharing units in a locked state among the standard resource sharing units shared by the mobile terminal; Compare the number n of the remaining standard resource sharing units re The number of standard resource sharing units n required to be used by the tcth parallel subtask tc size; When n re >n tc When n is allocated from the standard resource sharing unit shared by the mobile terminal tc standard resource sharing unit for the tcth parallel subtask.

7. A mobile terminal, characterized in that: The method comprises a processor and a memory, wherein the processor executes a computer program stored in the memory to implement the wireless sharing method of cross-device resources as described in any one of claims 1 to 6.

Citation Information

Patent Citations

  • Resource sharing method, device and system

    CN106357592A

  • Multimedia resource sharing method and system based on home network

    CN117614849A

  • Method, system and device for discovering shared resource

    WO2016177103A1

  • Application program sharing method and application program sharing apparatus

    WO2022194010A1