# Patent

## Title
Copresence permission model

## Abstract

The disclosure includes a system and method for detecting fine grain copresence between users. The system includes a processor and a memory storing instructions that when executed cause the system to receive user input regarding copresence detection settings for a first user device, the copresence detection settings comprising a location and/or a user access control list, and determine a current location of the first user device. The system may determine whether copresence detection of the first user device is enabled at the current location based on the copresence detection settings and the current location. Based on determining that copresence detection is enabled, the system may refine copresence and perform an action based on fine grain copresence of the first and second user device.

## Background
CROSS REFERENCE TO RELATED APPLICATIONS
The present application claims priority, under 35 U.S.C. §119, to U.S. Provisional Patent Application No. 62/016,583, filed Jun. 24, 2014, and entitled “Copresence Permission Model,” which is incorporated by reference in its entirety. The present application also claims priority, under 35 U.S.C. §119, to U.S. Provisional Patent Application No. 62/016,581, filed Jun. 24, 2014, and entitled “Server Orchestrated Connectivity,” which is also incorporated by reference in its entirety.


BACKGROUND
Existing systems typically take advantage of Global Positioning System (GPS) data to locate a user device and determine copresence with other user devices. However, GPS is power intensive and used infrequently, which results in a possibility of stale data. Moreover, the GPS hardware in some mobile devices is not accurate enough to provide a true copresence determination. In addition, if GPS is used indoors, the GPS signal may not be available and, as a result, the user device switches to using Wi-Fi® or cellular means of location detection, which are much less accurate. Similarly, other copresence detection technologies, such as Bluetooth®, audio, Wi-Fi, or the like, can be power intensive and would result in poor device battery life if constantly left running. Additionally, existing systems may be prone to spoofing (e.g., sending a fake coordinate to a server, etc.).
SUMMARY
According to one innovative aspect of the subject matter described in this disclosure, a system for determining fine grain copresence of user devices includes a processor and a memory storing instructions that, when executed, cause the system to: receive user input defining copresence detection settings for a first user device, the copresence detection settings comprising at least one criterion for which copresence detection is enabled for the first user device; detect a fulfillment of the at least one criterion based on data of the first user device; in response to detecting the fulfillment of the at least one criterion, enabling copresence detection of the first user device based on the copresence detection settings; and in response to determining copresence detection is enabled, instruct the first user device to perform an action based on the copresence detection settings.
In some embodiments, the instructions, in response to determining coarse grain copresence, further cause the computer to: determine, based on the copresence detection settings, whether copresence detection of the first user device is enabled at the current location; in response to determining copresence detection is enabled, transmit a signal to the first user device to alert the first user device to listen for a fine grain copresence token; and initiate transmission of the fine grain copresence token from the second user device. Based on receiving an indication that the first user device has received the fine grain copresence token, the instructions further cause the computer to refine copresence and perform an action based on fine grain copresence of the first and second user device.
These and other embodiments may each optionally include one or more of the following features. For instance, the coarse grain location information may be supplemented by location information provided by one or more of GPS, Wi-Fi, IP address information, or other sensor information (e.g., accelerometer patterns, barometer, temperature, or the like). For example, by looking at accelerometer patterns, barometer, or temperature information, it may be determined that two devices are located in the same vehicle. The fine grain copresence token may be transmitted using one or more of inaudible audio, audible audio, Bluetooth, BLE, Wi-Fi, or near field communications. Coarse grain copresence may be determined using signals including one or more of a text message, an email message, an instant message, a calendar event, a social media post, or the like.
Other aspects include corresponding methods, systems, apparatus, and computer program products for these and other innovative aspects.
The disclosure may be particularly advantageous in a number of respects. First, the system can accurately determine fine grain copresence between user devices without receiving location data from the user devices. For example, the system can figure out if users are in the same room, which can be difficult using other techniques. Second, the system reduces battery drain while simulating always on performance by waking up only those devices whose fine grain copresence is to be determined.



BRIEF DESCRIPTION OF THE DRAWINGS
The disclosure is illustrated by way of example, and not by way of limitation in the figures of the accompanying drawings in which like reference numerals are used to refer to similar elements.
FIG. 1 illustrates a block diagram of one embodiment of a system for determining copresence of two or more users or devices.
FIG. 2 is a block diagram of a computing device for determining copresence of two or more users or devices.
FIG. 3 is a flowchart of an example method for determining fine grain copresence between user devices based on user-defined copresence detection settings.
FIG. 4 is a flowchart of an example method for refining copresence between user devices based on user-defined copresence detection settings.
FIG. 5 is an example block diagram depicting signals transmitted and received in one embodiment for determining fine grain copresence of user devices.
FIG. 6 is a graphic representation of an example user interface generated by the user interface engine for providing a user with copresence of other users.
FIG. 7 is a graphic representation of an example user interface generated by the user interface engine in which a user can permit others to detect the user's copresence according to one embodiment.



DETAILED DESCRIPTION
FIG. 1 illustrates a block diagram of one embodiment of a system 100 for determining copresence of two or more users or devices. It should be understood that the system 100 illustrated in FIG. 1 is representative of an example system for determining fine grain copresence of two or more devices, and that a variety of different system environments and configurations are contemplated and are within the scope of the present disclosure. For instance, various functionality may be moved from a server to a client, or vice versa, and some implementations may include additional or fewer computing devices, services, and/or networks, and may implement various functionality client or server-side. Further, various entities of the system may be integrated into to a single computing device or system or additional computing devices or systems, etc.
The illustrated system 100 includes user devices 115a . . . 115n that can be accessed by users 125a . . . 125n, one or more social network servers 101, a Short Messaging Service (SMS)/Multi-media Messaging Service (MMS) server 111, a micro-blogging server 113, an Instant Messaging (IM) server 117 and a copresence server 107. In FIG. 1 and the remaining figures, a letter after a reference number, e.g., “115a,” represents a reference to the element having that particular reference number. A reference number in the text without a following letter, e.g., “115,” represents a general reference to embodiments of the element bearing that reference number. In the illustrated embodiment, the entities of the system 100 are communicatively coupled via a network 105. In some embodiments, the system 100 may include other servers or devices not shown in FIG. 1. For example, the system 100 may include a global positioning system (GPS) to aid in determining the location of a user device 115.
The social network server 101 can be a hardware server that includes a processor, a memory and network communication capabilities. The social network server 101 is communicatively coupled to the network 105. In some embodiments, the social network server 101 sends and receives data to and from one or more of the user devices 115a . . . 115n and the copresence server 107 via the network 105. The social network server 101 includes a social network application 109 and a database 199. The database 199 stores social data associated with users. For example, the database 199 stores social data describing one or more of user profiles, posts, comments, videos, audio files, images, shares, acknowledgements, etc., published in a social network.
A social network can be a type of social structure where the users may be connected by a common feature. The common feature includes relationships/connections, e.g., friendship, family, work, an interest, etc. The common features may be provided by one or more social networking systems including explicitly defined relationships and relationships implied by social connections with other online users, where the relationships form a social graph. In some examples, the social graph can reflect a mapping of these users and how they can be related.
Multiple social network servers 101 are illustrated and represent different social networks coupled to the network 105, each having its own server, application and social graph. For example, a first social network may be more directed to business networking, a second may be more directed to an electronic messaging application where the social graph represents communications between users, a third may be directed to a social forum, a fourth may be directed to a blogging or microblogging environment, etc.
In some embodiments, a proximity application 103a is operable on the copresence server 107, which is coupled to the network 105. The copresence server 107 can be a hardware server that includes a processor, a memory and network communication capabilities. The copresence server 107, for example, sends and receives data to and from other entities of the system 100 via the network 105. While FIG. 1 illustrates one copresence server 107, the system 100 may include one or more copresence servers 107.
In some embodiments, the copresence server 107 determines copresence of user devices 115. Copresent user devices may be devices that are currently within a proximate distance to each other or within a certain area of coverage proximate to one another. Copresence may be determined, for example, by determining that user devices are proximate to each other within a particular distance or area. Further, copresence may be determined on various scales defined by coarse grain copresence determination and fine grain copresence determination. For example, two copresent devices may be within a first proximate distance to each other based on coarse grain copresence determination. Furthering on this example, the two devices may be within a second proximate distance to each other based on fine grain copresence determination, the second proximate distance being a distance within the first proximate distance. As another example, coarse grain copresence may be determined when user devices are proximate within a particular distance and fine grain copresence may be determined when user devices are proximate within a particular distance that is relatively smaller than the distance for determining coarse grain copresence. Coarse grain copresence may be determined using technologies having a relatively wide copresence threshold, for example, GPS techniques, Wi-Fi positioning systems, cellular network location services, or the like. On the other hand, fine grain copresence may be determined using technologies that have a relatively smaller communication area, and therefore a relatively smaller copresence threshold. For example, fine grain copresence may be determined using Bluetooth, Bluetooth Low Energy (BLE), Wi-Fi, infrared, inaudible audio signals, audible audio signals, near field communication, and the like. Additionally, the technologies used to determine fine grain copresence can be effective indoors and can even be used to determine copresence in a particular enclosed area, e.g., a room within a building. Further, determining coarse grain copresence of devices may provide an initial location identification of devices within a wider range. This determination of coarse grain location information may provide location information to determine whether the proximity of the devices may be further specified or refined through fine grain location determination, thereby determining whether the devices may communicate with each other or transmit data to one another via near-field communication technologies such as Bluetooth, Bluetooth Low Energy (BLE), Wi-Fi, infrared, inaudible audio signals, and audible audio signals described above.
As another example, the copresence server 107 may determine a coarse grain location (or coarse grain copresence) of user devices that are within 1000 feet of one another by GPS techniques, Wi-Fi positioning systems, cellular network location services, or other similar technologies that are operable within a relatively wide transmission or communication distance. Furthering on this example, the proximity application 103 (which determines fine grain copresence between user devices) may determine a fine grain location (or fine grain copresence) of user devices that are within 10 feet of one another by Bluetooth, Bluetooth Low Energy (BLE), Wi-Fi, infrared, inaudible audio signals, audible audio signals, near field communication, and other similar technologies that are operable within a relatively smaller transmission or communication distance. The proximity application 103 is further described below and also described in more detail with reference to FIGS. 2-5.
In some embodiments, the copresence server 107 may determine a coarse grain location (or coarse grain copresence) of user devices 115 based on signals received from other entities of the system 100. For example, the copresence server 107 may receive signals from a user device 115, the SMS/MMS server 111, the micro-blogging server 113, the IM server 117, and/or the social network server 101. Using these signals, the copresence server may determine a coarse grain location of each of the user devices 115 in communication with the copresence server 107. For example, in one embodiment, the copresence server 107 may receive a signal from a user device 115 that includes the location of the device. In another embodiment, the copresence server 107 may receive a signal, such as a text message, an email message, an instant message, a calendar event, a social media post, or the like from another entity of the system 100. The copresence server 107 may then process the signals to determine a coarse grain location of a user device or coarse grain copresence of multiple user devices 115.
In the illustrated embodiment, the copresence server 107 may include a database 123 for storing data associated with the copresence server 107, e.g., coarse grain location and/or copresence information, signals received from other entities of system 100, and the like. In some embodiments, the database 123 may be a dynamic random access memory (DRAM) device, a static random access memory (SRAM) device, flash memory or some other memory devices. In other embodiments, the database 123 may include a non-volatile memory or similar permanent storage device and media including a hard disk drive, a floppy disk drive, a CD-ROM device, a DVD-ROM device, a DVD-RAM device, a DVD-RW device, a flash memory device, or some other mass storage device for storing information on a more permanent basis.
In various embodiments, one or more of the entities in the system 100 may include a proximity application 103 for use in determining fine grain copresence between user devices. The proximity application 103 includes software and/or logic executable by a processor to determine fine grain copresence between users. In some embodiments, the proximity application 103 can be implemented using hardware including a field-programmable gate array (FPGA) or an application-specific integrated circuit (ASIC). In some other embodiments, the proximity application 103 can be implemented using a combination of hardware and software. In some embodiments, the proximity application 103 may be stored in a combination of the devices and servers, or in one of the devices or servers. The proximity application 103 is described below in more detail with reference to FIGS. 2-5.
Although only two proximity applications 103a and 103b are illustrated in the example of FIG. 1, it should be understood that any number of proximity applications may be present in the entities of system 100. As described in more detail herein, the proximity application 103a may determine a set of user devices 115 that may be within proximity to a first user device 115 based on coarse grain location and/or copresence information. In one embodiment, the proximity application may further determine a subset of the user devices 115 that the user of the first user device 115 may be interested in learning are nearby. In some embodiments, the proximity application 103a determines one or more actions to perform when the other user device 115 is within proximity. For example, the proximity application 103a may initiate a notification to be displayed to the user that other user devices are nearby. Whether or not a user device will show up on a display may be customized, for example, through privacy settings on the user device.
In some embodiments, the proximity application 103 acts in part as a thin-client application that may be stored on the user devices 115a . . . 115n and in part that may be stored on the copresence server 107. For example, the proximity application 103b on the user device 115a generates a list of device identifiers associated with user devices 115 in the proximity of user device 115a, and sends the list of device identifiers to the proximity application 103a stored on the copresence server 107. The proximity application 103a determines if the user devices 115 permit their proximity to be displayed to the user 125a based on profiles or other social data of the users 125 associated with user devices 115. The proximity application 103a may then send permission data indicating permission of the users 125 to the proximity application 103b on the user device 115a for presenting the proximity of the users 125 to the user 125a based on the permission data. In some embodiments, the permission data may indicate permission of the users 125 to the proximity application 103b on the user device 115a for allowing data exchange of user devices 115 between the user devices 115 of other entities or devices. For example, the permissions data may indicate which merchant can process payments from the user device when the user device is detected. In some embodiments, the permission data may indicate permission of the users 125 to the proximity application 103b on the user device 115a for allowing activation of certain other devices or services. For example, the permissions data may indicate what devices to turn on when copresence of the device is detected.
User devices 115a . . . 115n are computing devices having data processing and communication capabilities. For example, the user devices 115a . . . 115n may be laptop computers, desktop computers, tablet computers, smartphones, portable game players, portable music players, e-readers, televisions, or the like. In some implementations, a user device 115 may include a processor (e.g., virtual, physical, etc.), a memory, a power source, a communication unit, and/or other software and/or hardware components, including, for example, a display, graphics processor, wireless transceivers, keyboard, camera, sensors, firmware, operating systems, drivers, various physical connection interfaces (e.g., USB, HDMI, etc.). The user devices 115a . . . 115n may couple to and communicate with one another and the other entities of the system 100 via the network 105 using a wireless and/or wired connection. While FIG. 1 illustrates two user devices 115a and 115n, the disclosure applies to a system architecture having any number of user devices 115.
In some embodiments, the user device 115 can be a wearable mobile computing device. For example, the user device 115 may be a wristband, jewelry, eyeglasses, a smart watch, or the like. The user 125 can view notifications from the proximity application 103 on a display of the user device 115. For example, the user 125 can view the notifications on a display of a smart watch or a smart wristband. The user 125 may also configure what types of notifications to be displayed on the user device 115. For example, the user 125 may configure the wearable user device 115 to blink for 5 seconds if a friend's mobile user device 115 is detected in proximity to the user 125.
In other embodiments, while referenced herein as a user device, user device 115 does not necessarily have to be associated with a user. For example, a user device 115 may be a “smart” signpost, or the like, which detects the presence of other user devices. In another example, user device 115 may be a car which can request the proximity of other cars, its proximity to a particular parking spot (e.g., the nearest available parking spot, an assigned parking spot, etc.). In yet another example, a first user device (e.g., a smart phone, tablet, or the like) may detect the presence of a second user device (e.g., TV, set-top box, game console, or the like) and turn into a remote controller for the second user device.
The network 105 may include any number and/or type of networks, and may be representative of a single network or numerous different networks. For example, the network 105 may include, but is not limited to, one or more local area networks (LANs), wide area networks (WANs) (e.g., the Internet), virtual private networks (VPNs), mobile (cellular) networks, wireless wide area network (WWANs), WiMAX® networks, Bluetooth communication networks, various combinations thereof, etc. Although FIG. 1 illustrates one network 105 coupled to the user devices 115, the social network server 101 and the copresence server 107, in practice one or more networks 105 can be connected to these entities.
The social network server 101, the copresence server 107, the SMS/MMS server 111, the micro-blogging server 113, and the IM server 117 are, in some embodiments, hardware servers including a processor, memory and network communication capabilities. While only one social network server 101, the copresence server 107, the SMS/MMS server 111, the micro-blogging server 113, and the IM server 117 are illustrated, any number of these entities may be present and coupled to the network 105. For example, the system 100 may include a first social network server and a first social graph directed towards business networking and a second social network server and a second social graph directed towards dating, etc.
Referring now to FIG. 2, an example of the proximity application 103 is shown in more detail. FIG. 2 is a block diagram of a computing device 200 that includes a proximity application 103, a processor 235, a memory 237, a location unit 233, and a communication unit 241 according to some examples. The components of the computing device 200 are communicatively coupled by a bus 220. In some embodiments, the computing device 200 is similar to one of a user device 115 and a copresence server 107 as described above. The computing device 200 depicted in FIG. 2 is provided by way of example and it should be understood that it may take other forms and include additional or fewer components without departing from the scope of the present disclosure. For instance, various components of the computing device 200 may reside on the same or different computing devices and may be coupled for communication using a variety of communication protocols and/or technologies including, for instance, communication buses, software communication mechanisms, computer networks, etc.
The processor 235 may execute software instructions by performing various input/output, logical, and/or mathematical operations. The processor 235 may have various computing architectures to process data signals including, for example, a complex instruction set computer (CISC) architecture, a reduced instruction set computer (RISC) architecture, and/or an architecture implementing a combination of instruction sets. The processor 235 may be physical and/or virtual, and may include a single processing unit or a plurality of processing units and/or cores. In some implementations, the processor 235 may be capable of generating and providing electronic display signals to a display device (not shown), supporting the display of images, capturing and transmitting images, performing complex tasks including various types of feature extraction and sampling, etc. In some implementations, the processor 235 may be coupled to the memory 237 via the bus 220 to access data and instructions therefrom and store data therein. The bus 220 may couple the processor 235 to the other components of the computing device 200 including, for example, the memory 237, the communication unit 241, the proximity application 103, and the location unit 233.
The memory 237 may store and provide access to data for the other components of the computing device 200. The memory 237 may be included in a single computing device or a plurality of computing devices as discussed elsewhere herein. In some implementations, the memory 237 may store instructions and/or data that may be executed by the processor 235. For example, in one embodiment, the memory 237 may store the proximity application 103. The memory 237 is also capable of storing other instructions and data, including, for example, an operating system, hardware drivers, other software applications, databases, etc. The memory 237 may be coupled to the bus 220 for communication with the processor 235 and the other components of computing device 200.
The memory 237 includes one or more non-transitory computer-usable (e.g., readable, writeable, etc.) mediums, which can be any tangible apparatus or device that can contain, store, communicate, propagate or transport instructions, data, computer programs, software, code, routines, etc., for processing by or in connection with the processor 235. In some implementations, the memory 237 may include one or more of volatile memory and non-volatile memory. For example, the memory 237 may include, but is not limited to, one or more of a dynamic random access memory (DRAM) device, a static random access memory (SRAM) device, an embedded memory device, a discrete memory device (e.g., a PROM, FPROM, ROM), a hard disk drive, an optical disk drive (CD, DVD, Blu-rayTM, etc.). It should be understood that the memory 237 may be a single device or may include multiple types of devices and configurations.
The bus 220 can include a communication bus for transferring data between components of a computing device or between computing devices, a network bus system including the network 105 or portions thereof, a processor mesh, various connectors, a combination thereof, etc. In some implementations, the proximity application 103 operating on the computing device 200 may cooperate and communicate with other components of the computing device 200 via a software communication mechanism implemented in association with the bus 220. The software communication mechanism can include and/or facilitate, for example, inter-process communication, local function or procedure calls, remote procedure calls, an object broker (e.g., CORBA), direct socket communication (e.g., TCP/IP sockets) among software modules, UDP broadcasts and receipts, HTTP connections, etc. Further, any or all of the communication could be secure (e.g., SSH, HTTPS, etc.).
The communication unit 241 may include one or more interface devices for wired and/or wireless connectivity with the network 105 and the other entities and/or components of the system 100 including, for example, the social network server 101, the copresence server 107, the user devices 115, the SMS/MMS server 111, the micro-blogging server 113, the IM server 117, etc. For instance, the communication unit 241 may include, but is not limited to, CAT-type interfaces; wireless transceivers for sending and receiving signals using Wi-Fi, Bluetooth, cellular communications, etc.; USB interfaces; various combinations thereof; etc. The communication unit 241 may be coupled to the network 105 and may be coupled to the other components of the computing device via the bus 220. In some implementations, the communication unit 241 can link the processor 235 to the network 105, which may in turn be coupled to other processing systems. The communication unit 241 can provide other connections to the network 105 and to other entities of the system 100 using various standard communication protocols.
In the illustrated embodiment shown in FIG. 2, the proximity application 103 includes a device detector 202, one or more filter engines 204, a permission engine 206, a ranking engine 208, a user interface engine 210, and a device activator 212. These components of the proximity application 103 are communicatively coupled to each other via the bus 220.
The device detector 202 includes software and/or logic to provide the functionality described below for detecting coarse grain and fine grain copresence of user devices 115. In some embodiments, device detector 202 can be implemented using hardware including a field-programmable gate array (FPGA) or an application-specific integrated circuit (ASIC). In other embodiments, the device detector 202 can be implemented using a combination of hardware and software executable by processor 235.
In some embodiments, the device detector 202 determines coarse grain and fine grain copresence of one or more user devices 115. For example, in one embodiment, the device detector 202 determines a coarse grain location and/or copresence for user devices 115 based on GPS techniques, Wi-Fi positioning systems, cellular network location services, or the like. In another embodiment, as described above, the device detector 202 may determine coarse grain copresence based on other signals.
In some embodiments, the device detector 202 receives recorded locations of a user device 115 from one or more of the databases (e.g., the database 199, the database 123, etc.) and determines a coarse grain location of the user device 115. For example, the user device 115 may check in with a social network at various locations and the database 199 may store historical locations of the device based on the check-ins. The device detector 202 may then determine a coarse grain location for the user device 115 based on historical locations of the user device 115. For example, if the user device 115 is a home device (e.g., a television, a video player, a desktop computer, etc.) and usually checked in at home, the device detector 202 would determine the coarse grain location of the user device 115 to be near a user's home. In another example, the user device 115 may be a smartphone or other mobile device and during a certain period of time (e.g., 9 AM-6 PM on weekdays) the device is usually with the user and at the user's work place. The device detector 202 would determine the coarse grain location of the user device 115 to be at the user's work place during that certain period of time.
The device detector 202 may then refine copresence by determining fine grain copresence for user devices 115 using Bluetooth, Bluetooth Low Energy (BLE), Wi-Fi, infrared, inaudible audio signals, audible audio signals, near field communication, etc., to transmit or receive a copresence token and/or transmit or receive a response to a copresence token as described in more detail below. For example, after determining coarse grain copresence of one or more user devices 115 based, for example, on the coarse grain location information, the copresence server 107 may select a user device 115 to transmit a fine grain copresence token for determining fine grain copresence. The copresence server 107 may initiate the fine grain copresence detection by sending a signal to the transmitting user device 115. In one embodiment, the signal may be sent to the transmitting user device 115 via network 105. The copresence server 107 may also transmit a signal to a receiving user device to wake up and instruct the user device to listen for a fine grain copresence token.
In response to receiving the signal to transmit the fine grain copresence token, the device detector 202 of the transmitting user device may initiate transmission of the fine grain copresence token using the transmission unit 241. As described above, the transmitting user device may transmit the token using Bluetooth, BLE, Wi-Fi, infrared, inaudible audio, audible audio, near field, or other signals with similar range. In response to detecting the fine grain copresence token, the device detector 202 of the receiving user device may transmit a confirmation or acknowledgment to the transmitting user device. After receiving the confirmation or acknowledgment, the device detector 202 of the transmitting user device may transmit an indication to the copresence server 107 that the transmitting user device and the receiving user device are copresent. In one embodiment, there may be more than a single receiving user device that receives the fine grain copresence token and transmits a confirmation to the transmitting user device. The indication transmitted to the copresence server 107 may then include a list or other representation of copresent user devices.
In some embodiments, the device detector 202 on the copresence server 107 generates a token (for example, after registration with the proximity application 103) and permanently assigns the token to the user device 115. In other embodiments, the device detector 202 on the copresence server 107 periodically issues new tokens so that the tokens are also not misused. In yet other embodiments, a token may be temporarily assigned to a user device 115 for the duration of a fine grain copresence determination and then recycled by a different user device for use in a separate fine grain copresence determination. In other embodiments, the device detector 202 on the user device 115 generates its own token (e.g., one time or periodically) and transmits the token to the copresence server 107 for identification purposes. The device detector 202 transmits the token to the communication unit 241 on the user device 115 to be used in the discovery process with other user devices 115. In some embodiments, a token is a random set of bits sufficient to ensure uniqueness and security (e.g., 40 bits), not-guessable, and have a server-enforced lifespan (e.g., 10 minutes). In some embodiments, a token may be a proxy identifier for the location and time a user device requested the token, with some smearing on both since the user device can move during the enforced lifespan. In one embodiment, a single device may be allowed to broadcast a particular token and only for the server-enforced lifespan of that token. Within the server-enforced lifespan of a token, the copresence server 107 may guarantee the token to be unique. However, as described above, a token may be recycled-assigned to another user device 115—after the token's server-enforced lifespan has passed.
In some embodiments, the device detector 202 wakes up all other user devices 115 within a possible communication range of the first device, based on coarse grain location and/or copresence information, to listen for the fine grain copresence token. In some embodiments, the device detector 202 may wake up only a subset of user devices 115 within range of the first user device 115 due to the memory limitations, data transmission limitations, communication technology limitations, and/or battery life limitations. Criteria may be specified by a user or determined by the copresence server 107 for selecting the subset of user devices to wake up. Example criteria can include social connections between users, common interests based on user profiles or activities, a historical status of devices, signals from other applications, copresence detection settings, etc. For example, although the copresence server 107 maintains or has access to coarse grain location and/or copresence information for a large number of user devices, it is not necessary to involve all user devices that are roughly copresent based on this information in fine grain copresence detection. In the scenario described above where the copresence server 107 determines coarse grain copresence based on non-location signals (e.g., text messages, emails, calendar notices, etc.) the copresence server may send a transmit signal to one user device and a wake up signal to the other user device even though multiple other devices may be copresent based on coarse grain location information. In some embodiments, the filter engines 204 or the permission engine 206 may determine which user devices to wake up for fine grain copresence detection based on one or more of the certain criteria (e.g., the user of the first user device 115 may know the users associated with the list of other user devices 115). In other embodiments, the device detector 202 receives a list of other user devices 115 filtered by the permission engine 206 that are within proximity to the first user device 115 to wake up for fine grain copresence detection. In some other embodiments, the device detector 202 receives a list of other devices filtered by the ranking engine 212 and wakes up those user devices in the list. For example, the ranking engine 212 may pick the top 50 users in a list and the device detector 202 wakes up the top 50 user devices 115 for fine grain copresence detection.
In some embodiments, not all copresent devices may respond to a particular token transmission. However, the copresence server 107 may still determine copresence based on separate copresence determination requests. For example, if the copresence server 107 determines that user A and user B are copresent in a first copresence determination request and that user B and user C are copresent in a second copresence determination request, the copresence server 107 can assume or infer that user A and user C are copresent. In general, there is no limit to the degree of separation the copresence server 107 may rely on in determining copresence based on separate copresence determination requests. However, if too many degrees of separation are present, copresence determinations may become unreliable and/or less useful. For example, at a large sporting event, the copresence server 107 may determine copresence of all user devices in the stadium based on multiple copresence determination requests and large degrees of separation. However, copresence information would be more useful if the copresence determination result was limited to one or two degrees of separation from the requester.
In some embodiments, after receiving responses from other user devices, the device detector 202 may send information about the responding user devices 115 to the filter engines 204, the permission engine 206, or the ranking engine 208 for filtering the list of responding user devices 115 for display on the one or more of the user devices 115.
The filter engines 204 includes software and/or logic to provide the functionality described below for filtering user devices 115 based on certain criteria and generating a list of filtered devices. In some embodiments, filter engines 204 can be implemented using hardware including FPGAs or ASICs. In other embodiments, the filter engines 204 can be implemented using a combination of hardware and software executable by processor 235. The filter engines 204 may be adapted for cooperation and communication with the processor 235 and other components of the computing device 200.
In some embodiments, one or more of the filter engines 204 can determine social connections between users based on social networks, filter user devices 115 based on user connections and generate a list of filtered devices. For example, one or more of the filter engines 204 receive social data (e.g., profiles, relationships, a social graph, etc.) from one or more social networks and determine if and how users are connected. In some embodiments, one or more of the filter engines 204 can authenticate with different social networks. In some embodiments, one or more of the filter engines 204 can define a common standard for determining user connections. For example, one or more of the filter engines 204 define a first-degree connection as a first user following a second user, the first user and the second user being friends, the first and second users being part of a group on a social network, etc. The one or more filter engines 204 can filter user devices 115 by omitting user devices 115 from the set of other user devices 115 whose users have no connections to the user associated with the first user device 115. This type of filter engine 204 can be referred to as a social connection filter engine 204. For example, a social connection filter engine 204 residing in a user device 115 operated by a first user 125a filters out user devices 115 used by second users 125 having a threshold degree of social connections with the first user 125a. For example, the social connection filter engine 204 can remove other user devices 115 from the set of other user devices 115 where the user associated with the first device 115 has two or fewer degrees of connection to the users associated with the other user devices 115 used by the second users 125 having no social connections with the first user 125a from a list and keep the user devices 115 whose users 125 have social connections with the first user 125a in the list.
In one embodiment, the social connection filter engine 204 determines a type and a level of social connection between users and filters from the set of other user devices 115 based on the type and the level. Type includes, for example, different foundations for the social connection such as friend, co-worker and family. Level includes, for example, different gradations within the same type. For example, users can be acquaintances, good friends or best friends. In other embodiments, the type and the level are also used by the ranking engine to rank user devices 115 within the list of filtered devices.
In some embodiments, the social connection filter engine 204 can determine user connections based on other types of sources for social relationships. For example, besides the social networks described above, the sources for social relationships can also include emails, micro-blogs, blogs, forums, user contact lists, corporate employee databases, organizational charts, etc. For example, the social connection filter engine 204 can determine if users are connected by checking users' contact lists or by determining if users have sent or received a certain number of emails (e.g., one email, five emails, 10 emails, 50 emails, etc.) to or from each other in a certain period of time (e.g., in a week, in a month, in a year, etc.). In another example, the social connection filter engine 204 can determine user connections by analyzing corporate employee databases or school alumni databases, etc. For example, the social connection filter engine 204 determines that users are connected if they have worked for the same employer or if they have studied at the same school.
In some embodiments, the filter engines 204 can include filter engines 204 that identify people who are connected implicitly by something they share in common. The different types of filter engines 204 operate individually or cooperate with each other to filter the user devices 115 based on certain criteria. In one embodiment, a profile or interest filter engine 204 can filter user devices 115 based on user profiles or interests. For example, a profile or interest filter engine 204 receives a user's profile and/or data describing user activities, determines the user's characteristics (e.g., interests, affiliations, etc.) based on the user's profile and/or activities and filters other user devices 115 for displaying to the user based on the user's characteristics. For example, a first user's profile indicates that the first user is part of a parenting and motorcycling communities; a profile or interest filter engine 204 determines that the first user might be interested in parenting and motorcycling and thus selects user devices 115 used by second users who are also interested in either of the parenting and motorcycling. In another example, for a dating app, a profile or interest filter engine 204 can find candidate users using user devices 115 within proximity of a user device 115 used by a searching user based on their profiles on the dating app. For example, the candidate users' profiles match or are relevant to the profile of the searching user; the profile or interest filter engine 204 filters out other users whose profiles are not relevant to the profile of the searching user even though the other users are also in proximity of the searching user. In this way, the searching user can be saved a significant amount of time for picking candidates from the list of user devices 115 used by users within proximity, especially when the list is substantially long. The searching user can be provided other users nearby without giving out personal information (e.g., phone number, etc.).
The profile or interest filter engine 204 can also determine user characteristics based on user activities. Example user activities include, but are not limited to, physical activities (e.g., running, walking, sleeping, driving, talking to someone, biking, talking to a group, hiking, etc.), activities on social networks (e.g., playing online games on a social network, publishing posts and/or comments, acknowledging posts, sharing posts, etc.) and activities on user devices 115 (e.g., opening an application, listening to a playlist, calling a contact, writing emails, viewing photos, watching videos, etc.). Other example activities are possible. By analyzing the user activities, the profile or interest filter engine 204 can determine a first user's hobbies or interests and filter other users to select a set of second users who have the same or relevant hobbies or interests for introduction to the first user when they are within proximity of each other.
In one embodiment, one filter engine 204 can filter user devices 115 for a user based on a signal indicating that the user devices 115 will be in physical proximity to the user device 115. For example, the filter engine 204 (referred to as a “signal filter engine 204”) selects the user devices 115 that have checked in to the server (e.g., the copresence server 107, the social network server 101, etc.) within a certain distance (e.g., 0.5 mile, one mile, two miles, etc.) from a first user's location and within a certain time range (e.g., in the past 10 minutes, in the past two hours, etc.). The signal that the user devices 115 have checked in to the server within a certain distance from the first user's location within a certain time range indicates that the user devices 115 will likely be in physical proximity to the first user device 115.
In one embodiment, one filter engine 204 can filter user devices 115 for a first user based on a threshold of interactions between the first user associated with the first user device 115 and a second user associated with one or more of the other user devices 115. For example, the filter engine 204 filters the set of user devices 115 for one or more second users that the first user has had reciprocal messaging with (i.e., the first user contacted the second user and the second user contacted the first user) or the first user meets or contacts the second user at a certain frequency (e.g., at least once a week, etc.). The frequency can be determined in conjunction with the device detector 202, which defines contact as being within a certain proximity (e.g., the same room). This establishes the foundation for defining situations such as people who get together for lunch every week. For example, a first user would find it helpful to be notified of a second user being within proximity if they were frequent lunch companions.
In some embodiments, a geographic filter engines 204 filters user devices 115 based on their geographic locations. For example, the geographic filter engine 204 receives recorded location data for user devices 115 from the database 123 and determines a subset of the user devices 115 based on their last recorded locations.
In one embodiment, the filter engine 204 filters the set of other devices 115 based on other user devices 115 that have interacted with a first user device 115 most recently. For example, the filter engine 204 constructs a filtered list that includes second user devices 115 sending at least 10 instant messages to a first user device 115 in the past week and the filter engine 204.
In one embodiment, the filter engine 204 generates a filtered list including second user devices 115 that are frequently around a first user device 115. For example, if one or more second devices 115 are near a first user device 115 for certain times or more (e.g., five times, 10 times, etc.), the filter engine 204 generates a filtered list including the one or more second user devices 115 for the device detector 202 to query.
In some embodiments, the filter engine 204 generates a filtered list of user devices 115 by cross-referencing one or more likelihood maps. In some embodiments, the filter engine 204 receives a signal from a GPS device embedded in or coupled to a user device 115. The GPS signal can indicate that certain other user devices 115 may be within proximity. The filter engine 204 generates a list of user devices 115 by referencing the GPS signal. In some embodiments, the filter engine 204 generates a list of user devices 115 based on a software update through a server. For example, a user updates software on the user device 115 through the social network server 101; the filter engine 204 receives a signal indicating the phone software update and generates a list based on the signal. In some embodiments, the permission engine 206 uses social network check-ins to generates a suggestion list of devices to ping for. For example, the social network check-ins indicate that friends of a first user are within the proximity of the first user; the filter engine 204 generates a suggestion list of user devices 115 associated with the friends to query. In some embodiments, the filter engine 204 receives a Wi-Fi signal and confirms a list of user devices 115 within proximity based on the Wi-Fi signal.
In some embodiments the filter engines 204 generate an aggregated filtered list from the filtered lists of multiple filter engines 204. For example, the top five picks for each filtered list are aggregated and duplicates are removed.
In some embodiments, the filter engines 204 are stored on the copresence server 107 and provide a filtered list to a device detector 202 stored on the first user device 115, which pings the user devices 115 on the filtered list. In another embodiment, the filter engines 204 transmit the filtered list to the permission engine 206 on the first user device 115 and the permission engine 206 transmits a list of filtered user devices 115 that the device detector 202 has permission to ping. One skilled person in the relevant art will recognize that other types of filter engines are possible to implement filtering user devices 115 for a user.
The permission engine 206 includes software and/or logic to provide the functionality described below for allowing users to configure privacy and copresence detection settings. In some embodiments, permission engine 206 can be implemented using hardware including FPGAs or ASICs. In other embodiments, the permission engine 206 can be implemented using a combination of hardware and software executable by processor 235. The permission engine 206 may be adapted for cooperation and communication with the processor 235 and other components of the computing device 200.
In some embodiments, the permission engine 206 allows users to select which other users (or user devices) or which type of other users can learn of the user's copresence. For example, the permission engine 206 cooperates with the user interface engine 210 to provide a user interface for a first user to give permission to one or more other users to detect the first user's copresence. In some embodiments, the permission engine 206 can generate suggestions for a first user about other users to be given permission based on the first user's social connections and provide the suggestions to the first user through the user interface. For example, the permission engine 206 provides the first user with the option of permitting types of connections (e.g., friends, family, etc.) in a certain social network to detect the first user's proximity. In some embodiments, the permission engine 206 receives an input from a first user specifying other users allowed to detect the first user's proximity and configures privacy settings for the first user device 115 specifying the other users allowed to detect the first user device 115. In some embodiments, the permission engine 206 notifies the first user and the permitted other users or obtains their confirmations before configuring privacy settings for the first user device 115. For example, the permission engine 206 cooperates with the server (e.g., social network server 101, copresence server 107, etc.) to generate emails to send to the first user and the permitted other users for notification or confirmation.
In some embodiments, the permission engine 206 may enable a user to define copresence detection settings profiles that correspond to various locations that a user may visit. When a user arrives at a location that has a corresponding settings profile, the device may automatically switch modes to operate as configured in the settings profile. Similarly, when the user leaves the location, the mode may again switch. Thus, the user may avoid having to configure settings frequently. In some embodiments, the permission engine 206 may enable a user to define categories of copresence detection settings. For example, the user may define visibility at a particular type of location, e.g., a coffee shop. As yet another example, the user may define visibility to a specific group of contacts, e.g., co-workers. As another example, the user may define visibility a certain group of people, e.g., teachers.
In some embodiments, the permission engine 206 not only allows users to select which other users (or user devices) or which type of other users can learn of the user's copresence, but also allows user to set what other actions may be performed based on the copresence detection.
In some embodiments, the permission engine 206 could allow users to define certain actions or permissions based on detecting that certain devices are not copresent. For example, when a mom's device and a child's device are not copresent, then a notification is triggered to one or both of the devices.
In some embodiments, a device may also be configured to operate in a baseline mode when the device is not at a particular location. The baseline mode may include settings for copresence, social networks, and/or other device settings that are suitable for general use. For example, when operating in a baseline state, copresence settings on the device may be set to invisible and other applications may be set to a low sharing level. A user may set up other copresence detection settings profiles so that the device will enter a particular mode based on location. For example, a user may wish to share more information, such as location on a social network, copresence information, and the like, when at a coffee shop or other trusted place.
In some embodiments, copresence detection settings profiles may have custom access control list settings associated with them. For example, when a user is at home, he may wish to have his user device detectable by, or share his location with, only a small group of individuals (e.g., family, close friends, and the like) and have his copresence detection state set to invisible to the remainder of devices. In the same vein, while at a conference, the user may wish to have his copresence detection state set to visible and share his location to a wider selection of his social graph.
In some implementations, user profile detection may be activated manually by the user. In some implementations, user profile detection may be triggered by automatic detection of contextual conditions that satisfy the profile. For example, there may be automatic detection that the user is in a conference by determining a combination of the user's calendar entries and the location detection indicating that the user is currently at the conference center.
The ranking engine 208 includes software and/or logic to provide the functionality described below for generating a ranked list of users and their proximity. In some embodiments, ranking engine 208 can be implemented using hardware including FPGAs or ASICs. In other embodiments, the ranking engine 208 can be implemented using a combination of hardware and software executable by processor 235. The ranking engine 208 may be adapted for cooperation and communication with the processor 235 and other components of the computing device 200.
The ranking engine 208 receives a filtered list of second user devices 115 from the device detector 202 that are within proximity of the first user device 115. The ranking engine 207 ranks the second user devices 115 within the filtered list based on certain criteria. Example criteria can include social connections between users, common interests based on user profiles or activities, a historical status of devices, signals from other applications, etc. In one embodiment, the ranking engine 208 ranks the second user devices 115 based on their physical distances to the first user device 115, and generates a ranked list of the second user devices 115. In another embodiment, the ranking engine 208 ranks the second user devices 115 based on their social connections to the first user. For example, the second users with a first-degree social connection to the first user appear higher in the ranked list than second users with a second-degree social connection. In yet another embodiment, the ranking engine 208 ranks the second user devices 115 based on a combination of the physical distance and the social connection to the first user. For example, the ranking engine 208 assigns weights to the two factors (physical distance and social connection) based on a certain algorithm and calculates ranking scores for the second user devices 115 by applying the weights. In this way, a second user who has a closer social connection to the first user (e.g., family) than other users (e.g., friends, followers, etc.) may appear higher in the ranked list even if the second user is physically farther away from the first user than other users ranked lower. The ranking engine 208 instructs the user interface engine 210 to generate graphical data for displaying the ranked list.
In some embodiments, the ranking engine 208 rearranges an order of the second user devices 115 in the filtered list for a first user based on a current context of the first user and/or the second users. For example, the context for a user device 115 may describe a time, a location, an ongoing action, and/or a possible future action (e.g., an action in 30 minutes, etc.) associated with the user. In some embodiments, the copresence server may also receive signals from user devices 115, servers and/or databases (e.g., social signals indicating the user's current social activities, etc.) and determine a context based on the signals. For example, if the copresence server 107 determines a context that the first user is participating in a professional convention, the ranking engine 208 ranks the first user's coworkers and business partners higher in the list. In another example, if the device detector 202 detects that the first user left work and is in a bar, the ranking engine 208 ranks the first user's friends higher than business partners or clients.
In some embodiments, the ranking engine 208 picks a certain number of top user devices 115 in the list based on the ranking. For example, the ranking engine 208 picks the top 100 users from the list. In another example, the ranking engine 208 picks the top 10 users from the list of 50 users and cycles the list in case the context changes. For example, at the end of each day the list can be cycled and the ranking engine 208 re-ranks the list based on the new context.
The user interface engine 210 includes software and/or logic to provide the functionality described below for generating graphical data for providing user interfaces to users. In some embodiments, user interface engine 210 can be implemented using hardware including FPGAs or ASICs. In other embodiments, the user interface engine 210 can be implemented using a combination of hardware and software executable by processor 235. The user interface engine 210 may be adapted for cooperation and communication with the processor 235 and other components of the computing device 200.
In some embodiments, the user interface engine 210 generates graphical data for providing a user interface to a first user device 115 for displaying a list of second user devices 115 copresent with the first user device 115. The user interface engine 210 receives instructions from the device detector 202 if the filtered list is unranked or from the ranking engine 208 if the data is a ranked list. The user interface engine 210 sends the graphical data to the first user device 115, causing the first user device 115 to present the user interface to a user operating on the first user device 115. In some embodiments, the user interface engine 210 receives instructions from the permission engine 206 to generate graphical data for providing a user interface that allows a user to permit other users to detect the user device's 115 copresence. The user interface engine 210 may generate graphical data for providing other user interfaces to users. Example user interfaces are shown in FIGS. 6-8.
The device activator 212 includes software and/or logic to provide the functionality described below for performing actions based on copresence of user devices. In some embodiments, device activator 212 can be implemented using hardware including FPGAs or ASICs. In other embodiments, the device activator 212 can be implemented using a combination of hardware and software executable by processor 235. The device activator 212 may be adapted for cooperation and communication with the processor 235 and other components of the computing device 200.
In some embodiments, the device activator 212 controls a user device 115 to perform certain actions when receiving a signal indicating that the user device 115 is copresent with another user device. For example, a device activator 212 residing in a first user device 115 activates an application on the first user device 115 or pre-loads certain content on the first user device 115 when a second user device 115 of a user is copresent with the first user device 115. For example, as described above, the user device activator may initiate display of copresent devices for presentation to a user of the first user device.
In one embodiment, after determining copresence, the device activator 212 may initiate loading or pre-loading of content on a copresent device. For example, a user is heading home with a first user device 115. The user also has a second user device at home. After determining fine grain copresence between the first and second user devices as described herein, the second user device may turn on certain applications or pre-load certain content (e.g., music, videos, etc.) so that the user can use the applications or consume the content without waiting. In another example, the second user device may be located in a vehicle (e.g., a car) of a user and may pre-load certain content (e.g., a map, music, etc.) for the user to consume without delay.
In another embodiment, the second user device 115 may reside in a store and pre-load a user's information on the second user device 115 when the first user device, carried by the user, is copresent with the second user device. For example, a user's information can include the user's profile, the user's history of visits to the store, the user's historical shopping records in the store, the user's actions in the store, the user's membership information, etc.
In another embodiment, a device activator 212 can load information about the destination on the user device 115 (e.g., a phone) of the user when the user is copresent with a user device associated with the destination. For example, when the user device 115 detects copresence with a user device associated with the shopping mall, the device activator 212 residing on the user device 115 may load mall information (e.g., maps of the stores, coupons, etc.) on the user device 115. Alternatively, a user device 115 residing in the shopping mall can detect copresence of the user device 115 (e.g., a cell phone) and the user device 115 in the mall may send mall information to the user device 115 (e.g., via the copresence server 107, or via direct message). The device activator 212 may then load the mall information on the user device 115.
In another embodiment, the device activator 212 can coordinate a game between users based on copresence information. For example, users may play a game of tag based on copresence, where the device activator 212 scores the game based on distance measured through copresence. In another example, the device activator 212 determines whether a user has been tagged based on determining copresence within a particular threshold, e.g., the goal of the user who is “it” is to gain copresence, while other users try to avoid copresence.
In yet another embodiment, the device activator 212 may determine true group discounts based on copresence. For example, the device activator 212 may award a coupon to each member of a group and the requisite number of group members are copresent. In another example, the device activator 212 may provide a reward to each member of a group when the group has been copresent for a particular period of time.
FIG. 3 is a flowchart of an example method 300 for determining fine grain copresence between user devices 115. At 302, the copresence server 107 receives user input defining copresence detection settings for a first user device. In some embodiments, the copresence detection settings includes a baseline setting. For example, the baseline setting may define the specific users that the first user device is detectable to at all places and times. For example, these specific users may be users with whom the first user has an affinity. In some embodiments, the copresence detection settings include at least one criterion for which copresence detection is enabled for the first user device, which is different than the baseline setting. For example, copresence detection settings may indicate locations at which the user device is detectable, access control lists, and the like. In other words, the copresence detection settings include locations where copresence detection of the first user device is enabled; locations where the user has allowed for its detection. As another example, copresence detection settings may indicate a category of locations where the first user device is detectable. In this example, the user may define the copresence detection settings to specify that whenever the user is at a coffee shop, the first user device is detectable by more users than the ones defined in the baseline setting. As another example, copresence detection settings may indicate a specific status of the user which would initiate when the first user device is detectable. In this example, the user may define the copresence detection settings to specify that whenever the user is on vacation, the first user device is detectable by more users than the ones defined in the baseline setting. It should be noted that the previously mentioned settings are merely examples of certain copresence detection settings that may be set by the user. Referring back to step 302 of FIG. 3, the copresence server 107 receives user input defining copresence detection settings for a first user device.
At 304, the copresence server 107 may detect fulfillment of the criterion or criteria based on receiving data from the first user device. In one embodiment, the copresence server 107 receives current location information from the first user device and based on the current location information, may detect fulfillment of the criterion. For example, the user-defined criterion may be that copresence detection is enabled whenever the first user device is located in a coffee shop. Based on location signals, the copresence server 107 may determine that the first user device is located at a coffee shop and enable copresence detection based on the predefined settings.
In some embodiments, the copresence server 107 may also determine a current location of the first user device. In one embodiment, the copresence server 107 receives current location information from the first user device. The first user device may determine location information using various methods as described above, for example, GPS, Wi-Fi location services, and/or cellular network location services. In other embodiments the copresence server 107 may determine the current location of the first user device based on signals received from other entities of the system 100, such as the contents of a text message, an email message, an instant message, a calendar event, or a social media post associated with the first device and the second device.
At 306, the copresence server 107 enables, based on the copresence detection settings, copresence detection of the first user device. In response to enabling copresence detection, at 308, the copresence server 107 may instruct the first user device to perform an action based on the copresence detection settings. For example, the copresence server 107 may enable copresence detection when a user device is located at a certain shop and based on the copresence detection settings, instruct the first user device to allow exchange of data from the first user device to another device.
In some embodiments, the copresence server 107 may initiate fine grain copresence detection to determine whether the first user device is copresent with other devices. For example, the copresence server 107 may determine that a device of a user is located at the user's home. Based on previously defined copresence detection settings that indicate that when the device is located at home, the copresence detection of that device is enabled, the user device therefore becomes detectable because the device is located at the user's home. In response to determining that detection is enabled, the copresence server 107 may initiate fine grain copresence detection to determine whether the first user device is copresent with other devices. For example, the user may wish to have his user device detectable by, or share his location with, only a small group of individuals (e.g., family, close friends, and the like) and have his copresence detection state set to invisible to the remainder of devices.
FIG. 4 is a flowchart of an example method for fine grain copresence detection between user devices based on user-defined copresence detection settings. At 402, the copresence server may determine coarse grain copresence of a first user device and a second user device based on coarse grain location information. As described above, the copresence server 107 may determine coarse grain location information based on GPS, Wi-Fi, or cellular network signals. In other embodiments, the copresence server 107 may determine coarse grain location information based on the contents of a text message, an email message, an instant message, a calendar event, or a social media post associated with the first device and the second device.
The copresence server 107 may determine coarse grain copresence of two devices based on coarse grain location information when the first and the second device are within a threshold distance of each other. If location information is not available, as described in the example above relating to text messages sent between a first user and a second user, the copresence server 107 may determine coarse grain copresence from the context of the text messages or other signals.
At 404, the copresence server 107 transmits a signal to the first user device to alert the first user device to listen for a fine grain copresence token. In some embodiments to preserve battery life, user devices 115 are not persistently listening or attempting to detect fine grain copresence tokens. Therefore, when the copresence server 107 wants to determine copresence with a particular user device, the copresence server 107 may send a wake up signal to the user device to listen for a fine grain copresence token. This behavior simulates always on fine grain copresence detection without the detrimental effects on battery life.
At 406, the copresence server 107 initiates transmission of the fine grain copresence token from the second user device. For example, the copresence server 107 may transmit a fine grain copresence token to the second user device for use in determining fine grain copresence of other user devices, e.g., the first user device. In another embodiment, the copresence server 107 may transmit a signal that instructs to the second user device to generate a fine grain copresence token for use in determining fine grain copresence of other user devices. In response to receiving the signal, the second user device may transmit the fine grain copresence token using one or more transmission methods including, for example, inaudible audio, audible audio, Bluetooth, BLE, Wi-Fi, or near field communication.
At 408, the copresence server 107 may refine copresence based on receiving an indication that the first user device has received the fine grain copresence token. In one embodiment, the first user device transmits a response to the second user device including the fine grain copresence token to indicate that the first user device has received the fine grain copresence token and is therefore copresent with the second user device. In another embodiment, the first user device to transmit an acknowledgment to the second user device that the fine grain copresence token has been received. The second user device may then transmit the indication that the first user device has received the fine grain copresence token to the copresence server 107 and the copresence server may refine copresence based on the indication. The copresence server 107 may store refined fine grain copresence information in a data store such as database 123.
FIG. 5 is an example block diagram depicting signals transmitted and received in one embodiment for determining fine grain copresence of user devices. As described herein, the copresence server may transmit a wake up signal 502 to user devices to be included in the fine grain copresence determination, such as user device 115n. The copresence server 107 also transmits a signal 504 to the transmitting user device, for example user device 115a, to initiate transmission of a fine grain copresence token. The signal 504 may include the fine grain copresence token as described above or the signal may include instructions to generate a fine grain copresence token.
In response to receiving the signal 504, the transmitting user device broadcasts the fine grain copresence token 506 for detection by the other user devices woken by signal 502. User devices that detect the fine grain copresence token respond with an acknowledgment 508. In one embodiment, the acknowledgment 508 includes the fine grain copresence token. The transmitting user device may aggregate identifiers of user devices that have responded with an acknowledgment 508 and transmit 510 the identifiers to the copresence server 107.
FIG. 6 is a graphic representation 600 of an example user interface generated by the user interface engine 210 for providing a user with copresence of other users. In the illustrated embodiment, the user interface 600 includes a copresence button 601 clickable for a user to choose to find who is nearby. For example, if the first user clicks the proximity button 601, a list 603 of other users who are present near the first user will appear. The list 603 includes entries 611, 613, 615 that indicate three other users near the first user, how they are connected to the first user and their current physical distances to the first user. In the illustrated embodiment, the list 603 can be a ranked list generated by the ranking engine 208 based on certain criteria. For example, the list 603 of other users 611, 613, 615 can be ranked based on how closely they are connected to the first user and how far they are physically from the first user. The second user 613 is physically farther away from the first user than the third user 615, however, is ranked higher because the second user 613 has a much closer connection to the first user (e.g., family) than the third user 615 (e.g., follower) has.
FIG. 7 is a graphic representation 700 of an example user interface generated by the user interface engine 210 in which a user can permit others to detect the user's copresence according to one embodiment. The example user interface 700 includes a permission button 701 clickable for a user to make privacy settings. For example, if the user clicks the permission button 701, the user interface 700 provides detection permission options for the user to select. In the illustrated example, the user interface 700 displays a permission option box 703 including optional entries that can be selected by the user to permit everyone, only people the user follows or the user is friends with in certain social networks, only people the user has contacted at least once, or certain other users specified by the user to see that the user is present.
Reference in the specification to “one embodiment” or “an embodiment” means that a particular feature, structure, or characteristic described in connection with the embodiment is included in at least one embodiment of the description. The appearances of the phrase “in one embodiment” in various places in the specification are not necessarily all referring to the same embodiment.
In the above description, for purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of the present disclosure. However, it should be understood that the technology described herein can be practiced without these specific details. Further, various systems, devices, and structures are shown in block diagram form in order to avoid obscuring the description. For instance, various implementations are described as having particular hardware, software, and user interfaces. However, the present disclosure applies to any type of computing device that can receive data and commands, and to any peripheral devices providing services.
In some instances, various implementations may be presented herein in terms of algorithms and symbolic representations of operations on data bits within a computer memory. An algorithm is here, and generally, conceived to be a self-consistent set of operations leading to a desired result. The operations are those requiring physical manipulations of physical quantities. Usually, though not necessarily, these quantities take the form of electrical or magnetic signals capable of being stored, transferred, combined, compared, and otherwise manipulated. It has proven convenient at times, principally for reasons of common usage, to refer to these signals as bits, values, elements, symbols, characters, terms, numbers, or the like.
It should be borne in mind, however, that all of these and similar terms are to be associated with the appropriate physical quantities and are merely convenient labels applied to these quantities. Unless specifically stated otherwise as apparent from the following discussion, it is appreciated that throughout this disclosure, discussions utilizing terms including “processing,” “computing,” “calculating,” “determining,” “displaying,” or the like, refer to the action and processes of a computer system, or similar electronic computing device, that manipulates and transforms data represented as physical (electronic) quantities within the computer system's registers and memories into other data similarly represented as physical quantities within the computer system memories or registers or other such information storage, transmission or display devices.
Various implementations described herein may relate to an apparatus for performing the operations herein. This apparatus may be specially constructed for the required purposes, or it may include a general-purpose computer selectively activated or reconfigured by a computer program stored in the computer. Such a computer program may be stored in a computer readable storage medium, including, but not limited to, any type of disk including floppy disks, optical disks, CD-ROMs, and magnetic disks, read-only memories (ROMs), random access memories (RAMs), EPROMs, EEPROMs, magnetic or optical cards, flash memories including USB keys with non-volatile memory, or any type of media suitable for storing electronic instructions, each coupled to a computer system bus.
The technology described herein can take the form of an entirely hardware implementation, an entirely software implementation, or implementations containing both hardware and software elements. For instance, the technology may be implemented in software, which includes but is not limited to firmware, resident software, microcode, etc. Furthermore, the technology can take the form of a computer program product accessible from a computer-usable or computer-readable medium providing program code for use by or in connection with a computer or any instruction execution system. For the purposes of this description, a computer-usable or computer readable medium can be any non-transitory storage apparatus that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device.
A data processing system suitable for storing and/or executing program code may include at least one processor coupled directly or indirectly to memory elements through a system bus. The memory elements can include local memory employed during actual execution of the program code, bulk storage, and cache memories that provide temporary storage of at least some program code in order to reduce the number of times code must be retrieved from bulk storage during execution. Input/output or I/O devices (including but not limited to keyboards, displays, pointing devices, etc.) can be coupled to the system either directly or through intervening I/O controllers.
Network adapters may also be coupled to the system to enable the data processing system to become coupled to other data processing systems, storage devices, remote printers, etc., through intervening private and/or public networks. Wireless (e.g., Wi-Fi) transceivers, Ethernet adapters, and Modems, are just a few examples of network adapters. The private and public networks may have any number of configurations and/or topologies. Data may be transmitted between these devices via the networks using a variety of different communication protocols including, for example, various Internet layer, transport layer, or application layer protocols. For example, data may be transmitted via the networks using transmission control protocol/Internet protocol (TCP/IP), user datagram protocol (UDP), transmission control protocol (TCP), hypertext transfer protocol (HTTP), secure hypertext transfer protocol (HTTPS), dynamic adaptive streaming over HTTP (DASH), real-time streaming protocol (RTSP), real-time transport protocol (RTP) and the real-time transport control protocol (RTCP), voice over Internet protocol (VOIP), file transfer protocol (FTP), WebSocket (WS), wireless access protocol (WAP), various messaging protocols (SMS, MMS, XMS, IMAP, SMTP, POP, WebDAV, etc.), or other known protocols.
Finally, the structure, algorithms, and/or interfaces presented herein are not inherently related to any particular computer or other apparatus. Various general-purpose systems may be used with programs in accordance with the teachings herein, or it may prove convenient to construct more specialized apparatus to perform the required method blocks. The required structure for a variety of these systems will appear from the description above. In addition, the present disclosure is not described with reference to any particular programming language. It will be appreciated that a variety of programming languages may be used to implement the teachings of the present disclosure as described herein.
In situations in which the systems discussed here collect personal information about users, or may make use of personal information, the users may be provided with an opportunity to control whether programs or features collect user information (e.g., information about a user's social network, social actions or activities, profession, a user's preferences, or a user's current location), or to control whether and/or how to receive content from the content server that may be more relevant to the user. In addition, certain data may be treated in one or more ways before it is stored or used, so that personally identifiable information is removed. For example, a user's identity may be treated so that no personally identifiable information can be determined for the user, or a user's geographic location may be generalized where location information is obtained (such as to a city, ZIP code, or state level), so that a particular location of a user cannot be determined. Thus, the user may have control over how information is collected about the user and used by a content server.
The foregoing description has been presented for the purposes of illustration and description. It is not intended to be exhaustive or to limit the present disclosure to the precise form disclosed. Many modifications and variations are possible in light of the above teaching. It is intended that the scope of the disclosure be limited not by this detailed description, but rather by the claims of this application. As will be understood by those familiar with the art, the present disclosure may be embodied in other specific forms without departing from the spirit or essential characteristics thereof. Likewise, the particular naming and division of the modules, routines, features, attributes, methodologies, and other aspects are not mandatory or significant, and the mechanisms that implement the present disclosure or its features may have different names, divisions and/or formats.
Furthermore, the modules, routines, features, attributes, methodologies, and other aspects of the disclosure can be implemented as software, hardware, firmware, or any combination of the foregoing. Also, wherever a component, an example of which is a module, of the present disclosure is implemented as software, the component can be implemented as a standalone program, as part of a larger program, as a plurality of separate programs, as a statically or dynamically linked library, as a kernel loadable module, as a device driver, and/or in every and any other way known now or in the future. Additionally, the disclosure is in no way limited to implementation in any specific programming language, or for any specific operating system or environment. Accordingly, the disclosure is intended to be illustrative, but not limiting, of the scope of the subject matter set forth in the following claims.

## Claims

1. A computer-implemented method comprising:
identifying, using one or more processors, a first copresence detection setting for a first user device, the first copresence detection setting including a first type of location where copresence detection is automatically enabled for the first user device;
determining, using the one or more processors, first coarse grain location data of the first user device;
detecting, using the one or more processors, whether the first coarse grain location data of the first user device fulfills the first type of location;
responsive to detecting that the first coarse grain location data of the first user device fulfills the first type of location, automatically enabling the copresence detection for the first user device based on the first copresence detection setting;
determining, using the one or more processors, second coarse grain location data of a second user device;
determining, using the one or more processors, whether the second user device is within a first proximate distance of the first user device based on the first coarse grain location data and the second coarse grain location data;
responsive to determining that the second user device is within the first proximate distance of the first user device, determining that the second user device is in coarse grain copresence with the first user device; and
initiating fine grain copresence detection of the second user device by the first user device within a second proximate distance that is shorter than the first proximate distance based on the first copresence detection setting.

2. The computer-implemented method of claim 1, wherein initiating the fine grain copresence detection of the second user device by the first user device comprises:
selecting the second user device in the coarse grain copresence with the first user device based on the first copresence detection setting;
transmitting a signal to the second user device to alert the second user device to begin listening for a fine grain copresence token;
initiating transmission of the fine grain copresence token from the first user device to the second user device; and
receiving an indication that the second user device has received the fine grain copresence token.

3. The computer-implemented method of claim 2, wherein the first coarse grain location data includes one from a group of GPS data and Wi-Fi data.

4. The computer-implemented method of claim 2, wherein the fine grain copresence token is transmitted from the first user device to the second user device using one from a group of inaudible audio, audible audio, Bluetooth, Bluetooth Low Energy (BLE), Wi-Fi, and near field communication.

5. The computer-implemented method of claim 2, wherein responsive to receiving the indication that the second user device has received the fine grain copresence token, confirming that the second user device is in fine grain copresence with respect to the first device.

6. The computer-implemented method of claim 5, further comprising notifying the first user device that the second user device is copresent based on the fine grain copresence.

7. The computer-implemented method of claim 5, further comprising pre-loading content on the second user device based on the fine grain copresence.

8. The computer-implemented method of claim 1, wherein the first copresence detection setting includes an access control list and automatically enabling the copresence detection for the first user device includes making a copresence of the first user device be detectable to a third user device included in the access control list.

9. The computer-implemented method of claim 1, wherein responsive to detecting that the first coarse grain location data of the first user device fulfills the first type of location:
identifying a second copresence detection setting previously enabled on the first user device, the second copresence detection setting including a second type of location where the copresence detection is automatically enabled for the first user device; and
automatically switching the copresence detection for the first user device from the second copresence detection setting to the first copresence detection setting.

10. The computer-implemented method of claim 1, wherein the first copresence detection setting includes a type of social connection of the first user for making a copresence of the first user device be detectable to a third user device of the type of social connection.

11. A computer program product comprising a non-transitory computer usable medium including a computer readable program, wherein the computer readable program when executed on a computer causes the computer to:
identify a first copresence detection setting for a first user device, the first copresence detection setting including a first type of location where copresence detection is automatically enabled for the first user device;
determine first coarse grain location data of the first user device;
detect whether the first coarse grain location data of the first user device fulfills the first type of location;
responsive to detecting that the first coarse grain location data of the first user device fulfills the first type of location, automatically enable the copresence detection for the first user device based on the first copresence detection setting;
determine second coarse grain location data of a second user device;
determine whether the second user device is within a first proximate distance of the first user device based on the first coarse grain location data and the second coarse grain location data;
responsive to determining that the second user device is within the first proximate distance of the first user device, determine that the second user device is in coarse grain copresence with the first user device; and
initiate fine grain copresence detection of the second user device by the first device within a second proximate distance that is shorter than the first proximate distance based on the first copresence detection setting.

12. The computer program product of claim 11, wherein to initiate the fine grain copresence detection of the second user device by the first user device, the computer readable program is further configured to cause the computer to:
select the second user device in the coarse grain copresence with the first user device based on the first copresence detection setting;
transmit a signal to the second user device to alert the second user device to begin listening for a fine grain copresence token;
initiate transmission of the fine grain copresence token from the first user device to the second user device; and
receive an indication that the second user device has received the fine grain copresence token.

13. The computer program product of claim 12, wherein the first coarse grain location data includes one from a group of GPS data and Wi-Fi data.

14. The computer program product of claim 12, wherein the fine grain copresence token is transmitted from the first user device to the second user device using one from a group of inaudible audio, audible audio, Bluetooth, Bluetooth Low Energy (BLE), Wi-Fi, and near field communication.

15. The computer program product of claim 12, wherein responsive to receiving the indication that the second user device has received the fine grain copresence token, the computer readable program is further configured to cause the computer to confirm that the second user device is in fine grain copresence with respect to the first user device.

16. The computer program product of claim 15, wherein the computer readable program is further configured to notify the first user device that the second user device is copresent based on the fine grain copresence.

17. The computer program product of claim 15, wherein the computer readable program is further configured to pre-load content on the second user device based on the fine grain copresence.

18. The computer program product of claim 11, wherein the first copresence detection setting includes an access control list and automatically enabling the copresence detection for the first user device includes making a copresence of the first user device be detectable to a third user device included in the access control list.

19. The computer program product of claim 11, wherein responsive to detecting that the first coarse grain location data of the first user device fulfills the first type of location, the computer readable program is further configured to cause the computer to:
identify a second copresence detection setting previously enabled on the first user device, the second copresence detection setting including a second type of location where the copresence detection is automatically enabled for the first user device; and
automatically switch the copresence detection for the first user device from the second copresence detection setting to the first copresence detection setting.

20. The computer program product of claim 11, wherein the first copresence detection setting includes a type of social connection of the first user for making a copresence of the first user device be detectable to a third user device of the type of social connection.