Object sharing method, device, electronic device and readable storage medium
By generating and opening a network connection hotspot containing stored address information when the user triggers sharing, the problem of complex and inflexible file sharing operations in the prior art is solved, and efficient and flexible file sharing between devices is achieved.
Patent Information
- Application Number
- CN202210074383.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-01-21
- Publication Date
- 2025-02-25
- Estimated Expiration
- 2042-01-21
AI Technical Summary
In the prior art, file sharing operations are complex and inflexible, especially in the process of file sharing between multiple devices, frequent establishment and re-establishment of connections is required.
By generating and opening a network connection hotspot when the user triggers sharing, the hotspot contains the storage address information of the target object, allowing multiple devices to connect to the hotspot and actively obtain the target object, thus realizing the sharing process without resending the file.
Simplifies file sharing operations, improves flexibility and efficiency of the sharing process, and avoids the need for frequent connection and resend files between devices.
Smart Images

Figure CN114501676B_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of communication technology, and specifically relates to an object sharing method, device, electronic device and readable storage medium. Background Art
[0002] With the popularization of smart electronic devices, people are increasingly sharing photos, videos, documents and other files through smart electronic devices.
[0003] In order to save mobile data traffic and improve transmission speed, when users share files with others, they mainly establish a connection between the sharing end and the shared end through a local area network such as Bluetooth. However, the existing method of sharing files using a local area network is generally one-to-one, that is, the electronic device at the sharing end sends the file to be shared to the electronic device at the shared end through the local area network. Therefore, each time a new electronic device at the shared end is connected, the electronic device at the sharing end needs to resend the file to be shared to the electronic device at the shared end. This makes the sharing operation process complicated and the sharing method inflexible. Summary of the invention
[0004] The purpose of the embodiments of the present application is to provide an object sharing method, device, electronic device and readable storage medium, which can solve the problems of complex sharing operation process and inflexible sharing method in the existing sharing operation process.
[0005] In a first aspect, an embodiment of the present application provides an object sharing method, which is applied to a first electronic device, and the method includes:
[0006] Receive a first input of a user sharing a target object;
[0007] In response to the first input, a network connection hotspot is generated, wherein the network connection hotspot includes storage address information of the target object;
[0008] The network connection hotspot is turned on, so that at least one second electronic device can obtain the target object according to the stored address information when connected to the network connection hotspot.
[0009] In a second aspect, an embodiment of the present application provides an object sharing method, which is applied to a second electronic device, and the method includes:
[0010] Receiving a second input from a user to connect to a network connection hotspot; wherein the network connection hotspot includes storage address information of the target object in the first electronic device;
[0011] In response to a second input, connecting to a network connection hotspot;
[0012] The target object is acquired from the first electronic device according to the storage address information.
[0013] In a third aspect, an embodiment of the present application provides an object sharing device, which is applied to a first electronic device, and the device includes:
[0014] A first receiving module, used for receiving a first input of a user sharing a target object;
[0015] A hotspot generation module, configured to generate a network connection hotspot in response to a first input, wherein the network connection hotspot includes storage address information of a target object;
[0016] The hotspot activation module is used to activate the network connection hotspot so that at least one second electronic device can obtain the target object according to the stored address information when connected to the network connection hotspot.
[0017] In a fourth aspect, an embodiment of the present application provides an object sharing device, which is applied to a second electronic device, and the device includes:
[0018] A second receiving module is used to receive a second input from a user connecting to a network connection hotspot; wherein the network connection hotspot includes storage address information of the target object in the first electronic device;
[0019] A hotspot connection module, configured to connect to a network connection hotspot in response to a second input;
[0020] The object acquisition module is used to acquire the target object from the first electronic device according to the storage address information.
[0021] In a fifth aspect, an embodiment of the present application provides an electronic device, comprising a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the programs or instructions are executed by the processor, the steps of the object sharing method described in the first aspect or the second aspect are implemented.
[0022] In a sixth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps of the object sharing method described in the first aspect or the second aspect are implemented.
[0023] In the seventh aspect, an embodiment of the present application provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the object sharing method as described in the first aspect or the second aspect.
[0024] In an eighth aspect, an embodiment of the present application provides a computer program product, which is stored in a storage medium and is executed by at least one processor to implement the object sharing method as described in the first aspect or the second aspect.
[0025] In an embodiment of the present application, when the user triggers the first electronic device to share the target object, a network connection hotspot is generated and opened. Since the network connection hotspot includes the storage address information corresponding to the target object, when one or more other second electronic devices are connected to the network connection hotspot, the second electronic device can actively obtain the target object from the first electronic device according to the storage address information, without the need for the first electronic device to send the target object to each second electronic device, thereby realizing the sharing process. In this way, the second electronic device can connect to the network connection hotspot at any time and download the target object at any time, which simplifies the sharing operation process, and since there are no restrictions on the connection time and sequence, the flexibility of the sharing process can be improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] Figure 1 is a schematic diagram of an object sharing scenario according to an exemplary embodiment;
[0027] Figure 2 is one of the flowcharts of an object sharing method according to an exemplary embodiment;
[0028] Figure 3 is a second flowchart of an object sharing method according to an exemplary embodiment;
[0029] Figure 4 is a third flowchart of an object sharing method according to an exemplary embodiment;
[0030] Figure 5 is a structural block diagram of an object sharing device according to an exemplary embodiment;
[0031] Figure 6 is a structural block diagram of another object sharing device according to an exemplary embodiment;
[0032] Figure 7 is a structural block diagram of an electronic device according to an exemplary embodiment;
[0033] Figure 8 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application. DETAILED DESCRIPTION
[0034] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.
[0035] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.
[0036] The object sharing method provided in the embodiment of the present application is described in detail below through specific embodiments and application scenarios in conjunction with the accompanying drawings.
[0037] In the prior art, such as Figure 1 As shown in the figure, when the user needs to share a file, he first selects the target file, and then chooses the file sharing method. The conventional way of mutual transmission will first search for other devices, and then wait for other devices to connect before transferring files. There is also a way to generate a QR code and wait for other devices to connect and join through camera scanning. However, the above-mentioned sharing method of connecting first and then transferring will make the user operation lose a certain degree of convenience.
[0038] The object sharing method provided in this application can be applied to the scenario of sharing files in a sharing end to one or more shared ends. Figure 2-Figure 4 The object sharing method provided in the embodiment of the present application is described in detail. It should be noted that the object sharing method provided in the embodiment of the present application can be executed by an object sharing device. In the embodiment of the present application, the object sharing method provided in the embodiment of the present application is described by taking the object sharing device executing the object sharing method as an example.
[0039] Figure 2 The figure is a flowchart of an object sharing method according to an exemplary embodiment.
[0040] like Figure 2 As shown, the object sharing method is applied to a first electronic device and may include steps: S210-S230, which are described in detail below.
[0041] S210, receiving a first input from a user to share a target object.
[0042] Here, the first electronic device may be an electronic device with a file sharing function, such as a mobile phone, a tablet, etc. The target object may be a file or a folder, and the first input may be an input of a user clicking a share button of the target object, or a combination of first long pressing the target object to trigger display of a menu bar, and then clicking a share button in the menu bar.
[0043] In some specific examples, when a user uses a mobile phone to share a file, he opens the file management, finds the file to be shared, and long presses the file to trigger the menu bar, and then clicks the share button in the menu bar. After the user clicks the share button, the corresponding sharing method information is displayed, and the user can select the desired sharing method.
[0044] S220: In response to the first input, generate a network connection hotspot, wherein the network connection hotspot includes storage address information of the target object.
[0045] Here, the network connection hotspot may be a local area network hotspot that can be searched by other electronic devices, and may be created using a WLAN module. In addition, the network connection hotspot may be password-protected by creating a key, or may not be password-protected. In addition, the network connection hotspot may include storage address information of the target object, wherein the storage address information may be information of the storage address of the target object in the first electronic device. It should be noted that one file or multiple files may be stored under the storage address corresponding to the storage address information, which is not limited here.
[0046] In some specific examples, when a user shares files with a mobile phone, he can select the file to be shared and the sharing method provided by this application. Based on the sharing method, the WLAN module can be requested to create a local area network hotspot, and the user is prompted to create a key. After the key creation is completed, the mobile phone generates a network connection hotspot. The network connection hotspot contains the information of the file address that the user needs to share, and can be searched by other users' mobile phones.
[0047] S230, turning on the network connection hotspot, so that at least one second electronic device can obtain the target object according to the stored address information when connected to the network connection hotspot.
[0048] Here, the second electronic device may be an electronic device that can connect to a network connection hotspot, such as a mobile phone, a tablet or other device. The second electronic device may be one or more. The process of the second electronic device connecting to the network connection hotspot may be that the first electronic device actively selects and connects to the second electronic device, or the second electronic device actively connects to the first electronic device, and then obtains the target object from the corresponding storage address of the first electronic device according to the storage address information. In addition, it should be noted that when there are multiple second electronic devices and multiple objects are stored in the storage address corresponding to the storage address information, different second electronic devices can choose to obtain different target objects as needed.
[0049] In some specific examples, after the user successfully creates a network connection hotspot containing the address of the file to be shared on the mobile terminal, click the turn on button to turn on the network connection hotspot, and the terminal can keep the network connection hotspot turned on. When other user mobile terminals search for the network connection hotspot through the hotspot search function, they can enter the correct key to connect to the network connection hotspot and join the local area network of the network connection hotspot. The user mobile terminal connected to the network connection hotspot obtains the information of the broadcasted file to be shared through the network connection hotspot. After obtaining the information of the file to be shared, the permission to access the file to be shared is obtained, and then the file to be shared is downloaded.
[0050] In addition, when one or several second electronic devices are downloading the target object, the network connection hotspot of the first electronic device is still turned on, and other second electronic devices that have entered the correct key can normally join the local area network corresponding to the network connection hotspot. The first electronic device only broadcasts the information of the target object. Any second electronic device that enters the correct key can obtain the information of the target object of the network connection hotspot at different time points, and then access the storage address corresponding to the target object and select the target object for download. After the data transmission is completed, the hotspot is automatically exited, resources are released, and the WIFI function of the electronic device is not occupied.
[0051] Thus, when the user triggers the first electronic device to share the target object, a network connection hotspot is generated and opened. Since the network connection hotspot includes the storage address information corresponding to the target object, when one or more other second electronic devices are connected to the network connection hotspot, the second electronic device can actively obtain the target object from the first electronic device according to the storage address information, without the need for the first electronic device to send the target object to each second electronic device, thereby realizing the sharing process. In this way, the second electronic device can connect to the network connection hotspot at any time and download the target object at any time, which simplifies the sharing operation process, and since there are no restrictions on the connection time and sequence, the flexibility of the sharing process can be improved.
[0052] Based on this, in some implementations, after the above S230, the object sharing method may further include:
[0053] Based on the ultra-wideband (UWB) positioning function, determine at least one second electronic device that the first electronic device is pointing to;
[0054] Based on the network connection hotspot, connect to the second electronic device.
[0055] Here, the ultra-wideband (UWB) positioning function is a carrier-free communication technology that can transmit data using non-sinusoidal narrow pulses in the nanosecond to microsecond range, and can be used for short-range high-speed data transmission. The ultra-wideband (UWB) positioning function can be used to select electronic devices to be shared. When both the first electronic device and the second electronic device have the ultra-wideband (UWB) positioning function, it can be determined that at least one electronic device pointed to by the first electronic device is the second electronic device, and the second electronic device is connected based on the network connection hotspot. After the connection is successful, there is no need to point to the second electronic device to maintain the connection.
[0056] In some specific examples, after the sharer successfully creates a network connection hotspot containing the storage address information of the file to be shared using the terminal, the terminal's UWB function can be used to select the terminals used by the sharees to join. In a small range, the sharer uses the terminal to turn on the UWB function and point to a specific single or multiple terminals used by the sharees (which also support the UWB function), and these pointed sharees' terminals will be added to the network connection hotspot. Once added to the network connection hotspot, the sharee's terminal can obtain the information of the files to be shared contained in the network connection hotspot, and can transfer and download the files to be shared without waiting for all the sharees' terminals to join.
[0057] In this way, by determining at least one second electronic device that the first electronic device is pointing to based on the ultra-wideband UWB positioning function, and then connecting the second electronic device based on the network connection hotspot, the sharer can use the UWB positioning function to selectively share and actively select the second electronic device to be shared, which greatly improves the flexibility of sharing and does not require waiting for other electronic devices to join, simplifying the sharing operation process.
[0058] Based on this, in some possible embodiments, such as Figure 3 As shown, in the case where there are multiple second electronic devices and the second electronic device obtains the target object according to the storage address information, the object sharing method may further include S310-S330, as shown below:
[0059] S310: Acquire device status information of the second electronic device.
[0060] S320: Determine a transmission priority corresponding to the second electronic device according to the device status information, wherein the transmission priority is positively correlated with a transmission speed of the target object.
[0061] S330: Transmit the target object to the second electronic device based on a transmission speed corresponding to the transmission priority.
[0062] Here, the device status information may be information indicating the device status, such as the power level of the second electronic device, network speed, etc. The transmission priority may be the transmission level of each second electronic device among the plurality of second electronic devices, wherein the transmission priority is positively correlated with the transmission speed of the target object, that is, the higher the transmission priority of the second electronic device, the larger the transmission bandwidth allocated to the second electronic device, and the faster the transmission speed of the target object of the second electronic device.
[0063] In this way, by acquiring the device status information of the second electronic device and determining the transmission priority corresponding to the second electronic device according to the device status information, the target object is then transmitted to the second electronic device based on the transmission speed corresponding to the transmission priority. In this way, when sharing files with multiple second electronic devices, the transmission priority of the target object shared with each second electronic device can be controlled, that is, the file transmission speeds corresponding to different second electronic devices are reasonably allocated, thereby improving the effectiveness of file transmission.
[0064] In some implementations, the above S320 may specifically include:
[0065] Determine respectively whether the first target electronic device and the second target electronic device meet a preset state according to the device state information, wherein the first target electronic device and the second target electronic device are any two devices among the plurality of second electronic devices;
[0066] When the first target electronic device and the second target electronic device meet a preset state, obtaining a first connection time when the first target electronic device is connected to the network connection hotspot, and a second connection time when the second target electronic device is connected to the network connection hotspot;
[0067] determining a first time interval between the first connection time and the current system time, and a second time interval between the second connection time and the current system time;
[0068] When the first time interval is greater than the second time interval, it is determined that the transmission priority corresponding to the first target electronic device is greater than the transmission priority corresponding to the second target electronic device.
[0069] Here, the preset state may be the device state of the second electronic device arbitrarily set by the user according to actual needs, including but not limited to the state where the power and network speed are normal, wherein the first target electronic device and the second target electronic device may be any two devices among the plurality of second electronic devices. The first connection time may be the system time when the first target electronic device is connected to the network connection hotspot, the second connection time may be the system time when the second target electronic device is connected to the network connection hotspot, and the current system time may be the real-time time of the first electronic device. The first time interval may be the time difference between the first connection time and the current system time, and the second time interval may be the time difference between the second connection time and the current system time. If the first time interval is greater than the second time interval, the time when the first target electronic device is connected to the network connection hotspot is earlier than the time when the second target electronic device is connected to the network connection hotspot, and the transmission priority corresponding to the first target electronic device may be set to be greater than the transmission priority corresponding to the second target electronic device.
[0070] In some specific examples, when a user shares a file with a first terminal and a second terminal, when the power and network speed of the first terminal and the second terminal are normal, the time when the first terminal connects to the network connection hotspot is obtained, and the time difference A between the time and the current system time is calculated. The time when the second terminal connects to the network connection hotspot is obtained, and the time difference B between the time and the current system time is calculated. If A is greater than B, the transmission priority of the first terminal is greater than the transmission priority of the second terminal, that is, the file of the terminal device that first connects to the network connection hotspot is transmitted first.
[0071] In this way, when the first target electronic device and the second target electronic device meet the preset status, the first connection time of the first target electronic device connecting to the network connection hotspot and the second connection time of the second target electronic device connecting to the network connection hotspot are obtained, and the first time interval between the first connection time and the current system time and the second time interval between the second connection time and the current system time are determined, and then when the first time interval is greater than the second time interval, the transmission priority corresponding to the first target electronic device is determined to be greater than the transmission priority corresponding to the second target electronic device. In this way, when the shared device status is normal, the device that first connects to the hotspot has a high transmission priority, thereby reducing the transmission waiting time and improving the user experience.
[0072] In some embodiments, after obtaining a first connection time when the first target electronic device is connected to the network connection hotspot and a second connection time when the second target electronic device is connected to the network connection hotspot, the object sharing method may further include:
[0073] Determining a connection time interval between the first target electronic device and the second target electronic device according to the first connection time and the second connection time;
[0074] When the first time interval is greater than the second time interval, determining that the transmission priority corresponding to the first target electronic device is greater than the transmission priority corresponding to the second target electronic device includes:
[0075] When the connection time interval is greater than the first preset threshold and the first time interval is greater than the second time interval, it is determined that the transmission priority corresponding to the first target electronic device is greater than the transmission priority corresponding to the second target electronic device.
[0076] Here, the connection time interval may be the difference between the first connection time and the second connection time, and the first preset threshold may be a threshold of the time interval arbitrarily set by the user according to actual needs, for example, may be five minutes.
[0077] In some specific examples, when a user shares a file with a first terminal and a second terminal, and if the device power and network speed of the first terminal and the second terminal are normal, if the time when the first terminal connects to the network connection hotspot differs from the time when the second terminal connects to the network connection hotspot by more than 5 minutes, that is, outside the preset connection time interval, the terminal device that first connects to the network connection hotspot has a higher transmission priority, and the files of the terminal device that first connects to the network connection hotspot are transmitted first.
[0078] In this way, the connection time interval between the first target electronic device and the second target electronic device is determined according to the first connection time and the second connection time, and when the connection time interval is greater than the first preset threshold value and the first time interval is greater than the second time interval, the transmission priority corresponding to the first target electronic device is determined to be greater than the transmission priority corresponding to the second target electronic device. In this way, the target object of the device that first connects to the network connection hotspot can be transmitted preferentially outside the preset connection time interval, thereby controlling the transmission priority of multiple shared devices with connection time differences, ensuring that the device that connects first of the two devices with a larger interval transmits first, and making the priority setting more reasonable.
[0079] In some embodiments, the device status information includes power information, and the preset state includes a state where the remaining power is greater than a second preset threshold;
[0080] After determining whether the first target electronic device and the second target electronic device meet the preset status respectively according to the device status information, the object sharing method may further include:
[0081] If at least one of the first target electronic device and the second target electronic device does not satisfy a preset state, determining whether the remaining power of the first target electronic device is less than the remaining power of the second target electronic device;
[0082] When the remaining power of the first target electronic device is less than the remaining power of the second target electronic device, it is determined that the transmission priority corresponding to the first target electronic device is greater than the transmission priority corresponding to the second target electronic device.
[0083] Here, the power information may be the remaining power information of the second electronic device, for example, when the current remaining power of the second device is 20% of the total power, the power information may be 20% of the remaining power. The second preset threshold may be a threshold arbitrarily set by the user according to actual needs, for example, it may be 20% of the total power.
[0084] In some specific examples, when a user shares a file with a first terminal and a second terminal, when at least one of the first terminal and the second terminal has a remaining power of less than 20%, that is, when the remaining power of the first terminal is less than 20%, or the remaining power of the second terminal is less than 20%, or when the remaining power of the first terminal and the second terminal are both less than 20%, the remaining power of the first terminal is compared with the remaining power of the second terminal. If the remaining power of the first terminal is less than the remaining power of the second terminal, the transmission priority of the first terminal is greater than the transmission priority of the second terminal. If the remaining power of the first terminal is less than 20%, and the remaining power of the second terminal is greater than 20%, the transmission priority of the first terminal is greater than the transmission priority of the second terminal, that is, the transmission priority of the terminal with lower remaining power is higher.
[0085] In this way, by determining whether the remaining power of the first target electronic device is less than the remaining power of the second target electronic device when at least one of the first target electronic device and the second target electronic device does not meet the preset state, when the remaining power of the first target electronic device is less than the remaining power of the second target electronic device, it is determined that the transmission priority corresponding to the first target electronic device is greater than the transmission priority corresponding to the second target electronic device. In this way, the transmission waiting time of the low-power electronic device can be minimized, and the low-power electronic device can be prevented from running out of power, thereby avoiding the interruption of the sharing of the target object due to the exhaustion of the device power, and further improving the user experience.
[0086] In some embodiments, after determining a connection time interval between the first target electronic device and the second target electronic device according to the first connection time and the second connection time, the object sharing method may further include:
[0087] When the connection time interval is less than or equal to the first preset threshold, determining a first remaining amount to be transmitted of the target object corresponding to the first target electronic device and a second remaining amount to be transmitted of the target object corresponding to the second target electronic device;
[0088] When the first remaining amount to be transmitted is less than the second remaining amount to be transmitted, it is determined that the transmission priority corresponding to the first target electronic device is greater than the transmission priority corresponding to the second target electronic device.
[0089] Here, the first remaining amount to be transmitted may be the size of the portion to be transmitted in the target object corresponding to the first target electronic device, and the second remaining amount to be transmitted may be the size of the portion to be transmitted in the target object corresponding to the second target electronic device.
[0090] In some specific examples, when a user shares a file to a first terminal and a second terminal, when the device power and network speed of the first terminal and the second terminal are normal, or when the power of both terminals is low and the power is consistent, if the time when the first terminal connects to the network connection hotspot and the time when the second terminal connects to the network connection hotspot differs by less than 5 minutes, that is, within the preset connection time interval, then the remaining amount of files to be transmitted corresponding to the first terminal and the remaining amount of files to be transmitted corresponding to the second terminal are determined, and the terminal with a smaller remaining amount to be transmitted has a higher transmission priority.
[0091] In this way, by determining the first remaining amount to be transmitted of the target object corresponding to the first target electronic device and the second remaining amount to be transmitted of the target object corresponding to the second target electronic device when the connection time interval is less than or equal to the first preset threshold, and when the first remaining amount to be transmitted is less than the second remaining amount to be transmitted, determining that the transmission priority corresponding to the first target electronic device is greater than the transmission priority corresponding to the second target electronic device. In this way, the transmission waiting time of the electronic device with a small remaining amount to be transmitted can be reduced, and the transmission efficiency can be improved.
[0092] In some other implementations, the target object includes a target folder, and the target folder includes a first file and a second file;
[0093] After determining a connection time interval between the first target electronic device and the second target electronic device according to the first connection time and the second connection time, the object sharing method may further include:
[0094] When the connection time interval is less than or equal to a first preset threshold, determining a size of a first file acquired by the first target electronic device and a size of a second file acquired by the second target electronic device;
[0095] In a case where the size of the first file is smaller than the size of the second file, it is determined that the transmission priority corresponding to the first target electronic device is greater than the transmission priority corresponding to the second target electronic device.
[0096] Here, the target object may include a target folder, the target folder may include one file or multiple files, and the first file and the second file may be any two files in the target folder. The size of the first file may be the size of the space occupied by the first file on the first target electronic device, and the size of the second file may be the size of the space occupied by the second file on the second target electronic device. When the size of the first file is smaller than the size of the second file, it is determined that the transmission priority corresponding to the first target electronic device is greater than the transmission priority corresponding to the second target electronic device, that is, the smaller file is transmitted first.
[0097] In some specific examples, when a user shares a file to a first terminal and a second terminal, when the device power and network speed of the first terminal and the second terminal are normal, or when the power of both terminals is low and the power is consistent, if the time when the first terminal connects to the network connection hotspot and the time when the second terminal connects to the network connection hotspot differs by less than 5 minutes, that is, within the preset connection time interval, then the size of the file to be shared corresponding to the first terminal and the size of the file to be shared corresponding to the second terminal are compared, and the terminal with the smaller file to be shared has a higher transmission priority.
[0098] In this way, by determining the size of the first file acquired by the first target electronic device and the size of the second file acquired by the second target electronic device when the connection time interval is less than or equal to the first preset threshold, and when the size of the first file is smaller than the size of the second file, determining that the transmission priority corresponding to the first target electronic device is greater than the transmission priority corresponding to the second target electronic device. In this way, the transmission waiting time of the electronic device with a small file can be reduced, and the transmission efficiency can be improved.
[0099] This application embodiment provides another object sharing method. Figure 4 The figure is a flowchart of an object sharing method according to an exemplary embodiment.
[0100] like Figure 4 As shown, the object sharing method is applied to a second electronic device and may include steps: S410-S430, which are described in detail below.
[0101] S410, receiving a second input from a user to connect to a network connection hotspot; wherein the network connection hotspot includes storage address information of a target object in a first electronic device.
[0102] S420, in response to the second input, connecting to a network connection hotspot.
[0103] S430: Acquire a target object from the first electronic device according to the storage address information.
[0104] Here, the second input can be the input of the user clicking a connection button of a network connection hotspot. In response to the second input, the network connection hotspot is connected to obtain the target object that the user needs to share from the storage address corresponding to the first electronic device based on the storage address information included in the network connection hotspot.
[0105] In this way, by receiving the second input of the user connecting to the network connection hotspot and responding to the second input, the network connection hotspot is connected. Then, according to the storage address information, the target object is obtained from the first electronic device. In this way, the shared end can actively obtain the storage address and other information of the target object carried in the network connection hotspot without waiting for other shared ends, and the shared end can flexibly select the target object it needs, thereby improving the flexibility and convenience of file sharing.
[0106] In some embodiments, the target object includes a folder, the folder includes at least one file, and the network connection hotspot also includes file information corresponding to the at least one file;
[0107] The above S430 may specifically include:
[0108] displaying file information corresponding to at least one file;
[0109] receiving a third input from a user regarding target file information in the file information;
[0110] In response to the third input, a target file corresponding to the target file information is acquired from the first electronic device according to the storage address information.
[0111] Here, the file information may be information corresponding to the file such as the file name, file type, file size, etc. The third input may be a user's selection input of target file information in the file information.
[0112] In some specific examples, after the user's mobile terminal enters the correct key to connect to the network connection hotspot, the user can browse the specific information contained in the network connection hotspot, including the file name, file type, file size, etc. The mobile terminal will generate a display interface for displaying this information, and the user can select the files contained in the network connection hotspot. For example, the user checks the required file in the interface displaying the information, and then downloads the required file.
[0113] In this way, by displaying the file information corresponding to at least one file, receiving the third input of the user for the target file information in the file information, and responding to the third input, obtaining the target file corresponding to the target file information from the first electronic device according to the storage address information. In this way, the sharee can flexibly select the required file to download, thereby improving the flexibility of file sharing.
[0114] It should be noted that the application scenarios described in the above-mentioned embodiments of the present disclosure are intended to more clearly illustrate the technical solutions of the embodiments of the present disclosure, and do not constitute a limitation on the technical solutions provided by the embodiments of the present disclosure. Ordinary technicians in this field can know that with the emergence of new application scenarios, the technical solutions provided by the embodiments of the present disclosure are also applicable to similar technical problems.
[0115] Based on the same inventive concept, the present application also provides an object sharing device, which can be applied to a first electronic device. Figure 5 The object sharing device provided in the embodiment of the present application is described in detail.
[0116] Figure 5 It is a structural block diagram of an object sharing device according to an exemplary embodiment.
[0117] like Figure 5 As shown, the object sharing device 500 may include:
[0118] The first receiving module 501 is used to receive a first input from a user to share a target object;
[0119] A hotspot generating module 502, configured to generate a network connection hotspot in response to a first input, wherein the network connection hotspot includes storage address information of a target object;
[0120] The hotspot opening module 503 is used to open the network connection hotspot, so that at least one second electronic device can obtain the target object according to the stored address information when connected to the network connection hotspot.
[0121] The object sharing device 500 is described in detail below, as follows:
[0122] In some embodiments, the object sharing device 500 may specifically include:
[0123] A device determination module, configured to determine at least one second electronic device pointed to by the first electronic device based on an ultra-wideband (UWB) positioning function after the network connection hotspot is turned on;
[0124] The device connection module is used to connect to a second electronic device based on a network connection hotspot.
[0125] In some embodiments, the object sharing device 500 may specifically include:
[0126] A state acquisition module, used to acquire device state information of the second electronic device when there are multiple second electronic devices and the second electronic device acquires the target object according to the storage address information;
[0127] A priority determination module, used to determine the transmission priority corresponding to the second electronic device according to the device status information, wherein the transmission priority is positively correlated with the transmission speed of the target object;
[0128] The object transmission module is used to transmit the target object to the second electronic device based on the transmission speed corresponding to the transmission priority.
[0129] In some embodiments, the priority determination module may specifically include:
[0130] A first determination submodule, configured to determine, according to device status information, whether a first target electronic device and a second target electronic device meet a preset status, wherein the first target electronic device and the second target electronic device are any two devices among a plurality of second electronic devices;
[0131] A time acquisition submodule, used to acquire a first connection time when the first target electronic device is connected to the network connection hotspot and a second connection time when the second target electronic device is connected to the network connection hotspot when the first target electronic device and the second target electronic device meet a preset state;
[0132] an interval determination submodule, configured to determine a first time interval between a first connection time and a current system time, and a second time interval between a second connection time and the current system time;
[0133] The first processing submodule is configured to determine, when the first time interval is greater than the second time interval, that the transmission priority corresponding to the first target electronic device is greater than the transmission priority corresponding to the second target electronic device.
[0134] In some embodiments, the priority determination module may further include:
[0135] A second determining submodule is used to determine a connection time interval between the first target electronic device and the second target electronic device according to the first connection time and the second connection time after obtaining a first connection time when the first target electronic device is connected to the network connection hotspot and a second connection time when the second target electronic device is connected to the network connection hotspot;
[0136] The first processing submodule is also used for:
[0137] When the connection time interval is greater than the first preset threshold and the first time interval is greater than the second time interval, it is determined that the transmission priority corresponding to the first target electronic device is greater than the transmission priority corresponding to the second target electronic device.
[0138] In some embodiments, the device status information includes power information, and the preset status includes a status where the remaining power is greater than a second preset threshold;
[0139] The priority determination module may further include:
[0140] a third determination submodule, for the third determination submodule, after respectively determining whether the first target electronic device and the second target electronic device satisfy a preset state according to the device state information, if at least one of the first target electronic device and the second target electronic device does not satisfy the preset state, determining whether the remaining power of the first target electronic device is less than the remaining power of the second target electronic device;
[0141] The second processing submodule is used to determine that the transmission priority corresponding to the first target electronic device is greater than the transmission priority corresponding to the second target electronic device when the remaining power of the first target electronic device is less than the remaining power of the second target electronic device.
[0142] In some embodiments, the priority determination module may further include:
[0143] a fourth determination submodule, configured to, after determining a connection time interval between the first target electronic device and the second target electronic device according to the first connection time and the second connection time, determine, when the connection time interval is less than or equal to a first preset threshold, a first remaining quantity to be transmitted of the target object corresponding to the first target electronic device, and a second remaining quantity to be transmitted of the target object corresponding to the second target electronic device;
[0144] The third processing submodule is used to determine that the transmission priority corresponding to the first target electronic device is greater than the transmission priority corresponding to the second target electronic device when the first remaining amount to be transmitted is less than the second remaining amount to be transmitted.
[0145] In some of these embodiments, the target object includes a target folder, and the target folder includes a first file and a second file;
[0146] The priority determination module may further include:
[0147] a fifth determining submodule, configured to, after determining a connection time interval between the first target electronic device and the second target electronic device according to the first connection time and the second connection time, determine a size of a first file acquired by the first target electronic device and a size of a second file acquired by the second target electronic device if the connection time interval is less than or equal to a first preset threshold;
[0148] The fourth processing submodule is used to determine that the transmission priority corresponding to the first target electronic device is greater than the transmission priority corresponding to the second target electronic device when the size of the first file is smaller than the size of the second file.
[0149] Therefore, by determining the transmission priority of the second electronic device through the device status information of the second electronic device, the user's experience of sharing the target object can be improved. When the status of the shared device is normal, the device that first connects to the hotspot has a high transmission priority, thereby reducing the transmission waiting time. When the status of the shared device is abnormal, minimize the transmission waiting time of low-battery electronic devices to prevent the low-battery electronic devices from running out of power, thereby avoiding interruptions that affect the sharing of the target object. When the status of the shared device is normal and the power is consistent, reduce the transmission waiting time of electronic devices with a small remaining amount to be transmitted, or reduce the transmission waiting time of electronic devices with small files, thereby improving transmission efficiency and increasing the flexibility of the sharing process.
[0150] The present application also provides another object sharing device, which can be applied to a second electronic device. Figure 6 The object sharing device provided in the embodiment of the present application is described in detail.
[0151] Figure 6 It is a structural block diagram of an object sharing device according to an exemplary embodiment.
[0152] like Figure 6 As shown, the object sharing device 600 may include:
[0153] The second receiving module 601 is used to receive a second input from a user connecting to a network connection hotspot; wherein the network connection hotspot includes storage address information of the target object in the first electronic device;
[0154] The hotspot connection module 602 is used to connect to a network connection hotspot in response to a second input;
[0155] The object acquisition module 603 is used to acquire the target object from the first electronic device according to the storage address information.
[0156] Thus, by receiving the second input of the user connecting to the network connection hotspot and responding to the second input, the network connection hotspot is connected. Then, according to the storage address information, the target object is obtained from the first electronic device. In this way, the shared end can actively obtain information such as the file address carried in the network connection hotspot without waiting for other shared ends. The shared end can flexibly select the files it needs, thereby improving the flexibility and convenience of file sharing.
[0157] The object sharing device 600 is described in detail below, as follows:
[0158] In some of the embodiments, the target object includes a folder, the folder includes at least one file, and the network connection hotspot also includes file information corresponding to the at least one file;
[0159] The object acquisition module 603 may further include:
[0160] An information display submodule, used to display file information corresponding to at least one file;
[0161] An input receiving submodule, used for receiving a third input of the target file information in the file information from the user;
[0162] The file acquisition submodule is used to acquire a target file corresponding to the target file information from the first electronic device according to the storage address information in response to the third input.
[0163] In this way, by displaying the file information corresponding to at least one file, receiving the third input of the user for the target file information in the file information, and responding to the third input, obtaining the target file corresponding to the target file information from the first electronic device according to the storage address information. In this way, the sharee can flexibly select the required file to download, thereby improving the flexibility of file sharing.
[0164] The object sharing device in the embodiment of the present application can be an electronic device, or a component in the electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal, or it can be other devices other than a terminal. Exemplarily, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, a car-mounted electronic device, a mobile Internet device (Mobile Internet Device, MID), an augmented reality (augmented reality, AR) / virtual reality (virtual reality, VR) device, a robot, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), etc., and can also be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.
[0165] The object sharing device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.
[0166] The object sharing device provided in the embodiment of the present application can achieve Figures 2 to 4To avoid repetition, the various processes implemented by the method embodiment are not described here.
[0167] Optional, such as Figure 7 As shown, an embodiment of the present application also provides an electronic device 700, including a processor 701 and a memory 702, wherein the memory 702 stores programs or instructions that can be executed on the processor 701, and when the program or instructions are executed by the processor 701, the various steps of the above-mentioned object sharing method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, they are not described here.
[0168] It should be noted that the electronic devices in the embodiments of the present application include the above-mentioned mobile electronic devices and non-mobile electronic devices.
[0169] Figure 8 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application.
[0170] The electronic device 800 includes but is not limited to: a radio frequency unit 801, a network module 802, an audio output unit 803, an input unit 804, a sensor 805, a display unit 806, a user input unit 807, an interface unit 808, a memory 809, and a processor 810 and other components.
[0171] Those skilled in the art will appreciate that the electronic device 800 may also include a power source (such as a battery) for supplying power to each component, and the power source may be logically connected to the processor 810 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Figure 8 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.
[0172] The user input unit 807 is used to receive a first input from a user to share a target object.
[0173] The processor 810 is configured to generate a network connection hotspot in response to a first input, wherein the network connection hotspot includes storage address information of a target object.
[0174] The processor 810 is used to enable a network connection hotspot so that at least one second electronic device can obtain a target object according to the stored address information when connected to the network connection hotspot.
[0175] Thus, when the user triggers the first electronic device to share the target object, a network connection hotspot is generated and opened. Since the network connection hotspot includes the storage address information corresponding to the target object, when one or more other second electronic devices are connected to the network connection hotspot, the second electronic device can actively obtain the target object from the first electronic device according to the storage address information, without the need for the first electronic device to send the target object to each second electronic device, thereby realizing the sharing process. In this way, the second electronic device can connect to the network connection hotspot at any time and download the target object at any time, which simplifies the sharing operation process, and since there are no restrictions on the connection time and sequence, the flexibility of the sharing process can be improved.
[0176] Optionally, the processor 810 is further used to determine at least one second electronic device that the first electronic device is pointing to based on the ultra-wideband (UWB) positioning function after the network connection hotspot is turned on.
[0177] Optionally, the processor 810 is further configured to connect to a second electronic device based on a network connection hotspot.
[0178] Optionally, the processor 810 is further configured to obtain device status information of the second electronic device when there are multiple second electronic devices and the second electronic device obtains the target object according to the storage address information.
[0179] Optionally, the processor 810 is further used to determine a transmission priority corresponding to the second electronic device according to the device status information, wherein the transmission priority is positively correlated with a transmission speed of the target object.
[0180] Optionally, the processor 810 is further configured to transmit the target object to the second electronic device based on a transmission speed corresponding to the transmission priority.
[0181] Optionally, the processor 810 is further configured to determine, according to the device status information, whether the first target electronic device and the second target electronic device satisfy a preset status, respectively, wherein the first target electronic device and the second target electronic device are any two devices among a plurality of second electronic devices.
[0182] Optionally, the input unit 804 is further used to obtain a first connection time when the first target electronic device is connected to the network connection hotspot, and a second connection time when the second target electronic device is connected to the network connection hotspot when the first target electronic device and the second target electronic device meet a preset state.
[0183] Optionally, the processor 810 is further configured to determine a first time interval between the first connection time and the current system time, and a second time interval between the second connection time and the current system time.
[0184] Optionally, the processor 810 is further configured to determine that the transmission priority corresponding to the first target electronic device is greater than the transmission priority corresponding to the second target electronic device when the first time interval is greater than the second time interval.
[0185] Optionally, the processor 810 is further used to determine the connection time interval between the first target electronic device and the second target electronic device based on the first connection time and the second connection time after obtaining the first connection time when the first target electronic device connects to the network connection hotspot and the second connection time when the second target electronic device connects to the network connection hotspot.
[0186] Optionally, the processor 810 is further used to determine that the transmission priority corresponding to the first target electronic device is greater than the transmission priority corresponding to the second target electronic device when the connection time interval is greater than a first preset threshold and the first time interval is greater than the second time interval.
[0187] Optionally, the processor 810 is further used to determine whether the remaining power of the first target electronic device is less than the remaining power of the second target electronic device after respectively determining whether the first target electronic device and the second target electronic device meet the preset status according to the device status information, if at least one of the first target electronic device and the second target electronic device does not meet the preset status.
[0188] Optionally, the processor 810 is further used to determine that the transmission priority corresponding to the first target electronic device is greater than the transmission priority corresponding to the second target electronic device when the remaining power of the first target electronic device is less than the remaining power of the second target electronic device.
[0189] Optionally, the processor 810 is further used to determine, after determining the connection time interval between the first target electronic device and the second target electronic device based on the first connection time and the second connection time, a first remaining amount to be transmitted of the target object corresponding to the first target electronic device and a second remaining amount to be transmitted of the target object corresponding to the second target electronic device when the connection time interval is less than or equal to a first preset threshold.
[0190] Optionally, the processor 810 is further configured to determine that the transmission priority corresponding to the first target electronic device is greater than the transmission priority corresponding to the second target electronic device when the first remaining amount to be transmitted is less than the second remaining amount to be transmitted.
[0191] Optionally, the processor 810 is further used to determine the size of a first file obtained by the first target electronic device and the size of a second file obtained by the second target electronic device after determining the connection time interval between the first target electronic device and the second target electronic device based on the first connection time and the second connection time, when the connection time interval is less than or equal to a first preset threshold.
[0192] Optionally, the processor 810 is further configured to determine that the transmission priority corresponding to the first target electronic device is greater than the transmission priority corresponding to the second target electronic device when the size of the first file is smaller than the size of the second file.
[0193] Optionally, the user input unit 807 is further used to receive a second input from a user to connect to a network connection hotspot; wherein the network connection hotspot includes storage address information of the target object in the first electronic device.
[0194] Optionally, the processor 810 is further configured to connect to a network connection hotspot in response to a second input.
[0195] Optionally, the input unit 804 is further configured to obtain the target object from the first electronic device according to the storage address information.
[0196] Optionally, the display unit 806 is further configured to display file information corresponding to at least one file.
[0197] Optionally, the user input unit 807 is further used to receive a third input from the user regarding the target file information in the file information.
[0198] Optionally, the processor 810 is further configured to, in response to the third input, obtain a target file corresponding to the target file information from the first electronic device according to the storage address information.
[0199] Therefore, by determining the transmission priority of the second electronic device through the device status information of the second electronic device, the user's experience of sharing the target object can be improved. When the status of the shared device is normal, the device that first connects to the hotspot has a high transmission priority, thereby reducing the transmission waiting time. When the status of the shared device is abnormal, the transmission waiting time of the electronic device with low power is minimized to prevent the low-power electronic device from running out of power, thereby avoiding the interruption of the sharing of the target object due to the running out of power of the device. When the status of the shared device is normal and the power is consistent, the transmission waiting time of the electronic device with a small remaining amount to be transmitted is reduced, or the transmission waiting time of the electronic device with a small file is reduced, thereby improving the transmission efficiency and the flexibility of the sharing process.
[0200] It should be understood that in the embodiment of the present application, the input unit 804 may include a graphics processor (Graphics Processing Unit, GPU) 8041 and a microphone 8042, and the graphics processor 8041 processes the image data of the static picture or video obtained by the image capture device (such as a camera) in the video capture mode or the image capture mode. The display unit 806 may include a display panel 8061, and the display panel 8061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 807 includes a touch panel 8071 and at least one of other input devices 8072. The touch panel 8071 is also called a touch screen. The touch panel 8071 may include two parts: a touch detection device and a touch controller. Other input devices 8072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.
[0201] The memory 809 can be used to store software programs and various data. The memory 809 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required for at least one function (such as a sound playback function, an image playback function, etc.), etc. In addition, the memory 809 may include a volatile memory or a non-volatile memory, or the memory 809 may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM) and a direct memory bus random access memory (DRRAM). The memory 809 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.
[0202] The processor 810 may include one or more processing units; optionally, the processor 810 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It is understandable that the modem processor may not be integrated into the processor 810.
[0203] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, each process of the above-mentioned object sharing method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0204] The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk.
[0205] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned object sharing method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0206] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
[0207] An embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the above-mentioned object sharing method embodiment and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0208] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes 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 sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0209] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.
[0210] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.
Claims
1. An object sharing method, applied to a first electronic device, characterized in that: include: Receive a first input of a user sharing a target object; In response to the first input, generating a network connection hotspot, wherein the network connection hotspot includes storage address information of the target object; Turning on the network connection hotspot, so that at least one second electronic device acquires the target object according to the storage address information when connected to the network connection hotspot; Wherein, in the case where there are multiple second electronic devices and the second electronic device obtains the target object according to the storage address information, the method further includes: Acquire device status information of the second electronic device; Determining respectively whether a first target electronic device and a second target electronic device meet a preset state according to the device state information, wherein the first target electronic device and the second target electronic device are any two devices among a plurality of second electronic devices; When the first target electronic device and the second target electronic device meet the preset state, obtaining a first connection time when the first target electronic device is connected to the network connection hotspot, and a second connection time when the second target electronic device is connected to the network connection hotspot; Determining a first time interval between the first connection time and a current system time, and a second time interval between the second connection time and the current system time; When the first time interval is greater than the second time interval, determining that the transmission priority corresponding to the first target electronic device is greater than the transmission priority corresponding to the second target electronic device, wherein the transmission priority is positively correlated with the transmission speed of the target object; The target object is transmitted to the second electronic device based on a transmission speed corresponding to the transmission priority.
2. The method according to claim 1, characterized in that After opening the network connection hotspot, the method further includes: Based on an ultra-wideband (UWB) positioning function, determine at least one second electronic device to which the first electronic device is pointing; Based on the network connection hotspot, the second electronic device is connected.
3. The method according to claim 1, characterized in that After acquiring a first connection time when the first target electronic device is connected to the network connection hotspot and a second connection time when the second target electronic device is connected to the network connection hotspot, the method further includes: Determine a connection time interval between the first target electronic device and the second target electronic device according to the first connection time and the second connection time; The determining, when the first time interval is greater than the second time interval, that the transmission priority corresponding to the first target electronic device is greater than the transmission priority corresponding to the second target electronic device includes: When the connection time interval is greater than a first preset threshold and the first time interval is greater than the second time interval, it is determined that the transmission priority corresponding to the first target electronic device is greater than the transmission priority corresponding to the second target electronic device.
4. The method according to claim 1, characterized in that: The device status information includes power information, and the preset state includes a state where the remaining power is greater than a second preset threshold; After determining whether the first target electronic device and the second target electronic device meet the preset status respectively according to the device status information, the method further includes: In a case where at least one of the first target electronic device and the second target electronic device does not satisfy the preset state, determining whether the remaining power of the first target electronic device is less than the remaining power of the second target electronic device; When the remaining power of the first target electronic device is less than the remaining power of the second target electronic device, it is determined that the transmission priority corresponding to the first target electronic device is greater than the transmission priority corresponding to the second target electronic device.
5. The method according to claim 3, characterized in that: After determining a connection time interval between the first target electronic device and the second target electronic device according to the first connection time and the second connection time, the method further includes: When the connection time interval is less than or equal to the first preset threshold, determining a first remaining amount to be transmitted of the target object corresponding to the first target electronic device, and a second remaining amount to be transmitted of the target object corresponding to the second target electronic device; In a case where the first remaining amount to be transmitted is less than the second remaining amount to be transmitted, it is determined that the transmission priority corresponding to the first target electronic device is greater than the transmission priority corresponding to the second target electronic device.
6. The method according to claim 3, characterized in that The target object includes a target folder, and the target folder includes a first file and a second file; After determining a connection time interval between the first target electronic device and the second target electronic device according to the first connection time and the second connection time, the method further includes: When the connection time interval is less than or equal to the first preset threshold, determining a size of the first file acquired by the first target electronic device and a size of the second file acquired by the second target electronic device; In a case where the size of the first file is smaller than the size of the second file, it is determined that the transmission priority corresponding to the first target electronic device is greater than the transmission priority corresponding to the second target electronic device.
7. An object sharing method, applied to a second electronic device, characterized in that: include: Receiving a second input from a user to connect to a network connection hotspot; wherein the network connection hotspot includes storage address information of the target object in the first electronic device; In response to the second input, connecting to the network connection hotspot; acquiring the target object from the first electronic device based on the transmission speed corresponding to the transmission priority of the second electronic device according to the storage address information; Wherein, the transmission priority is the transmission priority determined in claim 1.
8. The method according to claim 7, characterized in that The target object includes a folder, the folder includes at least one file, and the network connection hotspot also includes file information corresponding to the at least one file; The acquiring the target object from the first electronic device based on the storage address information and the transmission speed corresponding to the transmission priority of the second electronic device includes: displaying the file information corresponding to the at least one file; receiving a third input from a user regarding target file information in the file information; In response to the third input, a target file corresponding to the target file information is acquired from the first electronic device based on a transmission speed corresponding to the transmission priority of the second electronic device according to the storage address information.
9. An object sharing device, applied to a first electronic device, characterized in that: include: A first receiving module, used for receiving a first input of a user sharing a target object; A hotspot generating module, configured to generate a network connection hotspot in response to the first input, wherein the network connection hotspot includes storage address information of the target object; A hotspot opening module, used to open the network connection hotspot, so that at least one second electronic device can obtain the target object according to the storage address information when connected to the network connection hotspot; Wherein, in the case that there are multiple second electronic devices and the second electronic device obtains the target object according to the storage address information, the apparatus further includes: A status acquisition module, used to acquire device status information of the second electronic device; A first determination submodule, configured to determine, according to the device status information, whether a first target electronic device and a second target electronic device meet a preset status, wherein the first target electronic device and the second target electronic device are any two devices among a plurality of second electronic devices; a time acquisition submodule, configured to acquire a first connection time when the first target electronic device is connected to the network connection hotspot, and a second connection time when the second target electronic device is connected to the network connection hotspot, when the first target electronic device and the second target electronic device meet the preset state; an interval determination submodule, configured to determine a first time interval between the first connection time and a current system time, and a second time interval between the second connection time and the current system time; A first processing submodule, configured to determine, when the first time interval is greater than the second time interval, that a transmission priority corresponding to the first target electronic device is greater than a transmission priority corresponding to the second target electronic device, wherein the transmission priority is positively correlated with a transmission speed of the target object; The object transmission module is used to transmit the target object to the second electronic device based on the transmission speed corresponding to the transmission priority.
10. An object sharing device, applied to a second electronic device, characterized in that: include: A second receiving module is used to receive a second input of a user connecting to a network connection hotspot; wherein the network connection hotspot includes storage address information of the target object in the first electronic device; a hotspot connection module, configured to connect to the network connection hotspot in response to the second input; an object acquisition module, configured to acquire the target object from the first electronic device according to the storage address information and based on a transmission speed corresponding to the transmission priority of the second electronic device; Wherein, the transmission priority is the transmission priority determined in claim 1.
11. An electronic device, characterized in that: It includes a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the programs or instructions are executed by the processor, the steps of the object sharing method as described in any one of claims 1-6 or 7-8 are implemented.
Citation Information
Patent Citations
Information sharing method and system based on wifi network and terminal device
CN103297467A