WO2015067058A1 - 一种共享环境上下文方法和装置 - Google Patents

一种共享环境上下文方法和装置 Download PDF

Info

Publication number
WO2015067058A1
WO2015067058A1 PCT/CN2014/081061 CN2014081061W WO2015067058A1 WO 2015067058 A1 WO2015067058 A1 WO 2015067058A1 CN 2014081061 W CN2014081061 W CN 2014081061W WO 2015067058 A1 WO2015067058 A1 WO 2015067058A1
Authority
WO
WIPO (PCT)
Prior art keywords
user
context
environment
identifier
environmental
Prior art date
Application number
PCT/CN2014/081061
Other languages
English (en)
French (fr)
Inventor
常恒
张千
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Priority to JP2016529920A priority Critical patent/JP6251927B2/ja
Priority to EP14860956.3A priority patent/EP3057004B1/en
Priority to KR1020167014032A priority patent/KR101852699B1/ko
Publication of WO2015067058A1 publication Critical patent/WO2015067058A1/zh
Priority to US15/151,704 priority patent/US10430414B2/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2455Query execution
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/20Services signaling; Auxiliary data signalling, i.e. transmitting data via a non-traffic channel
    • H04W4/21Services signaling; Auxiliary data signalling, i.e. transmitting data via a non-traffic channel for social networking applications
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2457Query processing with adaptation to user needs
    • G06F16/24575Query processing with adaptation to user needs using context
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/25Integrating or interfacing systems involving database management systems
    • G06F16/252Integrating or interfacing systems involving database management systems between a Database Management System and a front-end application
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/06Authentication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/029Location-based management or tracking services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/30Services specially adapted for particular environments, situations or purposes
    • H04W4/33Services specially adapted for particular environments, situations or purposes for indoor environments, e.g. buildings
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/30Services specially adapted for particular environments, situations or purposes
    • H04W4/38Services specially adapted for particular environments, situations or purposes for collecting sensor information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/60Subscription-based services using application servers or record carriers, e.g. SIM application toolkits
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/005Discovery of network devices, e.g. terminals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication

Definitions

  • the present invention relates to the field of communications, and in particular, to a method and apparatus for sharing an environment context. Background technique
  • the environmental context refers to information describing the environment in which the user equipment is located, such as environmental information related to the physical location, temperature, humidity, air pressure, noise, pollution, activity or resource availability of the user equipment.
  • environmental information related to the physical location, temperature, humidity, air pressure, noise, pollution, activity or resource availability of the user equipment.
  • the collection of environmental contexts is a key technology for realizing mobile office. Due to the diversification of terminal devices, different terminals have different sensors, so a single terminal cannot meet the environmental context requirements of various applications.
  • a smart space that can provide various data and services to users is provided in the prior art.
  • the smart space is a space in which computing devices, information devices, and various types of sensing devices are embedded. Users in the smart space can easily obtain the various data and services of the smart space by using a specific control device or installing a corresponding interactive control program or physical hardware on the mobile phone to communicate with the server of the smart space. For example: When a user in a smart space accesses an application, if one or some environment contexts are missing, and the smart space has a sensing device providing the environment context, the user can perform the smart space through the device. The interaction is used to obtain the environment context that the user lacks, and is provided to the corresponding application device. The application device executes the application according to the obtained user's environment context, and sends the execution result to the user.
  • the smart space is a fixed physical space and cannot be moved.
  • the actual smart space is very limited.
  • the environment context that the user lacks cannot be obtained.
  • the embodiments of the present invention provide a shared environment context method and apparatus, so that when a user accesses an application in a non-smart space, the environment context that the user lacks can also be obtained, and the versatility is strong.
  • the embodiment of the present invention provides a context-aware platform, including: a receiving unit, configured to receive, by an application device, a request for acquiring an environment context of a first user, where the request includes an identifier of the first user, and Environmental context identifier;
  • a query unit configured to find an environment context record of the first user according to the identifier of the first user, and query an environment context corresponding to the environment context identifier in an environment context record of the first user, where When the environment context corresponding to the environment context identifier is missing, the acquiring unit is triggered to perform processing;
  • the obtaining unit is configured to acquire an environment context of a second user that is adjacent to the first user according to the environment context identifier;
  • a sending unit configured to return an environment context acquired by the acquiring unit to the application device.
  • the acquiring unit specifically includes:
  • An interaction module configured to determine a user adjacent to the first user
  • a searching module configured to perform, by using the environment context identifier, a lookup in an environment context record of a user that is adjacent to the first user determined by the interaction module;
  • An obtaining module configured to: after the searching module finds that the second user that is adjacent to the first user has an environment context corresponding to the environment context identifier, obtain the context from the second user's context record The environment context corresponding to the environment context identifier.
  • the acquiring unit further includes: An authentication module, configured to confirm whether the second user has set an environment context share, where the acquiring module is configured to find, by the searching module, that the second user adjacent to the first user has the environment Context identifying an environment context corresponding to the context, and the authenticating module confirms that the second user sets the environment context sharing, and the obtaining the environment context corresponding to the environment context identifier from the context record of the second user Operation.
  • the acquiring unit further includes:
  • An adjacent determining module configured to confirm the authenticity of the first user and the second user adjacent to each other;
  • the obtaining module is specifically configured to: in the searching module, find that a second user that is adjacent to the first user has an environment context corresponding to the environment context identifier, and the neighboring determining module confirms the first After the user and the second user are in real proximity, the operation of acquiring the environment context corresponding to the environment context identifier from the context record of the second user is performed.
  • the neighboring determining module is specifically configured to:
  • the acquiring unit is specifically used to:
  • the context aware platform further includes:
  • a saving unit configured to save the acquired environment context of the second user in the first user's environment context record as the temporary environment context of the first user, and set an expiration date for the temporary environment context.
  • an embodiment of the present invention provides a user equipment, including: a receiving unit, configured to receive a notification from a context aware platform, and trigger when the notification is notified that the environment context is missing. Search unit for processing;
  • the searching unit is configured to search for a device adjacent to the user equipment
  • a service unit configured to acquire a missing environment context from a neighboring device searched by the search unit, and send the acquired environment context as the context context of the context to the context aware platform; or for searching from the context
  • the unit acquires the identifier information of the searched neighboring device, and sends the identifier information to the context-aware platform, so that the context-aware platform acquires the missing environment context from the environment context record of the user corresponding to the identifier information.
  • the notification carries an environment context identifier; when the service unit is configured to acquire a missing device from a neighboring device searched by the search unit
  • the service unit specifically includes:
  • a requesting module configured to send a request for sharing an environment context to the searched neighboring device, where the request for the shared environment context carries the environment context identifier;
  • a receiving module configured to receive an environment context returned by the neighboring device and corresponding to the environment context identifier
  • the feedback module is configured to send the environment context received by the receiving module to the context aware platform as its own context.
  • the service unit when the service unit is configured to send the identifier information of the neighboring device searched by the search unit to the context-aware platform, specifically includes:
  • An obtaining module configured to acquire, from the searching unit, identifier information of the searched neighboring device, and a generating module, configured to perform, according to a preset rule, the obtained identifier information, and generate An ordered neighboring user table including the identifier information, and a sending module, configured to send the neighboring user table to the context aware platform.
  • an embodiment of the present invention provides a method for sharing an environment context, including: a context-aware platform receiving a request initiated by an application device to acquire an environment context of a first user, where the request includes an identifier of the first user, and Environmental context identifier;
  • the acquiring, by using the environment context identifier, the environment context of the second user that is adjacent to the first user includes:
  • the context aware platform determines a user adjacent to the first user
  • an environment context corresponding to the environment context identifier is obtained from the context record of the second user.
  • the method further includes:
  • the context-aware platform confirms whether the second user sets an environment context share; after confirming that the second user sets an environment context share, performing the obtaining from the second user's context record and the environment
  • the context identifies the operation of the corresponding context context.
  • the method further includes:
  • the context aware platform confirms the authenticity of the first user and the second user adjacent to each other;
  • the context-aware platform confirms that the first user and the second user are adjacent to each other Includes:
  • the context aware platform requests information of a user adjacent to the second user to the second user;
  • Receiving, by the second user, the information of the user that is adjacent to the second user, and the context-aware platform confirms whether the information returned by the second user includes the information of the first user, and if so, The first user and the second user are truly adjacent, and if not, the first user and the second user are not adjacent.
  • the environment context of the second user that is adjacent to the first user is obtained according to the environment context identifier, and specifically includes:
  • the context-aware platform sends a notification indicating that the first user's environment context is missing to the first user, where the notification carries the environment context identifier;
  • the context aware platform receives an environment context corresponding to the environment context identifier obtained by the first user from the second user after receiving the notification.
  • the context-aware platform receives, by the first user, the second user after receiving the notification
  • the environment context that is obtained by the user and corresponding to the environment context identifier includes: After receiving the notification, the first user searches for a user adjacent to itself;
  • the received environment context is returned to the context aware platform.
  • the method also includes:
  • the context aware platform saves the acquired environment context of the second user in the environment context record of the first user as the temporary environment context of the first user, and sets an expiration date for the temporary environment context.
  • an embodiment of the present invention provides a method for sharing an environment context, including: receiving, by a user equipment, a notification from a context-aware platform;
  • the user equipment acquires the missing environment context from the searched neighboring device, and sends the obtained environment context as the context context of the context to the context-aware platform; or the neighboring device that the user equipment searches for
  • the identification information is sent to the context aware platform, so that the context aware platform obtains the missing environment context from the environment context record corresponding to the identification information.
  • the notification in combination with the fourth aspect, carries an environmental context identifier
  • the obtaining, by the user equipment, the missing environment context from the searched neighboring device includes: the user equipment initiating a request for sharing the environment context to the searched neighboring device, where the request of the shared environment context carries the environment Context identifier
  • the user equipment receives an environment context returned by the neighboring device and corresponding to the environment context identifier.
  • the sending, by the user equipment, the identifier information of the searched neighboring device to the context-aware platform specifically includes: the user equipment acquiring the search Identification information of adjacent devices;
  • the context aware platform in the embodiment of the present invention can acquire the second user adjacent to the first user.
  • the environment context provides the first user with the environment context that is missing from accessing the application device, so that the user can obtain the environment context that the user lacks in the non-smart space, and the versatility is strong.
  • FIG. 1 is a schematic structural diagram of a system for sharing an environment context according to an embodiment of the present invention
  • FIG. 2 is a schematic structural diagram of a context-aware platform according to an embodiment of the present invention
  • FIG. 3 is a schematic structural diagram of a context-aware platform according to another embodiment of the present invention.
  • FIG. 4 is a schematic structural diagram of a user equipment according to an embodiment of the present invention.
  • FIG. 5 is a schematic structural diagram of a user equipment according to another embodiment of the present invention.
  • FIG. 5B is a schematic structural diagram of a user equipment according to another embodiment of the present disclosure.
  • FIG. 6 is a flowchart of a method for sharing an environment context according to an embodiment of the present invention.
  • FIG. 7 is a flowchart of a method for sharing an environment context according to another embodiment of the present invention
  • FIG. 8 is a flowchart of a method for sharing an environment context according to another embodiment of the present invention
  • FIG. 10 is a schematic diagram of a hardware mechanism of a context-aware platform according to an embodiment of the present invention
  • FIG. 11 is a hardware structural diagram of a user equipment according to an embodiment of the present invention.
  • the environmental context is information related to the environment in which the user equipment is located, such as physical location, temperature, humidity, air pressure, noise, pollution, and the scenario, resource availability, and the like.
  • the environment-related information has universal characteristics over a short distance. That is, the context of the neighboring user's environment usually has the same value. Therefore, embodiments of the present invention propose a scheme for sharing an environmental context among adjacent users to reduce the accessibility of the context.
  • the environment in the embodiment of the present invention refers to an external condition of the area where the user is located, and may include natural conditions, and may also include other conditions such as the scenario, resource availability, and the like.
  • FIG. 1 is a structural diagram of a system for sharing an environment context according to an embodiment of the present invention.
  • the system includes a context aware platform 20, an application device 10, and a user equipment 40.
  • the context-aware platform 20 is responsible for maintaining the user's environment context record and providing a query function for the environment context.
  • the application device 10 can query the context of the user from the context aware platform 20 .
  • the application device 10 can be configured as a third party, and can be configured on the context-aware platform 20, and can execute the corresponding application based on the acquired environment context information, and send the execution result to the user equipment 40.
  • the user equipment 40 is a device used by the user to communicate with the context aware platform 20 or other user equipment 40, and may be a terminal such as a mobile phone. Multiple user devices 40 may belong to one user.
  • the user equipment 40 may collect environmental context information based on various types of sensors in the device, and send the collected environmental context information to the context aware platform 20, which is maintained by the context aware platform to provide an inquiry for the environmental context information. It should be noted that the operations of the users involved in the embodiments of the present invention are all made by the user. Use the equipment to complete it.
  • the context device 20 When the context device 20 provides the environment context of the user for the application device 10, if the environment context of the user is found to be missing, the environment context of the user adjacent to the user is obtained and provided to the application device 10.
  • the context aware platform 20 sends a notification indicating that the context of the environment is missing to the user device 40 used by the user who is missing the context.
  • the user device 40 searches for a user adjacent thereto and provides information of the neighboring user to the context aware platform 20.
  • the context aware platform 20 retrieves the missing context from the context context record of the neighboring user.
  • the context-aware platform 20 sends a notification indicating that the environment context is missing to the user device 40 used by the user who lacks the environment context, and carries the identifier of the missing environment context in the notification.
  • the user device 40 searches for a user adjacent to the user device 40.
  • the user equipment 40 may search for the neighboring user by using the short-range communication technology, and obtain the missing environment context from the searched neighboring user, and send the obtained environment context to the context-aware platform 20.
  • the embodiment of the present invention maintains the context of the user by adding a context-aware platform, so that the application device can query the environment context of the user from the context-aware platform. Moreover, when the user's environment context is missing, the context-aware platform can acquire the environment context of other users in the same environment as the user, realize the environment context sharing between adjacent devices, and replace the environment context information of the single device. Reduces the limitations of implementing context-aware applications.
  • FIG. 2 is a schematic structural diagram of a context aware platform 20 according to an embodiment of the present invention.
  • the context aware platform 20 may include: a receiving unit 201, a query unit 202, an obtaining unit 203, and a sending unit 204.
  • the receiving unit 201 is configured to receive, by the application device, a request for acquiring an environment context of the first user, where the request includes the identifier of the first user and an environment context identifier.
  • the first user can access the application device by using the user equipment of the first user. Should The device can send a request to the context aware platform to obtain the environment context of the first user.
  • the request includes an identification of the first user and an environmental context identification.
  • the identifier of the user is used to distinguish the identification information of different users, and a user can be uniquely identified in the context sensing platform.
  • the user's identity can be in a different form, including but not limited to the identity of the user device that the user uses to interact with the context aware platform.
  • the user can use different forms of user identifiers to access the context-aware platform.
  • the context-aware platform can store the correspondence between different types of user identifiers of each user. For example, when the context-aware platform uses the electronic of each user. mail
  • the context-aware platform can also store the correspondence between the user's E-ma i 1 and the MAC address of the user equipment used by the user. In this way, when the user accesses the MAC address of the user equipment, the context-aware platform can find the E-mail address corresponding to the MAC address of the user equipment by using the corresponding relationship, thereby finding the environment context corresponding to the E-ma i 1 address. recording.
  • the context-aware platform can understand that the above is only an implementation form of the user identifier, and the same user can distinguish by different types of identifiers.
  • the environment context identifier is used to distinguish between different types of environment contexts, which can usually be expressed directly by the type of environment context, such as GPS, humidity, temperature, altitude, air pressure, noise, and so on.
  • the query unit 202 is configured to find an environment context record of the first user according to the identifier of the first user, and query an environment context corresponding to the environment context identifier in an environment context record of the first user, when found When the environment context corresponding to the environment context identifier is missing, the trigger acquisition unit 203 performs processing.
  • the environment context record of each user may include an identifier of the user, an environment identifier, and an environment context corresponding to the environment context identifier.
  • the user's environment context record may be saved in a database or a file, which is not limited by the embodiment of the present invention.
  • the user's environment context record can be context-aware platform pre- Collected and recorded first.
  • the manner of collecting may be that the context-aware platform periodically queries the user equipment, or the user equipment periodically reports to the context-aware platform.
  • the smart space can be used as a special user managed by the context sensing platform.
  • the sensing device in the smart space can send the acquired environment context to the context sensing platform, and the context sensing platform can generate the environment context record of the smart space.
  • the query unit 202 may query the environment context record of the first user according to the user identifier in the request, and then query the environment context corresponding to the environment context identifier in the request in the environment context record of the first user.
  • the obtaining unit 203 is configured to acquire an environment context of the second user adjacent to the first user according to the environment context identifier.
  • the querying unit 202 finds that the environment context corresponding to the environment context identifier in the request is missing in the environment context record of the first user, the user equipment of the first user does not send the environment corresponding to the environment context identifier to the context aware platform. Context.
  • the obtaining unit 203 can acquire the environmental context of the second user adjacent to the first user.
  • the sending unit 204 is configured to return the environment context acquired by the acquiring unit 203 to the application device.
  • the sending unit 204 returns the obtained environment context to the application device, and the application device can execute the corresponding application by using the environment context, and return the execution result to the first user device.
  • the obtaining unit 203 can obtain the environment context of the second user adjacent to the first user in two ways, which are respectively described below.
  • the obtaining unit 203 sends a notification to the first user that the environment context of the first user is missing, and the notification carries an environment context identifier.
  • the environment context identifier carried in the notification is an identifier of the environment context that is missing by the first user.
  • the user equipment of the first user may search for a device that is adjacent to the user equipment of the first user.
  • the short-distance communication technology may acquire the neighboring device in the same environment as the user equipment of the first user.
  • the identification of the device; wherein, short-range communication technologies include, but are not limited to, Bluetooth, WI FI, Near Field Communication (NFC) and other technologies.
  • the user equipment of the first user After searching for the neighboring device, the user equipment of the first user initiates a request to share the environment context to the searched neighboring device.
  • the request for the shared environment context carries an environmental context identifier received from the context aware platform.
  • the user equipment of the first user may send a request for sharing the context of the environment to the device adjacent to the first user by using a short-range communication technology;
  • the device that receives the request for the shared environment context determines whether it has the environment context corresponding to the environment context identifier according to the environment context identifier carried in the request; if it is determined that the environment context corresponding to the environment context identifier is not present, the request is ignored;
  • the environment context corresponding to the environment context identifier may be sent to the user equipment of the first user.
  • a neighboring user who provides an environment context for the first user in the embodiment of the present invention is referred to as a second user.
  • the neighboring device that provides the environment context for the first user is the device used by the second user.
  • the obtaining unit 203 receives an environment context corresponding to the environment context identifier obtained by the first user from the second user after receiving the notification.
  • the environment context corresponding to the environment context identifier is sent to the user equipment of the first user.
  • the user equipment of the first user sends the received context to the acquisition unit 203 of the context aware platform.
  • the obtaining unit 203 determines a user adjacent to the first user, and searches for an environment context identifier carried in the request sent by the application device in the environment context record of the user adjacent to the first user, in the search After the second user adjacent to the first user has an environment context corresponding to the environment context identifier, from the second user Get the context context corresponding to the environment context ID in the context record.
  • the obtaining unit 203 may further include: an interaction module 2031, a searching module 2032, and an obtaining module 2033.
  • the interaction module 2031 is configured to determine a user that is adjacent to the first user.
  • the process can be specifically implemented by:
  • the interaction module 2031 sends a notification to the first user indicating that the first user's environment context is missing, and receives information of the user that is returned by the first user after receiving the notification.
  • the information of the user adjacent to the first user may be the identity of the device used by the neighboring user.
  • the user equipment of the first user may search for the device adjacent to the user equipment by using the short-range communication technology, and return the identifier of the searched neighboring device to the interaction module 2031, for example, the search
  • the MAC address of the neighboring device to be returned is returned to the interaction module 2031.
  • short-range communication technologies include, but are not limited to, technologies such as Bluetooth, WIFI, and Near Field Communication (NFC).
  • the identifiers of the searched neighboring devices may be returned to the interaction module 2031 in the form of a list.
  • the user equipment of the first user may sort the searched neighboring devices according to a preset rule to generate a neighboring user table of the first user.
  • the preset rules may include, but are not limited to, signal strength, physical distance, and the like. Assume that the user equipment of the first user searches for two neighboring devices, and the identifiers of the neighboring devices that are searched (here, the MAC address is taken as an example) are: 80: b6: 86: 28: 7a: c4 and 00: lc : a4: 55: b6: 8D.
  • the signal with the identifier 80: b6: 86: 28: 7a: c4 is stronger than the signal with the identifier 00: lc: a4: 55: b6: 8D.
  • Table 1 shows the neighboring user tables obtained by sorting the signal strength from large to small:
  • the interaction module 2031 determines a user adjacent to the first user based on the information returned by the first user.
  • the searching module 2032 is configured to identify, by the environment context, adjacent to the first user Look up in the user's environment context record.
  • the searching module 2032 may directly find the corresponding phase according to the identifier of the device received by the interaction module 2031.
  • the context context record of the neighboring user may directly find the corresponding phase according to the identifier of the device received by the interaction module 2031.
  • the lookup module 2032 may pre-store the user identifier and In the corresponding relationship between the identifiers of the devices used by the user, the user identifier corresponding to the device identifier received by the interaction module 2031 is found, and then the corresponding environment context record is found according to the found user identifier.
  • the searching module 2032 may convert the identifier of the device of the neighboring user sent by the user equipment to the user identifier of the neighboring user according to the correspondence between the identifier of the user and the identifier of the device used by the user.
  • the context-aware platform may convert the neighbor user table as shown in Table 1 to the neighbor user table indicated by the user identifier, if the MAC address is 80: b6: 86: 28: 7a: c4 corresponding to the user equipment
  • the identifier of the user of the context-aware platform is us e rbShuawe i . com
  • the MAC address is 00: lc: a 4: 55: b6:
  • the identifier of the user of the context-aware platform corresponding to the user equipment of 8D is us er cSlgma il . com
  • the obtained user ID can be as shown in Table 2: Table 2
  • the lookup module 2032 looks up the environment context record corresponding to the user identifier in Table 2, and looks up the environment context corresponding to the environment context identifier in the found environment context record.
  • the environment context corresponding to the environment context identifier in the environment context record of the neighboring user as shown in Table 2 may be sequentially queried according to the ordering in Table 2.
  • the obtaining module 2033 is configured to: when the searching module 2032 finds that the second user adjacent to the first user has an environment context corresponding to the environment context identifier, from the second use The context context corresponding to the environment context identifier is obtained from the user's context record.
  • the user may be in a context aware platform.
  • the user's environment context record is set to share permissions to indicate whether the environment context record can be shared, so the user's environment context record can also contain share permissions.
  • the obtaining unit 203 may further include:
  • the authentication module 2034 is configured to confirm whether the second user sets an environment context sharing.
  • the obtaining module 2033 is specifically configured to find, by the searching module 2032, that the second user adjacent to the first user has an environment context corresponding to the environment context identifier, and the authentication module 2034 confirms the second user. After the environment context sharing is set, the operation of obtaining the environment context corresponding to the environment context identifier from the context record of the second user is performed.
  • the context aware platform 20 may further confirm the authenticity of the first user and the second user.
  • the obtaining unit 203 may further include:
  • the neighboring determining module 2035 is configured to confirm the authenticity of the first user and the second user;
  • the obtaining module 2033 is specifically configured to: find, by the searching module 2032, that the second user that is adjacent to the first user has an environment context corresponding to the environment context identifier, and the neighboring determining module 2035 After confirming that the first user and the second user are in real proximity, performing an operation of acquiring an environment context corresponding to the environment context identifier from the context record of the second user.
  • the neighboring determining module 2035 may specifically confirm the authenticity of the first user and the second user by:
  • the authentication module 2034 and the adjacent judging module 2035 are optional functional modules.
  • the obtaining module 2033 needs to confirm at the authentication module 2034 that the second user sets the environment context sharing, and the neighboring determining module 2035 After the first user and the second user are in real proximity, an operation of acquiring an environment context corresponding to the environment context identifier from the context record of the second user is performed.
  • the authentication module 2034 and the adjacent judging module 2035 are not limited in the execution order.
  • the context-aware platform 20 may further include: a saving unit 205, configured to save the acquired environment context of the second user in the environment context record of the first user as the temporary environment context of the first user, and Set a validity period for the temporary environment context.
  • the context-aware platform 20 can obtain the environment context of the second user in the same environment as the first user, and provide the first user with the environment context that is missing from the access application device, so that the user obtains the environment context that the user lacks.
  • the context-aware platform 20 can obtain the environment context of the second user in the same environment as the first user, and provide the first user with the environment context that is missing from the access application device, so that the user obtains the environment context that the user lacks.
  • it is not limited by the smart space, it is highly versatile.
  • FIG. 4 is a schematic structural diagram of a user equipment 40 according to an embodiment of the present invention.
  • the user equipment 40 may include: a receiving unit 401, a searching unit 402, and a service unit 403.
  • the receiving unit 401 is configured to receive the notification from the context aware platform, and trigger the search unit 402 to perform processing when the notification is notified that the environment context is missing.
  • the context aware platform queries the environment context record of the first user and finds that the environment context in the record is missing, the context aware platform sends a notification indicating that the environment context is missing to the user equipment of the first user.
  • This notification can be implemented by extending the existing PUSH notification, for example, by populating a field indicating a missing context in the PUSH notification.
  • the receiving unit 401 may expand according to An indication in the exhibition field to identify the notification. If you use a custom way, the receiving unit 401
  • 401 can identify the notification based on the customized message name.
  • the searching unit 402 is configured to search for a device adjacent to the user equipment.
  • the user equipment can acquire the identity of the neighboring device in the same environment as the user equipment by short-range communication technology.
  • short-range communication technologies include, but are not limited to, technologies such as Bluetooth, WIFI, and Near Field Communication (NFC).
  • the search unit 402 After the search unit 402 searches for a device adjacent to the user equipment, the correlation of the adjacent device is provided to the service unit 403 for processing.
  • the service unit 403 is configured to: acquire the missing environment context from the neighboring device searched by the search unit 402, and send the acquired environment context as the context context of the context to the context-aware platform; or
  • the identifier information of the searched neighboring device is sent to the context aware platform, so that the context aware platform obtains the missing environment context from the environment context record of the user corresponding to the identifier information.
  • the service unit 403 has two different implementations. A person skilled in the art can select any one of the embodiments of the present invention as needed to implement. The two methods are respectively subjected to detailed reception by means of Figs. 5A and 5B.
  • the service unit 403 when the service unit 403 is configured to acquire a missing environment context from a neighboring device searched by the search unit 402, the service unit 403 specifically includes: a requesting module 4031, configured to search for a phase The neighboring device initiates a request to share an environment context, where the request for the shared environment context carries the environment context identifier; the receiving module 4032 is configured to receive an environment context corresponding to the environment context identifier returned by the neighboring device;
  • the feedback module 4033 is configured to send the acquired environment context as its own context context to the context aware platform.
  • the context-aware platform needs to carry an environment context identifier in the notification sent to the user equipment 40.
  • the service unit 403 when the service unit 403 is configured to send the identifier information of the neighboring device that is searched by the search unit 402 to the context-aware platform, the service unit 403 specifically includes: An obtaining module 4 034, configured to obtain, from the searching unit 502, identification information of the searched neighboring device;
  • the generating module 4 035 is configured to arrange the acquired identification information according to a preset rule, and generate an ordered neighboring user table that includes the identifier information;
  • the platform may use the MAC address of the neighboring device as the identification information of the neighboring device.
  • Pre-set rules may include, but are not limited to, signal strength, physical distance, and the like.
  • the neighboring user table generated by the generating module 4 035 can refer to Table 1, and details are not described herein again.
  • the user equipment 40 of the embodiment of the present invention can obtain the missing environment context from the neighboring device, thereby providing the context aware platform.
  • the identification information of the neighboring device is sent to the context aware platform, so that the context aware platform can obtain the missing environment context from the environment context record of the neighboring device of the user device.
  • Environmental context sharing between adjacent users in the same environment is achieved, reducing the limitations of the context of the acquisition environment.
  • the method includes:
  • the context-aware platform receives a request initiated by the application device to obtain an environment context of the first user, where the request includes the identifier of the first user and an environment context identifier.
  • the first user may access the application device by using the user device of the first user, and the application device may send a request for acquiring the environment context of the first user to the context aware platform, where the request includes the identifier of the first user and the environment context identifier;
  • the identifier of the user is used to distinguish the identification information of different users, and a user can be uniquely identified in the context-aware platform.
  • the user's identity may be in different forms, including but not limited to the identity of the user equipment used by the user to interact with the context-aware platform (eg, the MAC of the user device), or the username that cannot be repeated (eg, the user's E) -ma il address), or radio frequency identification code RF ID, etc.
  • the user can access the context-aware platform by using different forms of user identifiers. In this case, the context-aware platform can save the correspondence between the user identifiers of different forms of each user, for example, when the context is sensed.
  • the context-aware platform can also store the correspondence between the user's E-ma il and the MAC address of the user device used by the user. In this way, when the user accesses the MAC address of the user equipment, the context-aware platform can find the E_ma i 1 address corresponding to the MAC address of the user equipment by using the corresponding relationship, so as to find the environment context record corresponding to the E_ma i 1 address. It can be understood by those skilled in the art that the above is only an implementation form of the user identifier, and the same user can distinguish by different types of identifiers.
  • the environment context identifier is used to distinguish different types of environment contexts, and can usually be expressed directly by the type of environment context, for example, GPS, humidity, temperature, altitude, air pressure, noise, and the like.
  • the request of the first user's environmental context can indicate to the context aware platform which of the user's environmental contexts requested by the application device.
  • the environment context record of each user may include an identifier of the user, an environment identifier, and an environment context corresponding to the environment context identifier.
  • the user's environment context record may be saved in a database or a file, which is not limited by the embodiment of the present invention.
  • the user's environment context record may be collected and recorded in advance by the context aware platform.
  • the manner of collecting may be that the context-aware platform periodically queries the user equipment, or the user equipment periodically reports to the context-aware platform.
  • the smart space can be used as a special user managed by the context sensing platform.
  • the sensing device in the smart space can send the acquired environment context to the context sensing platform, and the context sensing platform can generate the environment context record of the smart space.
  • the context-aware platform may query the environment context record of the first user according to the user identifier in the request, and then query the environment context corresponding to the environment context identifier in the request in the environment context record of the first user.
  • the context-aware platform of the first user's environment context record is found to be absent from the environment context identifier in the request, the user equipment of the first user does not send the environment corresponding to the environment context identifier to the context-aware platform.
  • Context the context aware platform can obtain the context of the second user adjacent to the first user.
  • the context-aware platform can obtain the environment context of the second user adjacent to the first user in two ways, which are separately described below.
  • the context-aware platform sends a notification to the first user that the environment context of the first user is missing, and the notification carries an environment context identifier.
  • the context aware platform receives an environment context corresponding to the environment context identifier obtained by the first user from the second user after receiving the notification.
  • the context-aware platform receives the environment context corresponding to the environment context identifier that is acquired by the first user from the second user after receiving the notification, and specifically includes: after receiving the notification, the first user searches for itself a neighboring user; initiating a request to share an environment context to the searched neighboring user, where the request of the shared environment context carries the environment context identifier;
  • the user and the user interact with each other through devices used by the users.
  • the first user uses the user device to search for users that are adjacent to themselves.
  • neighboring users are determined by searching for neighboring devices.
  • the context aware platform determines a user adjacent to the first user.
  • the process can be specifically implemented by:
  • the context-aware platform sends a notification to the first user that the environment context of the first user is missing; receiving information of the user that is returned by the first user after receiving the notification, and is adjacent to the first user; The information returned by the first user determines a user adjacent to the first user.
  • the user equipment of the first user may search for a device adjacent to the user equipment by using a short-distance communication technology, and return the identifier of the searched neighboring device to the context-aware platform, for example, searching The MAC address of the neighboring device is returned to the context aware platform.
  • short-range communication technologies include, but are not limited to, technologies such as Bluetooth, WI F I, and Near Field Communication (NFC).
  • the identifiers of the searched neighboring devices can be returned to the context aware platform in the form of a list.
  • the user equipment of the first user may sort the searched neighboring devices according to a preset rule to generate a neighboring user table of the first user.
  • the preset rules may include, but are not limited to, signal strength, physical distance, and the like.
  • the generated neighbor user table can refer to Table 1, and will not be described here. 2.
  • the context-aware platform looks up the environment context record of the user adjacent to the first user with the context of the environment.
  • the context-aware platform can directly find the user identifier according to the MAC address of the neighboring device returned by the first user. Find the environment context record for the corresponding neighboring user. If the context-aware platform uses other identifiers (eg, the user's e-ma il address) as the user identifier in the context record, the context-aware platform needs to find and receive the correspondence between the pre-stored MAC address and other identifiers. Other identifiers corresponding to the MAC address, and then find other corresponding context records.
  • identifiers eg, the user's e-ma il address
  • the context-aware platform returns the obtained environment context to the application device, and the application device
  • the environment context can be used to execute the corresponding application, and the execution result is returned to the first user equipment.
  • the user can set sharing rights to the user's environment context record in the context-aware platform to indicate whether the environment context record can be shared, so the user's environment context record can also include sharing rights.
  • the method may further include:
  • the context-aware platform confirms whether the second user sets the environment context share; after confirming that the second user sets the environment context share, performing the obtaining the context identifier from the second user's context record The operation of the corresponding environment context.
  • the context aware platform 20 may further confirm the authenticity of the first user and the second user. Specifically, before obtaining the context of the environment corresponding to the environment context identifier from the context record of the second user, the method further includes:
  • the context aware platform confirms the authenticity of the first user and the second user adjacent to each other;
  • the authenticity of the context-aware platform confirming that the first user and the second user are adjacent may specifically include:
  • the context aware platform requests information of a user adjacent to the second user to the second user;
  • the method may further include:
  • the context aware platform saves the acquired environment context of the second user in the environment context record of the first user as a temporary environment context of the first user, and sets an expiration date for the temporary environment context.
  • the context-aware platform can obtain the environment context of the second user in the same environment as the first user, and provide the first user with the environment context that is missing from the access application device, so that the user obtains the environment context that the user lacks. , can be free from the limitations of smart space, and is highly versatile.
  • FIG. 7 is a method for sharing an environment context according to another embodiment of the present invention. Referring to FIG. 7, the method includes:
  • the user equipment receives the notification from the context aware platform.
  • the context-aware platform queries the environment context record of the first user and finds that the environment context in the record is missing, the context-aware platform sends a notification to the first user that the context is missing, and the notification is used to indicate that the environment context is missing.
  • This notification can be implemented by extending the existing PUSH notification, for example, by populating a field indicating a missing context in the PUSH notification.
  • the user equipment can identify the notification based on the indication in the extended field. If a custom way is used, the user device can identify the notification based on the customized message name.
  • the user equipment can obtain the identity of the neighboring device in the same environment as the user equipment by short-range communication technology.
  • short-range communication technologies include, but are not limited to, technologies such as Bluetooth, WI F I, and Near Field Communication (NFC).
  • the user equipment acquires the missing environment context from the searched neighboring device, and sends the obtained environment context as the context context of the context to the context-aware platform; or the user equipment searches for the phase. Neighbor device identification information is sent Giving the context aware platform such that the context aware platform obtains a missing context context from an environmental context record of the neighboring device.
  • the user equipment may send the missing environment context from the neighboring device to the environment context sensing platform, or send the identifier information of the neighboring device to the context-aware platform, and the context-aware platform acquires the missing information according to the received identifier information.
  • Environmental context The specific implementation of these two methods is described in detail below.
  • the notification received by the user equipment carries the environment context identifier.
  • the user equipment obtains the missing environment context from the searched neighboring devices, which may include:
  • the user equipment initiates a request for sharing an environment context to the searched neighboring device, where the request for the shared environment context carries the environment context identifier;
  • the user equipment receives an environmental context returned by the neighboring device and corresponding to the environment context identifier.
  • the sending, by the user equipment, the identifier information of the searched neighboring device to the context-aware platform may include:
  • the user equipment obtains the identifier information of the searched neighboring device, and the obtained identifier information is arranged according to a preset rule to generate an ordered neighboring user that includes the identifier information.
  • the preset rules may include, but are not limited to, signal strength, physical distance, and the like.
  • the generated adjacent user table can be seen in Table 1, and will not be described here. It can be seen that the shared environment context method provided by the embodiment of the present invention can obtain an environment context of a neighboring user in the same environment as the first user, and provide the first user with an environment context that is missing from accessing the application device, so that the user is The non-smart space can also obtain the environment context that the user lacks, and the versatility is strong.
  • the application scenario is that the application device accessed by the first user requests the context context provided by the context-aware platform to be a Global Locating System (GPS) environment context, see Figure 8, including:
  • GPS Global Locating System
  • the user equipment periodically or periodically sends its own context to the context aware platform.
  • 8 02 The context-aware platform saves the environment context sent by each user equipment in the corresponding user's environment context record.
  • the context-aware platform needs to maintain the corresponding relationship between the user and the user equipment.
  • One user can have multiple user devices, and the user device can be a terminal device such as a mobile phone.
  • the user identifier used in the environment context record of the user is the E-ma il address of the user
  • the identifier of the device used by the user is the MAC address of the device
  • the correspondence between the user and the user equipment maintained by the context-aware platform As shown in Table 1, it will not be described here.
  • the context-aware platform saves the environment context of each user device as the environment context record of the corresponding user according to the corresponding relationship between the maintained user and the user device; and sets the sharing permission of the environment context record of each user.
  • the access message includes an identifier of the first user to indicate to the application device the user accessing the application device, such that the application device acquires an environment context required to execute the application accessed by the first user.
  • the environment context required by the application accessed by the first user is the GPS environment context.
  • the application device sends a request to the context-aware platform to obtain the context of the first user.
  • the request message includes an identifier of the first user and an identifier of the environment context to be obtained, wherein the identifier of the first user may be an E-ma i 1 address format, such as u s e raShuawe i . com.
  • the environment context is identified as GPS.
  • the context-aware platform finds the environment context record of the first user according to the identifier of the first user in the request message, and queries the GPS environment context in the environment context record of the first user.
  • step 806 is performed.
  • the context-aware platform sends a notification to the first user's user device A indicating that the context is missing.
  • the context aware platform queries the first user's environment context record, it finds There is no GPS environment context in the record, and the context aware platform sends a notification that the environment context is missing to the first user.
  • This notification can be implemented by extending the existing PUSH notification, for example, in the PUSH notification extension field indicating that the context context is missing.
  • User equipment A searches for a device adjacent to user equipment A;
  • the user equipment A of the first user can acquire the identity of the neighboring user equipment in the same environment as the user equipment A through the short-range communication technology.
  • short-range communication technologies include, but are not limited to, Bluetooth, WIFI, Near Field Communication (NFC) and other technologies.
  • the identity (MAC address) of the neighboring user equipment of the searched user equipment A is: 80: b6: 86: 28: 7a: c4 and 00: lc: a4: 55: b6: 8D.
  • the user equipment A can arrange the identifiers of the searched neighboring devices according to a preset rule to generate a neighboring user table of the first user.
  • the preset rules may include, but are not limited to, signal strength, physical distance, and the like.
  • the generated neighbor user table can be referred to Table 1, and will not be described here.
  • User equipment A sends the identifier of the searched neighboring device to the context aware platform
  • user equipment A may send a neighbor list of users as shown in Table 1 to the context aware platform.
  • the context aware platform determines a user adjacent to the first user according to the identifier of the neighboring device returned by the user equipment A.
  • the context-aware platform converts the received identifier of the user equipment sent by user equipment A into an identifier used in the environmental context record according to the relationship between the maintained user and the user equipment.
  • the context aware platform can convert a neighbor user table containing a MAC address as shown in Table 1 to an adjacent user table containing an E-mail address.
  • the converted adjacent user table is shown in Table 2. 810.
  • the context aware platform identifies, by the environment context identifier, an environment context record of a user adjacent to the first user.
  • the context-aware platform acquires the determined environment context record of the neighboring user, and performs the environment context identifier in the environment context record of the user adjacent to the first user. Find.
  • the context-aware platform can query the GPS environment context in the context record of the neighboring user as shown in Table 2 according to the ordering in Table 2.
  • the context-aware platform queries the shared state in the environment context record of the second user, and performs the following steps when determining that the environment context record of the second user is a shareable state.
  • the context aware platform confirms the authenticity of the proximity of the second user to the first user.
  • the process can be implemented by the following steps:
  • the context aware platform requests the second user for information about a user adjacent to the second user
  • the user equipment B of the second user After receiving the request message sent by the context-aware platform, the user equipment B of the second user obtains the identifier of the user equipment in the same environment as the user equipment B by using the short-distance communication technology, and associates with the user equipment B according to a preset rule.
  • the identifiers of the user equipments in the same environment are arranged, and a neighbor user equipment table of user equipment B is generated (see Table 3) and sent to the context aware platform.
  • the user device A address is Be: 76 : 70: 9f : 29 : 72.
  • the context-aware platform receives the identifier of the user equipment that is returned by the user equipment and is adjacent to the user equipment of the second user;
  • the context-aware platform converts the adjacent user equipment table shown in Table 3 into the adjacent user table shown in Table 4 according to the corresponding relationship between the maintained user and the user equipment.
  • Table 4
  • the context-aware platform confirms whether the information returned by the second user includes the information of the first user. If yes, the first user and the second user are actually adjacent, and if not, the first user and the second user are not adjacent.
  • the neighboring user table as shown in Table 4 By querying the neighboring user table as shown in Table 4, it can be determined that the first user useraShuawe i.com is in the same environment as the second user userbShuawe i.com, and the first user useraShuawe i.com and the second user userbShuawei.com are confirmed. Adjacent authenticity.
  • the context aware platform sends a GPS environment context to the application device.
  • the context-aware platform can set the GPS environment context of the second user userbShuawei.com to the temporary GPS environment context of the first user useraSlhuawei.com, and set a valid time, for example 300 seconds, to send the temporary GPS environment context to the application device.
  • the application device executes the application according to the GPS environment context.
  • the application device sends the execution result to the user equipment A.
  • the smart space can be used as a special type of user. It can be understood by those skilled in the art that the first user can obtain the accessed application device by using the technical solution provided in this embodiment.
  • the neighboring device searched by the first user may include a smart space.
  • the user equipment A can use the RFID-based short-range communication technology to obtain the identifier of the smart space where the user equipment A is located, and generate the neighbor user table of the user equipment A.
  • the identifier of the smart space may be represented by the RFID information of the smart space, and the RFID information may be a 512-bit binary sequence.
  • the RFID of the smart space is represented by idl. table 5
  • the first user among them can distinguish different smart spaces through the RF I D of the smart space.
  • the context-aware platform can also use the R F I D of the smart space as the user ID of the smart space.
  • the context-aware platform can also assign a unified user name to the smart space as the user identifier of the smart space in the context-aware platform (for example, can be a user name in the form of E-ma il), and then the context-aware platform maintains the smart space. Correspondence between the RF ID and the username.
  • the embodiment of the present invention provides another method for sharing an environment context.
  • the method provided in this embodiment is the same as the method in the embodiment shown in FIG. 8.
  • the description is only made for different places, and the same part is not detailed. .
  • Figure 9 it includes:
  • the user equipment sends a respective environment context to the context aware platform.
  • the context aware platform saves an environment context sent by each user equipment in an environment context record of the corresponding user.
  • the user equipment A of the first user sends an access message to the application device.
  • the application device sends a request for acquiring the context of the first user to the context-aware platform.
  • the context-aware platform finds an environment context record of the first user according to the identifier of the first user in the request message, and queries an environment context corresponding to the environment context identifier in the environment context record of the first user.
  • the context aware platform sends a notification to the user equipment A of the first user that the environment context is missing.
  • the notification contains an identifier of the missing environment context.
  • the user equipment A After receiving the notification, the user equipment A searches for a device adjacent to itself.
  • User Equipment A can send a request to share a context with a neighboring device through short-range communication technology.
  • the neighboring device determines, according to the environment context identifier, that it has an environment context corresponding to the context identifier.
  • the environment context corresponding to the environment context identifier is determined to be set to the shared state. If the environment state is the shared state, the environment context corresponding to the environment context identifier is returned to the user equipment A.
  • a neighboring user who provides an environment context for the first user in the embodiment of the present invention is referred to as a second user.
  • the neighboring device that provides the environment context for the first user is the device used by the second user.
  • User equipment A receives an environment context returned by the second user's device and corresponding to the environment context identifier.
  • the context aware platform sends an environment context to the application device.
  • the application device executes the application according to the environment context.
  • the application device sends the execution result to the user equipment A.
  • the context-aware platform can obtain the environment context of the second user in the same environment as the first user, and provide the first user with the environment context that is missing from the access application device, so that the user obtains the environment context that the user lacks. , can be free from the limitations of smart space, and is highly versatile.
  • FIG. 10 is a hardware structural diagram of a context aware platform 100 according to an embodiment of the present invention, including:
  • At least one communication unit 1001, a processor 1002, a memory 1003, and a bus 1004, the at least one communication unit 1001, the processor 1002, and the memory 1003 are connected by a bus 1004 and complete communication with each other.
  • the bus 1004 can be an industry standard architecture ( Industry Standard Architecture, referred to as ISA) Bus, Peripheral Component (PCI) bus or Extended Indus try Standard Architecture (EISA) bus.
  • ISA Industry Standard Architecture
  • PCI Peripheral Component
  • EISA Extended Indus try Standard Architecture
  • the bus 1004 can be divided into an address bus, a data bus, a control bus, and the like. For ease of representation, only one thick line is shown in Figure 10, but it does not mean that there is only one bus or one type of bus. among them:
  • the memory 1003 is for storing executable program code, the program code including computer operating instructions.
  • the memory 1003 may include a high speed RAM memory and may also include a non-volatile memory such as at least one disk memory. Storage in the storage device: an operating system, an application, a program code for implementing an embodiment of the present invention.
  • the operating system is used to control and implement the processing functions performed by the processing unit.
  • the application contains program code such as word processing software and email software.
  • the memory 1003 may store program code that implements the functions of the processor 1002 and the user's environmental context record.
  • the processor 1002 may be a central processing unit (CPU), or an application specific integrated circuit (ASIC), or one or more configured to implement the embodiments of the present invention. integrated circuit.
  • CPU central processing unit
  • ASIC application specific integrated circuit
  • the communication unit 1001 is for communicating with an external device. Specifically, the method may be configured to receive, by the application device, a request for acquiring an environment context of the first user, where the request includes an identifier of the first user and an environment context identifier.
  • the first user can access the application device by using the user equipment of the first user.
  • the application device can send a request to the context aware platform to obtain the environment context of the first user.
  • the request includes an identification of the first user and an environmental context identification.
  • the identifier of the user is used to distinguish the identification information of different users, and a user can be uniquely identified in the context-aware platform.
  • the user's identity may be in different forms, including but not limited to the identity of the user device that the user uses to interact with the context-aware platform (eg, the Media Access Control (MAC) address of the user device), or Repeated user names (for example, the user's e-mail address), or radio frequency identification (RFID).
  • MAC Media Access Control
  • RFID radio frequency identification
  • Users can use different forms of user IDs to access context-aware platforms.
  • the context-aware platform can store the correspondence between the user IDs of different forms of each user. For example, when context-aware platforms use emails from individual users
  • the context-aware platform can also store the correspondence between the user's E-ma i 1 and the MAC address of the user equipment used by the user. In this way, when the user accesses the MAC address of the user equipment, the context-aware platform can find the E-ma il address corresponding to the MAC address of the user equipment through the corresponding relationship, thereby finding the environment corresponding to the E-ma i 1 address. Context record.
  • the environment context identifier is used to distinguish different types of environment contexts, and can usually be expressed directly by the type of environment context, for example, GPS, humidity, temperature, altitude, air pressure, noise, and the like.
  • the request of the first user's environmental context can indicate to the context aware platform which of the user's environmental contexts requested by the application device.
  • the processor 1 002 is configured to: find an environment context record of the first user according to the identifier of the first user, and query an environment context corresponding to the environment context identifier in an environment context record of the first user.
  • the environment context corresponding to the environment context identifier obtained by the query is found to be missing, the environment context of the second user adjacent to the first user is obtained according to the environment context identifier.
  • the environment context record of each user may include an identifier of the user, an environment identifier, and an environment context corresponding to the environment context identifier.
  • the user's environment context record may be saved in a database or a file, which is not limited by the embodiment of the present invention.
  • the user's environment context record may be collected and recorded in advance by the context aware platform.
  • the manner of collecting may be that the context-aware platform periodically queries the user equipment, or the user equipment periodically reports to the context-aware platform.
  • the smart space can be used as a special user managed by the context sensing platform.
  • the sensing device in the smart space can send the acquired environment context to the context sensing platform, and the context sensing platform can generate the environment context record of the smart space.
  • the processor 1 002 can query the environment of the first user according to the user identifier in the request. Recorded below, and in the first user's environment context record, the environment context corresponding to the environment context identifier in the request is queried.
  • the processor 1002 can obtain an environmental context of a second user that is adjacent to the first user.
  • the processor 1002 can obtain the environment context of the second user adjacent to the first user in two ways, which are separately described below.
  • the processor 1002 sends, by the communication unit 1001, a notification indicating that the first user's environment context is missing to the first user, where the notification carries an environmental context identifier.
  • the environment context identifier carried in the notification is an identifier of an environment context that is missing by the first user.
  • the user equipment of the first user may search for a device that is adjacent to the user equipment of the first user.
  • the short-distance communication technology may acquire the neighboring device in the same environment as the user equipment of the first user.
  • the identification of the device; wherein, short-range communication technologies include, but are not limited to, Bluetooth, WIFI, Near Field Communication (NFC) and other technologies.
  • the user equipment of the first user After searching for the neighboring device, the user equipment of the first user initiates a request to share the environment context to the searched neighboring device.
  • the request for the shared environment context carries an environmental context identifier received from the context aware platform.
  • the user equipment of the first user may send a request for sharing an environment context to a neighboring device in the same environment as the first user by using a short-range communication technology.
  • the device that receives the request for the shared environment context determines whether it has the environment context corresponding to the environment context identifier according to the environment context identifier carried in the request; if it is determined that the environment context corresponding to the environment context identifier is not present, the request is ignored;
  • the ring may be The context context corresponding to the context identifier is sent to the user equipment of the first user.
  • a neighboring user who provides an environment context for the first user in the embodiment of the present invention is referred to as a second user.
  • the neighboring device that provides the environment context for the first user is the device used by the second user.
  • the processor 1 002 receives, by the communication unit 1 001, an environment context corresponding to the environment context identifier obtained by the first user after receiving the notification. After the searched second user's device determines that the environment context corresponding to the received environment context identifier is determined, the environment context corresponding to the environment context identifier is sent to the user equipment of the first user. The user equipment of the first user sends the received environment context to the communication unit 1001 of the context-aware platform, and the processor 1 002 of the context-aware platform receives the environment context sent by the user equipment of the first user through the communication unit 1001.
  • the processor 1 002 determines, by the communication unit 1 001, a user adjacent to the first user, and identifies an environment context record of the user adjacent to the first user by using an environment context carried in the request sent by the application device.
  • the finding is performed, and after finding that the second user adjacent to the first user has an environment context corresponding to the environment context identifier, obtaining an environment context corresponding to the environment context identifier from the context record of the second user. This can be achieved by the following steps.
  • the processor 1 002 determines, by the communication unit 1 001, a user adjacent to the first user;
  • the processor 1002 sends a notification indicating that the first user's environment context is missing to the first user through the communication unit 1001, and receives, by the communication unit 1001, information of the user that is returned by the first user after receiving the notification and is adjacent to the first user.
  • the information of the user adjacent to the first user may be the identity of the device used by the neighboring user.
  • the user equipment of the first user may search for a device adjacent to the user equipment by using a short-distance communication technology, and return the identifier of the searched neighboring device to the communication unit 1 001, for example, The MAC address of the discovered neighboring device is returned to the communication unit 1 001.
  • short-range communication technologies include but are not limited to Bluetooth, WI FI, Technology such as Near Field Communication (NFC).
  • the identifiers of the searched neighboring devices may be returned to the communication unit 1001 in the form of a list.
  • the user equipment of the first user may sort the searched neighboring devices according to a preset rule to generate a neighboring user table of the first user.
  • the preset rules may include, but are not limited to, signal strength, physical distance, and the like. Assume that the user equipment of the first user searches for two neighboring devices, and the identifiers of the neighboring devices that are searched (here, the MAC address is taken as an example) are: 80: b6: 86: 28: 7a: c4 and 00: lc : a4: 55: b6: 8D.
  • the signal with the identifier 80: b6: 86: 28: 7a: c4 is stronger than the signal with the identifier 00: lc: a4: 55: b6: 8D.
  • the obtained adjacent user table can be as shown in Table 1, and will not be described here.
  • the processor 1002 determines a user adjacent to the first user based on the information returned by the first user received by the communication unit 1001.
  • the processor 1002 may directly find the corresponding phase according to the identifier of the device received by the communication unit 1001. The context context record of the neighboring user.
  • the processor 1002 may pre-store the user identifier with the user identifier. In the correspondence between the identifiers of the devices used by the user, the user identifier corresponding to the device identifier received by the communication unit 1001 is found, and then the corresponding environment context record is found according to the found user identifier.
  • the processor 1002 can convert the identifier of the device of the neighboring user sent by the user equipment to the user identifier of the neighboring user according to the correspondence between the identifier of the user and the identifier of the device used by the user.
  • the context-aware platform may convert the neighbor user table as shown in Table 11 to the neighbor user table indicated by the user identifier, if the MAC address is 80: b6: 86: 28: 7a: c4 corresponding to the user equipment
  • the user ID of the context-aware platform is userbSlhuawei.com, and the MAC address is 00: lc: a4: 55: b6:
  • the user of the context-aware platform corresponding to the user equipment of 8D is usercSlgmail.com, and the obtained user identifier can be as Table 2 shows that it will not be described here. 2.
  • the processor 1 002 looks up the environment context record corresponding to the user identifier in the table 12, and searches for the environment context corresponding to the environment context identifier in the found environment context record.
  • the processor 1 002 can sequentially query the environment context corresponding to the environment context identifier in the environment context record of the neighboring user as shown in Table 12 according to the order in Table 12.
  • the processor 1 002 obtains an environment context corresponding to the environment context identifier from the context record of the second user.
  • the communication unit 1 001 is further configured to return an environment context acquired by the processor 1 002 to the application device.
  • the communication unit 1 001 returns the obtained environment context to the application device, and the application device can execute the corresponding application by using the environment context, and return the execution result to the first user equipment.
  • the user may set the sharing permission on the environment context record of the user in the context aware platform 100 to indicate whether the environment context record can be shared, so the user's environment context record is You can also include share permissions.
  • the processor 1 002 is further configured to: determine whether the second user sets the environment context sharing;
  • the context aware platform 100 can also confirm the authenticity of the first user and the second user.
  • the processor 1 002 is further configured to: confirm the authenticity of the first user and the second user adjacent to each other; After confirming that the first user and the second user are in real proximity, performing an operation of acquiring an environment context corresponding to the environment context identifier from the context record of the second user.
  • the processor 1002 may specifically confirm the authenticity of the first user and the second user by:
  • the moving distance of the user in a short time is limited. Therefore, in order to reduce the number of times of searching for neighboring users and the number of interactions with adjacent users, in another embodiment of the present invention, further,
  • the processor 1002 is further configured to save the acquired environment context of the second user in the environment context record of the first user as a temporary environment context of the first user, and set an expiration date for the temporary environment context.
  • the context-aware platform can obtain the environment context of the second user in the same environment as the first user, and provide the first user with the environment context that is missing from the access application device, so that the user obtains the environment context that the user lacks. , can be free from the limitations of smart space, and is highly versatile.
  • a hardware structure diagram of a user equipment 110 includes:
  • At least one communication unit 1101, a processor 1102, a memory 1103, and a bus 1104, the at least one communication unit 1101, the processor 1102, and the memory 1103 are connected by a bus 1104 and complete communication with each other.
  • the bus 1104 may be an Industry Standard Architecture (ISA) bus, a Peripheral Component (PCI) bus, or an extended industry standard architecture (Extended Indus try Standard Architecture, referred to as EISA) bus.
  • ISA Industry Standard Architecture
  • PCI Peripheral Component
  • EISA Extended Indus try Standard Architecture
  • the bus 1104 can be divided into an address bus, a data bus, a control bus, and the like. For ease of representation, only one thick line is shown in Figure 11, but it does not mean that there is only one bus or one type of bus. among them:
  • Memory 1103 is for storing executable program code, the program code including computer operating instructions.
  • the memory 1103 may include a high speed RAM memory and may also include a non-volatile memory such as at least one disk memory. Storage in the storage device: an operating system, an application, a program code for implementing an embodiment of the present invention.
  • the operating system is used to control and implement the processing functions performed by the processing unit.
  • the application contains program code such as word processing software and email software.
  • the memory 1103 is used to store program code that implements the functions of the processor 1102.
  • the processor 1102 may be a central processing unit (CPU), or an application specific integrated circuit (ASIC), or one or more configured to implement the embodiments of the present invention. integrated circuit.
  • CPU central processing unit
  • ASIC application specific integrated circuit
  • the communication unit 1101 is configured to communicate with an external device, specifically for receiving a notification from the context aware platform, and triggering the processor 1102 to perform processing when the notification is identified as indicating that the environment context is missing. Communication unit 1101 can also be used to communicate with other user devices.
  • the context aware platform queries the environment context record of the first user and finds that the environment context in the record is missing, the context aware platform sends a notification indicating that the environment context is missing to the user equipment of the first user.
  • This notification can be implemented by extending the existing PUSH notification, for example, by populating a field indicating a missing context in the PUSH notification.
  • the communication unit 1101 can identify the notification based on the indication in the extension field. If a custom manner is used, the communication unit 1101 can recognize the notification based on the customized message name.
  • the processor 1102 is configured to search for a device adjacent to the user equipment; acquire a missing environment context from the searched neighboring device. For example, the processor 1102 can acquire the identity of the neighboring device in the same environment as the user equipment through the communication unit 1101 using the short-range communication technology.
  • short-range communication technologies include, but are not limited to, technologies such as Bluetooth, WIFI, and Near Field Communication (NFC).
  • technologies such as Bluetooth, WIFI, and Near Field Communication (NFC).
  • the processor 1102 obtains the missing environment context from the searched neighboring devices.
  • the environment context acquired by the processor 1102 is sent to the context-aware platform by the communication unit 1101; or the identification information of the neighboring device searched by the processor 1102 is sent to the context-aware platform through the communication unit 1101, so that the The context aware platform obtains the missing environment context from the environment context record of the user corresponding to the identification information.
  • processor 1102 has two different implementations. A person skilled in the art can select any one of the embodiments of the present invention as needed to implement. The two methods are described in detail below.
  • the processor 1102 When the processor 1102 is configured to obtain a missing environment context from the searched neighboring device, the processor 1102 is specifically configured to:
  • the context-aware platform needs to carry an environment context identifier in the notification sent to the user equipment 40.
  • the processor 1102 When the processor 1102 is configured to send the identifier information of the searched neighboring device to the context-aware platform, the processor 1102 is specifically configured to:
  • the MAC address of the neighboring device may be used as the identifier information of the neighboring device.
  • Pre-set rules may include, but are not limited to, signal strength, physical distance, and the like.
  • the neighboring user table generated by the communication unit 1 1 01 can refer to Table 1, and details are not described herein again.
  • the user equipment 1 1 0 of the embodiment of the present invention can obtain the missing environment context from the neighboring device, thereby providing the context aware platform.
  • the identification information of the neighboring device is sent to the context-aware platform, so that the context-aware platform can obtain the missing environment context from the environment context record of the neighboring device of the user device.
  • the implementation of environmental context sharing between adjacent users in the same environment reduces the limitations of the context of the acquisition environment.
  • the disclosed system, apparatus, and method may be implemented in other manners.
  • the device embodiments described above are merely illustrative.
  • the division of the unit is only a logical function division.
  • there may be another division manner for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored, or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may be physically included separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of hardware plus software functional units.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computational Linguistics (AREA)
  • Computer Security & Cryptography (AREA)
  • Information Transfer Between Computers (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Telephone Function (AREA)
  • Telephonic Communication Services (AREA)

Abstract

本发明实施例提供了一种共享环境上下文方法和装置,使得用户在非智能空间或者在不同的智能空间中访问应用时,也可以获取到用户缺少的环境上下文,通用性强,该方法包括:上下文感知平台接收应用设备发起的获取第一用户的环境上下文的请求,所述请求包括所述第一用户的标识以及环境上下文标识;根据所述第一用户的标识找到所述第一用户的环境上下文记录,在所述第一用户的环境上下文记录中查询与所述环境上下文标识对应的环境上下文;当发现所述环境上下文标识对应的环境上下文缺失时,根据所述环境上下文标识获取与所述第一用户相邻的第二用户的环境上下文;将获取到的环境上下文返回给所述应用设备。

Description

一种共享环境上下文方法和装置
本申请要求 201 3年 11月 11 日递交的申请号为 201 31 0558058. 3、发明名 称为 "一种共享环境上下文方法和装置" 的中国专利申请的优先权, 其全部 内容通过引用结合在本申请中。 技术领域
本发明涉及通信领域, 尤其涉及共享环境上下文方法和装置。 背景技术
环境上下文是指用于描述用户设备所处的环境的信息, 比如, 用户设备 的物理位置、 温度、 湿度、 气压、 噪音、 污染、 从事的活动或资源可用性等 环境相关的信息。 当前, 环境上下文的釆集是实现移动办公的关键技术, 由 于终端设备的多样化, 导致不同的终端具有不同的传感器, 因此单一的终端 无法满足各种应用对环境上下文的需求。
现有技术中提供了一种可以为用户提供各种数据和服务的智能空间。 智 能空间是嵌入了计算设备、 信息设备和多种类型的传感装置的空间。 位于智 能空间内的用户通过特定的控制设备, 或者在手机等设备上安装相应的交互 控制程序或者物理硬件与智能空间的服务器进行通信, 可以方便地获得该智 能空间的各种数据和服务。 例如: 当处于智能空间中的用户访问应用的时候, 如果缺少某个或某些环境上下文, 而该智能空间又具有提供该环境上下文的 传感装置时, 用户可以通过该设备与该智能空间进行交互来获得用户缺少的 环境上下文, 并提供给相应的应用设备, 应用设备根据获得的用户的环境上 下文来执行应用, 并将执行结果发送给用户。
但是, 智能空间是个固定的物理空间, 无法移动, 目前实际应用的智能 空间也非常有限, 用户处于非智能空间访问应用时, 则无法获得用户缺少的 环境上下文。 而且, 目前也无通用的智能空间交互控制程序或物理硬件, 与 不同的智能空间的服务器通信所需要的交互控制程序和物理硬件不同。 因此 基于智能空间的方式来补充用户设备所缺失的环境上下文具有很大的局限 性。 发明内容
本发明的实施例提供一种共享环境上下文方法和装置,使得用户在非 智能空间访问应用时, 也可以获取到用户缺少的环境上下文, 通用性强。
为达到上述目的, 本发明的实施例釆用如下技术方案:
第一方面, 本发明实施例提供了一种上下文感知平台, 包括: 接收单元, 用于接收应用设备发起的获取第一用户的环境上下文的请 求, 所述请求包括所述第一用户的标识以及环境上下文标识;
查询单元, 用于根据所述第一用户的标识找到所述第一用户的环境上 下文记录, 在所述第一用户的环境上下文记录中查询与所述环境上下文标 识对应的环境上下文, 当发现所述环境上下文标识对应的环境上下文缺失 时, 触发获取单元进行处理;
所述获取单元, 用于根据所述环境上下文标识获取与所述第一用户相 邻的第二用户的环境上下文;
发送单元, 用于将所述获取单元获取到的环境上下文返回给所述应用 设备。
在第一方面的第一种可能的实现方式中, 结合第一方面, 所述获取单 元具体包括:
交互模块, 用于确定与所述第一用户相邻的用户;
查找模块, 用于以所述环境上下文标识在所述交互模块确定的与所述 第一用户相邻的用户的环境上下文记录中进行查找;
获取模块, 用于在所述查找模块查找到与所述第一用户相邻的第二用 户具有与所述环境上下文标识对应的环境上下文后, 从所述第二用户的上 下文记录中获取与所述环境上下文标识对应的环境上下文。
在第一方面的第二种可能的实现方式中, 结合第一方面的第一种可能 的实现方式, 所述获取单元还包括: 鉴权模块, 用于确认所述第二用户是否设置了环境上下文共享; 所述获取模块具体用于在所述查找模块查找到与所述第一用户相邻 的第二用户具有与所述环境上下文标识对应的环境上下文, 且所述鉴权模 块确认所述第二用户设置了环境上下文共享后, 执行所述从所述第二用户 的上下文记录中获取与所述环境上下文标识对应的环境上下文的操作。
在第一方面的第三种可能的实现方式中, 结合第一方面或者第一方面 的第二种可能的实现方式, 所述获取单元还包括:
相邻判断模块, 用于确认所述第一用户和所述第二用户相邻的真实 性;
所述获取模块具体用于在所述查找模块查找到与所述第一用户相邻 的第二用户具有与所述环境上下文标识对应的环境上下文, 且所述相邻判 断模块确认所述第一用户和所述第二用户真实相邻后, 执行所述从所述第 二用户的上下文记录中获取与所述环境上下文标识对应的环境上下文的 操作。
在第一方面的第四种可能的实现方式中, 结合第一方面的第三种可能 的实现方式, 所述相邻判断模块具体用于:
向所述第二用户请求与所述第二用户相邻的用户的信息;
接收所述第二用户返回的与所述第二用户相邻的用户的信息; 确认所述第二用户返回的信息中是否包括所述第一用户的信息, 若 是, 则确认所述第一用户和所述第二用户真实相邻, 若否, 则确认所述第 一用户和所述第二用户不相邻。
在第一方面的第五种可能的实现方式中, 结合第一方面, 所述获取单 元具体用于:
向所述第一用户发送表示所述第一用户的环境上下文缺失的通知, 所 述通知中携带所述环境上下文标识;
接收所述第一用户在收到所述通知后从所述第二用户处获取的与所 述环境上下文标识对应的环境上下文。
在第一方面的第六种可能的实现方式中, 结合第一方面或者第一方面 的第一种可能的实现方式至第五种可能的实现方式中的任一项, 所述上下 文感知平台还包括:
保存单元, 用于将获取到的第二用户的环境上下文保存在所述第一用 户的环境上下文记录中作为所述第一用户的临时环境上下文, 并为所述临 时环境上下文设置有效期。
第二方面, 本发明实施例提供了一种用户设备, 其特征在于, 包括: 接收单元,用于接收来自上下文感知平台的通知,并在识别出该通知为 指示环境上下文缺失的通知时, 触发搜索单元进行处理;
所述搜索单元, 用于搜索与所述用户设备相邻的设备;
服务单元, 用于从所述搜索单元搜索到的相邻设备获取缺失的环境上 下文, 并将获取到的环境上下文作为自身的环境上下文发送给所述上下文 感知平台;或者,用于从所述搜索单元获取搜索到的相邻设备的标识信息, 将所述标识信息发送给所述上下文感知平台, 以便所述上下文感知平台从 与所述标识信息对应的用户的环境上下文记录中获取缺失的环境上下文。
在第二方面的第一种可能的实现方式中, 结合第二方面, 所述通知中 携带有环境上下文标识; 当所述服务单元用于从所述搜索单元搜索到的相 邻设备获取缺失的环境上下文时, 所述服务单元具体包括:
请求模块, 用于向搜索到的相邻设备发起共享环境上下文的请求, 所 述共享环境上下文的请求中携带所述环境上下文标识;
接收模块, 用于接收所述相邻设备返回的与所述环境上下文标识对应 的环境上下文;
反馈模块, 用于将接收模块接收到的环境上下文作为自身的环境上下 文发送给所述上下文感知平台。
在第二方面的第二种可能的实现方式中, 结合第二方面, 当所述服务 单元用于将所述搜索单元搜索到的相邻设备的标识信息发送给所述上下 文感知平台时, 所述服务单元具体包括:
获取模块, 用于从所述搜索单元获取搜索到的相邻设备的标识信息; 生成模块, 用于按照预设规则对获取到所述标识信息进行排列, 生成 包含所述标识信息的有序相邻用户表; 发送模块, 用于将所述相邻用户表 发送给所述上下文感知平台。
第三方面, 本发明实施例提供了一种共享环境上下文的方法, 包括: 上下文感知平台接收应用设备发起的获取第一用户的环境上下文的 请求, 所述请求包括所述第一用户的标识以及环境上下文标识;
根据所述第一用户的标识找到所述第一用户的环境上下文记录, 在所 述第一用户的环境上下文记录中查询与所述环境上下文标识对应的环境 上下文;
当发现所述环境上下文标识对应的环境上下文缺失时,根据所述环境 上下文标识获取与所述第一用户相邻的第二用户的环境上下文;
将获取到的环境上下文返回给所述应用设备。
在第三方面的第一种可能的实现方式中, 结合第三方面, 所述根据所 述环境上下文标识获取与所述第一用户相邻的第二用户的环境上下文具 体包括:
所述上下文感知平台确定与所述第一用户相邻的用户;
以所述环境上下文标识在与所述第一用户相邻的用户的环境上下文 记录中进行查找;
当查找到与所述第一用户相邻的第二用户具有与所述环境上下文标 识对应的环境上下文时, 从所述第二用户的上下文记录中获取与所述环境 上下文标识对应的环境上下文。
在第三方面的第二种可能的实现方式中, 结合第三方面的第一种可能 的实现方式, 在从所述第二用户的上下文记录中获取与所述环境上下文标 识对应的环境上下文之前, 所述方法还包括:
所述上下文感知平台确认所述第二用户是否设置了环境上下文共享; 在确认所述第二用户设置了环境上下文共享后,执行所述从所述第二 用户的上下文记录中获取与所述环境上下文标识对应的环境上下文的操 作。
在第三方面的第三种可能的实现方式中, 结合第三方面的第一种可能 的实现方式或者第三方面的第二种可能的实现方式,
在从所述第二用户的上下文记录中获取与所述环境上下文标识对应 的环境上下文之前, 所述方法还包括:
所述上下文感知平台确认所述第一用户和所述第二用户相邻的真实 性;
在确认所述第一用户和所述第二用户真实相邻后,执行所述从所述第 二用户的上下文记录中获取与所述环境上下文标识对应的环境上下文的 操作。
在第三方面的第四种可能的实现方式中, 结合第三方面的第二种可能 的实现方式, 所述上下文感知平台确认所述第一用户和所述第二用户相邻 的真实性具体包括:
所述上下文感知平台向所述第二用户请求与所述第二用户相邻的用 户的信息;
接收所述第二用户返回的与所述第二用户相邻的用户的信息; 所述上下文感知平台确认所述第二用户返回的信息中是否包括所述 第一用户的信息, 若是, 则所述第一用户和所述第二用户真实相邻, 若否, 则所述第一用户和所述第二用户不相邻。
在第三方面的第五种可能的实现方式中, 结合第三方面, 根据所述环 境上下文标识获取与所述第一用户相邻的第二用户的环境上下文, 具体包 括:
所述上下文感知平台向所述第一用户发送表示所述第一用户的环境 上下文缺失的通知, 所述通知中携带所述环境上下文标识;
所述上下文感知平台接收所述第一用户在收到所述通知后从所述第 二用户处获取的与所述环境上下文标识对应的环境上下文。
在第三方面的第六种可能的实现方式中, 结合第三方面的第五种可能 的实现方式, 所述上下文感知平台接收所述第一用户在收到所述通知后从 所述第二用户处获取的与所述环境上下文标识对应的环境上下文, 具体包 括: 所述第一用户在收到所述通知后, 搜索与自身相邻的用户;
向搜索到的相邻用户发起共享环境上下文的请求, 所述共享环境上下 文的请求中携带所述环境上下文标识;
接收与所述第一用户相邻的第二用户返回的与所述环境上下文标识 对应的环境上下文;
将接收到的环境上下文返回给所述上下文感知平台。
在第三方面的第七种可能的实现方式中, 结合第三方面或者第三方面 的第一种可能的实现方式至第三方面的第五种可能的实现方式中的任一 项, 所述方法还包括:
所述上下文感知平台将获取到的第二用户的环境上下文保存在所述 第一用户的环境上下文记录中作为所述第一用户的临时环境上下文, 并为 所述临时环境上下文设置有效期。
第四方面, 本发明实施例提供一种共享环境上下文的方法, 包括: 用户设备接收来自上下文感知平台的通知;
当所述通知指示环境上下文缺失时, 搜索与所述用户设备相邻的设 备;
所述用户设备从搜索到的相邻设备获取缺失的环境上下文, 并将获取 到的环境上下文作为自身的环境上下文发送给所述上下文感知平台; 或 者, 所述用户设备将搜索到的相邻设备的标识信息发送给所述上下文感知 平台, 以便所述上下文感知平台从与所述标识信息对应的环境上下文记录 中获取缺失的环境上下文。
在第四方面的第一种可能的实现方式中, 结合第四方面, 所述通知中 携带有环境上下文标识;
所述用户设备从搜索到的相邻设备中获取缺失的环境上下文, 包括: 所述用户设备向搜索到的相邻设备发起共享环境上下文的请求, 所述 共享环境上下文的请求中携带所述环境上下文标识;
所述用户设备接收所述相邻设备返回的与所述环境上下文标识对应 的环境上下文。 在第四方面的第二种可能的实现方式中, 结合第四方面, 所述用户设 备将搜索到的相邻设备的标识信息发送给所述上下文感知平台具体包括: 所述用户设备获取搜索到的相邻设备的标识信息;
按照预设规则对获取到所述标识信息进行排列, 生成包含所述标识信 息的有序相邻用户表; 本发明实施例中的上下文感知平台能够获取与第一用户相邻的第二 用户的环境上下文, 为第一用户提供其访问应用设备所缺失的环境上下 文, 使得用户在非智能空间, 也可以获取到用户缺少的环境上下文, 通用 性强。 附图说明 实施例或现有技术描述中所需要使用的附图作简单地介绍, 显而易见地, 下面描述中的附图仅仅是本发明的一些实施例, 对于本领域普通技术人员 来讲, 在不付出创造性劳动的前提下, 还可以根据这些附图获得其他的附 图。
图 1为本发明实施例提供的共享环境上下文的系统的结构示意图; 图 2为本发明实施例提供的上下文感知平台的结构示意图;
图 3为本发明另一实施例提供的上下文感知平台的结构示意图; 图 4为本发明实施例提供的用户设备的结构示意图;
图 5A为本发明另一实施例提供的用户设备的结构示意图;
图 5B为本发明另一实施例提供的用户设备的结构示意图;
图 6为本发明实施例提供的共享环境上下文的方法流程图;
图 7为本发明另一实施例提供的共享环境上下文的方法流程图; 图 8为本发明另一实施例提供的共享环境上下文的方法流程图; 图 9为本发明另一实施例提供的共享环境上下文的方法流程图; 图 10为本发明实施例提供的上下文感知平台的硬件机构图; 图 11为本发明实施例提供的用户设备的硬件结构图。
具体实施方式
下面将结合本发明实施例中的附图,对本发明实施例中的技术方 案进行清楚、 完整地描述, 显然, 所描述的实施例仅仅是本发明一部 分实施例, 而不是全部的实施例。 基于本发明中的实施例, 本领域普 通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例, 都属于本发明保护的范围。
环境上下文是与用户设备所处的环境相关的信息, 比如, 物理位 置、 温度, 湿度, 气压, 噪音, 污染, 以及所处场景, 资源可用性等。 而与环境相关的信息在短距离范围内都具有可通用的特性。 也就是 说, 相邻用户的环境上下文通常情况下具有相同的值。 因此, 本发明 实施例提出一种在相邻用户间共享环境上下文的方案, 以降低环境上 下文的获取局限性。 需要说明的是, 本发明实施例中所说的环境是指 用户所在区域的外部条件, 可以包括自然条件, 也可包括所处场景、 资源可用性等其它条件。
图 1为本发明实施例提供的共享环境上下文的系统的架构图,该 系统包括, 上下文感知平台 20 , 应用设备 1 0 , 用户设备 40。
其中, 上下文感知平台 20 负责维护用户的环境上下文记录, 并 提供对环境上下文的查询功能。 应用设备 1 0可从上下文感知平台 20 查询用户的环境上下文。
应用设备 1 0作为功能上的第三方, 可以独立的存在, 也可以配 置于上下文感知平台 20上, 可以基于获取的环境上下文信息执行相 应的应用, 并向用户设备 40发送执行结果。
其中,用户设备 40是用户用于与上下文感知平台 20或者其它用 户设备 40进行通信的设备, 可以为手机等终端。 多个用户设备 40可 以属于一个用户。 用户设备 40可以基于设备中的各类传感器收集环 境上下文信息, 并将收集到环境上下文信息发送给上下文感知平台 20 , 由上下文感知平台进行维护, 以提供对环境上下文信息的查询。 需要说明的是本发明实施例中所涉及的用户的操作都是通过用户使 用的设备来完成的。
上下文感知平台 20在为应用设备 10提供用户的环境上下文时, 若发现用户的环境上下文缺失, 则获取与该用户相邻的用户的环境上 下文提供给应用设备 1 0。
境上下文:
方式一: 上下文感知平台 20 向缺失环境上下文的用户所使用的 用户设备 40发送表示环境上下文缺失的通知。 用户设备 40接收到该 通知后, 搜索与其相邻的用户, 并将相邻用户的信息提供给上下文感 知平台 20。 上下文感知平台 20从相邻用户的环境上下文记录中获取 缺失的环境上下文。
方式二: 上下文感知平台 20 向缺失环境上下文的用户所使用的 用户设备 40发送表示环境上下文缺失的通知, 并在该通知中携带缺 失的环境上下文的标识。 用户设备 40接收到该通知后, 搜索与用户 设备 40相邻的用户。 具体的, 用户设备 40可以通过短距离通信技术 搜索相邻用户, 并从搜索到的相邻用户获取缺失的环境上下文, 将获 取到的环境上下文发送给上下文感知平台 20。
本发明实施例通过增加上下文感知平台来维护用户的环境上下 文, 使应用设备可从上下文感知平台查询用户的环境上下文。 而且, 在用户的环境上下文缺失时, 上下文感知平台能够获取与该用户在同 一环境中的其它用户的环境上下文, 实现了相邻设备间的环境上下文 共享, 补全单一设备的环境上下文信息缺失, 减少了实现上下文感知 应用的局限性。
图 2为本发明实施例提供的上下文感知平台 20的结构示意图。 如图 2 所示, 上下文感知平台 20 可以包括: 接收单元 201 , 查询单 元 202 , 获取单元 203 , 发送单元 204。
接收单元 201 , 用于接收应用设备发起的获取第一用户的环境上 下文的请求, 所述请求包括所述第一用户的标识以及环境上下文标 识。
其中, 第一用户可以通过第一用户的用户设备访问应用设备。 应 用设备可以向上下文感知平台发送获取第一用户的环境上下文的请 求。 该请求包括第一用户的标识以及环境上下文标识。
其中, 用户的标识是用来区分不同用户的识别信息, 在上下文感 知平台中可唯一标识一个用户。 用户的标识可以釆用不同的形式, 包 括但不限于用户用于与上下文感知平台进行交互的用户设备的标识
(如, 用户设备的介质访问控制 ( Media Access Control, 简称 MAC ) 地址) 、 或者无法重复的用户名 (如, 用户的电子邮件 ( E-mail )地 址) 、 或者射频识另 'J码 ( Radio Frequency Identification, 简称 RFID )等。用户可以釆用不同形式的用户标识来访问上下文感知平台, 在此情况下, 上下文感知平台可以保存每个用户不同形式的用户标识 之间的对应关系例如, 当上下文感知平台釆用各用户的电子邮件
( E-mail )地址来组织用户的环境上下文记录时, 上下文感知平台还 可以保存用户的 E-ma i 1与该用户使用的用户设备的 MAC地址之间的 对应关系。 这样, 当用户釆用用户设备的 MAC地址进行访问时, 上下 文感知平台可以通过该对应关系找到用户设备的 MAC 地址对应的 E- mail地址, 从而查找到该 E- ma i 1地址对应的环境上下文记录。 本 领域技术人员可以理解的, 以上只是用户标识的实现形式, 同一用户 可以通过不同类型的标识进行区分。
类似的, 环境上下文标识用于区分不同类型的环境上下文, 通常 可以直接用环境上下文的类型来表示, 例如, 可以为 GPS, 湿度, 温 度, 高度, 气压, 噪音等等。
所以, 由上可知, 第一用户的环境上下文的请求可以向上下文感 知平台指示应用设备请求的哪个用户的哪些环境上下文。 查询单元 202, 用于根据所述第一用户的标识找到所述第一用户 的环境上下文记录,在所述第一用户的环境上下文记录中查询与所述 环境上下文标识对应的环境上下文, 当发现所述环境上下文标识对应 的环境上下文缺失时, 触发获取单元 203进行处理。
其中, 每个用户的环境上下文记录可以包含用户的标识, 环境上 文标识, 环境上下文标识对应的环境上下文。 用户的环境上下文记录 可以保存在数据库或者文件中, 本发明实施例对此不进行限制。
需要说明的是,用户的环境上下文记录可以是上下文感知平台预 先收集并记录的。 其中, 收集的方式可以是上下文感知平台定时向用 户设备查询, 也可以是用户设备定时向上下文感知平台上报。
需要说明的是,智能空间可以作为上下文感应平台管理的一种特 殊用户, 智能空间中的感应设备可以把获取的环境上下文发送给上下 文感应平台, 上下文感应平台可以生成该智能空间的环境上下文记 录。
查询单元 202 可以根据请求中的用户标识查询第一用户的环境 上下文记录, 进而在第一用户的环境上下文记录中查询与请求中的环 境上下文标识对应的环境上下文。
获取单元 203 , 用于根据所述环境上下文标识获取与所述第一用 户相邻的第二用户的环境上下文。
示例性的, 查询单元 202若发现第一用户的环境上下文记录中与 请求中的环境上下文标识对应的环境上下文缺失,说明第一用户的用 户设备未向上下文感知平台发送该环境上下文标识对应的环境上下 文。 在这种情况下, 获取单元 203可以获取与第一用户相邻的第二用 户的环境上下文。
发送单元 204 , 用于将所述获取单元 203获取到的环境上下文返 回给所述应用设备。
发送单元 204将获取到的环境上下文返回给应用设备,应用设备 利用该环境上下文可以执行相应的应用, 并将执行结果返回给第一用 户设备。
其中, 获取单元 203可以通过两种方式获取与第一用户相邻的第 二用户的环境上下文, 下面分别进行说明。
一、 第一种方式:
可以包含以下过程:
1、 获取单元 203 向第一用户发送表示第一用户的环境上下文缺 失的通知, 该通知中携带环境上下文标识。
其中, 该通知中携带的环境上下文标识是第一用户缺失的环境上 下文的标 i只。 第一用户的用户设备在收到该通知后,可以搜索与第一用户的用 户设备相邻的设备, 例如, 可以通过短距离通信技术获取与第一用户 的用户设备在同一环境内的相邻设备的标识; 其中, 短距离通信技术 包括但不限于蓝牙、 WI F I , 近场通信 ( Nea r F i e l d Commun i ca t i on , 简称 NFC ) 等技术。
第一用户的用户设备在搜索到相邻的设备后, 向搜索到的相邻设 备发起共享环境上下文的请求。 该共享环境上下文的请求中携带从上 下文感知平台接收到的环境上下文标识。 其中, 第一用户的用户设备 可以通过短距离通信技术向与第一用户相邻的设备发送共享环境上 下文的请求;
接收到共享环境上下文的请求的设备根据该请求中携带的环境 上下文标识确定其是否具有该环境上下文标识对应的环境上下文; 若确定不具有该环境上下文标识对应的环境上下文,则忽略该请 求;
若确定具有该环境上下文标识对应的环境上下文,则可以将该环 境上下文标识对应的环境上下文发送给第一用户的用户设备。
为了便于描述,本发明实施例中将为第一用户提供环境上下文的 相邻用户称为第二用户。 那么, 为第一用户提供环境上下文的相邻设 备则第二用户使用的设备。
2、 获取单元 203接收第一用户在收到该通知后从第二用户处获 取的与所述环境上下文标识对应的环境上下文。
被搜索到的第二用户的设备确定具有接收到的环境上下文标识 对应的环境上下文后,将该环境上下文标识对应的环境上下文发送给 第一用户的用户设备。 第一用户的用户设备将接收到的环境上下文发 送给上下文感知平台的获取单元 203。
二、 第二种方式:
可以包含以下过程: 获取单元 203确定与第一用户相邻的用户, 并以应用设备发送的请求中携带的环境上下文标识在与第一用户相 邻的用户的环境上下文记录中进行查找, 在查找到与第一用户相邻的 第二用户具有与该环境上下文标识对应的环境上下文后,从第二用户 的上下文记录中获取与该环境上下文标识对应的环境上下文。 如图 3 所示, 获取单元 203可进一步包括: 交互模块 2031, 查找模块 2032, 获取模块 2033。
其中, 交互模块 2031, 用于确定与所述第一用户相邻的用户。 示例性的, 该过程具体可以通过下述方式实现:
交互模块 2031 向第一用户发送表示第一用户的环境上下文缺失 的通知, 并接收第一用户在收到该通知之后返回的与第一用户相邻的 用户的信息。 与第一用户相邻的用户的信息可以是该相邻用户所使用 的设备的标识。
其中, 第一用户的用户设备在接收到通知后, 可以通过短距离通 信技术搜索与该用户设备相邻的设备, 并将搜索到的相邻设备的标识 返回给交互模块 2031, 例如, 将搜索到的相邻设备的 MAC地址返回 给交互模块 2031。 其中, 短距离通信技术包括但不限于蓝牙、 WIFI、 近场通信 ( Near Field Communication, 简称 NFC ) 等技术。
当搜索到的相邻设备有多个时, 可以将搜索到的相邻设备的标识 以列表的形式返回给交互模块 2031。 具体地, 第一用户的用户设备 可以按照预设的规则对搜索到的相邻设备进行排序, 生成第一用户的 相邻用户表。 其中, 预设的规则可以包括但不限于信号强度、 物理距 离等。 假设第一用户的用户设备搜索到两个相邻设备, 且搜索到的相 邻设备的标识 (这里以 MAC地址为例) 分别为: 80: b6: 86: 28: 7a: c4 和 00: lc: a4: 55: b6: 8D。 其中, 标识为 80: b6: 86: 28: 7a: c4的设备的 信号比标识为 00: lc: a4: 55: b6: 8D的设备的信号强。 如表 1所示, 表 1为按信号强度从大到小进行排序后, 得到的相邻用户表:
表 1
Figure imgf000015_0001
交互模块 2031根据所述第一用户返回的信息确定与所述第一用 户相邻的用户。
查找模块 2032, 用于以环境上下文标识在与第一用户相邻的用 户的环境上下文记录中进行查找。
需要说明的是,如果上下文感知平台在组织用户的环境上下文时 釆用的用户标识是用户所使用的设备的标识, 则查找模块 2032 可以 直接根据交互模块 2031 接收到的设备的标识找到对应的相邻用户的 环境上下文记录。
如果上下文感知平台在组织用户的环境上下文时釆用的用户标 识不是用户所使用的设备的标识, 如, 釆用 E-ma i l 地址作为用户标 识, 则查找模块 2032 可以在预先存储的用户标识与该用户使用的设 备的标识的对应关系中, 查找到与交互模块 2031接收到的设备标识 对应的用户标识, 然后根据查找到的用户标识找到对应的环境上下文 记录。
具体的, 查找模块 2032 可以根据用户标识与该用户使用的设备 的标识的对应关系,将收到的用户设备发送的相邻用户的设备的标识 转换成与相邻用户的用户标识。
例如,上下文感知平台可以将如表 1所示的相邻用户表转换为釆 用用户标识表示的相邻用户表, 若 MAC地址为 80: b6: 86: 28: 7a: c4的 用户设备对应的上下文感知平台的用户的标识为 us e rbShuawe i . com, MAC地址为 00: l c: a 4: 55: b6: 8D的用户设备对应的上下文感知平台的 用户的标识为 us er cSlgma i l . com,则获得的用户标识可以如表 2所示: 表 2
Figure imgf000016_0001
查找模块 2032查找表 2 中的用户标识对应的环境上下文记录, 并在查找到环境上下文记录中查找与环境上下文标识对应的的环境 上下文。
例如, 可以根据表 2中的排序, 依次查询如表 2所示的相邻用户 的环境上下文记录中的与环境上下文标识对应的环境上下文。
获取模块 2033 , 用于在查找模块 2032查找到与第一用户相邻的 第二用户具有与所述环境上下文标识对应的环境上下文时,从第二用 户的上下文记录中获取与环境上下文标识对应的环境上下文。
可选的, 在本发明另一实施例中, 用户可以在上下文感知平台
20 中对用户的环境上下文记录设置共享权限, 以表示该环境上下文 记录是否可以共享, 所以, 用户的环境上下文记录中还可以包含共享 权限。
具体地, 参见图 3 , 获取单元 203还可以包括:
鉴权模块 2034 , 用于确认所述第二用户是否设置了环境上下文 共享;
相应的, 获取模块 2033具体用于在查找模块 2032查找到与所述 第一用户相邻的第二用户具有与所述环境上下文标识对应的环境上 下文,且鉴权模块 2034确认所述第二用户设置了环境上下文共享后, 执行所述从所述第二用户的上下文记录中获取与所述环境上下文标 识对应的环境上下文的操作。
可选的, 在本发明另一实施例中, 上下文感知平台 20还可以对 第一用户与第二用户相邻的真实性进行确认。 具体地, 如图 3所示, 获取单元 203还可以进一步包括:
相邻判断模块 2035 , 用于确认所述第一用户和所述第二用户相 邻的真实性;
相应的, 获取模块 2033具体用于, 在所述查找模块 2032查找到 与所述第一用户相邻的第二用户具有与所述环境上下文标识对应的 环境上下文, 且所述相邻判断模块 2035确认所述第一用户和所述第 二用户真实相邻后,执行所述从所述第二用户的上下文记录中获取与 所述环境上下文标识对应的环境上下文的操作。
其中, 所述相邻判断模块 2035 具体可以通过以下方式确认所述 第一用户和所述第二用户相邻的真实性:
向所述第二用户请求与所述第二用户相邻的用户的信息; 接收所述第二用户返回的与所述第二用户相邻的用户的信息; 确认所述第二用户返回的信息中是否包括所述第一用户的信息, 若是, 则所述第一用户和所述第二用户真实相邻, 若否, 则所述第一 用户和所述第二用户不相邻。 需要说明的是,鉴权模块 2034和相邻判断模块 2035都是可选的 功能模块。 当上下文感应平台 20中既包括鉴权模块 2034又包括相邻 判断模块 2035时, 获取模块 2033需在鉴权模块 2034确认所述第二 用户设置了环境上下文共享, 且相邻判断模块 2035 所述第一用户和 所述第二用户真实相邻后,执行从所述第二用户的上下文记录中获取 与所述环境上下文标识对应的环境上下文的操作。 而鉴权模块 2034 和相邻判断模块 2035在执行顺序上并无限定。
通常情况下, 用户在短时间内的移动距离是有限的, 因此, 为了 减少搜索相邻用户的次数, 以及与相邻用户的交互次数, 在本发明另 一实施例中, 如图 3所示, 上下文感知平台 20还可以进一步包括: 保存单元 205 , 用于将获取到的第二用户的环境上下文保存在所 述第一用户的环境上下文记录中作为所述第一用户的临时环境上下 文, 并为所述临时环境上下文设置有效期。
由上可知, 上下文感知平台 20 能够获取与第一用户在同一环境 中的第二用户的环境上下文, 为第一用户提供其访问应用设备所缺失 的环境上下文, 使得用户在获取用户缺少的环境上下文时, 可以不受 智能空间的限制, 通用性强。
图 4为本发明实施例提供的用户设备 40的结构示意图。 参见图 4 , 用户设备 40可以包括: 接收单元 401 , 搜索单元 402 , 以及, 服 务单元 403。
其中, 接收单元 401 , 用于接收来自上下文感知平台的通知,并 在识别出该通知为指示环境上下文缺失的通知时, 触发搜索单元 402 进行处理。
例如, 若上下文感知平台查询第一用户的环境上下文记录, 发现 该记录中环境上下文缺失, 上下文感知平台向第一用户的用户设备发 送指示环境上下文缺失的通知。
该通知可以通过扩展现有的 PUSH通知来实现, 例如, 在 PUSH通 知扩展一个指示环境上下文缺失的字段。 当然, 也可以自定义一条专 f 针对环境上下文缺失的通知消 , 。
如果是扩展现有的 PUSH通知来实现, 接收单元 401 可以根据扩 展字段中的指示来识别该通知。 如果釆用 自定义的方式, 接收单元
401可以根据自定义的消息名称来识别该通知。
搜索单元 402, 用于搜索与所述用户设备相邻的设备。
例如,用户设备可以通过短距离通信技术获取与用户设备在同一 环境内的相邻设备的标识。其中,短距离通信技术包括但不限于蓝牙、 WIFI、 近场通信 ( Near Field Communication, 简称 NFC ) 等技术。
搜索单元 402搜索出与用户设备相邻的设备后,将相邻设备的相 关提供给服务单元 403进行处理。
服务单元 403, 用于从搜索单元 402搜索到的相邻设备获取缺失 的环境上下文, 并将获取到的环境上下文作为自身的环境上下文发送 给所述上下文感知平台; 或者, 用于将搜索单元 402搜索到的相邻设 备的标识信息发送给所述上下文感知平台, 以便所述上下文感知平台 从与所述标识信息对应用户的环境上下文记录中获取缺失的环境上 下文。
需要说明的是, 服务单元 403具有两种不同的实现方式。 本领域 技术人员可以根据需要选择本发明实施例中的任意一种方式来实现。 下面通过图 5A和图 5B对这两种方式分别进行详细的接收。
如图 5A所述, 当所述服务单元 403用于从所述搜索单元 402搜 索到的相邻设备获取缺失的环境上下文时, 服务单元 403具体包括: 请求模块 4031, 用于向搜索到的相邻设备发起共享环境上下文 的请求, 所述共享环境上下文的请求中携带所述环境上下文标识; 接 收模块 4032, 用于接收所述相邻设备返回的与所述环境上下文标识 对应的环境上下文;
反馈模块 4033, 用于将获取到的环境上下文作为自身的环境上 下文发送给所述上下文感知平台。
需要说明的是, 在上述方式中, 上下文感知平台在发送给用户设 备 40的通知中需要携带环境上下文标识。
如图 5B所示, 服务单元 403用于将所述搜索单元 402搜索到的 相邻设备的标识信息发送给所述上下文感知平台时,服务单元 403具 体包括: 获取模块 4 034 , 用于从所述搜索单元 4 02 获取搜索到的相邻设 备的标识信息;
生成模块 4 035 , 用于按照预设规则对获取到所述标识信息进行 排列, 生成包含所述标识信息的有序相邻用户表;
平台 、 . 、 其中, 可以釆用相邻设备的 MAC地址作为相邻设备的标识信息。 预设的规则可以包括但不限于信号强度、物理距离等。 生成模块 4 035 生成的相邻用户表可以参考表 1 , 这里不再赘述。
由上可知, 本发明实施例的用户设备 40 , 可以从相邻设备获取缺 失的环境上下文, 从而提供给上下文感知平台。 也可以选择将相邻设 备的标识信息发送给上下文感知平台,使上下文感知平台可以从该用 户设备的相邻设备的环境上下文记录中获取缺失的环境上下文。 实现 了在同一环境中的相邻用户间的环境上下文共享, 减少了获取环境上 下文的局限性。
图 6为本发明实施例提供共享环境上下文的方法, 参见图 6 , 包 括:
6 01、 上下文感知平台接收应用设备发起的获取第一用户的环境 上下文的请求, 所述请求包括所述第一用户的标识以及环境上下文标 识。
示例性的, 第一用户可以通过第一用户的用户设备访问应用设 备,应用设备可以向上下文感知平台发送获取第一用户的环境上下文 的请求, 该请求包括第一用户的标识以及环境上下文标识;
其中, 用户的标识是用来区分不同用户的识别信息, 在上下文感 知平台中可唯一标识一个用户。 用户的标识可以釆用不同的形式, 包 括但不限于用户用于与上下文感知平台进行交互的用户设备的标识 (如, 用户设备的 MAC ) 地址、 或者无法重复的用户名 (如, 用户的 E-ma i l地址) 、 或者射频识别码 RF I D等。 用户可以釆用不同形式的 用户标识来访问上下文感知平台, 在此情况下, 上下文感知平台可以 保存每个用户不同形式的用户标识之间的对应关系例如, 当上下文感 知平台釆用各用户的 E-ma i l 地址来组织用户的环境上下文记录时, 上下文感知平台还可以保存用户的 E-ma i l 与该用户使用的用户设备 的 MAC地址之间的对应关系。 这样, 当用户釆用用户设备的 MAC地址 进行访问时, 上下文感知平台可以通过该对应关系找到用户设备的 MAC地址对应的 E_ma i 1地址, 从而查找到该 E_ma i 1地址对应的环境 上下文记录。 本领域技术人员可以理解的, 以上只是用户标识的实现 形式, 同一用户可以通过不同类型的标识进行区分。
类似的, 环境上下文标识用于区分不同类型的环境上下文, 通常 可以直接用环境上下文的类型来表示, 例如, 可以为 GPS , 湿度, 温 度, 高度, 气压, 噪音等等。
所以, 由上可知, 第一用户的环境上下文的请求可以向上下文感 知平台指示应用设备请求的哪个用户的哪些环境上下文。
602、 根据所述第一用户的标识找到所述第一用户的环境上下文 记录,在所述第一用户的环境上下文记录中查询与所述环境上下文标 识对应的环境上下文。
其中, 每个用户的环境上下文记录可以包含用户的标识, 环境上 文标识, 环境上下文标识对应的环境上下文。 用户的环境上下文记录 可以保存在数据库或者文件中, 本发明实施例对此不进行限制。
需要说明的是,用户的环境上下文记录可以是上下文感知平台预 先收集并记录的。 其中, 收集的方式可以是上下文感知平台定时向用 户设备查询, 也可以是用户设备定时向上下文感知平台上报。
需要说明的是,智能空间可以作为上下文感应平台管理的一种特 殊用户, 智能空间中的感应设备可以把获取的环境上下文发送给上下 文感应平台, 上下文感应平台可以生成该智能空间的环境上下文记 录。
上下文感知平台可以根据请求中的用户标识查询第一用户的环 境上下文记录, 进而在第一用户的环境上下文记录中查询与请求中的 环境上下文标识对应的环境上下文。
603、 当发现所述环境上下文标识对应的环境上下文缺失时, 根 据所述环境上下文标识获取与所述第一用户相邻的第二用户的环境 上下文。
示例性的, 上下文感知平台若发现第一用户的环境上下文记录中 与请求中的环境上下文标识对应的环境上下文缺失,说明第一用户的 用户设备未向上下文感知平台发送该环境上下文标识对应的环境上 下文。 在这种情况下, 上下文感知平台可以获取与第一用户相邻的第 二用户的环境上下文。
其中, 上下文感知平台可以通过两种方式获取与第一用户相邻的 第二用户的环境上下文, 下面分别进行说明。
一、 第一种方式:
可以包含以下过程:
1、 上下文感知平台向第一用户发送表示第一用户的环境上下文 缺失的通知, 该通知中携带环境上下文标识;
2、 上下文感知平台接收第一用户在收到该通知后从第二用户处 获取的与所述环境上下文标识对应的环境上下文。
其中,上下文感知平台接收第一用户在收到所述通知后从第二用 户处获取的与环境上下文标识对应的环境上下文, 具体可以包括: 第一用户在收到所述通知后, 搜索与自身相邻的用户; 向搜索到的相邻用户发起共享环境上下文的请求, 该共享环境上 下文的请求中携带所述环境上下文标识;
接收与第一用户相邻的第二用户返回的与所述环境上下文标识 对应的环境上下文;
将接收到的环境上下文返回给上下文感知平台。
需要说明的是, 本发明实施例中的用户与用户间都是通过各用户 使用的设备进行交互。 例如, 第一用户使用用户设备来搜索与自身相 邻的用户。在搜索相邻用户的过程中是通过搜索相邻的设备来确定相 邻用户。
二、 第二种方式:
可以包含以下过程:
1、 上下文感知平台确定与所述第一用户相邻的用户。 示例性的, 该过程具体可以通过下述方式实现:
上下文感知平台向第一用户发送表示所述第一用户的环境上下 文缺失的通知; 接收所述第一用户在收到所述通知之后返回的与所述 第一用户相邻的用户的信息; 根据所述第一用户返回的信息确定与所 述第一用户相邻的用户。
其中, 第一用户的用户设备在接收到通知后, 可以通过短距离通 信技术搜索与该用户设备相邻的设备, 并将搜索到的相邻设备的标识 返回给上下文感知平台, 例如, 将搜索到的相邻设备的 MAC地址返回 给上下文感知平台。其中,短距离通信技术包括但不限于蓝牙、 WI F I、 近场通信 ( Nea r F i e l d Commun i ca t i on , 简称 NFC ) 等技术。
当搜索到的相邻设备有多个时, 可以将搜索到的相邻设备的标识 以列表的形式返回给上下文感知平台。 具体地, 第一用户的用户设备 可以按照预设的规则对搜索到的相邻设备进行排序, 生成第一用户的 相邻用户表。 其中, 预设的规则可以包括但不限于信号强度、 物理距 离等。 生成的相邻用户表可以参考表 1 , 这里不再赘述。 2、 上下文 感知平台以环境上下文标识在与第一用户相邻的用户的环境上下文 记录中进行查找。
需要说明的是, 如果上下文感知平台是以用户使用的设备的 MAC 地址作为环境上下记录中的用户标识, 则上下文感知平台可以直接根 据第一用户返回的相邻设备的 MAC 地址查找到的用户标识找到对应 的相邻用户的环境上下文记录。 如果上下文感知平台是以其它标识 (如, 用户的 e-ma i l 地址) 作为环境上下记录中的用户标识, 则上 下文感知平台需要在预先存储的 MAC 地址与其它标识的对应关系来 查找到与接收到的 MAC地址对应的其它标识, 然后 居查找到的其它 找到对应的环境上下文记录。
3、 当查找到与第一用户相邻的第二用户具有与所述环境上下文 标识对应的环境上下文时,从第二用户的上下文记录中获取与环境上 下文标识对应的环境上下文。
604、 将获取到的环境上下文返回给所述应用设备。
上下文感知平台将获取到的环境上下文返回给应用设备,应用设 备利用该环境上下文可以执行相应的应用, 并将执行结果返回给第一 用户设备。
进一步的, 为了提供安全性, 可以对用户间的环境上下文共享进 行权限控制。 具体的, 用户可以在上下文感知平台中对用户的环境上 下文记录设置共享权限, 以表示该环境上下文记录是否可以共享, 所 以, 用户的环境上下文记录还可以包含共享权限。
相应的,在从所述第二用户的上下文记录中获取与所述环境上下 文标识对应的环境上下文之前, 所述方法还可以包括:
上下文感知平台确认所述第二用户是否设置了环境上下文共享; 在确认所述第二用户设置了环境上下文共享后,执行所述从所述 第二用户的上下文记录中获取与所述环境上下文标识对应的环境上 下文的操作。
可选的, 在本发明另一实施例中, 上下文感知平台 20还可以对 对第一用户与第二用户相邻的真实性进行确认。 具体的, 在从所述第 二用户的上下文记录中获取与所述环境上下文标识对应的环境上下 文之前, 所述方法还包括:
所述上下文感知平台确认所述第一用户和所述第二用户相邻的 真实性;
在确认所述第一用户和所述第二用户真实相邻后,执行所述从所 述第二用户的上下文记录中获取与所述环境上下文标识对应的环境 上下文的操作。
其中, 所述上下文感知平台确认所述第一用户和所述第二用户相 邻的真实性具体可以包括:
所述上下文感知平台向所述第二用户请求与所述第二用户相邻 的用户的信息;
接收所述第二用户返回的与所述第二用户相邻的用户的信息; 所述上下文感知平台确认所述第二用户返回的信息中是否包括 所述第一用户的信息, 若是, 则所述第一用户和所述第二用户真实相 邻, 若否, 则所述第一用户和所述第二用户不相邻。 通常情况下, 用户在短时间内的移动距离是有限的。 因此, 为了 减少搜索相邻用户的次数, 以及与相邻用户的交互次数, 在本发明另 一实施例中, 所述方法还可以包括:
所述上下文感知平台将获取到的第二用户的环境上下文保存在 所述第一用户的环境上下文记录中作为所述第一用户的临时环境上 下文, 并为所述临时环境上下文设置有效期。
由上可知, 上下文感知平台能够获取与第一用户在同一环境中的 第二用户的环境上下文, 为第一用户提供其访问应用设备所缺失的环 境上下文, 使得用户在获取用户缺少的环境上下文时, 可以不受智能 空间的限制, 通用性强。
图 7本发明另一实施例提供的共享环境上下文的方法,参见图 7 , 该方法包括:
701、 用户设备接收来自上下文感知平台的通知。
例如, 若上下文感知平台查询第一用户的环境上下文记录, 发现 该记录中环境上下文缺失, 上下文感知平台向第一用户发送环境上下 文缺失的通知, 该通知用于指示环境上下文缺失。
该通知可以通过扩展现有的 PUSH通知来实现, 例如, 在 PUSH通 知扩展一个指示环境上下文缺失的字段。 当然, 也可以自定义一条专 f 针对环境上下文缺失的通知消 , 。
702、 当所述通知指示环境上下文缺失时, 搜索与所述用户设备 相邻的设备。
如果是扩展现有的 PUSH通知来实现, 用户设备可以根据扩展字 段中的指示来识别该通知。 如果釆用自定义的方式, 用户设备可以根 据自定义的消息名称来识别该通知。
用户设备可以通过短距离通信技术获取与用户设备在同一环境 内的相邻设备的标识。 其中, 短距离通信技术包括但不限于蓝牙、 WI F I、 近场通信 ( Nea r F i e l d Commun i ca t i on , 简称 NFC ) 等技术。
703、所述用户设备从搜索到的相邻设备获取缺失的环境上下文, 并将获取到的环境上下文作为自身的环境上下文发送给所述上下文 感知平台; 或者, 所述用户设备将搜索到的相邻设备的标识信息发送 给所述上下文感知平台, 以便所述上下文感知平台从所述相邻设备的 环境上下文记录中获取缺失的环境上下文。
其中, 用户设备既可以从相邻设备获取缺失的环境上下文发送给 环境上下文感应平台,也可以将相邻设备的标识信息发送给上下文感 知平台, 由上下文感知平台根据接收到的标识信息获取缺失的环境上 下文。 下面分别对这两种方式的具体实现做详细介绍。
其中, 由用户设备获取缺失的环境上下文时, 用户设备接收到的 通知中携带环境上下文标识。用户设备从搜索到的相邻设备中获取缺 失的环境上下文, 可以包括:
所述用户设备向搜索到的相邻设备发起共享环境上下文的请求, 所述共享环境上下文的请求中携带所述环境上下文标识;
所述用户设备接收所述相邻设备返回的与所述环境上下文标识 对应的环境上下文。
在另一实现方式中, 用户设备将搜索到的相邻设备的标识信息发 送给所述上下文感知平台具体可以包括:
用户设备获取搜索到的相邻设备的标识信息; 按照预设规则对获 取到所述标识信息进行排列, 生成包含所述标识信息的有序相邻用户
其中, 预设的规则可以包括但不限于信号强度、 物理距离等。 生 成的相邻用户表可参见表 1 , 这里不再赘述。 由上可知, 本发明实施 例提供的共享环境上下文方法能够获取与第一用户在同一环境中的 相邻用户的环境上下文, 为第一用户提供其访问应用设备所缺失的环 境上下文,使得用户在非智能空间也可以获取到用户缺少的环境上下 文, 通用性强。
下面通过具体的场景对本发明实施例提供的方案做进一步详细 的说明。 , 在本实施例中, 假设应用场景为第一用户访问的应用设备 请求上下文感知平台提供的环境上下文为全球定位系统 ( G l oba l Po s i t i on i ng Sys tem, 简称 GPS ) 环境上下文, 参见图 8 , 包括:
801: 用户设备定期或者周期性的向上下文感知平台发送自身的 环境上下文。 8 02: 上下文感知平台将各用户设备发送的环境上下文保存在对 应的用户的环境上下文记录中。
如果用户的环境上下文记录中釆用的用户标识不是用户使用的 用户设备的标识, 上下文感知平台需维护用户和用户设备的对应关 系。 其中, 一个用户可以具有多个用户设备, 用户设备可以为手机等 终端设备。 本实施例中, 假设用户的环境上下文记录中釆用的用户标 识为用户的 E-ma i l地址, 用户使用的设备的标识为设备的 MAC地址, 上下文感知平台维护的用户和用户设备的对应关系如表 1所示,在此 不再赘述。
上下文感知平台根据维护的用户和用户设备的对应关系,将各用 户设备的环境上下文保存为对应的用户的环境上下文记录; 并且设置 各用户的环境上下文记录的共享权限。
8 03: 第一用户的用户设备 A向应用设备发送访问消息。
该访问消息包括第一用户的标识, 以向应用设备指示访问该应用 设备的用户,使得应用设备获取执行第一用户访问的应用所需要的环 境上下文。 本实施例中, 假设第一用户访问的应用需要的环境上下文 为 GPS环境上下文。
8 04: 应用设备向上下文感知平台发送获取第一用户的环境上下 文的请求。
该请求消息包括第一用户的标识和要获取的环境上下文的标识, 其 中 , 第 一用 户 的 标识可以 为 E-ma i 1 地址形 式 , 例如 u s e raShuawe i . com。 环境上下文标识为 GPS。
8 05: 上下文感知平台根据请求消息中的第一用户的标识找到所 述第一用户的环境上下文记录, 在第一用户的环境上下文记录中查询 GPS环境上下文。
本实施例以第一用户缺失 GPS环境上下文为例进行说明。 因此, 步骤 8 05之后执行步骤 806。
8 06: 上下文感知平台向第一用户的用户设备 A发送指示环境上 下文缺失的通知。
例如, 若上下文感知平台查询第一用户的环境上下文记录, 发现 该记录中不存在 GPS环境上下文, 上下文感知平台向第一用户发送环 境上下文缺失的通知。该通知可以通过扩展现有的 PUSH通知来实现, 例如, 在 PUSH通知扩展一个指示环境上下文缺失的字段。 当然, 也 可以自定义一条专门针对环境上下文缺失的通知消息。
807: 用户设备 A搜索与用户设备 A相邻的设备;
例如,第一用户的用户设备 A可以通过短距离通信技术获取与用 户设备 A在同一环境内的相邻用户设备的标识。 其中, 短距离通信技 术包括但不限于蓝牙、 WIFI, 近场通信( Near Field Communication, 简称 NFC) 等技术。
假设搜索到的用户设备 A的相邻用户设备的标识 (MAC地址) 分 别为: 80: b6: 86: 28: 7a: c4和 00: lc: a4: 55: b6: 8D。
用户设备 A 可以按照预设的规则对搜索到的相邻设备的标识进 行排列, 生成第一用户的相邻用户表。 其中, 预设的规则可以包括但 不限于信号强度、 物理距离等。 生成的相邻用户表可参考表 1, 这里 不再赘述。
808: 用户设备 A将搜索到的相邻设备的标识发送至上下文感知 平台;
例如,用户设备 A可以将如表 1所示的相邻用户表发送至上下文 感知平台。
809: 上下文感知平台根据用户设备 A返回的相邻设备的标识确 定与第一用户相邻的用户。
上下文感知平台根据维护的用户与用户设备的对应关系,将收到 的用户设备 A 发送的用户设备的标识转换成环境上下文记录中使用 的标识。
例如, 上下文感知平台可以将如表 1所示的包含 MAC地址的相邻 用户表转换为包含 E-mail地址的相邻用户表。 转换后的相邻用户表 如表 2所示。 810、 上下文感知平台以环境上下文标识在与第一用户 相邻的用户的环境上下文记录中进行查找。
上下文感知平台获取确定出的相邻用户的环境上下文记录,并以 环境上下文标识在与第一用户相邻的用户的环境上下文记录中进行 查找。
例如, 上下文感知平台可以根据表 2中的排序, 依次查询如表 2 所示的相邻用户的环境上下文记录中的 GPS环境上下文。
81 1、 查找到与第一用户相邻的第二用户具有 GPS环境上下文。
812、 上下文感知平台查询第二用户的环境上下文记录中的共享 状态,在确定与第二用户的环境上下文记录为可以共享的状态时再进 行以下的步骤。
81 3: 上下文感知平台确认第二用户与第一用户的相邻真实性。 其中, 该过程可以通过下述步骤实现:
1、 上下文感知平台向所述第二用户请求与所述第二用户相邻的 用户的信息;
第二用户的用户设备 B 在接收到上下文感知平台发送的请求消 息之后,通过短距离通信技术获取与用户设备 B在同一环境中的用户 设备的标识, 并按照预设的规则将与用户设备 B在同一环境中的用户 设备的标识进行排列, 生成用户设备 B的相邻用户设备表(参见表 3 ) 并发送至上下文感知平 台 。 其 中 , 用 户 设备 A 地址为 Be: 76 : 70: 9f : 29 : 72。
表 3
Figure imgf000029_0001
2、 上下文感知平台接收用户设备 Β返回的与第二用户的用户设 备 Β相邻的用户设备的标识;
在本实施例中,上下文感知平台根据维护的用户与用户设备的对 应关系,将如表 3所示的相邻用户设备表转换为表 4所示的相邻用户 表。 表 4
Figure imgf000030_0001
3、 上下文感知平台确认第二用户返回的信息中是否包括第一用 户的信息, 若是, 则第一用户和第二用户真实相邻, 若否, 则第一用 户和第二用户不相邻。
通过查询如表 4 所示的相邻用户表, 可以确定第一用户 useraShuawe i. com与第二用户 userbShuawe i. com在同一环境, 确认 第一用户 useraShuawe i. com与第二用户 userbShuawei. com的相邻真 实性。
814、 从第二用户的上下文记录中获取 GPS环境上下文。
815、 上下文感知平台向应用设备发送 GPS环境上下文。
上下文感知平台可以将第二用户 userbShuawei. com的 GPS环境 上下文设置为第一用户 useraSlhuawei. com的临时 GPS环境上下文, 并设置有效时间, 例如 300秒, 将该临时 GPS环境上下文发送至应用 设备。
816: 应用设备根据该 GPS环境上下文执行应用。
817、 应用设备将执行结果发送给用户设备 A。
本发明实施例中智能空间可以作为一类特殊的用户,本领域技术 人员可以理解, 第一用户在处于智能空间中的情况下, 也可以通过本 实施例提供的技术方案获取其访问的应用设备所缺失的环境上下文。 在此情况下, 第一用户搜索到的相邻设备可以包括智能空间。 用户设 备 A可以釆用基于 RFID的短距离通信技术获取用户设备 A所在的智 能空间的标识, 并生成用户设备 A的相邻用户表。
具体的, 在本发明实施例中, 智能空间的标识可以用该智能空间 的 RFID信息表示, 其 RFID信息可以是一个 512位的二进制序列。 在 如表 5中的用户设备 A的相邻用户设备表中, 智能空间的 RFID通过 idl表示。 表 5
Figure imgf000031_0001
需要说明的是, 对于智能空间这一特殊的用户类型来说, 处于其 中的第一用户可以通过智能空间的 RF I D来区分不同智能空间。 上下 文感知平台也可以使用智能空间的 R F I D作为智能空间的用户标识。 当然, 上下文感知平台也可以为智能空间分配统一的用户名作为该智 能空间在上下文感知平台中的用户标识 (比如, 可以是 E-ma i l 形式 的用户名) , 然后上下文感知平台维护该智能空间的 RF ID与用户名 之间的对应关系。
因此, 对于用户处于智能空间的情况, 同样可以釆用图 8所示实 施例的方案来实现, 这里不再赘述。
本发明实施例提供另一种共享环境上下文的方法,本实施例提供 的方法与图 8所示实施例的方法实现原理相同, 在此只针对不同地方 进行相应的描述, 相同部分不再详述。 如图 9所示, 包括:
901、 用户设备向上下文感知平台发送各自的环境上下文。
902、 上下文感知平台将各用户设备发送的环境上下文保存在对 应用户的环境上下文记录。
903、 第一用户的用户设备 A向应用设备发送访问消息。
904、 应用设备向上下文感知平台发送获取第一用户的环境上下 文的请求。
905、 上下文感知平台根据请求消息中的第一用户的标识找到所 述第一用户的环境上下文记录, 在所述第一用户的环境上下文记录中 查询与所述环境上下文标识对应的环境上下文。
906、 上下文感知平台向第一用户的用户设备 A发送指示环境上 下文缺失的通知。
其中, 该通知中包含缺失的环境上下文的标识。
907、 用户设备 A在收到所述通知后, 搜索与自身相邻的设备。
908、 向搜索到的相邻设备发起共享环境上下文的请求, 所述共 享环境上下文的请求中携带环境上下文标识。
用户设备 A 可以通过短距离通信技术向与相邻设备发送共享环 境上下文的请求。
909、 相邻设备根据所述环境上下文标识确定其具有该环境上下 文标识对应的环境上下文。
若确定不具有该环境上下文标识对应的环境上下文,则忽略该请 求;
若确定具有该环境上下文标识对应的环境上下文,则继续确认该 环境上下文标识对应的环境上下文是否设置为共享状态, 若为共享状 态, 则向用户设备 A返回该环境上下文标识对应的环境上下文。
为了便于描述,本发明实施例中将为第一用户提供环境上下文的 相邻用户称为第二用户。 那么, 为第一用户提供环境上下文的相邻设 备则第二用户使用的设备。
910、 用户设备 A接收第二用户的设备返回的与所述环境上下文 标识对应的环境上下文。
911、 将接收到的环境上下文返回给所述上下文感知平台。
912、 上下文感知平台向应用设备发送环境上下文。
913、 应用设备根据该环境上下文执行应用。
914、 应用设备将执行结果发送给用户设备 A。
由上可知, 上下文感知平台能够获取与第一用户在同一环境中的 第二用户的环境上下文, 为第一用户提供其访问应用设备所缺失的环 境上下文, 使得用户在获取用户缺少的环境上下文时, 可以不受智能 空间的限制, 通用性强。
参见图 10, 为本发明实施例提供的上下文感知平台 100 的硬件 结构图, 包括:
至少一个通信单元 1001、处理器 1002、存储器 1003和总线 1004, 该至少一个通信单元 1001、处理器 1002、存储器 1003通过总线 1004 连接并完成相互间的通信。
该总线 1004 可以是工业标准体系结构 ( Industry Standard Architecture , 简称为 ISA ) 总线、 夕卜部设备互连 ( Peripheral Component, 简称为 PCI ) 总线或扩展工业标准体系结构 (Extended Indus try Standard Architecture, 简称为 EISA ) 总线等。 该总线 1004 可以分为地址总线、 数据总线、 控制总线等。 为便于表示, 图 10 中仅用一条粗线表示, 但并不表示仅有一根总线或一种类型的总 线。 其中:
存储器 1003用于存储可执行程序代码, 该程序代码包括计算机 操作指令。 存储器 1003可能包含高速 RAM存储器, 也可能还包括非 易失性存储器 ( non-volatile memory ) , 例如至少一个磁盘存储器。 存储设备中存储: 操作系统、 应用程序, 用于实现本发明实施例的程 序代码。 操作系统用于控制和实现处理单元执行的处理功能。 应用程 序包含程序代码, 如字处理软件、 email软件。 本发明实施例中, 存 储器 1003可以存储实现处理器 1002的功能的程序代码以及用户的环 境上下文记录。
处理器 1002可能是一个中央处理器( Central Processing Unit, 简称为 CPU ) , 或者是特定集成电路 ( Application Specific Integrated Circuit, 简称为 ASIC) , 或者是被配置成实施本发明 实施例的一个或多个集成电路。
通信单元 1001 用于与外部设备进行通信。 具体可用于接收应用 设备发起的获取第一用户的环境上下文的请求, 所述请求包括所述第 一用户的标识以及环境上下文标识。
其中, 第一用户可以通过第一用户的用户设备访问应用设备。 应 用设备可以向上下文感知平台发送获取第一用户的环境上下文的请 求。 该请求包括第一用户的标识以及环境上下文标识。
其中, 用户的标识是用来区分不同用户的识别信息, 在上下文感 知平台中可唯一标识一个用户。 用户的标识可以釆用不同的形式, 包 括但不限于用户用于与上下文感知平台进行交互的用户设备的标识 (如, 用户设备的介质访问控制 ( Media Access Control, 简称 MAC ) 地址) 、 或者无法重复的用户名 (如, 用户的电子邮件 ( E-mail )地 址) 、 或者射频识另 'J码 ( Radio Frequency Identification, 简称 RFID )等。用户可以釆用不同形式的用户标识来访问上下文感知平台, 在此情况下, 上下文感知平台可以保存每个用户不同形式的用户标识 之间的对应关系。 例如, 当上下文感知平台釆用各用户的电子邮件
( E-ma i l )地址来组织用户的环境上下文记录时, 上下文感知平台还 可以保存用户的 E-ma i 1与该用户使用的用户设备的 MAC地址之间的 对应关系。 这样, 当用户釆用用户设备的 MAC地址进行访问时, 上下 文感知平台可以通过该对应关系找到用户设备的 MAC 地址对应的 E- ma i l地址, 从而查找到该 E- ma i 1地址对应的环境上下文记录。 本 领域技术人员可以理解的, 以上只是用户标识的实现形式, 同一用户 可以通过不同类型的标识进行区分。
类似的, 环境上下文标识用于区分不同类型的环境上下文, 通常 可以直接用环境上下文的类型来表示, 例如, 可以为 GPS , 湿度, 温 度, 高度, 气压, 噪音等等。
所以, 由上可知, 第一用户的环境上下文的请求可以向上下文感 知平台指示应用设备请求的哪个用户的哪些环境上下文。
处理器 1 002 用于, 用于根据所述第一用户的标识找到所述第一 用户的环境上下文记录, 在所述第一用户的环境上下文记录中查询与 所述环境上下文标识对应的环境上下文; 当发现查询所得的所述环境 上下文标识对应的环境上下文缺失时,根据所述环境上下文标识获取 与所述第一用户相邻的第二用户的环境上下文。
其中, 每个用户的环境上下文记录可以包含用户的标识, 环境上 文标识, 环境上下文标识对应的环境上下文。 用户的环境上下文记录 可以保存在数据库或者文件中, 本发明实施例对此不进行限制。
需要说明的是,用户的环境上下文记录可以是上下文感知平台预 先收集并记录的。 其中, 收集的方式可以是上下文感知平台定时向用 户设备查询, 也可以是用户设备定时向上下文感知平台上报。
需要说明的是,智能空间可以作为上下文感应平台管理的一种特 殊用户, 智能空间中的感应设备可以把获取的环境上下文发送给上下 文感应平台, 上下文感应平台可以生成该智能空间的环境上下文记 录。
处理器 1 002可以根据请求中的用户标识查询第一用户的环境上 下文记录, 进而在第一用户的环境上下文记录中查询与请求中的环境 上下文标识对应的环境上下文。
示例性的, 处理器 1002 若发现第一用户的环境上下文记录中与 请求中的环境上下文标识对应的环境上下文缺失,说明第一用户的用 户设备未向上下文感知平台发送该环境上下文标识对应的环境上下 文, 在这种情况下, 处理器 1002 可以获取与第一用户相邻的第二用 户的环境上下文。
其中, 处理器 1002 可以通过两种方式获取与第一用户相邻的第 二用户的环境上下文, 下面分别进行说明。
一、 第一种方式:
可以包含以下过程:
1、 处理器 1002通过通信单元 1001 向第一用户发送表示第一用 户的环境上下文缺失的通知, 该通知中携带环境上下文标识。
其中, 该通知中携带的环境上下文标识是第一用户缺失的环境上 下文的标 i只。
第一用户的用户设备在收到该通知后,可以搜索与第一用户的用 户设备相邻的设备, 例如, 可以通过短距离通信技术获取与第一用户 的用户设备在同一环境内的相邻设备的标识; 其中, 短距离通信技术 包括但不限于蓝牙、 WIFI, 近场通信 ( Near Field Communication, 简称 NFC) 等技术。
第一用户的用户设备在搜索到相邻的设备后, 向搜索到的相邻设 备发起共享环境上下文的请求。 该共享环境上下文的请求中携带从上 下文感知平台接收到的环境上下文标识。 其中, 第一用户的用户设备 可以通过短距离通信技术向与第一用户在同一环境中的相邻设备发 送共享环境上下文的请求。
接收到共享环境上下文的请求的设备根据该请求中携带的环境 上下文标识确定其是否具有该环境上下文标识对应的环境上下文; 若确定不具有该环境上下文标识对应的环境上下文,则忽略该请 求;
若确定具有该环境上下文标识对应的环境上下文,则可以将该环 境上下文标识对应的环境上下文发送给第一用户的用户设备。
为了便于描述,本发明实施例中将为第一用户提供环境上下文的 相邻用户称为第二用户。 那么, 为第一用户提供环境上下文的相邻设 备则第二用户使用的设备。
1、 处理器 1 002通过通信单元 1 001接收第一用户在收到该通知 后从第二用户处获取的与所述环境上下文标识对应的环境上下文。 被搜索到的第二用户的设备确定具有接收到的环境上下文标识 对应的环境上下文后,将该环境上下文标识对应的环境上下文发送给 第一用户的用户设备。 第一用户的用户设备将接收到的环境上下文发 送给上下文感知平台的通信单元 1001 , 上下文感知平台的处理器 1 002通过通信单元 1001接收该第一用户的用户设备发送的环境上下 文。
二、 第二种方式:
可以包含以下过程: 处理器 1 002通过通信单元 1 001确定与第一 用户相邻的用户, 并以应用设备发送的请求中携带的环境上下文标识 在与第一用户相邻的用户的环境上下文记录中进行查找,在查找到与 第一用户相邻的第二用户具有与该环境上下文标识对应的环境上下 文后,从第二用户的上下文记录中获取与该环境上下文标识对应的环 境上下文。 具体可通过下述步骤实现。
1、 处理器 1 002通过通信单元 1 001确定与所述第一用户相邻的 用户;
示例性的, 该过程具体可以通过下述方式实现:
处理器 1002通过通信单元 1001向第一用户发送表示第一用户的 环境上下文缺失的通知, 并通过通信单元 1001 接收第一用户在收到 该通知之后返回的与第一用户相邻的用户的信息。 与第一用户相邻的 用户的信息可以是该相邻用户所使用的设备的标识。
其中, 第一用户的用户设备在接收到通知后, 可以通过短距离通 信技术搜索与该用户设备相邻的设备, 并将搜索到的相邻设备的标识 返回给通信单元 1 001 , 例如, 将搜索到的相邻设备的 MAC地址返回 给通信单元 1 001。 其中, 短距离通信技术包括但不限于蓝牙、 WI F I、 近场通信 ( Near Field Communication, 简称 NFC ) 等技术。
当搜索到的相邻设备有多个时, 可以将搜索到的相邻设备的标识 以列表的形式返回给通信单元 1001。 具体地, 第一用户的用户设备 可以按照预设的规则对搜索到的相邻设备进行排序, 生成第一用户的 相邻用户表。 其中, 预设的规则可以包括但不限于信号强度、 物理距 离等。 假设第一用户的用户设备搜索到两个相邻设备, 且搜索到的相 邻设备的标识 (这里以 MAC地址为例) 分别为: 80: b6: 86: 28: 7a: c4 和 00: lc: a4: 55: b6: 8D。 其中, 标识为 80: b6: 86: 28: 7a: c4的设备的 信号比标识为 00: lc: a4: 55: b6: 8D的设备的信号强。按信号强度从大 到小进行排序后, 得到的相邻用户表可如表 1所示, 在此不再赘述。
处理器 1002根据通信单元 1001接收的所述第一用户返回的信息 确定与所述第一用户相邻的用户。
需要说明的是,如果上下文感知平台在组织用户的环境上下文时 釆用的用户标识是用户所使用的设备的标识, 则处理器 1002 可以直 接根据通信单元 1001接收到的设备的标识找到对应的相邻用户的环 境上下文记录。
如果上下文感知平台在组织用户的环境上下文时釆用的用户标 识不是用户所使用的设备的标识, 如, 釆用 E-mail 地址作为用户标 识, 则处理器 1002 可以在预先存储的用户标识与该用户使用的设备 的标识的对应关系中, 查找到与通信单元 1001 接收到的设备标识对 应的用户标识, 然后根据查找到的用户标识找到对应的环境上下文记 录。
具体的, 处理器 1002可以根据用户标识与该用户使用的设备的 标识的对应关系, 将收到的用户设备发送的相邻用户的设备的标识转 换成与相邻用户的用户标识。
例如, 上下文感知平台可以将如表 11 所示的相邻用户表转换为 釆用用户标识表示的相邻用户表, 若 MAC地址为 80: b6: 86: 28: 7a: c4 的 用 户 设备对应 的 上 下 文感 知 平 台 的 用 户 的 标 识 为 userbSlhuawei. com, MAC地址为 00: lc: a4: 55: b6: 8D的用户设备对应 的上下文感知平台的用户的标识为 usercSlgmail. com, 则获得的用户 标识可以如表 2所示, 在此不再赘述。 2、处理器 1 002查找表 1 2中的用户标识对应的环境上下文记录, 并在查找到环境上下文记录中查找与环境上下文标识对应的的环境 上下文。
例如, 处理器 1 002 可以根据表 1 2 中的排序, 依次查询如表 1 2 所示的相邻用户的环境上下文记录中的与环境上下文标识对应的环 境上下文。
3、 当查找到与第一用户相邻的第二用户具有与所述环境上下文 标识对应的环境上下文时, 处理器 1 002从第二用户的上下文记录中 获取与环境上下文标识对应的环境上下文。
通信单元 1 001还用于,将所述处理器 1 002获取到的环境上下文 返回给所述应用设备。
通信单元 1 001 将获取到的环境上下文返回给应用设备, 应用设 备利用该环境上下文可以执行相应的应用, 并将执行结果返回给第一 用户设备。
可选的, 在本发明另一实施例中, 用户可以在上下文感知平台 1 00中对用户的环境上下文记录设置共享权限, 以表示该环境上下文 记录是否可以共享, 所以, 用户的环境上下文记录中还可以包含共享 权限。
进一步的,
处理器 1 002还可以用于, 确认所述第二用户是否设置了环境上 下文共享;
在确认所述第二用户设置了环境上下文共享后,执行所述从所述 第二用户的上下文记录中获取与所述环境上下文标识对应的环境上 下文的操作。
可选的, 在本发明另一实施例中, 上下文感知平台 1 00还可以对 第一用户与第二用户相邻的真实性进行确认。
进一步的,
处理器 1 002还可以用于, 确认所述第一用户和所述第二用户相 邻的真实性; 在确认所述第一用户和所述第二用户真实相邻后,执行所述从所 述第二用户的上下文记录中获取与所述环境上下文标识对应的环境 上下文的操作。
其中, 处理器 1002 具体可以通过以下方式确认所述第一用户和 所述第二用户相邻的真实性:
通过通信单元 1001 向所述第二用户请求与所述第二用户相邻的 用户的信息;
通过通信单元 1001接收所述第二用户返回的与所述第二用户相 邻的用户的信息;
确认所述第二用户返回的信息中是否包括所述第一用户的信息, 若是, 则所述第一用户和所述第二用户真实相邻, 若否, 则所述第一 用户和所述第二用户不相邻。
通常情况下, 用户在短时间内的移动距离是有限的, 因此, 为了 减少搜索相邻用户的次数, 以及与相邻用户的交互次数, 在本发明另 一实施例中, 进一步的,
处理器 1002还用于, 将获取到的第二用户的环境上下文保存在 所述第一用户的环境上下文记录中作为所述第一用户的临时环境上 下文, 并为所述临时环境上下文设置有效期。
由上可知, 上下文感知平台能够获取与第一用户在同一环境中的 第二用户的环境上下文, 为第一用户提供其访问应用设备所缺失的环 境上下文, 使得用户在获取用户缺少的环境上下文时, 可以不受智能 空间的限制, 通用性强。
参见图 11, 为本发明实施例提供的用户设备 110的硬件结构图, 包括:
至少一个通信单元 1101、处理器 1102、存储器 1103和总线 1104, 该至少一个通信单元 1101、处理器 1102、存储器 1103通过总线 1104 连接并完成相互间的通信。
该总线 1104 可以是工业标准体系结构 ( Industry Standard Architecture , 简称为 ISA ) 总线、 夕卜部设备互连 ( Peripheral Component, 简称为 PCI ) 总线或扩展工业标准体系结构 (Extended Indus try Standard Architecture, 简称为 EISA ) 总线等。 该总线 1104 可以分为地址总线、 数据总线、 控制总线等。 为便于表示, 图 11 中仅用一条粗线表示, 但并不表示仅有一根总线或一种类型的总 线。 其中:
存储器 1103用于存储可执行程序代码, 该程序代码包括计算机 操作指令。 存储器 1103可能包含高速 RAM存储器, 也可能还包括非 易失性存储器 ( non-volatile memory ) , 例如至少一个磁盘存储器。 存储设备中存储: 操作系统、 应用程序, 用于实现本发明实施例的程 序代码。 操作系统用于控制和实现处理单元执行的处理功能。 应用程 序包含程序代码, 如字处理软件、 email软件。 在本发明实施例中, 存储器 1103用于存储实现处理器 1102的功能的程序代码。
处理器 1102可能是一个中央处理器( Central Processing Unit, 简称为 CPU ) , 或者是特定集成电路 ( Application Specific Integrated Circuit, 简称为 ASIC) , 或者是被配置成实施本发明 实施例的一个或多个集成电路。
通信单元 1101 用于与外部设备进行通信, 具体用于接收来自上 下文感知平台的通知,并在识别出该通知为指示环境上下文缺失的通 知时, 触发处理器 1102进行处理。 通信单元 1101还可用于与其它用 户设备通信。
例如, 若上下文感知平台查询第一用户的环境上下文记录, 发现 该记录中环境上下文缺失, 上下文感知平台向第一用户的用户设备发 送指示环境上下文缺失的通知。
该通知可以通过扩展现有的 PUSH通知来实现, 例如, 在 PUSH通 知扩展一个指示环境上下文缺失的字段。 当然, 也可以自定义一条专 f 针对环境上下文缺失的通知消 , 。
如果是扩展现有的 PUSH通知来实现,通信单元 1101可以根据扩 展字段中的指示来识别该通知。 如果釆用 自定义的方式, 通信单元 1101可以根据自定义的消息名称来识别该通知。
处理器 1102用于搜索与所述用户设备相邻的设备; 从搜索到的 相邻设备获取缺失的环境上下文。 例如, 处理器 1102可以釆用短距离通信技术通过通信单元 1101 获取与用户设备在同一环境内的相邻设备的标识。
其中,短距离通信技术包括但不限于蓝牙、 WIFI、近场通信( Near Field Communication, 简称 NFC ) 等技术。
处理器 1102从搜索到的相邻设备获取缺失的环境上下文。
处理器 1102获取到的环境上下文通过通信单元 1101发送给所述 上下文感知平台; 或者, 将处理器 1102搜索到的相邻设备的标识信 息通过通信单元 1101 发送给所述上下文感知平台, 以便所述上下文 感知平台从与所述标识信息对应用户的环境上下文记录中获取缺失 的环境上下文。
需要说明的是, 处理器 1102具有两种不同的实现方式。 本领域 技术人员可以根据需要选择本发明实施例中的任意一种方式来实现。 下面对这两种方式分别进行详细的介绍。
当处理器 1102 用于从搜索到的相邻设备获取缺失的环境上下文 时, 处理器 1102具体用于:
通过通信单元 1101 向搜索到的相邻设备发起共享环境上下文的 请求, 所述共享环境上下文的请求中携带所述环境上下文标识; 以及 通过通信单元 1101接收所述相邻设备返回的与所述环境上下文标识 对应的环境上下文; 以及将获取到的环境上下文作为自身的环境上下 文通过通信单元 1101发送给所述上下文感知平台。
需要说明的是, 在上述方式中, 上下文感知平台在发送给用户设 备 40的通知中需要携带环境上下文标识。
当处理器 1102 用于将搜索到的相邻设备的标识信息发送给所述 上下文感知平台时, 处理器 1102具体用于:
获取搜索到的相邻设备的标识信息;
以及按照预设规则对获取到所述标识信息进行排列, 生成包含所 述标识信息的有序相邻用户表;
以及将所述相邻用户表通过通信单元 1101 发送给所述上下文感 知平台。 其中, 可以釆用相邻设备的 MAC地址作为相邻设备的标识信息。 预设的规则可以包括但不限于信号强度、物理距离等。通信单元 1 1 01 生成的相邻用户表可以参考表 1 , 这里不再赘述。
由上可知, 本发明实施例的用户设备 1 1 0 , 可以从相邻设备获取 缺失的环境上下文, 从而提供给上下文感知平台。 也可以选择将相邻 设备的标识信息发送给上下文感知平台,使上下文感知平台可以从该 用户设备的相邻设备的环境上下文记录中获取缺失的环境上下文。 实 现了在同一环境中的相邻用户间的环境上下文共享, 减少了获取环境 上下文的局限性。
所属领域的技术人员可以清楚地了解到, 为描述的方便和简洁, 上述描述的系统, 装置和单元的具体工作过程, 可以参考前述方法实 施例中的对应过程, 在此不再赘述。
在本申请所提供的几个实施例中, 应该理解到, 所揭露的系统, 装置和方法, 可以通过其它的方式实现。 例如, 以上所描述的装置实 施例仅仅是示意性的, 例如, 所述单元的划分, 仅仅为一种逻辑功能 划分, 实际实现时可以有另外的划分方式, 例如多个单元或组件可以 结合或者可以集成到另一个系统, 或一些特征可以忽略, 或不执行。 另一点, 所显示或讨论的相互之间的耦合或直接耦合或通信连接可以 是通过一些接口, 装置或单元的间接耦合或通信连接, 可以是电性, 机械或其它的形式。
作为分离部件说明的单元可以是或者也可以不是物理上分开的, 作为单元显示的部件可以是或者也可以不是物理单元, 即可以位于一 个地方, 或者也可以分布到多个网络单元上。 可以根据实际的需要选 择其中的部分或者全部单元来实现本实施例方案的目的。 另外,在本发明各个实施例中的各功能单元可以集成在一个处理 单元中, 也可以是各个单元单独物理包括, 也可以两个或两个以上单 元集成在一个单元中。 上述集成的单元既可以釆用硬件的形式实现, 也可以釆用硬件加软件功能单元的形式实现。
本领域普通技术人员可以理解: 实现上述方法实施例的全部或部 分步骤可以通过程序指令相关的硬件来完成, 前述的程序可以存储于 一计算机可读取存储介质中, 该程序在执行时, 执行包括上述方法实 施例的步骤; 而前述的存储介质包括: R0M、 RAM , 磁碟或者光盘等各 种可以存储程序代码的介质。
以上, 仅为本发明的具体实施方式, 但本发明的保护范围并不局限 于此, 任何熟悉本技术领域的技术人员在本发明揭露的技术范围内, 可 轻易想到变化或替换, 都应涵盖在本发明的保护范围之内。 因此, 本发 明的保护范围应以权利要求的保护范围为准。

Claims

权 利 要 求
1、 一种上下文感知平台, 其特征在于, 包括:
接收单元, 用于接收应用设备发起的获取第一用户的环境上下文的请 求, 所述请求包括所述第一用户的标识以及环境上下文标识;
查询单元, 用于根据所述第一用户的标识找到所述第一用户的环境上 下文记录, 在所述第一用户的环境上下文记录中查询与所述环境上下文标 识对应的环境上下文, 当发现所述环境上下文标识对应的环境上下文缺失 时, 触发获取单元进行处理;
所述获取单元, 用于根据所述环境上下文标识获取与所述第一用户相 邻的第二用户的环境上下文;
发送单元, 用于将所述获取单元获取到的环境上下文返回给所述应用 设备。
2、 根据权利要求 1所述的上下文感知平台, 其特征在于, 所述获取单 元具体包括:
交互模块, 用于确定与所述第一用户相邻的用户;
查找模块, 用于以所述环境上下文标识在所述交互模块确定的与所述 第一用户相邻的用户的环境上下文记录中进行查找;
获取模块, 用于在所述查找模块查找到与所述第一用户相邻的第二用 户具有与所述环境上下文标识对应的环境上下文后, 从所述第二用户的上 下文记录中获取与所述环境上下文标识对应的环境上下文。
3、 根据权利要求 2所述的上下文感知平台, 其特征在于, 所述获取单 元还包括:
鉴权模块, 用于确认所述第二用户是否设置了环境上下文共享; 所述获取模块具体用于在所述查找模块查找到与所述第一用户相邻的 第二用户具有与所述环境上下文标识对应的环境上下文, 且所述鉴权模块 确认所述第二用户设置了环境上下文共享后, 执行所述从所述第二用户的 上下文记录中获取与所述环境上下文标识对应的环境上下文的操作。
4、 根据权利要求 2所述的上下文感知平台, 其特征在于, 所述获取单 元还包括:
相邻判断模块, 用于确认所述第一用户和所述第二用户相邻的真实性; 所述获取模块具体用于在所述查找模块查找到与所述第一用户相邻的 第二用户具有与所述环境上下文标识对应的环境上下文, 且所述相邻判断 模块确认所述第一用户和所述第二用户真实相邻后, 执行所述从所述第二 用户的上下文记录中获取与所述环境上下文标识对应的环境上下文的操 作。
5、 根据权利要求 4所述的上下文感知平台, 其特征在于, 所述相邻判 断模块具体用于:
向所述第二用户请求与所述第二用户相邻的用户的信息;
接收所述第二用户返回的与所述第二用户相邻的用户的信息;
确认所述第二用户返回的信息中是否包括所述第一用户的信息, 若是, 则确认所述第一用户和所述第二用户真实相邻, 若否, 则确认所述第一用 户和所述第二用户不相邻。
6、 根据权利要求 1所述的上下文感知平台, 其特征在于, 所述获取单 元具体用于:
向所述第一用户发送表示所述第一用户的环境上下文缺失的通知, 所 述通知中携带所述环境上下文标识;
接收所述第一用户在收到所述通知后从所述第二用户处获取的与所述 环境上下文标识对应的环境上下文。
7、 根据权利要求 1-6任一项所述的上下文感知平台, 其特征在于, 所 述上下文感知平台还包括:
保存单元, 用于将获取到的第二用户的环境上下文保存在所述第一用 户的环境上下文记录中作为所述第一用户的临时环境上下文, 并为所述临 时环境上下文设置有效期。
8、 一种用户设备, 其特征在于, 包括:
接收单元, 用于接收来自上下文感知平台的通知,并在识别出该通知为 指示环境上下文缺失的通知时, 触发搜索单元进行处理;
所述搜索单元, 用于搜索与所述用户设备相邻的设备;
服务单元, 用于从所述搜索单元搜索到的相邻设备获取缺失的环境上 下文, 并将获取到的环境上下文作为自身的环境上下文发送给所述上下文 感知平台;或者,用于从所述搜索单元获取搜索到的相邻设备的标识信息, 将所述标识信息发送给所述上下文感知平台, 以便所述上下文感知平台从 与所述标识信息对应的用户的环境上下文记录中获取缺失的环境上下文。
9、 根据权利要求 8所述的用户设备, 其特征在于, 所述通知中携带有 环境上下文标识; 当所述服务单元用于从所述搜索单元搜索到的相邻设备 获取缺失的环境上下文时, 所述服务单元具体包括:
请求模块, 用于向搜索到的相邻设备发起共享环境上下文的请求, 所 述共享环境上下文的请求中携带所述环境上下文标识;
接收模块, 用于接收所述相邻设备返回的与所述环境上下文标识对应 的环境上下文;
反馈模块, 用于将接收模块接收到的环境上下文作为自身的环境上下 文发送给所述上下文感知平台。
10、 根据权利要求 8所述的用户设备, 其特征在于, 当所述服务单元 用于将所述搜索单元搜索到的相邻设备的标识信息发送给所述上下文感 知平台时, 所述服务单元具体包括:
获取模块, 用于从所述搜索单元获取搜索到的相邻设备的标识信息; 生成模块, 用于按照预设规则对获取到所述标识信息进行排列, 生成 包含所述标识信息的有序相邻用户表; 发送模块, 用于将所述相邻用户表 发送给所述上下文感知平台。
11、 一种共享环境上下文的方法, 其特征在于, 包括:
上下文感知平台接收应用设备发起的获取第一用户的环境上下文的请 求, 所述请求包括所述第一用户的标识以及环境上下文标识;
根据所述第一用户的标识找到所述第一用户的环境上下文记录, 在所 述第一用户的环境上下文记录中查询与所述环境上下文标识对应的环境 上下文;
当发现所述环境上下文标识对应的环境上下文缺失时, 根据所述环境 上下文标识获取与所述第一用户相邻的第二用户的环境上下文;
将获取到的环境上下文返回给所述应用设备。
12、 根据权利要求 11所述的方法, 其特征在于, 所述根据所述环境上 下文标识获取与所述第一用户相邻的第二用户的环境上下文具体包括: 所述上下文感知平台确定与所述第一用户相邻的用户; 以所述环境上下文标识在与所述第一用户相邻的用户的环境上下文记 录中进行查找;
当查找到与所述第一用户相邻的第二用户具有与所述环境上下文标识 对应的环境上下文时, 从所述第二用户的上下文记录中获取与所述环境上 下文标识对应的环境上下文。
13、 根据权利要求 12所述的方法, 其特征在于, 在从所述第二用户的 上下文记录中获取与所述环境上下文标识对应的环境上下文之前, 所述方 法还包括:
所述上下文感知平台确认所述第二用户是否设置了环境上下文共享; 在确认所述第二用户设置了环境上下文共享后, 执行所述从所述第二 用户的上下文记录中获取与所述环境上下文标识对应的环境上下文的操 作。
14、 根据权利要求 12所述的方法, 其特征在于, 在从所述第二用户的 上下文记录中获取与所述环境上下文标识对应的环境上下文之前, 所述方 法还包括:
所述上下文感知平台确认所述第一用户和所述第二用户相邻的真实 性;
在确认所述第一用户和所述第二用户真实相邻后, 执行所述从所述第 二用户的上下文记录中获取与所述环境上下文标识对应的环境上下文的 操作。
15、 根据权利要求 14所述的方法, 其特征在于, 所述上下文感知平台 确认所述第一用户和所述第二用户相邻的真实性具体包括:
所述上下文感知平台向所述第二用户请求与所述第二用户相邻的用户 的信息;
接收所述第二用户返回的与所述第二用户相邻的用户的信息; 所述上下文感知平台确认所述第二用户返回的信息中是否包括所述第 一用户的信息, 若是, 则所述第一用户和所述第二用户真实相邻, 若否, 则所述第一用户和所述第二用户不相邻。
16、 根据权利要求 11所述的方法, 其特征在于, 根据所述环境上下文 标识获取与所述第一用户相邻的第二用户的环境上下文, 具体包括: 所述上下文感知平台向所述第一用户发送表示所述第一用户的环境上 下文缺失的通知, 所述通知中携带所述环境上下文标识;
所述上下文感知平台接收所述第一用户在收到所述通知后从所述第二 用户处获取的与所述环境上下文标识对应的环境上下文。
17、 根据权利要求 16所述的方法, 其特征在于, 所述上下文感知平台 接收所述第一用户在收到所述通知后从所述第二用户处获取的与所述环 境上下文标识对应的环境上下文, 具体包括:
所述第一用户在收到所述通知后, 搜索与自身相邻的用户;
向搜索到的相邻用户发起共享环境上下文的请求, 所述共享环境上下 文的请求中携带所述环境上下文标识;
接收与所述第一用户相邻的第二用户返回的与所述环境上下文标识对 应的环境上下文;
将接收到的环境上下文返回给所述上下文感知平台。
18、 根据权利要求 11-16任一项所述的方法, 其特征在于, 所述方法还 包括:
所述上下文感知平台将获取到的第二用户的环境上下文保存在所述第 一用户的环境上下文记录中作为所述第一用户的临时环境上下文, 并为所 述临时环境上下文设置有效期。
19、 一种共享环境上下文的方法, 其特征在于, 包括:
用户设备接收来自上下文感知平台的通知;
当所述通知指示环境上下文缺失时, 搜索与所述用户设备相邻的设备; 所述用户设备从搜索到的相邻设备获取缺失的环境上下文, 并将获取 到的环境上下文作为自身的环境上下文发送给所述上下文感知平台; 或 者, 所述用户设备将搜索到的相邻设备的标识信息发送给所述上下文感知 平台, 以便所述上下文感知平台从与所述标识信息对应的环境上下文记录 中获取缺失的环境上下文。
20、 根据权利要求 19所述的方法, 其特征在于, 所述通知中携带有环 境上下文标识;
所述用户设备从搜索到的相邻设备中获取缺失的环境上下文, 包括: 所述用户设备向搜索到的相邻设备发起共享环境上下文的请求, 所述 共享环境上下文的请求中携带所述环境上下文标识;
所述用户设备接收所述相邻设备返回的与所述环境上下文标识对应的 环境上下文。
21、 根据权利要求 19所述的方法, 其特征在于, 所述用户设备将搜索 到的相邻设备的标识信息发送给所述上下文感知平台具体包括:
所述用户设备获取搜索到的相邻设备的标识信息;
按照预设规则对获取到所述标识信息进行排列, 生成包含所述标识信 息的有序相邻用户表;
PCT/CN2014/081061 2013-11-11 2014-06-28 一种共享环境上下文方法和装置 WO2015067058A1 (zh)

Priority Applications (4)

Application Number Priority Date Filing Date Title
JP2016529920A JP6251927B2 (ja) 2013-11-11 2014-06-28 環境コンテキストを共有するための方法及び装置
EP14860956.3A EP3057004B1 (en) 2013-11-11 2014-06-28 Method and apparatus for sharing environment context
KR1020167014032A KR101852699B1 (ko) 2013-11-11 2014-06-28 환경 컨텍스트를 공유하기 위한 방법 및 장치
US15/151,704 US10430414B2 (en) 2013-11-11 2016-05-11 Method and apparatus for sharing environment context

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201310558058.3 2013-11-11
CN201310558058.3A CN104639583A (zh) 2013-11-11 2013-11-11 一种共享环境上下文方法和装置

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US15/151,704 Continuation US10430414B2 (en) 2013-11-11 2016-05-11 Method and apparatus for sharing environment context

Publications (1)

Publication Number Publication Date
WO2015067058A1 true WO2015067058A1 (zh) 2015-05-14

Family

ID=53040860

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/081061 WO2015067058A1 (zh) 2013-11-11 2014-06-28 一种共享环境上下文方法和装置

Country Status (6)

Country Link
US (1) US10430414B2 (zh)
EP (1) EP3057004B1 (zh)
JP (1) JP6251927B2 (zh)
KR (1) KR101852699B1 (zh)
CN (1) CN104639583A (zh)
WO (1) WO2015067058A1 (zh)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9456070B2 (en) 2014-09-11 2016-09-27 Ebay Inc. Methods and systems for recalling second party interactions with mobile devices
CN107205264B (zh) 2016-03-18 2020-04-03 北京佰才邦技术有限公司 Ue上下文的共享方法和装置
US10614088B2 (en) 2016-04-11 2020-04-07 International Business Machines Corporation Assessing value of one or more data sets in the context of a set of applications
US11671372B2 (en) * 2016-09-30 2023-06-06 Nokia Solutions And Networks Oy Controlling service function chaining
US20190146637A1 (en) * 2017-11-15 2019-05-16 Rockwell Automation Technologies, Inc. Mobile data snapshots
JP7271589B2 (ja) * 2021-03-19 2023-05-11 ヤフー株式会社 情報処理装置、情報処理方法および情報処理プログラム

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100131265A1 (en) * 2008-11-25 2010-05-27 Nokia Corporation Method, Apparatus and Computer Program Product for Providing Context Aware Queries in a Network
CN102575939A (zh) * 2009-10-01 2012-07-11 高通股份有限公司 协同局部环境进行移动设备定位
US20130005255A1 (en) * 2011-06-29 2013-01-03 Trevor Pering Secure Context-Based Computing
CN102939604A (zh) * 2010-04-02 2013-02-20 诺基亚公司 用于上下文索引的网络资源的方法和装置

Family Cites Families (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160029155A1 (en) * 2001-02-06 2016-01-28 Nexrf, Corp. Context aware relevance engine with client-driven narrative
EP1589727A4 (en) 2003-01-30 2006-05-03 Matsushita Electric Ind Co Ltd MOBILE INFORMATION DEVICE AND COMMUNICATION SYSTEM
JP2009512940A (ja) * 2005-10-21 2009-03-26 フィーバ テクノロジー、インコーポレイテッド データの取得、処理、及び供給、及び/又は、相互運用性機能を含む、ネットワーク運用及び情報処理用のシステム及び方法
US7873710B2 (en) * 2007-02-06 2011-01-18 5O9, Inc. Contextual data communication platform
US20090157804A1 (en) * 2007-12-14 2009-06-18 Research In Motion Limited Method and system for a context aware mechanism in an integrated or distributed configuration
CA2736570A1 (en) * 2008-09-15 2010-03-18 Research In Motion Limited Method and system for resolving indeterminate or inconsistent information for information consumers
CN102224744B (zh) * 2008-10-10 2014-09-03 意大利电信股份公司 用于确定实体的情境的方法和系统
KR101174209B1 (ko) * 2010-06-18 2012-08-14 엔에이치엔(주) 단말의 위치를 획득하는 방법 및 시스템
WO2012022021A1 (en) * 2010-08-16 2012-02-23 Nokia Corporation Method and apparatus for executing device actions based on context awareness
KR20120052683A (ko) * 2010-11-16 2012-05-24 한국전자통신연구원 지능형 서비스를 위한 다자간 상황정보 공유 장치 및 방법
US9978022B2 (en) * 2010-12-22 2018-05-22 Facebook, Inc. Providing context relevant search for a user based on location and social information
US10168413B2 (en) * 2011-03-25 2019-01-01 T-Mobile Usa, Inc. Service enhancements using near field communication
US20130125008A1 (en) * 2011-11-15 2013-05-16 Stremor Corporation Systems And Methods For Providing Content Streams
CN102740228A (zh) 2012-06-21 2012-10-17 北京小米科技有限责任公司 一种位置信息共享方法、装置及系统
US20150334077A1 (en) * 2014-05-16 2015-11-19 Douglas E. Feldman Map-based remarks

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100131265A1 (en) * 2008-11-25 2010-05-27 Nokia Corporation Method, Apparatus and Computer Program Product for Providing Context Aware Queries in a Network
CN102575939A (zh) * 2009-10-01 2012-07-11 高通股份有限公司 协同局部环境进行移动设备定位
CN102939604A (zh) * 2010-04-02 2013-02-20 诺基亚公司 用于上下文索引的网络资源的方法和装置
US20130005255A1 (en) * 2011-06-29 2013-01-03 Trevor Pering Secure Context-Based Computing

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP3057004A4 *

Also Published As

Publication number Publication date
KR101852699B1 (ko) 2018-04-26
JP2017503371A (ja) 2017-01-26
KR20160077162A (ko) 2016-07-01
EP3057004A1 (en) 2016-08-17
EP3057004A4 (en) 2016-10-19
EP3057004B1 (en) 2019-06-19
US20160253388A1 (en) 2016-09-01
JP6251927B2 (ja) 2017-12-27
CN104639583A (zh) 2015-05-20
US10430414B2 (en) 2019-10-01

Similar Documents

Publication Publication Date Title
JP6715978B2 (ja) 軽量iot情報モデル
WO2015067058A1 (zh) 一种共享环境上下文方法和装置
KR101820198B1 (ko) 위치 정보 기반 서비스 처리 방법 및 장치
KR101328779B1 (ko) 이동 단말기, 서버 및 이를 이용한 정보 제공 방법
US20140304381A1 (en) Method and apparatus for communicating with smart objects
US20170311366A1 (en) Method for performing an interaction from a communicating device configured to establish a wireless communication channel and corresponding telecommunication system
TW201204105A (en) Methods and apparatus to authenticate requests for network capabilities for connecting to an access network
US10038743B2 (en) Method and system for user and device management of an IOT network
JP6342509B2 (ja) 未知の番号のマーキング方法及び装置
CN107645789B (zh) 入网的方法、装置及系统
KR101045822B1 (ko) 휴대단말을 이용한 전자명함 처리 방법, 그 시스템 및 그 프로그램을 기록한 컴퓨터 판독 가능한 기록매체
KR101610584B1 (ko) 네트워크 시스템 및 네트워크 연결 방법
WO2014082512A1 (zh) 服务信息提供方法、服务器及系统
WO2015018346A1 (zh) 一种信息处理方法及装置
US9326102B2 (en) Data transmission system, mobile electronic device, and data transmission method via throw gesture
WO2015085573A1 (zh) 一种利用白频谱通信的方法及设备
CN101390365A (zh) 在UPnP搜索服务中发现设备所有者的增强
US20210385783A1 (en) Method and system of wireless device location service
CN106657207B (zh) 用于管理物联网用户和设备的方法和系统
KR102057167B1 (ko) Wlan 상태 정보 서버 및 wlan상태 정보 서버에서의 wlan상태 정보 제공 방법과, 사용자 단말 및 사용자 단말에서의 wlan 상태 정보 획득 방법
JP6161519B2 (ja) 端末管理装置及び方法
JP5735359B2 (ja) 情報配信装置、管理システム、及び情報配信方法
WO2015013984A1 (zh) 不同ott之间的信息查询方法及装置
CN117608751A (zh) 虚拟机克隆方法、虚拟机克隆装置、电子设备及存储介质
CN103888339A (zh) 一种信息发送方法、服务器及电子设备

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 14860956

Country of ref document: EP

Kind code of ref document: A1

REEP Request for entry into the european phase

Ref document number: 2014860956

Country of ref document: EP

WWE Wipo information: entry into national phase

Ref document number: 2014860956

Country of ref document: EP

ENP Entry into the national phase

Ref document number: 2016529920

Country of ref document: JP

Kind code of ref document: A

NENP Non-entry into the national phase

Ref country code: DE

ENP Entry into the national phase

Ref document number: 20167014032

Country of ref document: KR

Kind code of ref document: A