Resource interaction method, device, equipment and storage medium
By monitoring the device location information and filtering devices that meet preset conditions, the problem of cumbersome resource interaction between devices is solved, and more efficient resource interaction is achieved.
Patent Information
- Application Number
- CN202210687290.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-16
- Publication Date
- 2025-04-25
- Estimated Expiration
- 2042-06-16
AI Technical Summary
When interacting resources between devices, the existing technology requires multiple operations, and users need to search for them for a long time, which has high operating costs and low resource interaction efficiency.
By monitoring the location information of devices within the preset range, the devices that meet the preset conditions are selected, the devices to be interacted with are determined, and resource interaction is carried out in accordance with the interaction direction.
The selection range of devices to be interacted is narrowed, the operating cost is reduced, and the efficiency of resource interaction is improved.
Smart Images

Figure CN115190475B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the field of communications, and in particular to a resource interaction method, device, equipment and storage medium. Background Art
[0002] Currently, when resources are exchanged between devices, such as documents or video audio, multiple operations are often required, and it is usually necessary to call up an interactive resource list for search. The interactive resource list often includes all devices that can communicate. Users usually need a long time to search, the operation cost is high, and the efficiency of resource interaction is low.
[0003] For example, when devices interact with resources via Bluetooth, it is necessary to select the share button for the open resource, enter the secondary page, select the Bluetooth sharing method, search for all nearby Bluetooth devices, and then allow the user to search among all the searched Bluetooth devices and select the object to be shared, which results in a high operation cost.
[0004] Therefore, there is an urgent need for a resource interaction method that reduces operating costs and improves resource interaction efficiency. Summary of the invention
[0005] In order to solve the above problems, the embodiments of the present invention provide a resource interaction method, device, equipment and storage medium. The technical solution is as follows.
[0006] An embodiment of the present invention provides a resource interaction method, which is applied to a target device. The method includes:
[0007] Monitor the location information of one or more other devices within a preset range;
[0008] In the case where it is detected that there are other devices whose location information meets the preset conditions, determining a device to be interacted with from the other devices that meet the preset conditions;
[0009] Determining an interaction direction between the target device and the device to be interacted;
[0010] According to the interaction direction, resource interaction is performed between the target device and the device to be interacted.
[0011] Optionally, the preset condition includes at least one of the following:
[0012] The angle between the first direction and the moving direction of the target device is within a first preset angle range;
[0013] The angle between the second direction and the moving direction of the other device is within a second preset angle range;
[0014] The distance between the other devices and the target device is less than a preset distance threshold;
[0015] The first direction is a direction from the target device to other devices; the second direction is a direction from other devices to the target device.
[0016] Optionally, determining the interaction direction between the target device and the device to be interacted includes:
[0017] An interaction direction between the target device and the device to be interacted is determined according to preset information of the target device and the device to be interacted.
[0018] Optionally, determining the interaction direction between the target device and the device to be interacted according to preset information of the target device and the device to be interacted includes:
[0019] An interaction direction between the target device and the device to be interacted is determined according to movement information of the target device and the device to be interacted.
[0020] Optionally, determining the interaction direction between the target device and the device to be interacted according to movement information of the target device and the device to be interacted includes:
[0021] Respectively obtaining preset calculation results corresponding to the target device and the device to be interacted with;
[0022] The preset calculation result is positively correlated with the preset speed information of the corresponding device;
[0023] The preset calculation result corresponding to the target device is negatively correlated with a first angle, where the first angle is the angle between the moving direction of the target device itself and the direction from the target device to the device to be interacted;
[0024] The preset calculation result corresponding to the device to be interacted is negatively correlated with a second angle, where the second angle is the angle between the moving direction of the device to be interacted and the direction from the device to be interacted to the target device;
[0025] The interaction direction between the target device and the device to be interacted is determined according to the two preset calculation results obtained.
[0026] Optionally, determining the interaction direction between the target device and the device to be interacted with according to the two preset calculation results obtained includes:
[0027] Compare the two preset calculation results obtained, and determine that the interaction direction is sending resources from the first device to the second device, wherein the first device is the device corresponding to the larger preset calculation result, and the second device is the device corresponding to the smaller preset calculation result.
[0028] Optionally, determining the interaction direction between the target device and the device to be interacted according to preset information of the target device and the device to be interacted includes:
[0029] For the target device and the device to be interacted, determining an interaction direction as a device currently displaying a resource in a preset state sending a resource to another device;
[0030] The resource showing the preset state includes at least one of the following:
[0031] Display selected resources, display previewed resources, display edited resources, display viewed resources, and display only a single resource.
[0032] Optionally, determining the interaction direction between the target device and the device to be interacted according to preset information of the target device and the device to be interacted includes:
[0033] Determining a resource to be interacted with; wherein the resource to be interacted with corresponds to a preset interaction direction;
[0034] The interaction direction corresponding to the resource to be interacted is determined as the interaction direction between the target device and the device to be interacted.
[0035] Optionally, determining the device to be interacted with from the other devices that meet the preset condition includes:
[0036] Determine the other devices that meet the preset conditions as the devices to be interacted with; or
[0037] From the other devices that meet the preset conditions, other devices selected based on the user operation are determined as the devices to be interacted with.
[0038] Optionally, performing resource interaction between the target device and the device to be interacted with includes:
[0039] If it is determined that the device to be interacted refuses to interact with resources, stopping interacting with resources with the device to be interacted;
[0040] In a case where it is determined that the device to be interacted with allows resource interaction, resource interaction is performed with the device to be interacted with.
[0041] Optionally, performing resource interaction between the target device and the device to be interacted with includes:
[0042] Determine a resource to be interacted with, and send information about the resource to be interacted with to the device to be interacted with, so that the device to be interacted with performs at least one of the following operations:
[0043] Displaying the resource to be interacted with;
[0044] Receiving an update from the target device with respect to the resource to be interacted with;
[0045] When it is determined that the device to be interacted has the authority to update the resource to be interacted, the update of the resource to be interacted by the device to be interacted is synchronized with the target device.
[0046] Optionally, the method further comprises:
[0047] In the case where no device to be interacted with is determined, narrowing the scope of satisfaction of the preset condition;
[0048] When at least one device to be interacted with is determined, the scope of satisfaction of the preset condition is increased.
[0049] Optionally, the method further comprises:
[0050] When no device to be interacted with is determined, reducing at least one of the following: the preset distance threshold, the first preset angle range, and the second preset angle range;
[0051] When at least one device to be interacted with is determined, at least one of the following items is increased: the preset distance threshold, the first preset angle range, and the second preset angle range.
[0052] Optionally, the method further comprises:
[0053] When it is determined that the preset calculation result corresponding to the target device is smaller, reducing the positive correlation coefficient between the preset calculation result corresponding to the target device and the preset speed information of the target device, and / or increasing the negative correlation coefficient between the preset calculation result corresponding to the target device and the first angle;
[0054] When it is determined that the preset calculation result corresponding to the target device is larger, the positive correlation coefficient between the preset calculation result corresponding to the target device and the preset speed information of the target device is increased, and / or the negative correlation coefficient between the preset calculation result corresponding to the target device and the first angle is reduced.
[0055] The embodiment of the present invention further provides a resource interaction device, which is applied to a target device, and the device includes:
[0056] A monitoring unit, used to monitor the location information of one or more other devices within a preset range;
[0057] A determining unit, configured to determine a device to be interacted with from other devices that meet the preset conditions when detecting that there are other devices whose location information meets the preset conditions;
[0058] The interaction unit is used to determine the interaction direction between the target device and the device to be interacted; and perform resource interaction between the target device and the device to be interacted according to the interaction direction.
[0059] Optionally, the preset condition includes at least one of the following:
[0060] The angle between the first direction and the moving direction of the target device is within a first preset angle range;
[0061] The angle between the second direction and the moving direction of the other device is within a second preset angle range;
[0062] The distance between the other devices and the target device is less than a preset distance threshold;
[0063] The first direction is a direction from the target device to other devices; the second direction is a direction from other devices to the target device.
[0064] Optionally, the interaction unit is used to:
[0065] An interaction direction between the target device and the device to be interacted is determined according to preset information of the target device and the device to be interacted.
[0066] Optionally, the interaction unit is used to:
[0067] An interaction direction between the target device and the device to be interacted is determined according to movement information of the target device and the device to be interacted.
[0068] Optionally, the interaction unit is used to:
[0069] Respectively obtaining preset calculation results corresponding to the target device and the device to be interacted with;
[0070] The preset calculation result is positively correlated with the preset speed information of the corresponding device;
[0071] The preset calculation result corresponding to the target device is negatively correlated with a first angle, where the first angle is the angle between the moving direction of the target device itself and the direction from the target device to the device to be interacted;
[0072] The preset calculation result corresponding to the device to be interacted is negatively correlated with a second angle, where the second angle is the angle between the moving direction of the device to be interacted and the direction from the device to be interacted to the target device;
[0073] The interaction direction between the target device and the device to be interacted is determined according to the two preset calculation results obtained.
[0074] Optionally, the interaction unit is used to:
[0075] Compare the two preset calculation results obtained, and determine that the interaction direction is sending resources from the first device to the second device, wherein the first device is the device corresponding to the larger preset calculation result, and the second device is the device corresponding to the smaller preset calculation result.
[0076] Optionally, the interaction unit is used to:
[0077] For the target device and the device to be interacted, determining an interaction direction as a device currently displaying a resource in a preset state sending a resource to another device;
[0078] The resource showing the preset state includes at least one of the following:
[0079] Display selected resources, display previewed resources, display edited resources, display viewed resources, and display only a single resource.
[0080] Optionally, the interaction unit is used to:
[0081] Determining a resource to be interacted with; wherein the resource to be interacted with corresponds to a preset interaction direction;
[0082] The interaction direction corresponding to the resource to be interacted is determined as the interaction direction between the target device and the device to be interacted.
[0083] Optionally, the determining unit is used to:
[0084] Determine the other devices that meet the preset conditions as the devices to be interacted with; or
[0085] From the other devices that meet the preset conditions, other devices selected based on the user operation are determined as the devices to be interacted with.
[0086] Optionally, the interaction unit is used to:
[0087] If it is determined that the device to be interacted refuses to interact with resources, stopping interacting with resources with the device to be interacted;
[0088] In a case where it is determined that the device to be interacted with allows resource interaction, resource interaction is performed with the device to be interacted with.
[0089] Optionally, the interaction unit is used to:
[0090] Determine a resource to be interacted with, and send information about the resource to be interacted with to the device to be interacted with, so that the device to be interacted with performs at least one of the following operations:
[0091] Displaying the resource to be interacted with;
[0092] Receiving an update from the target device with respect to the resource to be interacted with;
[0093] When it is determined that the device to be interacted has the authority to update the resource to be interacted, the update of the resource to be interacted by the device to be interacted is synchronized with the target device.
[0094] Optionally, the device further comprises a feedback unit, configured to:
[0095] When no device to be interacted with is determined, the scope of satisfaction of the preset condition is narrowed; when at least one device to be interacted with is determined, the scope of satisfaction of the preset condition is increased.
[0096] Optionally, the feedback unit is used to:
[0097] When no device to be interacted with is determined, reducing at least one of the following: the preset distance threshold, the first preset angle range, and the second preset angle range;
[0098] When at least one device to be interacted with is determined, at least one of the following items is increased: the preset distance threshold, the first preset angle range, and the second preset angle range.
[0099] Optionally, the feedback unit is used to:
[0100] When it is determined that the preset calculation result corresponding to the target device is smaller, reducing the positive correlation coefficient between the preset calculation result corresponding to the target device and the preset speed information of the target device, and / or increasing the negative correlation coefficient between the preset calculation result corresponding to the target device and the first angle;
[0101] When it is determined that the preset calculation result corresponding to the target device is larger, the positive correlation coefficient between the preset calculation result corresponding to the target device and the preset speed information of the target device is increased, and / or the negative correlation coefficient between the preset calculation result corresponding to the target device and the first angle is reduced.
[0102] An embodiment of the present invention further provides an electronic device, comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus;
[0103] Memory, used to store computer programs;
[0104] The processor is used to implement the method steps of any of the above-mentioned resource interaction methods when executing the program stored in the memory.
[0105] An embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method steps of any of the above-mentioned resource interaction methods are implemented.
[0106] A resource interaction method provided by an embodiment of the present invention can screen out other devices that may need to interact with a target device based on preset conditions, thereby narrowing the selection range of devices to be interacted with, reducing operating costs, and improving the efficiency of interactive resources.
[0107] Of course, it is not necessary to achieve all of the advantages described above at the same time to implement any product or method of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0108] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the embodiments of the present invention. For ordinary technicians in this field, other drawings can also be obtained based on these drawings.
[0109] Figure 1 It is a flowchart of a resource interaction method provided by an embodiment of the present invention;
[0110] Figure 2 It is a flow chart of a method for monitoring device location information provided by an embodiment of the present invention;
[0111] Figure 3 It is a schematic diagram of a principle for determining a device to be interacted with provided by an embodiment of the present invention;
[0112] Figure 4 It is a schematic diagram of the principle of resource interaction provided by an embodiment of the present invention;
[0113] Figure 5 is a structural diagram of a resource interaction device provided by an embodiment of the present invention;
[0114] Figure 6 It is a structural diagram of a device for configuring a method according to an embodiment of the present invention. DETAILED DESCRIPTION
[0115] In order to enable those skilled in the art to better understand the technical solutions in the embodiments of the present invention, the technical solutions in the embodiments of the present invention will be described in detail below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of this specification, not all of the embodiments. Based on the embodiments in this specification, all other embodiments obtained by ordinary technicians in this field should belong to the scope of disclosure.
[0116] Currently, when resources are exchanged between devices, such as documents or video audio, multiple operations are often required, and it is usually necessary to call up an interactive resource list for search. The interactive resource list often includes all devices that can communicate. Users usually need a long time to search, the operation cost is high, and the efficiency of resource interaction is low.
[0117] For example, when devices interact with resources via Bluetooth, it is necessary to select the share button for the open resource, enter the secondary page, select the Bluetooth sharing method, search for all nearby Bluetooth devices, and then allow the user to search among all the searched Bluetooth devices and select the object to be shared, which results in a high operation cost.
[0118] In order to solve the above problems, an embodiment of the present invention provides a resource interaction method.
[0119] In this method, by setting preset conditions, devices whose locations meet the preset conditions can be screened out from all other devices that can communicate, that is, other devices that may require interactive resources, and then the devices that really need interactive resources can be determined, thereby narrowing the selection range and reducing operating costs.
[0120] For example, in the related art, it is necessary to select from all 100 devices that can communicate, but by using the method provided by the embodiment of the present invention, it is possible to select from 10 devices that meet the preset conditions after screening based on the preset conditions, thereby reducing operating costs.
[0121] Among them, you can filter according to the movement between devices.
[0122] If two devices are relatively close to each other, it can be considered that the two devices may need to interact with each other. Therefore, simple operations on the mobile device can help to screen and facilitate user operations. The specific devices are relatively close, which can be judged by monitoring the location information of the devices.
[0123] Therefore, any device can monitor the location information of other devices to clarify the movement of devices, screen out other devices that are relatively close to each other, and then facilitate the selection of devices to be interacted with that really need interactive resources. Based on preset conditions, other devices that may need to interact with resources of the target device can be screened out, narrowing the selection range of devices to be interacted with, reducing operating costs, and improving the efficiency of interactive resources.
[0124] A resource interaction method provided by an embodiment of the present invention is explained in detail below in conjunction with the accompanying drawings.
[0125] like Figure 1 , which is a flow chart of a resource interaction method provided by an embodiment of the present invention.
[0126] The method can be applied to a target device, which can be any device that has a resource interaction requirement and needs to determine another device for resource interaction.
[0127] The method may include the following steps.
[0128] S101: Monitor location information of one or more other devices within a preset range.
[0129] S102: When it is detected that there are other devices whose location information meets the preset conditions, determine a device to be interacted with from the other devices that meet the preset conditions.
[0130] Among them, optionally, the preset conditions may include at least one of the following: the angle between the first direction and the moving direction of the target device is within a first preset angle range; the angle between the second direction and the moving direction of other devices is within a second preset angle range; the distance between the other devices and the target device is less than a preset distance threshold.
[0131] The first direction may be a direction from the target device to other devices; the second direction may be a direction from other devices to the target device.
[0132] S103: Determine an interaction direction between the target device and the device to be interacted; perform resource interaction between the target device and the device to be interacted according to the determined interaction direction.
[0133] This method process can monitor the location information of other devices, and thus screen out other devices that may need to interact with the target device based on preset conditions, thereby narrowing the selection range of devices to be interacted with, reducing operating costs, and improving the efficiency of interactive resources.
[0134] Furthermore, in the process of this method, the timing of resource interaction is determined by monitoring the location information of other devices, which has nothing to do with whether the target device is currently on the resource page.
[0135] For example, the target device currently has not opened any resource, nor entered any secondary interface for selecting an interaction method. Resource interaction can be performed directly after determining the device to be interacted with. Specifically, resource interaction can be performed after selecting the resource to be interacted with in real time.
[0136] Therefore, the method flow can initiate resource interaction on any resource page, greatly expanding the starting point range of resource interaction.
[0137] The following is a detailed explanation of each step.
[0138] 1. S101: Monitoring location information of one or more other devices within a preset range.
[0139] 1. The method flow is not specifically limited to the preset range.
[0140] Optionally, the preset range may be a range with the target device as the center and a fixed distance as the radius.
[0141] Optionally, the preset range may be a network coverage range to which the target device is connected, which may specifically be a local area network or WiFi range.
[0142] In an optional embodiment, the target device usually monitors the location information of other devices by means of communication, and specifically, the monitoring may be performed by exchanging location information with other devices in real time.
[0143] Therefore, optionally, other devices monitored by the target device may specifically include other devices that the target device can communicate with through a communication method. The communication method may specifically include a near field communication method or a network communication, such as Bluetooth and WiFi.
[0144] Correspondingly, optionally, the preset range may be a distance range within which the target device can communicate via a communication method, and specifically, may be a distance range within which the target device can communicate via a near field communication method.
[0145] Among them, the preset range can be specifically determined according to the method of monitoring the location information of other devices. For example, if the monitoring method can only monitor other devices within a fixed distance of the target device, the preset range can be a range with the target device as the center and the fixed distance as the radius.
[0146] 2. Regarding location information, this method does not specifically limit the form of the location information.
[0147] Optionally, the location information may be absolute location information, such as latitude and longitude location information, or base station positioning information.
[0148] Optionally, the location information may be relative location information, specifically, location information of other devices relative to the target device.
[0149] For example, a coordinate system can be constructed on a plane with the orientation of the target device as the Y axis and the position of the target device as the origin, and then the relative position information of other devices in the coordinate system, that is, the position relative to the origin (target device), can be determined.
[0150] Therefore, optionally, monitoring the position information of one or more other devices within a preset range may include: monitoring the relative position information of one or more other devices within the preset range relative to the target device.
[0151] The form of the location information may be specifically determined according to a method for monitoring location information of other devices. For example, if the monitoring method can only monitor relative location information, the form of the location information may be relative location information.
[0152] 3. Regarding the method of monitoring the location information of other devices, this method flow does not specifically limit the monitoring method.
[0153] Optionally, the location information of other devices determined by any positioning method may be monitored, and specifically may be absolute location information.
[0154] Optionally, signals may be directly exchanged with other devices, thereby determining relative position information based on the duration required for the interaction signals.
[0155] In an optional embodiment, the location information of other devices may be monitored via ultra-wideband communication technology.
[0156] Optionally, monitoring the location information of one or more other devices within a preset range may include: generating its own ultra-wideband device token, exchanging ultra-wideband device tokens with one or more other devices within the preset range; and obtaining the location information of other devices through an ultra-wideband communication interface.
[0157] Based on ultra-wideband communication technology, other devices in the same network domain can be discovered, and ultra-wideband rapid communication can be carried out after sharing the ultra-wideband communication token. Relative position information can be exchanged, making it convenient for the target device to monitor the relative position information of other devices.
[0158] Among them, the target device can support ultra-wideband communication.
[0159] For ease of understanding, a specific embodiment of monitoring the location information of other devices is given below.
[0160] like Figure 2 , which is a flow chart of a method for monitoring device location information provided by an embodiment of the present invention.
[0161] S201: Each device generates its own ultra-wideband device Token and shares it with other devices in the network in an encrypted manner.
[0162] S202: After receiving the Token, the target device obtains the relative position between itself and other devices through the ultra-wideband communication interface, including direction and distance.
[0163] S203: The target device monitors updated data of relative positions with other devices.
[0164] 2. S102: When it is detected that there are other devices whose location information meets the preset conditions, a device to be interacted with is determined from the other devices that meet the preset conditions.
[0165] Among them, optionally, the preset conditions may include at least one of the following: the angle between the first direction and the moving direction of the target device is within a first preset angle range; the angle between the second direction and the moving direction of other devices is within a second preset angle range; the distance between the other devices and the target device is less than a preset distance threshold.
[0166] In this embodiment, filtering can be performed through relative movement between devices, so that simple operation of the mobile device can help to perform filtering, which can also facilitate the user's operation, narrow the selection range, reduce operating costs, and improve the efficiency of resource interaction.
[0167] In this embodiment, the devices may be screened by distance between each other, thereby further narrowing the selection range, reducing operation costs, and improving the efficiency of resource interaction.
[0168] In an optional embodiment, based on the location information of other devices monitored in S101, the distance between the target device and the other devices can be determined in real time, and the direction of the other devices relative to the target device can also be determined in real time.
[0169] 1. This embodiment does not specifically limit the preset distance threshold.
[0170] The preset distance threshold can be used to limit devices that are closer to the target device.
[0171] Optionally, the preset distance threshold may be specifically 3 meters, or 4 meters, that is, a closer distance, thereby facilitating screening.
[0172] Therefore, optionally, the preset condition may include: the distance between the other device and the target device is less than a preset distance threshold.
[0173] 2. In an optional embodiment, in order to facilitate determination of other devices that are relatively close to the target device, the target device may be close to other devices, other devices may be close to the target device, or the target device and other devices may be close to each other.
[0174] Specifically, other devices that are relatively close to the target device may be determined based on the moving direction of the target device and / or the moving directions of other devices.
[0175] Optionally, with respect to the moving direction of the target device, if the angle between the first direction and the moving direction of the target device is 0, it may indicate that the target device is moving in a straight line toward the other device, and it may be considered that the target device is approaching the other device, that is, a situation in which the target device and the other device are relatively close to each other.
[0176] Of course, due to precision limitations, or the device may be subject to certain interferences when moving, such as obstacles that need to be circumvented, the angle between the first direction and the moving direction of the target device will usually fluctuate within a certain range.
[0177] In addition, the other device may be stationary or moving, and the first direction may change, so that the angle between the first direction and the moving direction of the target device may fluctuate within a certain range.
[0178] Therefore, it can be determined through the first preset angle range whether the target device needs to move closer to another device.
[0179] If the angle between the first direction and the moving direction of the target device fluctuates within the first preset angle range, it can be determined that the target device is moving toward other devices. If the angle between the first direction and the moving direction of the target device fluctuates beyond the first preset angle range, it can be determined that the target device is not necessarily moving toward other devices.
[0180] Specifically, the first preset angle range may be less than 10 degrees, or less than 20 degrees.
[0181] Therefore, optionally, the preset condition may include: the angle between the first direction and the moving direction of the target device is within a first preset angle range. The first direction may be a direction from the target device to other devices.
[0182] Optionally, for the moving direction of other devices, if the angle between the second direction and the moving direction of other devices is 0, it can be said that the other devices are moving in a straight line towards the target device, and it can be considered that the other devices are approaching the target device, that is, a situation where the target device and the other devices are relatively close to each other.
[0183] Similarly, the angle between the second direction and the moving direction of the other device may also fluctuate within a certain range. Therefore, the second preset angle range can be used to determine whether another device needs to move closer to the target device.
[0184] If the angle between the second direction and the moving direction of the other device fluctuates within the second preset angle range, it can be determined that the other device is moving toward the target device. If the angle between the second direction and the moving direction of the other device fluctuates beyond the second preset angle range, it can be determined that the other device is not necessarily moving toward the target device.
[0185] Specifically, the second preset angle range may be less than 10 degrees, or less than 20 degrees.
[0186] Therefore, optionally, the preset condition may further include: the angle between the second direction and the moving direction of the other device is within a second preset angle range. The second direction may be a direction from the other device to the target device.
[0187] Optionally, with respect to the moving directions of the target device and the other device, the target device and the other device may be moving toward each other, that is, the angle between the first direction and the moving direction of the target device is within a first preset angle range, and the angle between the second direction and the moving direction of the other device is within a second preset angle range.
[0188] It can also be considered that the other device and the target device are approaching each other, that is, a situation in which the target device and the other device are relatively close to each other.
[0189] Therefore, optionally, the preset condition may further include: the angle between the first direction and the moving direction of the target device is within a first preset angle range, and the angle between the second direction and the moving direction of the other device is within a second preset angle range.
[0190] 3. Regarding the moving direction of the device, this method does not limit the specific determination method.
[0191] Alternatively, it may be determined based on an accelerometer sensor configured in the device itself. The accelerometer sensor may determine the moving direction and moving acceleration of the device.
[0192] Therefore, optionally, the target device can determine the moving direction of the target device according to the accelerometer sensor in the target device. Similarly, other devices can also determine the moving direction of other devices according to their own accelerometer sensors and send it to the target device to help determine whether the preset conditions are met.
[0193] Optionally, since the target device monitors the location information of other devices, the moving direction of other devices may also be determined based on changes in the monitored location information.
[0194] For example, the moving direction of other devices is determined based on the location information of other devices at two moments before and after.
[0195] In the above embodiment, other devices that are close to the target device and relatively close to each other can be screened out through preset conditions, so that it can be considered that the target device and the other screened devices may need to interact with resources to execute subsequent steps.
[0196] 4. It should be noted that the judgment of the preset condition requires the moving direction of the device. Specifically, the moving direction of the target device and / or other devices may be used.
[0197] In other words, when a user needs to interact with resources, the user device can be moved so that the devices of both parties that need to interact with resources meet the preset conditions.
[0198] For example, when a user clearly needs to interact with another user's user equipment, the user can move with his own user equipment to the other user, and the user equipment of the other user can be screened out based on preset conditions to be conveniently determined as the device to be interacted.
[0199] For example, when a user clearly needs to interact with another user's user equipment, the user can ask the other user to move his or her user equipment to the user's user equipment, and then the user equipment of the other user can be screened out based on preset conditions and conveniently determined as the device to be interacted with.
[0200] For example, when a user clearly needs to interact with another user's user equipment, the user can move his own user equipment toward the user equipment of the other user. When the distance is reduced to a certain threshold, that is, less than a preset distance threshold, the user equipment of the other user can be screened out based on preset conditions to facilitate determination as the device to be interacted with.
[0201] In this embodiment, based on the setting of preset conditions, the user's resource interaction operations can be simplified, and the user's intentions can be reflected through simple operations of mobile devices, and other devices that may need to interact with resources can be screened out, thereby narrowing the selection range, reducing operating costs, and improving the efficiency of resource interaction.
[0202] 5. In an optional embodiment, the target device may detect one or more other devices that meet preset conditions.
[0203] For other monitored devices, the target device can determine the to-be-interacted device that actually needs interaction resources.
[0204] This embodiment does not limit the specific method for determining the device to be interacted with.
[0205] Optionally, other monitored devices that meet preset conditions can be directly determined as devices to be interacted with without selection, thereby simplifying the operation of resource interaction, reducing operation costs, and improving the efficiency of resource interaction.
[0206] Optionally, the target device may make a selection based on a preset condition to be interacted with. The condition to be interacted with may be customized by a user of the target device or may be fixed.
[0207] This embodiment does not specifically limit the condition to be interacted with. Optionally, the condition to be interacted with may include: one or more other devices that are closest to the target device.
[0208] Optionally, the selection may be based on user operation. This embodiment does not limit the specific user operation, and optionally, it may be determined by querying whether to interact with other devices that meet the preset conditions; or it may be selected from the list by displaying a list.
[0209] Therefore, optionally, determining the device to be interacted with from other devices that meet the preset conditions may include: determining other devices that meet the preset conditions as the devices to be interacted with; or, from other devices that meet the preset conditions, determining other devices that further meet the conditions to be interacted with as the devices to be interacted with; or, from other devices that meet the preset conditions, determining other devices selected based on user operations as the devices to be interacted with.
[0210] Regarding user operations, in an optional embodiment, the user may be asked whether to perform resource interaction.
[0211] Since the user actually has no intention to interact with resources, it is possible to determine whether to interact with other devices by asking the user whether to interact with resources, thereby determining the devices to be interacted with that actually need to interact with resources.
[0212] This embodiment does not limit the inquiry method. Optionally, a preset interface may be displayed. The preset interface may include a first option indicating permission for resource interaction and a second option indicating refusal for resource interaction.
[0213] Optionally, a preset interface may be displayed, and the preset interface may include a first shortcut key representing permission for resource interaction and a second shortcut key representing rejection for resource interaction.
[0214] Specifically, the actual intention of the user can be determined through the user operation, and whether to interact with other devices for resources can be determined, thereby determining the device to be interacted with that needs to interact with resources.
[0215] It should be noted that when specifically determining the device to be interacted with, one or more devices to be interacted with may be determined, or zero devices to be interacted with may be determined, that is, no device to be interacted with is determined, indicating that the user of the target device does not actually want to interact with resources at this time.
[0216] 3. S103: Determine an interaction direction between the target device and the device to be interacted; perform resource interaction between the target device and the device to be interacted according to the determined interaction direction.
[0217] 1. Determine the resource sender and resource receiver.
[0218] In an optional embodiment, before the target device interacts with the device to be interacted with, it is usually necessary to clarify the resource sender and the resource receiver of the two interacting parties.
[0219] It should be emphasized here that, usually when resources are interacted, resources are allowed to be sent to each other, that is, there can be a situation where both parties of the interaction send resources to each other and receive resources from each other.
[0220] Therefore, optionally, for the target device and the device to be interacted, the device that sends the resource and the device that receives the resource may be determined, that is, the interaction direction between the target device and the device to be interacted may be determined.
[0221] In this embodiment, the resource sender and the resource receiver can be pre-defined to improve the efficiency of resource interaction.
[0222] The method flow does not limit the specific method of determining the device that sends the resource and the device that receives the resource.
[0223] Optionally, the target device may be directly determined as the device that sends the resource, and the device to be interacted with may be directly determined as the device that receives the resource.
[0224] Optionally, the device to be interacted with may be directly determined as the device that sends the resource, and the target device may be directly determined as the device that receives the resource.
[0225] Optionally, the interaction direction may also be determined according to information of the target device and the device to be interacted with.
[0226] Specifically, determining the interaction direction between the target device and the device to be interacted may include: determining the interaction direction between the target device and the device to be interacted according to preset information of the target device and the device to be interacted.
[0227] The present embodiment does not specifically limit the content of the preset information. Optionally, it may be information representing the interaction requirements between the target device and the device to be interacted, information representing the movement of the target device and the device to be interacted, or information representing the file display of the target device and the device to be interacted.
[0228] Of course, different methods may be used to determine the interaction direction for different preset information.
[0229] Three specific ways of determining the interaction direction are explained in detail below as exemplary illustrations.
[0230] Method 1:
[0231] In an optional embodiment, since in the explanation of S102, the devices to be interacted can be determined by the relative proximity between the devices, the device sending the resource and the device receiving the resource can be determined based on the speed at which the devices are approaching each other.
[0232] For example, if the target device quickly approaches other stationary devices, it can be determined that the target device has a demand for sending resources. If other devices quickly approach the stationary target device, it can be determined that the other devices have a demand for sending resources.
[0233] Therefore, a certain indicator can be used to determine the device that is more willing to send resources among the target device and the device to be interacted.
[0234] Optionally, the indicator may combine the movement speed of the device and the movement direction of the device to determine the intention of the user to whom the device belongs.
[0235] In other words, the interaction direction between devices can be determined by the movement between the devices.
[0236] Therefore, optionally, determining the interaction direction between the target device and the device to be interacted according to preset information of the target device and the device to be interacted may include: determining the interaction direction between the target device and the device to be interacted according to movement information of the target device and the device to be interacted.
[0237] The preset information may include movement information. Optionally, the movement information may include at least one of the following: movement speed, movement acceleration, movement direction and other information.
[0238] For example, if the target device moves at a faster speed and moves in a straight line toward the device to be interacted, it can be considered that the user to whom the target device belongs wishes to actively send resources to the device to be interacted.
[0239] For example, if the target device has a large moving acceleration and moves in a straight line toward the device to be interacted, it can be considered that the user to whom the target device belongs wishes to actively send resources to the device to be interacted.
[0240] Of course, in other examples, if the target device moves faster and moves in a straight line toward the device to be interacted with, it can be considered that the user to whom the target device belongs wishes to passively receive the resources of the device to be interacted with.
[0241] Therefore, the moving speed and moving direction of the device can be comprehensively considered to calculate a certain index, and the device to send resources can be determined according to the indexes corresponding to the target device and the device to be interacted.
[0242] The specific calculation method may not be limited. Optionally, the faster the moving speed of the device is, the larger the index may be, and the index may be positively correlated with the moving speed of the device.
[0243] Optionally, the more the moving direction of the device deviates from the direction between the devices, the smaller the index may be. Therefore, the index may be negatively correlated with the angle between the moving direction of the device and the direction between the devices.
[0244] Optionally, the larger the index, the stronger the demand of the device to send resources. Therefore, by comparing the indexes of the two devices, it can be determined that the device corresponding to the relatively larger index sends resources to the other device. Of course, it is also possible to determine that the device whose index is greater than a preset threshold sends resources to the other device. Among them, the two devices are allowed to send resources to each other.
[0245] Of course, optionally, the larger the index, the stronger the demand of the device to receive resources. Therefore, by comparing the indexes of the two devices, it can be determined that the device corresponding to the relatively smaller index sends resources to the other device. Of course, it can also be determined that the device with an index less than a preset threshold sends resources to the other device. Among them, the two devices are allowed to send resources to each other.
[0246] Therefore, optionally, determining the interaction direction between the target device and the device to be interacted according to the movement information of the target device and the device to be interacted may include: respectively obtaining preset calculation results corresponding to the target device and the device to be interacted, and determining the interaction direction between the target device and the device to be interacted according to the two obtained preset calculation results.
[0247] Optionally, the preset calculation result may be positively correlated with preset speed information of the corresponding device. The preset speed information may include: moving speed and / or moving acceleration.
[0248] Among them, the movement acceleration can be determined based on the device's accelerometer sensor. Movement acceleration can also help calculate indicators.
[0249] Optionally, since the two devices are relatively close to each other, the corresponding directions between the devices are not the same. Therefore, the preset calculation result corresponding to the target device may be negatively correlated with the first angle, and the first angle may be the angle between the moving direction of the target device itself and the direction from the target device to the device to be interacted.
[0250] Correspondingly, the preset calculation result corresponding to the device to be interacted may be negatively correlated with the second angle, and the second angle may be the angle between the moving direction of the device to be interacted and the direction from the device to be interacted to the target device.
[0251] This embodiment does not limit the specific calculation method of the preset calculation result.
[0252] Optionally, the preset calculation result may be a vector projection. For example, for the target device, a moving vector may be determined, the direction of the moving vector may be the moving direction, and the modulus of the moving vector may be the moving speed or the moving acceleration. A direction vector may also be determined, and the direction of the direction vector may be the direction from the target device to the device to be interacted.
[0253] The specific preset calculation result may be a projection of the movement vector in the direction of the direction vector.
[0254] Optionally, the preset calculation result may be a weighted sum of the preset speed information and the included angle. Of course, the weight of the preset speed information may be greater than 0, while the weight of the included angle may be less than 0.
[0255] To facilitate understanding, a specific example is given below.
[0256] For example, a is the angle, s is the modulus of the moving vector, and the projection can be determined as a'=cos(a)*s. The preset calculation result given in practice may be y=-m*a+n*a', where m and n are both greater than 0, and m and n can be adjusted to adjust the correlation between different variables.
[0257] After obtaining the preset calculation results, the device for sending resources and the device for receiving resources may be determined according to the two preset calculation results obtained. This embodiment does not limit the specific determination method.
[0258] Optionally, the preset calculation result may be considered to represent the user intention of sending resources. For example, the faster the moving speed and the smaller the angle, the stronger the user intention of sending resources.
[0259] Correspondingly, the two obtained preset calculation results can be compared, and the device corresponding to the larger preset calculation result can be determined as the device for sending resources.
[0260] Therefore, optionally, determining the interaction direction between the target device and the device to be interacted with based on the two preset calculation results obtained can include: comparing the two preset calculation results obtained, determining that the interaction direction is sending resources from the first device to the second device, wherein the first device is the device corresponding to the larger preset calculation result, and the second device is the device corresponding to the smaller preset calculation result.
[0261] Optionally, it can also be considered that the preset calculation result represents the user intention of receiving the resource. For example, the faster the moving speed and the smaller the angle, the stronger the user intention of receiving the resource.
[0262] Therefore, optionally, determining the interaction direction between the target device and the device to be interacted with based on the two preset calculation results obtained can include: comparing the two preset calculation results obtained, determining that the interaction direction is sending resources from the first device to the second device, wherein the first device is the device corresponding to the smaller preset calculation result, and the second device is the device corresponding to the larger preset calculation result.
[0263] Optionally, the preset calculation result may be considered to represent the user's intention to send resources. For example, the faster the moving speed and the smaller the angle, the stronger the user's intention to send resources. When the user's intention is strong to a certain extent, the device may be determined to send resources.
[0264] Therefore, the two preset calculation results obtained can be compared with the thresholds respectively to determine the device to send the resources.
[0265] Optionally, determining the device for sending resources and the device for receiving resources based on the two preset calculation results obtained may include: for the target device and the device to be interacted, determining the device corresponding to the preset calculation result exceeding a preset threshold as the device for sending resources; and determining the other device as the device for receiving resources.
[0266] Among them, the target device and the device to be interacted with are both allowed to be determined as devices for sending resources, and resources can be sent to each other.
[0267] Method 2:
[0268] In an optional embodiment, the device that sends the resource and the device that receives the resource may also be determined by other methods.
[0269] Optionally, since resource interaction is required later, the device to send the resource may be determined based on resource display conditions on the device.
[0270] Generally, the device displaying the resource to be interacted with can be determined as the device sending the resource.
[0271] The specific resources to be interacted with are not specifically limited in this embodiment.
[0272] Optionally, it can be a selected resource. The selected resource may need to be sent out for interaction. It can also be a resource being edited, previewed, or viewed, so that the resource can be directly interacted with.
[0273] It can also be a single resource being displayed, for example, only a single document is displayed on the display screen of the device, and the document may need to be interactive. Specifically, it can be a single document being edited, previewed, or viewed.
[0274] Therefore, optionally, determining the interaction direction between the target device and the device to be interacted according to preset information of the target device and the device to be interacted may include: for the target device and the device to be interacted, determining the interaction direction is for the device currently displaying the resource in the preset state to send the resource to another device.
[0275] Optionally, displaying resources in a preset state may include at least one of the following: displaying selected resources, displaying previewed resources, displaying edited resources, displaying viewed resources, and displaying only a single resource.
[0276] A specific example is provided below.
[0277] For example, two states may be set for resources in a user device: an access state and a non-access state.
[0278] When there are situations in the device interface where a resource identifier can be uniquely defined, it can be considered as a resource in the access state.
[0279] For example: the document is being previewed or edited, viewing the properties of a document (the file may be in a list or a larger view at this time), and the document is selected.
[0280] Among them, for a document being previewed or edited, the resource identifier of the document can be uniquely determined. For a document being viewed, the resource identifier of the document can be uniquely determined. For one or more selected documents, specifically, the documents selected in the file explorer, the resource identifier of the selected document can be uniquely determined.
[0281] Correspondingly, when performing resource interaction, the interacted resources may be resources in a displayed preset state.
[0282] Optionally, performing resource interaction with the device to be interacted may include: determining a resource in a preset state as a resource to be interacted; and sending information of the resource to be interacted to the device to be interacted.
[0283] The present embodiment does not specifically limit the information of the resource to be interacted. Optionally, it can be the resource to be interacted itself, or it can be a resource identifier of the resource to be interacted, which can be used to access the resource to be interacted. For example, the address of the document to be interacted in the server makes it convenient for the device to be interacted to obtain the document to be interacted from the server.
[0284] In this embodiment, resource interaction can be performed for resources in various states without calling out a secondary interface, such as a secondary interface for selecting an interaction mode, etc. Resource interaction can be initiated on various resource pages, greatly expanding the starting range of resource interaction, simplifying the steps of resource interaction, and improving the efficiency of resource interaction.
[0285] For example, when exchanging resources between devices via Bluetooth, you need to select the share button for the open resource, enter the secondary page, and select the Bluetooth sharing method.
[0286] By using the above method embodiment, for the opened resources, there is no need to select the share button or enter the secondary page. The devices to be interacted with can be directly filtered out according to preset conditions, and the opened resources can be sent to the devices to be interacted with, thereby simplifying the resource interaction steps.
[0287] Method 3:
[0288] In an optional embodiment, the device that sends the resource and the device that receives the resource may also be determined by other methods.
[0289] Optionally, since resource interaction is required later, the interacted resources usually have corresponding interaction directions.
[0290] For example, for resource interaction between device A and device B, when device A determines that the resource to be interacted is file C, file C may correspond to the interaction direction from device B to device A.
[0291] Specifically, it may be because file C is shared from device B to device A, and thus an update of file C needs to be obtained from device B.
[0292] For another example, with respect to resource interaction between device A and device B, when device A determines that the resource to be interacted with is file D, file D may correspond to the interaction direction from device A to device B.
[0293] Specifically, it may be because file D is exclusive to device A and needs to be shared with device B, so file D needs to be sent to device B.
[0294] Therefore, optionally, determining the interaction direction between the target device and the device to be interacted based on preset information of the target device and the device to be interacted can include: determining the resources to be interacted; wherein the resources to be interacted correspond to the preset interaction direction; and determining the interaction direction corresponding to the resources to be interacted as the interaction direction between the target device and the device to be interacted.
[0295] 2. Resource interaction.
[0296] The above method embodiment explains how to determine the interaction direction before performing resource interaction. The following explains how to perform resource interaction in detail.
[0297] This embodiment does not limit the specific resource interaction method.
[0298] Optionally, resource interaction may be performed directly. Specifically, the target device may directly determine the resource to be interacted with and send the resource to be interacted with to the device to be interacted with. Therefore, optionally, performing resource interaction with the device to be interacted with may include: determining the resource to be interacted with; and sending the resource to be interacted with to the device to be interacted with.
[0299] Alternatively, the device to be interacted with may directly determine the resource to be interacted with, and send the resource to be interacted with to the target device.
[0300] Of course, in combination with the above embodiment of determining the device for sending resources, the device for sending resources may determine the resources to be interacted with and send the resources to be interacted with to the device for receiving resources.
[0301] Since it may be determined that the target device and the device to be interacted with are both devices that send resources, the target device may optionally determine the first resource to be interacted with and send the first resource to be interacted with to the device to be interacted with, and the device to be interacted with may determine the second resource to be interacted with and send the second resource to be interacted with to the target device.
[0302] In an optional embodiment, after determining the device to be interacted with which the target device needs to perform resource interaction, it may also be further considered whether the device to be interacted with agrees to perform resource interaction.
[0303] Optionally, for the device to be interacted, you can directly agree to the resource interaction, or make a selection based on the user operation, or make a judgment based on the conditions set by the user of the device to be interacted. For example, for the target device, you can directly agree to the resource interaction; for other devices other than the target device, directly refuse to interact with the resources.
[0304] Optionally, for the device to be interacted, the user of the device to be interacted may be asked whether to perform resource interaction.
[0305] Therefore, optionally, performing resource interaction between the target device and the device to be interacted may include: stopping resource interaction with the device to be interacted if it is determined that the device to be interacted refuses resource interaction; and performing resource interaction with the device to be interacted if it is determined that the device to be interacted allows resource interaction.
[0306] 3. The method flow does not specifically limit the communication method for specific resource interaction.
[0307] In an optional embodiment, communication may be performed via a network or near field communication.
[0308] Optionally, performing resource interaction with the device to be interacted with may include: performing resource interaction with the device to be interacted with via a preset communication mode.
[0309] The preset communication method may include: near field communication method, and / or network. The near field communication method is, for example, Bluetooth.
[0310] Optionally, communication can also be performed through ultra-wideband communication computing to achieve resource interaction.
[0311] 4. As for the interactive resources, after the interactive device receives the resources sent by the target device, the corresponding operation can be performed. The process of this method does not limit the specific operation.
[0312] Optionally, the device to be interacted with may display the received resources.
[0313] For example, for the document displayed by the target device, the device to be interacted with can also display the document after receiving it, so that the user of the device to be interacted with can view it conveniently, thus realizing document sharing.
[0314] Optionally, based on the shared display of resources, the target device may update the resources to be interacted with. Accordingly, the device to be interacted with can synchronously receive the update of the resources to be interacted with by the target device, so that the latest resources to be interacted with can be viewed in real time.
[0315] For example, for the document displayed by the target device, the device to be interacted can also display it after receiving the document, so that the user of the device to be interacted can view it. This also enables document sharing, and the device to be interacted can be in a read-only state for the document and cannot edit it. Furthermore, the target device can edit the document, so that the edited document can also be sent to the device to be interacted for display.
[0316] Optionally, the device to be interacted may also update the resource to be interacted, so as to achieve resource sharing and updating. Specifically, only the device to be interacted may update the resource to be interacted, or the target device and the device to be interacted may update the resource to be interacted together.
[0317] For example, for a document shared by the target device and the device to be interacted, only the device to be interacted may update and edit the document, or the target device and the device to be interacted may jointly edit the document.
[0318] Therefore, optionally, performing resource interaction between the target device and the device to be interacted may include: determining the resource to be interacted, and sending information of the resource to be interacted to the device to be interacted, so that the device to be interacted performs a preset operation.
[0319] The preset operation may include at least one of the following operations: displaying the resource to be interacted with; receiving an update of the target device for the resource to be interacted with; and synchronizing the update of the device to be interacted with the target device when it is determined that the device to be interacted with has the authority to update the resource to be interacted with.
[0320] The above embodiment explains the operation performed by the device to be interacted with on the received resources.
[0321] Similarly, the target device can also serve as a device for receiving resources. Therefore, the target device can also perform corresponding operations on the received resources. For specific explanations, please refer to the above.
[0322] To facilitate understanding, a specific example is given below.
[0323] Among them, after determining the devices that are close to each other, device B can open the document accessed by device A, and the editing of the document by device A can be quickly synchronized to device B (the editing synchronization strategy can be determined based on the different permissions of device A and device B to the document)
[0324] Specifically, it can be completed directly through communication between devices, or device A can update the document to the server and device B can obtain the latest data from the server.
[0325] For synchronization of document operations between device A and device B, if device A is editable and device B is read-only, device A can directly send the edited data to device B without data conflict, and vice versa.
[0326] If both device A and device B have editing permissions, then when edits are made to both, the differences can be synchronized by the server.
[0327] Specifically, device A and device B move relative to each other, resources in device A are in an access state, while resources in device B are in a non-access state, then device A can share the current file with device B.
[0328] If the resource in device B is in access state and in device A is in non-access state, device B can share the current file with device A.
[0329] If different resources in device A and device B are in an access state, device A and device B can share the currently accessed resources with each other.
[0330] 5. Positive and negative feedback.
[0331] When determining the devices to be interacted with, one or more devices to be interacted with may be determined, or no devices to be interacted with may be determined. The specific determination result can help provide feedback to correct the screening of the preset conditions.
[0332] For example, when determining a device to be interacted with based on a user operation, the user's intention can be clarified to determine whether to perform resource interaction.
[0333] For another example, when the device to be interacted with is determined based on the condition to be interacted with, it can be determined whether the preset condition is set appropriately based on the determination result.
[0334] When at least one device to be interacted is determined, it indicates that resource interaction is required, and accordingly, the restrictions of the preset conditions can be relaxed to improve the efficiency of resource interaction, for example, by increasing the preset distance threshold or the preset angle range.
[0335] If no device to be interacted with is determined, it means that other devices selected by the current preset conditions may still contain devices that do not require resource interaction. Accordingly, the restrictions of the preset conditions can be increased and the scope of satisfaction of the preset conditions can be narrowed, thereby improving the success rate of resource interaction. For example, the preset distance threshold can be reduced, or the preset angle range can be reduced.
[0336] Therefore, optionally, when no device to be interacted with is determined, the scope of satisfaction of the preset condition may be narrowed; when at least one device to be interacted with is determined, the scope of satisfaction of the preset condition may be increased.
[0337] Wherein, failure to determine a device to be interacted with may mean that based on a user operation, the interaction is rejected, or based on a user operation, no other device is selected as the device to be interacted with, or no other device further meets the conditions to be interacted with.
[0338] This embodiment does not specifically limit the method of reducing or increasing the scope of satisfaction of the preset condition.
[0339] Optionally, new restrictions may be added based on preset conditions. For example, the device types of other devices or users on other devices may be limited.
[0340] Optionally, for the preset distance threshold, the first preset angle range, and the second preset angle range that the preset condition may involve, if no device to be interacted with is determined, at least one of the following items may be reduced: the preset distance threshold, the first preset angle range, and the second preset angle range. If at least one device to be interacted with is determined, at least one of the following items may be increased: the preset distance threshold, the first preset angle range, and the second preset angle range.
[0341] In this embodiment, the efficiency and success rate of resource interaction can be improved by dynamically adjusting the preset conditions, which can be specifically performed by automatically performing adaptive adjustments.
[0342] In an optional embodiment, since the preset calculation result can also represent the user intention, specifically the user intention of whether to send resources, the calculation method of the preset calculation result can also be adjusted based on the actual resource sending and receiving situation.
[0343] Optionally, when the larger the preset calculation result is, the stronger the intention to send resources is represented. If it is determined that the target device needs to send resources, it can be said that the probability of the target device sending resources subsequently is higher, and the preset calculation result can be increased, specifically, the positive correlation coefficient can be increased and the negative correlation coefficient can be reduced.
[0344] On the contrary, if it is determined that the target device does not need to send resources, it can be said that the probability of the target device sending resources subsequently is small, and the preset calculation result can be reduced, specifically, the positive correlation coefficient can be reduced and the negative correlation coefficient can be increased.
[0345] Therefore, when the larger the preset calculation result is, the stronger the intention to send resources is represented. Optionally, when it is determined that the preset calculation result corresponding to the target device is small, the positive correlation coefficient between the preset calculation result corresponding to the target device and the preset speed information of the target device can be reduced, and / or the negative correlation coefficient between the preset calculation result corresponding to the target device and the first angle can be increased.
[0346] When it is determined that the preset calculation result corresponding to the target device is larger, the positive correlation coefficient between the preset calculation result corresponding to the target device and the preset speed information of the target device can be increased, and / or the negative correlation coefficient between the preset calculation result corresponding to the target device and the first angle can be reduced.
[0347] Of course, the above embodiments are explained for the target device. Similarly, the above embodiments can also be implemented for the device to be interacted with, and the coefficients of the preset conditions or preset calculation results can be dynamically adjusted through the positive and negative feedback mechanism.
[0348] In addition, optionally, in the case where the larger the preset calculation result is, the stronger the intention to receive the resource is, the corresponding positive and negative feedback mechanisms can be determined through simple reasoning.
[0349] Optionally, when the larger the preset calculation result, the stronger the intention to receive resources, optionally, when it is determined that the preset calculation result corresponding to the target device is small, the positive correlation coefficient between the preset calculation result corresponding to the target device and the preset speed information of the target device can be reduced, and / or the negative correlation coefficient between the preset calculation result corresponding to the target device and the first angle can be increased.
[0350] When it is determined that the preset calculation result corresponding to the target device is larger, the positive correlation coefficient between the preset calculation result corresponding to the target device and the preset speed information of the target device can be increased, and / or the negative correlation coefficient between the preset calculation result corresponding to the target device and the first angle can be reduced.
[0351] In an optional embodiment, the above method flow can be applied to a device where a readable data resource is located and its user in a close-range scenario for fast resource interaction.
[0352] Among them, the target device can first discover devices in the same network domain based on ultra-wideband communication technology, share the ultra-wideband communication token, and then conduct ultra-wideband fast communication; when it is found that the devices tend to be relatively close, it can initiate a resource interaction inquiry, and after agreement, the unique identifier of the resource can be directly sent to other devices and opened to achieve the purpose of fast resource interaction.
[0353] Therefore, the above method can be based on ultra-wideband communication technology to infer or judge the user's resource interaction intention according to the relative position between devices, and complete fast resource interaction. Users do not need to go through the tedious process of clicking, selecting, waiting, and clicking again, which narrows the range of selected devices, reduces operating costs, simplifies the steps of resource interaction, and does not need to open the secondary interface for selecting the interaction method or click the interaction button. Devices can be directly screened according to preset conditions, and the devices to be interacted with can be further determined for interaction, thereby improving the user experience in the resource interaction process.
[0354] When users are in close-range scenarios, such as meetings, classrooms, face-to-face communications, etc., the above method and process can be used to achieve rapid resource interaction between mobile devices.
[0355] Furthermore, the above method flow can initiate resource interaction on any resource page, greatly expanding the starting point range of resource interaction.
[0356] The above method flow can facilitate the access resources in the quick interaction device, reduce the user's operating cost, increase the desire to share, and can expand the starting point of resource interaction. For resources in the access state, resource interaction can be quickly performed.
[0357] To facilitate understanding, a specific example is given below.
[0358] like Figure 3 FIG. 1 is a schematic diagram showing a principle of determining a device to be interacted with provided by an embodiment of the present invention.
[0359] This may include device one and device two.
[0360] Device 1 can monitor the location information of devices within a preset range, and the preset range is specifically the coverage range of the network where device 1 is located. The network can help monitor the location information of other devices connected to the same network.
[0361] Therefore, device one can monitor the location information of device two.
[0362] Furthermore, device 1 is pre-configured with a preset distance threshold. Figure 3 The figure shows a close range with device 1 as the center and a preset distance threshold as the radius.
[0363] The device 1 may be actually moved, and specifically, the user to whom the device 1 belongs may carry the device 1 to move.
[0364] When device one detects that the distance between device two and device one is less than a preset distance threshold, that is, device two is within a close range, it can be further determined whether the angle between the moving direction of device one and the direction in which device one points to device two is within a first preset angle range.
[0365] The angle between the moving direction of the device 1 and the direction between the devices is called the first angle, wherein the first angle may be 5 degrees, and the first preset angle range may be less than 10 degrees.
[0366] Therefore, device one may determine device two as the device to be interacted with, and only device two performs resource interaction.
[0367] like Figure 4 As shown, it is a schematic diagram of the principle of resource interaction provided by an embodiment of the present invention.
[0368] This may include device three and device four.
[0369] When it is clear that device three and device four need to interact with resources, documents one to three are displayed in device three, among which document one and document two are selected.
[0370] Therefore, when performing resource interaction, the selected document one and document two in device three can be sent to device four.
[0371] Corresponding to the above method embodiment, the embodiment of the present invention also provides a device embodiment.
[0372] like Figure 5FIG. 1 is a schematic diagram of a resource interaction device provided by an embodiment of the present invention. The device can be applied to a target device.
[0373] The apparatus may include the following units.
[0374] The monitoring unit 501 may be used to monitor the location information of one or more other devices within a preset range.
[0375] The determining unit 502 may be configured to determine a device to be interacted with from other devices that meet the preset conditions when detecting the existence of other devices that meet the preset conditions.
[0376] The interaction unit 503 may be used to determine the interaction direction between the target device and the device to be interacted with; and perform resource interaction between the target device and the device to be interacted with according to the interaction direction.
[0377] Optionally, the preset condition includes at least one of the following:
[0378] The angle between the first direction and the moving direction of the target device is within a first preset angle range;
[0379] The angle between the second direction and the moving direction of the other device is within a second preset angle range;
[0380] The distance between the other devices and the target device is less than the preset distance threshold;
[0381] The first direction is a direction from the target device to other devices; the second direction is a direction from other devices to the target device.
[0382] Optionally, the interaction unit 503 is configured to:
[0383] The interaction direction between the target device and the device to be interacted is determined according to preset information of the target device and the device to be interacted.
[0384] Optionally, the interaction unit 503 is configured to:
[0385] The interaction direction between the target device and the device to be interacted is determined according to the movement information of the target device and the device to be interacted.
[0386] Optionally, the interaction unit 503 is configured to:
[0387] Obtaining preset calculation results corresponding to the target device and the device to be interacted with respectively;
[0388] The preset calculation result is positively correlated with the preset speed information of the corresponding device;
[0389] The preset calculation result corresponding to the target device is negatively correlated with the first angle, where the first angle is the angle between the moving direction of the target device itself and the direction from the target device to the device to be interacted;
[0390] The preset calculation result corresponding to the device to be interacted is negatively correlated with the second angle, where the second angle is the angle between the moving direction of the device to be interacted and the direction from the device to be interacted to the target device;
[0391] The interaction direction between the target device and the device to be interacted is determined according to the two preset calculation results obtained.
[0392] Optionally, the interaction unit 503 is configured to:
[0393] The two obtained preset calculation results are compared to determine that the interaction direction is sending resources from the first device to the second device, wherein the first device is the device corresponding to the larger preset calculation result, and the second device is the device corresponding to the smaller preset calculation result.
[0394] Optionally, the interaction unit 503 is configured to:
[0395] For the target device and the device to be interacted, determining the interaction direction is that the device currently displaying the resource in the preset state sends the resource to another device;
[0396] A resource that displays a preset state, including at least one of the following:
[0397] Display selected resources, display previewed resources, display edited resources, display viewed resources, and display only a single resource.
[0398] Optionally, the interaction unit 503 is configured to:
[0399] Determining resources to be interacted with; wherein the resources to be interacted with correspond to preset interaction directions;
[0400] The interaction direction corresponding to the resource to be interacted is determined as the interaction direction between the target device and the device to be interacted.
[0401] Optionally, the determining unit 502 is configured to:
[0402] Determine other devices that meet the preset conditions as devices to be interacted with; or
[0403] From other devices that meet the preset conditions, other devices selected based on the user operation are determined as the devices to be interacted with.
[0404] Optionally, the interaction unit 503 is configured to:
[0405] When it is determined that the device to be interacted refuses to interact with the resource, stopping the resource interaction with the device to be interacted;
[0406] When it is determined that the device to be interacted with allows resource interaction, resource interaction is performed with the device to be interacted with.
[0407] Optionally, the interaction unit 503 is configured to:
[0408] Determine the resource to be interacted with, and send information about the resource to be interacted with to the device to be interacted with, so that the device to be interacted with performs at least one of the following operations:
[0409] Display resources to be interacted with;
[0410] Receiving updates from the target device for the resource to be interacted with;
[0411] When it is determined that the device to be interacted has the authority to update the resource to be interacted, the update of the resource to be interacted by the device to be interacted is synchronized with the target device.
[0412] Optionally, the device further includes a feedback unit 504, configured to:
[0413] When no device to be interacted with is determined, the scope of satisfaction of the preset condition is narrowed; when at least one device to be interacted with is determined, the scope of satisfaction of the preset condition is expanded.
[0414] Optionally, the feedback unit 504 is configured to:
[0415] When no device to be interacted with is determined, reducing at least one of the following: a preset distance threshold, a first preset angle range, and a second preset angle range;
[0416] When at least one device to be interacted with is determined, at least one of the following items is increased: a preset distance threshold, a first preset angle range, and a second preset angle range.
[0417] Optionally, the feedback unit 504 is configured to:
[0418] When it is determined that the preset calculation result corresponding to the target device is smaller, reducing the positive correlation coefficient between the preset calculation result corresponding to the target device and the preset speed information of the target device, and / or increasing the negative correlation coefficient between the preset calculation result corresponding to the target device and the first angle;
[0419] When it is determined that the preset calculation result corresponding to the target device is larger, the positive correlation coefficient between the preset calculation result corresponding to the target device and the preset speed information of the target device is increased, and / or the negative correlation coefficient between the preset calculation result corresponding to the target device and the first angle is reduced.
[0420] The explanation of the above device embodiment can refer to the above method embodiment.
[0421] An embodiment of the present invention further provides an electronic device, comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus;
[0422] Memory, used to store computer programs;
[0423] The processor is used to implement any of the above method embodiments when executing the program stored in the memory.
[0424] An embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, any of the above method embodiments is implemented.
[0425] The embodiment of the present invention further provides an electronic device, such as Figure 6 As shown, it includes a processor 801, a communication interface 802, a memory 803 and a communication bus 804, wherein the processor 801, the communication interface 802, and the memory 803 communicate with each other through the communication bus 804.
[0426] Memory 803, used for storing computer programs;
[0427] The processor 801 is used to implement any of the resource interaction methods described above when executing the program stored in the memory 803, which may specifically be any method embodiment.
[0428] The communication bus mentioned in the above electronic device can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.
[0429] The communication interface is used for communication between the above electronic device and other devices.
[0430] The memory may include a random access memory (RAM) or a non-volatile memory (NVM), such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.
[0431] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
[0432] In another embodiment of the present invention, a computer-readable storage medium is provided. The computer-readable storage medium stores instructions. When the instructions are executed on a computer, the computer executes the resource interaction method described in any one of the above embodiments.
[0433] In another embodiment of the present invention, a computer program product including instructions is provided. When the computer program product is run on a computer, the computer executes the resource interaction method described in any one of the above embodiments.
[0434] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented by software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present invention is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk Solid State Disk (SSD)), etc.
[0435] 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 sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0436] Each embodiment in this specification is described in a related manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0437] The above description is only a preferred embodiment of the present invention and is not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.
Claims
1. A resource interaction method, characterized in that: Applied to a target device, the method comprises: Monitor the location information of one or more other devices within a preset range; In the case where it is detected that there are other devices whose location information meets the preset conditions, determining a device to be interacted with from the other devices that meet the preset conditions; Determining an interaction direction between the target device and the device to be interacted; Performing resource interaction between the target device and the device to be interacted with according to the interaction direction; The preset condition includes at least one of the following: The angle between the first direction and the moving direction of the target device is within a first preset angle range; The angle between the second direction and the moving direction of the other device is within a second preset angle range; The distance between the other devices and the target device is less than a preset distance threshold; The first direction is a direction from the target device to other devices; the second direction is a direction from other devices to the target device.
2. The method according to claim 1, characterized in that The determining the interaction direction between the target device and the device to be interacted with includes: An interaction direction between the target device and the device to be interacted is determined according to preset information of the target device and the device to be interacted.
3. The method according to claim 2, characterized in that The determining the interaction direction between the target device and the device to be interacted according to preset information of the target device and the device to be interacted includes: An interaction direction between the target device and the device to be interacted is determined according to movement information of the target device and the device to be interacted.
4. The method according to claim 3, characterized in that The determining the interaction direction between the target device and the device to be interacted according to the movement information of the target device and the device to be interacted includes: Respectively obtaining preset calculation results corresponding to the target device and the device to be interacted with; The preset calculation result is positively correlated with the preset speed information of the corresponding device; The preset calculation result corresponding to the target device is negatively correlated with a first angle, where the first angle is the angle between the moving direction of the target device itself and the direction from the target device to the device to be interacted; The preset calculation result corresponding to the device to be interacted is negatively correlated with a second angle, where the second angle is the angle between the moving direction of the device to be interacted and the direction from the device to be interacted to the target device; The interaction direction between the target device and the device to be interacted is determined according to the two preset calculation results obtained.
5. The method according to claim 2, characterized in that: The determining the interaction direction between the target device and the device to be interacted according to preset information of the target device and the device to be interacted includes: For the target device and the device to be interacted, determining an interaction direction as a device currently displaying a resource in a preset state sending a resource to another device; The resource showing the preset state includes at least one of the following: Display selected resources, display previewed resources, display edited resources, display viewed resources, and display only a single resource.
6. The method according to claim 2, characterized in that The determining the interaction direction between the target device and the device to be interacted according to preset information of the target device and the device to be interacted includes: Determining a resource to be interacted with; wherein the resource to be interacted with corresponds to a preset interaction direction; The interaction direction corresponding to the resource to be interacted is determined as the interaction direction between the target device and the device to be interacted.
7. The method according to claim 1, characterized in that The determining of the device to be interacted with from the other devices that meet the preset conditions includes: Determine the other devices that meet the preset conditions as the devices to be interacted with; or From the other devices that meet the preset conditions, other devices selected based on the user operation are determined as the devices to be interacted with.
8. The method according to claim 1, characterized in that The performing resource interaction between the target device and the to-be-interacted device includes: If it is determined that the device to be interacted refuses to interact with resources, stopping interacting with resources with the device to be interacted; In a case where it is determined that the device to be interacted with allows resource interaction, resource interaction is performed with the device to be interacted with.
9. The method according to claim 1, characterized in that: The performing resource interaction between the target device and the to-be-interacted device includes: Determine a resource to be interacted with, and send information about the resource to be interacted with to the device to be interacted with, so that the device to be interacted with performs at least one of the following operations: Displaying the resource to be interacted with; Receiving an update from the target device with respect to the resource to be interacted with; When it is determined that the device to be interacted has the authority to update the resource to be interacted, the update of the resource to be interacted by the device to be interacted is synchronized with the target device.
10. The method according to claim 1, characterized in that Also includes: In the case where no device to be interacted with is determined, narrowing the scope of satisfaction of the preset condition; When at least one device to be interacted with is determined, the scope of satisfaction of the preset condition is increased.
11. The method according to claim 1, characterized in that: Also includes: When no device to be interacted with is determined, reducing at least one of the following: the preset distance threshold, the first preset angle range, and the second preset angle range; When at least one device to be interacted with is determined, at least one of the following items is increased: the preset distance threshold, the first preset angle range, and the second preset angle range.
12. A resource interaction device, characterized in that: Applied to a target device, the apparatus comprises: A monitoring unit, used to monitor the location information of one or more other devices within a preset range; A determining unit, configured to determine a device to be interacted with from other devices that meet the preset conditions when detecting that there are other devices whose location information meets the preset conditions; The preset condition includes at least one of the following: The angle between the first direction and the moving direction of the target device is within a first preset angle range; The angle between the second direction and the moving direction of the other device is within a second preset angle range; The distance between the other devices and the target device is less than a preset distance threshold; The first direction is a direction from the target device to other devices; the second direction is a direction from other devices to the target device; The interaction unit is used to determine the interaction direction between the target device and the device to be interacted; and perform resource interaction between the target device and the device to be interacted according to the interaction direction.
13. An electronic device, characterized in that: It includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; Memory, used to store computer programs; A processor, for implementing the method steps described in any one of claims 1 to 11 when executing a program stored in a memory.
14. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method steps of any one of claims 1 to 11 are implemented.
Citation Information
Patent Citations
Wireless interaction method, terminal and system
CN103826208A