CN112423226B - File sharing method and device and intelligent equipment - Google Patents
File sharing method and device and intelligent equipment Download PDFInfo
- Publication number
- CN112423226B CN112423226B CN202011330594.4A CN202011330594A CN112423226B CN 112423226 B CN112423226 B CN 112423226B CN 202011330594 A CN202011330594 A CN 202011330594A CN 112423226 B CN112423226 B CN 112423226B
- Authority
- CN
- China
- Prior art keywords
- determining
- intelligent device
- index
- file
- candidate
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/02—Services making use of location information
- H04W4/023—Services making use of location information using mutual or relative location information between multiple location based services [LBS] targets or of distance thresholds
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/06—Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/02—Services making use of location information
- H04W4/021—Services related to particular areas, e.g. point of interest [POI] services, venue services or geofences
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/02—Services making use of location information
- H04W4/025—Services making use of location information using location based information parameters
- H04W4/026—Services making use of location information using location based information parameters using orientation information, e.g. compass
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/20—Services signaling; Auxiliary data signalling, i.e. transmitting data via a non-traffic channel
- H04W4/21—Services signaling; Auxiliary data signalling, i.e. transmitting data via a non-traffic channel for social networking applications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/70—Services for machine-to-machine communication [M2M] or machine type communication [MTC]
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The embodiment of the invention discloses a method, a device and intelligent equipment for sharing files. The method comprises the following steps: determining an angle with each candidate smart device based on an Ultra Wideband (UWB) positioning; determining a target intelligent device from the candidate intelligent devices based on the angle; and sharing the file with the target intelligent equipment. According to the method and the device for determining the target intelligent equipment, the target intelligent equipment can be determined based on the angle, and the operation complexity is reduced. The angle and the distance can be comprehensively considered to determine the target intelligent equipment, so that the operation accuracy is improved. The sharing manner may also be determined based on the familiarity index and the privacy index, achieving a good tradeoff between convenience and privacy protection.
Description
Technical Field
The invention relates to the technical field of intelligent equipment, in particular to a method and a device for sharing files and intelligent equipment.
Background
The space-air delivery function can share files among a plurality of devices in a wireless mode. Only the file is dragged to the friend head portrait using the air-spaced delivery function, one-to-one file transmission (similar to wireless network transmission) can be performed.
In the space-time delivery in the prior art, based on the space perception capability provided by the U1 chip, the file providing device is pointed to the file receiving devices of other people, the priority ranking is carried out according to the distance (the closer the distance is, the higher the priority is), and then the files are shared to the file receiving device with the highest priority.
However, in such an implementation, the file providing apparatus needs to be intentionally brought close to the file receiving apparatus, and the operation is complicated.
Disclosure of Invention
The invention provides a method, a device and intelligent equipment for sharing files, which can reduce operation complexity.
The technical scheme of the embodiment of the invention is as follows:
a method of sharing files, comprising:
determining an angle with each candidate intelligent device based on the ultra-wideband positioning mode;
determining a target intelligent device from the candidate intelligent devices based on the angle;
and sharing the file with the target intelligent equipment.
In one embodiment, the method further comprises:
determining the distance between the intelligent device and each candidate intelligent device based on an ultra-wideband positioning mode;
wherein the determining, by the angle, the target smart device from the candidate smart devices includes:
and determining a target intelligent device from the candidate intelligent devices based on the angle and the distance.
In one embodiment, the determining the target smart device from the candidate smart devices based on the angle and the distance includes:
based on the angle sequencing result, determining candidate intelligent devices with first small angles and candidate intelligent devices with second small angles;
when the angle difference between the candidate intelligent equipment with the second small angle and the candidate intelligent equipment with the first small angle is larger than a preset angle threshold value, determining the candidate intelligent equipment with the first small angle as a target intelligent equipment;
and when the angle difference between the second small candidate intelligent device and the first small candidate intelligent device is smaller than or equal to a preset angle threshold value, determining the first small candidate intelligent device as a target intelligent device if the distance between the first small candidate intelligent device and the first small candidate intelligent device is smaller than or equal to the distance between the second small candidate intelligent device and the first small candidate intelligent device, and determining the second small candidate intelligent device as the target intelligent device if the distance between the first small candidate intelligent device and the first small candidate intelligent device is larger than the distance between the second small candidate intelligent device and the first small candidate intelligent device.
In one embodiment, the sharing the file to the target smart device includes:
Determining a familiarity index of the target intelligent device;
determining a privacy index of the file;
and determining a sharing mode based on the familiarity index and the privacy index.
In one embodiment, the determining the familiarity index of the target smart device includes:
when the target intelligent device is determined to have a history connection record, determining that the familiarity index of the target intelligent device is a first level higher than a basic level;
and when the familiarity index of the target intelligent equipment is determined to be in the same hot spot or the same WI-FI network as the target intelligent equipment, the familiarity index of the target intelligent equipment is determined to be in a second level higher than the first level.
In one embodiment, the determining the privacy level indicator of the file includes:
when the file is determined to be derived from a public resource, determining a privacy index of the file as a basic level;
when the file is determined to be derived from a private resource and no personal place is contained in the file, determining that the privacy index of the file is a first level higher than a basic level;
when it is determined that the file originates from a private resource and a personal place is included in the file, a privacy level indicator of the file is determined to be a second level higher than the first level.
In one embodiment, the determining the sharing manner based on the familiarity index and the privacy index includes:
when the familiarity index is larger than a preset familiarity high threshold value, sharing files with the target intelligent equipment in a direct connection mode;
when the familiarity index is lower than a preset familiarity low threshold value and the privacy index is a basic level, sharing files with the target intelligent equipment in a direct connection mode;
when the familiarity index is lower than a preset familiarity low threshold value and the privacy index is of a first level or a second level, sharing files with the target intelligent equipment in a prompting connection mode;
and when the familiarity index is between the preset familiarity low threshold value and the preset familiarity high threshold value, if the privacy index is a basic level or a first level, sharing the file with the target intelligent equipment in a direct connection mode, and if the privacy index is a second level, sharing the file with the target intelligent equipment in a prompt connection mode.
An apparatus for sharing files, comprising:
the angle determining module is used for determining the angle between the ultra-wideband positioning mode and each candidate intelligent device;
the target intelligent device determining module is used for determining target intelligent devices from the candidate intelligent devices based on the angle;
And the sharing module is used for sharing the file to the target intelligent equipment.
In one embodiment, the method further comprises:
the distance determining module is used for determining the distance between the ultra-wideband positioning mode and each candidate intelligent device;
the target intelligent device determining module is used for determining target intelligent devices from the candidate intelligent devices based on the angle and the distance.
In one embodiment, the target smart device determining module is configured to determine, based on the angle ordering result, a candidate smart device with a first small angle and a candidate smart device with a second small angle; when the angle difference between the candidate intelligent equipment with the second small angle and the candidate intelligent equipment with the first small angle is larger than a preset angle threshold value, determining the candidate intelligent equipment with the first small angle as a target intelligent equipment; and when the angle difference between the second small candidate intelligent device and the first small candidate intelligent device is smaller than or equal to a preset angle threshold value, determining the first small candidate intelligent device as a target intelligent device if the distance between the first small candidate intelligent device and the first small candidate intelligent device is smaller than or equal to the distance between the second small candidate intelligent device and the first small candidate intelligent device, and determining the second small candidate intelligent device as the target intelligent device if the distance between the first small candidate intelligent device and the first small candidate intelligent device is larger than the distance between the second small candidate intelligent device and the first small candidate intelligent device.
In one embodiment, the sharing module is configured to determine a familiarity index of the target intelligent device; determining a privacy index of the file; and determining a sharing mode based on the familiarity index and the privacy index.
In one embodiment, the sharing module is configured to determine, when it is determined that the target smart device has a history of connection record, that a familiarity index of the target smart device is a first level higher than a base level; and when the familiarity index of the target intelligent equipment is determined to be in the same hot spot or the same WI-FI network as the target intelligent equipment, the familiarity index of the target intelligent equipment is determined to be in a second level higher than the first level.
In one embodiment, the sharing module is configured to determine, when it is determined that the file is derived from a public resource, that a privacy level indicator of the file is a base level; when the file is determined to be derived from a private resource and no personal place is contained in the file, determining that the privacy index of the file is a first level higher than a basic level; when it is determined that the file originates from a private resource and a personal place is included in the file, a privacy level indicator of the file is determined to be a second level higher than the first level.
In one embodiment, the sharing module is configured to share the file with the target intelligent device in a direct connection manner when the familiarity index is greater than a predetermined familiarity threshold; when the familiarity index is lower than a preset familiarity low threshold value and the privacy index is a basic level, sharing files with the target intelligent equipment in a direct connection mode; when the familiarity index is lower than a preset familiarity low threshold value and the privacy index is of a first level or a second level, sharing files with the target intelligent equipment in a prompting connection mode; and when the familiarity index is between the preset familiarity low threshold value and the preset familiarity high threshold value, if the privacy index is a basic level or a first level, sharing the file with the target intelligent equipment in a direct connection mode, and if the privacy index is a second level, sharing the file with the target intelligent equipment in a prompt connection mode.
An intelligent device comprising a processor and a memory;
the memory stores an application executable by the processor for causing the processor to perform the method of sharing files as described in any of the preceding claims.
A computer readable storage medium having stored therein computer readable instructions for performing the method of sharing files as claimed in any one of the preceding claims.
In summary, in the embodiment of the present invention, the angle between the device and each candidate intelligent device is determined based on the ultra wideband positioning mode; determining a target intelligent device from the candidate intelligent devices based on the angle; and sharing the file to the target intelligent device. Therefore, the method and the device can determine the target intelligent device based on the angle, and the file providing device does not need to be specially close to the file receiving device, so that the operation complexity is reduced.
In addition, the embodiment of the invention can comprehensively consider the angle and the distance to determine the target intelligent equipment, and further ensure the accuracy of the determined target intelligent equipment.
In addition, the embodiment of the invention also determines the sharing mode based on the familiarity index and the privacy index, and realizes good compromise between convenience and privacy protection.
Drawings
Fig. 1 is a flowchart of a method for sharing files according to an embodiment of the present invention.
Fig. 2 is a schematic diagram of the discovery phase and the positioning phase in an Ultra Wideband (UWB) positioning process according to an embodiment of the present invention.
Fig. 3 is a schematic diagram of a coordinate system of a UWB chip having three antennas according to an embodiment of the present invention.
Fig. 4 is a schematic diagram of determining a distance between an antenna of a UWB chip and a target device according to an embodiment of the present invention.
Fig. 5 is a schematic diagram of determining an angle between a UWB chip and a target device according to an embodiment of the present invention.
FIG. 6 is a schematic diagram of determining a target smart device from candidate smart devices according to an embodiment of the present invention.
Fig. 7 is a schematic diagram of determining a sharing manner according to an embodiment of the present invention.
FIG. 8 is a first exemplary diagram of sharing files according to an embodiment of the present invention.
FIG. 9 is a second exemplary diagram of sharing files according to an embodiment of the present invention.
FIG. 10 is a third exemplary diagram of sharing files according to an embodiment of the present invention.
Fig. 11 is a block diagram of an apparatus for sharing files according to an embodiment of the present invention.
Fig. 12 is a structural diagram of a smart device according to the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings, in order to make the objects, technical solutions and advantages of the present invention more apparent.
For simplicity and clarity of description, the following description sets forth aspects of the invention by describing several exemplary embodiments. Numerous details in the embodiments are provided solely to aid in the understanding of the invention. It will be apparent, however, that the embodiments of the invention may be practiced without limitation to these specific details. Some embodiments are not described in detail in order to avoid unnecessarily obscuring aspects of the present invention, but rather only to present a framework. Hereinafter, "comprising" means "including but not limited to", "according to … …" means "according to at least … …, but not limited to only … …". The term "a" or "an" is used herein to refer to a number of components, either one or more, or at least one, unless otherwise specified.
In the embodiment of the invention, an Ultra Wide Band (UWB) positioning technology is utilized to realize a file sharing technical scheme based on angles between intelligent devices. The characteristics such as angles can be utilized to automatically connect the target equipment through a decision algorithm, so that a one-stop sharing mode is achieved.
First, UWB positioning technology will be described.
UWB positioning technology is a positioning technology using wireless carrier communication, which does not use sinusoidal carrier, but uses non-sinusoidal narrow pulse of nanosecond level to transmit data, so that the occupied spectrum range is wide. The UWB positioning technology has the advantages of low system complexity, low power spectrum density of the transmitted signal, insensitivity to channel fading, low interception capability, high positioning accuracy and the like, and is particularly suitable for high-speed wireless access in indoor and other dense multipath places. In the UWB positioning technology, time information and angle information of a target to be positioned can be accurately acquired, and the time information can be converted into distance information, so that the position information of the target to be positioned can be obtained by utilizing geometric positioning methods such as triangular positioning and the like in combination with the angle information. The method for measuring angle information and time information commonly used in the UWB positioning technology comprises the following steps: measurement methods based on received signal strength (Received Signal Strength, RSS), angle Of Arrival (AOA) or time difference Of received signals (Time Difference Of Arrival, TDOA) and the like.
The foregoing exemplary description describes a specific manner of determining an angle to a target to be positioned based on UWB positioning technology, and it will be appreciated by those skilled in the art that this description is exemplary only and is not intended to limit the scope of embodiments of the present invention.
Fig. 1 is a flowchart of a method for sharing files according to an embodiment of the present invention. The method shown in fig. 1 may be performed by a device (e.g., referred to as a source device) that needs to share files to other devices.
As shown in fig. 1, the method includes:
step 101: an angle with each candidate smart device is determined based on the UWB positioning approach.
Step 102: and determining the target intelligent device from the candidate intelligent devices based on the angle.
Step 103: and sharing the file with the target intelligent equipment.
Here, the candidate smart device may contain a UWB chip or UWB tag. The target intelligent device is the intelligent device which is determined from the candidate intelligent devices and needs to be shared with the file.
The files that are shared may be in various types of file formats, such as multimedia files. More specifically, the file may be an image file, a video file, or an audio file, or the like. Optionally, the source device may provide the file to the target smart device based on communication means such as infrared, near field communication, bluetooth, zigbee, wireless broadband, third generation mobile communication, fourth generation mobile communication, or fifth generation mobile communication.
Preferably, prior to step 101, the user triggers the flow shown in fig. 1 by shaking the operation of the source device. In order to prevent misoperation, the acceleration of the shaking action can be obtained by using the accelerometer in the source equipment, the angular velocity of the shaking action can be obtained by using the gyroscope in the source equipment, and when the acceleration and the angular velocity are respectively greater than or equal to the respective preset threshold values, the user is determined to prepare to share the file, and the flow shown in fig. 1 is started to be executed. When at least one of the acceleration and the angular velocity is smaller than the respective predetermined threshold value, the shake is recognized as an erroneous operation, and the flow shown in fig. 1 is not executed.
Preferably, the source device can select a connection mode according to the content to be shared. For example, when it is desired to screen a public video, a DLNA mode may be used to establish a connection, and when it is desired to share audio to a speaker, a bluetooth mode may be used to establish a connection.
In one embodiment, the method further comprises:
determining a distance from each candidate intelligent device based on the UWB positioning mode; wherein determining the target smart device from the candidate smart devices based on the angle in step 102 comprises: and determining a target intelligent device from the candidate intelligent devices based on the angle and the distance.
In one embodiment, determining a target smart device from the candidate smart devices based on the angle and the distance includes:
based on the angle sequencing result, determining candidate intelligent devices with first small angles and candidate intelligent devices with second small angles; when the angle difference between the candidate intelligent equipment with the second small angle and the candidate intelligent equipment with the first small angle is larger than a preset angle threshold value, determining the candidate intelligent equipment with the first small angle as a target intelligent equipment; and when the angle difference between the second small candidate intelligent device and the first small candidate intelligent device is smaller than or equal to a preset angle threshold value, determining the first small candidate intelligent device as a target intelligent device if the distance between the first small candidate intelligent device and the first small candidate intelligent device is smaller than or equal to the distance between the second small candidate intelligent device and the first small candidate intelligent device, and determining the second small candidate intelligent device as the target intelligent device if the distance between the first small candidate intelligent device and the first small candidate intelligent device is larger than the distance between the second small candidate intelligent device and the first small candidate intelligent device.
Therefore, the target intelligent device can be determined more accurately based on decision judgment of the two dimensions of the angle and the distance.
The angle and distance calculations based on UWB technology are described below.
Fig. 2 is a schematic diagram of the discovery phase and the positioning phase in an Ultra Wideband (UWB) positioning process according to an embodiment of the present invention. As can be seen from fig. 2, in the discovery phase (discovery phase), the UWB mechanism discovers devices with a Blink message; in the positioning phase (ranging phase), the UWB mechanism implements positioning based on three data exchange processes (Poll, response and Final, respectively).
FIG. 3 is a schematic diagram of a coordinate system of a UWB chip with three antennas according to an embodiment of the invention; FIG. 4 is a schematic diagram of determining a distance between an antenna of a UWB chip and a target device according to an embodiment of the invention; fig. 5 is a schematic diagram of determining an angle between a UWB chip and a target device according to an embodiment of the present invention.
In fig. 3, a UWB chip including three antennas is illustrated as an example. Three antennas are respectively positioned at P 1 、P 2 And P 3 . The three antennas connected with the UWB chip can determine the triangle outer center O, namely the origin of coordinates, and the OP 1 =OP 2 =OP 3 . Wherein: p (P) 1 The coordinates of the points are (x 1 ,y 1 ,0);P 2 The coordinates of the points are (x 2 ,y 2 ,0);P 3 The coordinates of the points are (x 3 ,y 3 ,0)。
As can be seen from fig. 4, the distance of each UWB chip antenna to the target device can be determined, where time T1: the time when the source device (i.e., UWB chip antenna) transmits the data packet; time T2: the time when the target device receives the data packet; time T3 is the moment when the target device sends the reply data packet; time T4, the time when the source equipment receives the reply data packet; the distance D (where C is the wave velocity) from the source device to the target device can thus be obtained, wherein:
Here, the target device is abstracted to P-point, and thus it is necessary to calculate P-point coordinates (x, y, z).
According to the mode of calculating the distance D from the source equipment to the target equipment, the distance D from the three antennas to the target equipment can be obtained 1 ,d 2 And d3.
Wherein if there are more than three antenna points, an optimal solution of O-points to which the respective points are equidistant can be found, and the found O-points can be used as the origin of coordinates.
Then, calculate the included angleAnd->Wherein the vector coordinates of the Y axis are: (0, 1, 0); o-point (0, 0);
the method can obtain the following steps:
θ is the angle between the UWB chip and the target device.
The above exemplary description describes the angle and distance calculation process based on UWB technology. Those skilled in the art will appreciate that this description is exemplary only and is not intended to limit the scope of embodiments of the invention.
In one embodiment, sharing the file to the target smart device in step 103 includes: determining a familiarity index of the target intelligent device; determining a privacy index of the file; and determining a sharing mode based on the familiarity index and the privacy index.
Preferably, the determining the familiarity index of the target smart device includes: when the target intelligent device is determined to have a history connection record, determining that the familiarity index of the target intelligent device is a first level higher than a basic level; and when the familiarity index of the target intelligent equipment is determined to be in the same hot spot or the same WI-FI network as the target intelligent equipment, the familiarity index of the target intelligent equipment is determined to be in a second level higher than the first level.
Preferably, the determining the privacy degree index of the file includes: when the file is determined to be derived from a public resource, determining a privacy index of the file as a basic level; when the file is determined to be derived from a private resource and no personal place is contained in the file, determining that the privacy index of the file is a first level higher than a basic level; when it is determined that the file originates from a private resource and a personal place is included in the file, a privacy level indicator of the file is determined to be a second level higher than the first level.
Preferably, the determining the sharing manner based on the familiarity index and the privacy index includes: when the familiarity index is larger than a preset familiarity high threshold value, sharing files with the target intelligent equipment in a direct connection mode; when the familiarity index is lower than a preset familiarity low threshold value and the privacy index is a basic level, sharing files with the target intelligent equipment in a direct connection mode; when the familiarity index is lower than a preset familiarity low threshold value and the privacy index is of a first level or a second level, sharing files with the target intelligent equipment in a prompting connection mode; and when the familiarity index is between the preset familiarity low threshold value and the preset familiarity high threshold value, if the privacy index is a basic level or a first level, sharing the file with the target intelligent equipment in a direct connection mode, and if the privacy index is a second level, sharing the file with the target intelligent equipment in a prompt connection mode.
It can be seen that in the embodiment of the present invention, four feature data (angle, distance, familiarity index, and privacy index) may be used to form a decision tree to determine which intelligent device in the periphery to share a file to and how to share the file to the intelligent device.
The calculation modes of the angle and the distance are described in detail above, and the familiarity index and the privacy index are described below.
The familiarity index reflects the familiarity between a device that needs to share a file (referred to as a source device) and a device that is shared with a file (referred to as a target device). The default value of the familiarity index is 0. A list of devices may be obtained from the source device, as compared to the Mac address of the device to be connected. If the target device has previously connected to the source device, then the familiarity index between the source device and the target device is 1. Moreover, if the source device and the target device are in the same hotspot or WI-FI network, the familiarity index is incremented by 1.
The privacy degree index reflects the privacy degree of the shared files needing to be shared. The manner of determining the privacy level indicator includes:
(1) For fully private information (such as payment information, notifications, etc.), it will not be shared.
(2) For files from public resources, such as videos, photos or articles on the web, etc., the privacy level may be set to a base level, such as setting the privacy level to 0.
(3) For a file from a private resource (e.g., a video, a photo, etc. taken by a user), and a public place (e.g., the taken place is some public place), the privacy index of the file is determined to be a first level higher than the base level, for example, the privacy index is set to 1.
(4) For a file from a private resource (e.g., a video, a photo, etc. taken by a user), and a private place (e.g., the taken place is some private rooms) is included in the file, the privacy index of the file is determined to be a second level higher than the first level, e.g., the privacy index is set to 2.
The above exemplary description describes typical examples of setting familiarity indicators and privacy indicators, and those skilled in the art will recognize that this description is merely exemplary and is not intended to limit the scope of embodiments of the present invention.
Fig. 6 is a schematic diagram of determining a target smart device according to an embodiment of the present invention.
In fig. 6, a specific algorithm for forming a decision tree using the above angle, distance, familiarity index, and privacy index is as follows:
first, the source scans the surrounding n devices, the source determines the angle with the n devices
And traversing the source device twice by using a bubbling sequencing algorithm to obtain two k devices and m devices with minimum angles, wherein the angles of the source device and the k devices are as followsThe angle of the source device with the m device is +.>K is more than or equal to 1 and less than or equal to n, and m is more than or equal to 1 and less than or equal to n. At the same time, calculating the distance d between the source device and the k device k Distance d between source device and m device m . Acquiring familiarity index f of k devices k The method comprises the steps of carrying out a first treatment on the surface of the Acquiring familiarity index f of m devices m The method comprises the steps of carrying out a first treatment on the surface of the Obtaining privacy index p of file shared to k device k The method comprises the steps of carrying out a first treatment on the surface of the Obtaining privacy index p of file shared to m devices m 。T 3 ,T 4 and T 5 Are threshold values. Since the error of UWB angle is 5 degrees, T 3 5; since the maximum value of the familiarity index is 2, T 4 Is 2; when the familiarity index is an intermediate value, the value is 1, T 5 1.
In fig. 6, the manner of determining the target smart device includes:
(1) When the angle of the source device and the k deviceAngle to source device and m device->The difference between them is greater than T 3 When (if->Less than->Determining that k device shares text as source deviceTarget smart device for a piece, if->Not less than->And determining the m device as a target intelligent device of the source device sharing the file.
(2) When the angle of the source device and the k deviceAngle to source device and m device->The difference between them is less than or equal to T 3 If d k Less than d m Determining that the k device is a target intelligent device of the source device shared file, if d k Not less than d m And determining the m device as a target intelligent device of the source device sharing the file.
After the target intelligent device is determined, the sharing mode can be determined based on the familiarity index of the target intelligent device and the file privacy index.
Fig. 7 is a schematic diagram of determining a sharing manner according to an embodiment of the present invention. In fig. 7, it is assumed that k device has been determined as the target smart device.
In fig. 7, determining a sharing manner for sharing to a k device includes:
(1) Familiarity index f when k devices k Greater than or equal to T 4 When the source device is deemed sufficiently familiar with the k device, the file is shared to the k device in a direct connection.
(2) Familiarity index f when k devices k Less than T 5 The source device is considered unfamiliar with the k device, and when further determining the privacy level index p of the file shared to the k device k When the value is 0, sharing the file to the k device in a direct connection mode, and further judging the privacy index p of the file shared to the k device k And if the file is not 0, sharing the file to the k device in a prompt connection mode.
(3) Familiarity index f when k devices k Greater than T 5 And is less than T 4 The source device is considered to be partially familiar with the k device, and when further determining the privacy level index p of the file shared to the k device k When the privacy index p is 0 or 1, sharing the file to the k device in a direct connection mode, and further judging the privacy index p of the file shared to the k device k And when the file is not 0 or 1 (namely 2), sharing the file to the k equipment in a prompt connection mode.
In the direct connection mode, the source device establishes connection with the target intelligent device without further sending a prompt to the user, and the file sharing is realized based on the connection.
In the prompt connection mode, the source device further sends out a prompt (such as a confirmation box) to the user, establishes connection with the target intelligent device after receiving the user consent indication, realizes file sharing based on the connection, and does not establish connection with the target intelligent device after receiving the user refusal indication.
In fig. 7, it is assumed that k device has been determined as the target smart device. Indeed, the logic shown in FIG. 7 may also be applicable to scenarios where m devices have been determined to be target smart devices.
A typical application scenario of the embodiment of the present invention is described below.
FIG. 8 is a first exemplary diagram of sharing files according to an embodiment of the present invention.
In the scenario shown in fig. 8, the user a holds a mobile phone with a UWB chip, and three candidate smart devices with UWB tags (or UWB chips) are present around, respectively, the mobile phone of the user B, the television, and the smart box.
User a intelligently shares multimedia files by shaking the cell phone.
Table 1 is a decision table generated by the user a handset based on shaking the handset operation.
TABLE 1
User a need only shake his own phone and then point to user B's phone. Then, the mobile phone of the user A can decide that the mobile phone of the user B is the target intelligent device based on the table 1, and is automatically connected with the mobile phone of the user B to share the content in the mobile phone of the user A to the mobile phone of the user B.
FIG. 9 is a second exemplary diagram of sharing files according to an embodiment of the present invention.
In the scenario shown in fig. 9, user a holds a handset with a UWB chip, and there are three candidate smart devices around, respectively with UWB tags (or UWB chips), a television, handset 1 of user B, and handset 2 of user C. User a intelligently shares multimedia files by shaking the cell phone. Table 2 is a decision table generated by the user a handset based on shaking the handset operation.
TABLE 2
User a only needs to shake his own phone and then point to the television. Then, the mobile phone of the user a can decide that the television is the target intelligent device based on table 2. Moreover, the mobile phone of the user A determines that the file needs to be shared to the television in a prompt connection mode based on the familiarity index of the television and the privacy index of the multimedia file. At this time, the mobile phone of the user a further sends out a reminder (such as a confirmation box), establishes a connection with the television after receiving the user consent indication, shares the multimedia file with the television based on the connection, and does not establish a connection with the television after receiving the user rejection indication.
FIG. 10 is a third exemplary diagram of sharing files according to an embodiment of the present invention.
In the scenario shown in fig. 10, user a holds a handset with a UWB chip, and there is a candidate smart device with a UWB tag around, i.e., user B's handset.
Therefore, the mobile phone of the user A can directly decide that the mobile phone of the user B is the target intelligent device. Moreover, the mobile phone of the user A determines that the file needs to be shared with the mobile phone of the user B in a prompt connection mode or a direct connection mode based on the familiarity index of the television and the privacy index of the multimedia file.
The embodiment of the invention also provides a device for sharing the files.
Fig. 11 is a block diagram of an apparatus for sharing files according to an embodiment of the present invention.
As shown in fig. 11, the apparatus for sharing a file includes:
an angle determining module 1101, configured to determine an angle with each candidate smart device based on an ultra wideband positioning method;
a target smart device determining module 1102, configured to determine a target smart device from the candidate smart devices based on the angle;
and the sharing module 1103 is configured to share the file with the target intelligent device.
In one embodiment, the method further comprises: a distance determining module 1104, configured to determine a distance between the ultra-wideband positioning method and each candidate intelligent device; the target smart device determining module 1102 is configured to determine a target smart device from the candidate smart devices based on the angle and the distance.
In one embodiment, the target smart device determining module 1102 is configured to determine, based on the angle ordering result, a candidate smart device with a first small angle and a candidate smart device with a second small angle; when the angle difference between the candidate intelligent equipment with the second small angle and the candidate intelligent equipment with the first small angle is larger than a preset angle threshold value, determining the candidate intelligent equipment with the first small angle as a target intelligent equipment; and when the angle difference between the second small candidate intelligent device and the first small candidate intelligent device is smaller than or equal to a preset angle threshold value, determining the first small candidate intelligent device as a target intelligent device if the distance between the first small candidate intelligent device and the first small candidate intelligent device is smaller than or equal to the distance between the second small candidate intelligent device and the first small candidate intelligent device, and determining the second small candidate intelligent device as the target intelligent device if the distance between the first small candidate intelligent device and the first small candidate intelligent device is larger than the distance between the second small candidate intelligent device and the first small candidate intelligent device.
In one embodiment, the sharing module 1103 is configured to determine a familiarity index of the target smart device; determining a privacy index of the file; and determining a sharing mode based on the familiarity index and the privacy index.
In one embodiment, the sharing module 1103 is configured to determine, when it is determined that the target smart device has a history of connection, that the familiarity index of the target smart device is a first level higher than a base level; and when the familiarity index of the target intelligent equipment is determined to be in the same hot spot or the same WI-FI network as the target intelligent equipment, the familiarity index of the target intelligent equipment is determined to be in a second level higher than the first level.
In one embodiment, the sharing module 1103 is configured to determine, when it is determined that the file is derived from a public resource, that a privacy level of the file is a base level; when the file is determined to be derived from a private resource and no personal place is contained in the file, determining that the privacy index of the file is a first level higher than a basic level; when it is determined that the file originates from a private resource and a personal place is included in the file, a privacy level indicator of the file is determined to be a second level higher than the first level.
In one embodiment, the sharing module 1103 is configured to share the file with the target smart device in a direct connection manner when the familiarity index is greater than a predetermined familiarity threshold; when the familiarity index is lower than a preset familiarity low threshold value and the privacy index is a basic level, sharing files with the target intelligent equipment in a direct connection mode; when the familiarity index is lower than a preset familiarity low threshold value and the privacy index is of a first level or a second level, sharing files with the target intelligent equipment in a prompting connection mode; and when the familiarity index is between the preset familiarity low threshold value and the preset familiarity high threshold value, if the privacy index is a basic level or a first level, sharing the file with the target intelligent equipment in a direct connection mode, and if the privacy index is a second level, sharing the file with the target intelligent equipment in a prompt connection mode.
The embodiment of the invention also provides an intelligent device with a memory-processor architecture.
Fig. 12 is a block diagram of a smart device having a memory-processor architecture in accordance with the present invention.
As shown in fig. 12, a smart device having a memory-processor architecture includes: a processor 1201 and a memory 1202; in which a memory 1202 has stored therein an application executable by a processor 1201 for causing the processor 1201 to perform the method of sharing files as described in any of the above.
The memory 1202 may be implemented as a variety of storage media such as an electrically erasable programmable read-only memory (EEPROM), a Flash memory (Flash memory), a programmable read-only memory (PROM), and the like. The processor 1201 may be a Central Processing Unit (CPU). By way of example, the processor 1201 includes at least one CPU, semiconductor-based microprocessor, programmable Logic Device (PLD), or the like. Exemplary PLDs include Application Specific Integrated Circuits (ASICs), field Programmable Gate Arrays (FPGAs), programmable Array Logic (PALs), complex Programmable Logic Devices (CPLDs), and Erasable Programmable Logic Devices (EPLDs). The processor 1201 may include multiple processing elements integrated in a single device or distributed among the devices. The processor sources may process instructions sequentially, simultaneously, or partially simultaneously.
In summary, in the embodiment of the present invention, the angle between the device and each candidate intelligent device is determined based on the UWB positioning method; determining a target intelligent device from the candidate intelligent devices based on the angle; and sharing the file with the target intelligent equipment. Therefore, the method and the device can determine the target intelligent device based on the angle, and the file providing device does not need to be specially close to the file receiving device, so that the operation complexity is reduced.
In addition, the embodiment of the invention can comprehensively consider the angle and the distance to determine the target intelligent equipment, and further ensure the accuracy of the target intelligent equipment.
In addition, the embodiment of the invention realizes sharing based on the familiarity index and the privacy index, and realizes good compromise between convenience and privacy protection.
It should be noted that not all the steps and modules in the above processes and the structure diagrams are necessary, and some steps or modules may be omitted according to actual needs. The execution sequence of the steps is not fixed and can be adjusted as required. The division of the modules is merely for convenience of description and the division of functions adopted in the embodiments, and in actual implementation, one module may be implemented by a plurality of modules, and functions of a plurality of modules may be implemented by the same module, and the modules may be located in the same device or different devices.
The hardware modules in the various embodiments may be implemented mechanically or electronically. For example, a hardware module may include custom designed permanent circuits or logic devices for performing specific operations. A hardware module may also include programmable logic devices or circuits (e.g., including a general purpose processor or other programmable processor) temporarily configured by software for performing particular operations.
The application also provides a machine-readable storage medium storing instructions for causing a machine to perform the method of the application. Specifically, a system or apparatus provided with a storage medium on which a software program code realizing the functions of any of the above embodiments is stored, and a computer (or CPU or MPU) of the system or apparatus may be caused to read out and execute the program code stored in the storage medium. Further, some or all of the actual operations may be performed by an operating system or the like operating on a computer based on instructions of the program code. The program code read out from the storage medium may also be written into a memory provided in an expansion board inserted into a computer or into a memory provided in an expansion unit connected to the computer, and then, based on instructions of the program code, a CPU or the like mounted on the expansion board or the expansion unit may be caused to perform part or all of actual operations, thereby realizing the functions of any of the above embodiments.
The foregoing description is only of the preferred embodiments of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims (8)
1. A method of sharing files, comprising:
determining an angle with each candidate intelligent device based on the ultra-wideband positioning mode;
determining a target intelligent device from the candidate intelligent devices based on the angle;
sharing files with the target intelligent device;
the sharing of the file to the target intelligent device includes: determining a familiarity index of the target intelligent device; determining a privacy index of the file; determining a sharing mode based on the familiarity index and the privacy index;
the determining the sharing mode based on the familiarity index and the privacy index comprises the following steps: when the familiarity index is larger than a preset familiarity high threshold value, sharing files with the target intelligent equipment in a direct connection mode; when the familiarity index is lower than a preset familiarity low threshold value and the privacy index is a basic level, sharing files with the target intelligent equipment in a direct connection mode; when the familiarity index is lower than a preset familiarity low threshold value and the privacy index is of a first level or a second level, sharing files with the target intelligent equipment in a prompting connection mode; when the familiarity index is between a preset familiarity low threshold value and a preset familiarity high threshold value, if the privacy index is a basic level or a first level, sharing the file to the target intelligent equipment in a direct connection mode, and if the privacy index is a second level, sharing the file to the target intelligent equipment in a prompt connection mode;
The determining the familiarity index of the target intelligent device includes: when the target intelligent device is determined to have a history connection record, determining that the familiarity index of the target intelligent device is a first level higher than a basic level; when the target intelligent device is determined to have a history connection record and be in the same hot spot or the same WI-FI network as the target intelligent device, determining that the familiarity index of the target intelligent device is a second level higher than the first level;
the determining the privacy degree index of the file comprises the following steps: when the file is determined to be derived from a public resource, determining a privacy index of the file as a basic level; when the file is determined to be derived from a private resource and no personal place is contained in the file, determining that the privacy index of the file is a first level higher than a basic level; when it is determined that the file originates from a private resource and a personal place is included in the file, a privacy level indicator of the file is determined to be a second level higher than the first level.
2. The method of sharing files of claim 1, further comprising:
determining the distance between the intelligent device and each candidate intelligent device based on an ultra-wideband positioning mode;
Wherein the determining, by the angle, the target smart device from the candidate smart devices includes:
and determining a target intelligent device from the candidate intelligent devices based on the angle and the distance.
3. The method of sharing files of claim 2,
the determining the target intelligent device from the candidate intelligent devices based on the angle and the distance comprises the following steps:
based on the angle sequencing result, determining candidate intelligent devices with first small angles and candidate intelligent devices with second small angles;
when the angle difference between the candidate intelligent equipment with the second small angle and the candidate intelligent equipment with the first small angle is larger than a preset angle threshold value, determining the candidate intelligent equipment with the first small angle as a target intelligent equipment;
and when the angle difference between the second small candidate intelligent device and the first small candidate intelligent device is smaller than or equal to a preset angle threshold value, determining the first small candidate intelligent device as a target intelligent device if the distance between the first small candidate intelligent device and the first small candidate intelligent device is smaller than or equal to the distance between the second small candidate intelligent device and the first small candidate intelligent device, and determining the second small candidate intelligent device as the target intelligent device if the distance between the first small candidate intelligent device and the first small candidate intelligent device is larger than the distance between the second small candidate intelligent device and the first small candidate intelligent device.
4. An apparatus for sharing files, comprising:
the angle determining module is used for determining the angle between the ultra-wideband positioning mode and each candidate intelligent device;
the target intelligent device determining module is used for determining target intelligent devices from the candidate intelligent devices based on the angle;
the sharing module is used for sharing the file to the target intelligent equipment;
the sharing of the file to the target intelligent device includes: determining a familiarity index of the target intelligent device; determining a privacy index of the file; determining a sharing mode based on the familiarity index and the privacy index;
the determining the sharing mode based on the familiarity index and the privacy index comprises the following steps: when the familiarity index is larger than a preset familiarity high threshold value, sharing files with the target intelligent equipment in a direct connection mode; when the familiarity index is lower than a preset familiarity low threshold value and the privacy index is a basic level, sharing files with the target intelligent equipment in a direct connection mode; when the familiarity index is lower than a preset familiarity low threshold value and the privacy index is of a first level or a second level, sharing files with the target intelligent equipment in a prompting connection mode; when the familiarity index is between a preset familiarity low threshold value and a preset familiarity high threshold value, if the privacy index is a basic level or a first level, sharing the file to the target intelligent equipment in a direct connection mode, and if the privacy index is a second level, sharing the file to the target intelligent equipment in a prompt connection mode;
The determining the familiarity index of the target intelligent device includes: when the target intelligent device is determined to have a history connection record, determining that the familiarity index of the target intelligent device is a first level higher than a basic level; when the target intelligent device is determined to have a history connection record and be in the same hot spot or the same WI-FI network as the target intelligent device, determining that the familiarity index of the target intelligent device is a second level higher than the first level;
the determining the privacy degree index of the file comprises the following steps: when the file is determined to be derived from a public resource, determining a privacy index of the file as a basic level; when the file is determined to be derived from a private resource and no personal place is contained in the file, determining that the privacy index of the file is a first level higher than a basic level; when it is determined that the file originates from a private resource and a personal place is included in the file, a privacy level indicator of the file is determined to be a second level higher than the first level.
5. The apparatus for sharing files of claim 4, further comprising:
the distance determining module is used for determining the distance between the ultra-wideband positioning mode and each candidate intelligent device;
The target intelligent device determining module is used for determining target intelligent devices from the candidate intelligent devices based on the angle and the distance.
6. The apparatus for sharing files of claim 5,
the target intelligent device determining module is used for determining candidate intelligent devices with first small angles and candidate intelligent devices with second small angles based on the angle sorting result; when the angle difference between the candidate intelligent equipment with the second small angle and the candidate intelligent equipment with the first small angle is larger than a preset angle threshold value, determining the candidate intelligent equipment with the first small angle as a target intelligent equipment; and when the angle difference between the second small candidate intelligent device and the first small candidate intelligent device is smaller than or equal to a preset angle threshold value, determining the first small candidate intelligent device as a target intelligent device if the distance between the first small candidate intelligent device and the first small candidate intelligent device is smaller than or equal to the distance between the second small candidate intelligent device and the first small candidate intelligent device, and determining the second small candidate intelligent device as the target intelligent device if the distance between the first small candidate intelligent device and the first small candidate intelligent device is larger than the distance between the second small candidate intelligent device and the first small candidate intelligent device.
7. An intelligent device is characterized by comprising a processor and a memory;
the memory has stored therein an application executable by the processor for causing the processor to perform the method of sharing files of any one of claims 1 to 3.
8. A computer readable storage medium having stored therein computer readable instructions for performing the method of sharing files of any of claims 1 to 3.
Priority Applications (3)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011330594.4A CN112423226B (en) | 2020-11-24 | 2020-11-24 | File sharing method and device and intelligent equipment |
KR1020210051344A KR20220071854A (en) | 2020-11-24 | 2021-04-20 | Method, apparatus and smart device for sharing file |
PCT/KR2021/005103 WO2022114408A1 (en) | 2020-11-24 | 2021-04-22 | Method, apparatus and smart device for sharing file |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011330594.4A CN112423226B (en) | 2020-11-24 | 2020-11-24 | File sharing method and device and intelligent equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112423226A CN112423226A (en) | 2021-02-26 |
CN112423226B true CN112423226B (en) | 2023-09-29 |
Family
ID=74777565
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011330594.4A Active CN112423226B (en) | 2020-11-24 | 2020-11-24 | File sharing method and device and intelligent equipment |
Country Status (2)
Country | Link |
---|---|
KR (1) | KR20220071854A (en) |
CN (1) | CN112423226B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114547100A (en) * | 2022-01-13 | 2022-05-27 | Oppo广东移动通信有限公司 | Resource information sharing method, electronic equipment and computer storage medium |
WO2023184560A1 (en) * | 2022-04-02 | 2023-10-05 | Oppo广东移动通信有限公司 | Device sharing method and apparatus, device, storage medium, and program product |
CN115103346A (en) * | 2022-07-25 | 2022-09-23 | 润芯微科技(江苏)有限公司 | File sharing method and system based on UWB |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102299968A (en) * | 2011-09-16 | 2011-12-28 | 四川长虹电器股份有限公司 | Multi-terminal information sharing system and method |
CN106211033A (en) * | 2016-06-28 | 2016-12-07 | 北京小米移动软件有限公司 | Data sharing method, device and electronic equipment |
CN106507286A (en) * | 2016-11-22 | 2017-03-15 | 北京三快在线科技有限公司 | A kind of document transmission method, source device and non-source device |
CN108566429A (en) * | 2018-04-17 | 2018-09-21 | 广东五科技股份有限公司 | A kind of high in the clouds sharing files method and apparatus |
CN109376127A (en) * | 2018-09-25 | 2019-02-22 | 淮阴师范学院 | A kind of file sharing devices |
CN111542128A (en) * | 2020-04-14 | 2020-08-14 | 支付宝(杭州)信息技术有限公司 | UWB-based equipment interaction method, device and equipment |
-
2020
- 2020-11-24 CN CN202011330594.4A patent/CN112423226B/en active Active
-
2021
- 2021-04-20 KR KR1020210051344A patent/KR20220071854A/en active Search and Examination
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102299968A (en) * | 2011-09-16 | 2011-12-28 | 四川长虹电器股份有限公司 | Multi-terminal information sharing system and method |
CN106211033A (en) * | 2016-06-28 | 2016-12-07 | 北京小米移动软件有限公司 | Data sharing method, device and electronic equipment |
CN106507286A (en) * | 2016-11-22 | 2017-03-15 | 北京三快在线科技有限公司 | A kind of document transmission method, source device and non-source device |
CN108566429A (en) * | 2018-04-17 | 2018-09-21 | 广东五科技股份有限公司 | A kind of high in the clouds sharing files method and apparatus |
CN109376127A (en) * | 2018-09-25 | 2019-02-22 | 淮阴师范学院 | A kind of file sharing devices |
CN111542128A (en) * | 2020-04-14 | 2020-08-14 | 支付宝(杭州)信息技术有限公司 | UWB-based equipment interaction method, device and equipment |
Also Published As
Publication number | Publication date |
---|---|
KR20220071854A (en) | 2022-05-31 |
CN112423226A (en) | 2021-02-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112423226B (en) | File sharing method and device and intelligent equipment | |
US20230319914A1 (en) | Displaying information based on wireless ranging | |
KR102691009B1 (en) | Device location detection | |
US9198119B2 (en) | Method and apparatus for peer-2-peer Wi-Fi ranging using near field communication | |
CN108702602B (en) | Image sharing method, electronic device and system | |
US9288744B2 (en) | Method and apparatus for sharing connectivity settings via social networks | |
US10356561B2 (en) | Tracking a person in a group of people | |
CN110431868B (en) | Wi-Fi hotspot connection method and terminal | |
KR20180121170A (en) | Electronic device and proximity discovery method thereof | |
WO2017063499A1 (en) | File sending and transmission method and apparatus | |
CN112788783B (en) | Relay connection establishment method and device | |
KR20230021060A (en) | Terminal and controlling method thereof in an wireless communication system | |
US20170142680A1 (en) | Techniques for determining a device location | |
US9807780B2 (en) | Data sharing system | |
US20160149775A1 (en) | Determining physical location of a networked computing device | |
Rother et al. | Localization in 6G: A Journey along existing Wireless Communication Technologies | |
US20240129690A1 (en) | Distributed Device Location Finding | |
WO2022205308A1 (en) | Information transmission method and apparatus, terminal device, base station, and storage medium | |
WO2024083045A1 (en) | Authentication determination method and apparatus, authentication method and apparatus, and node | |
WO2023092602A1 (en) | Precoding method and apparatus, user equipment, ris array, base station and storage medium | |
CN105335392B (en) | Information processing method and electronic equipment | |
CN117880884A (en) | Wireless communication method, apparatus, readable storage medium, and product | |
RU2574817C2 (en) | Method and apparatus for sharing connection settings via social networks |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |