


技术领域technical field
本发明涉及普适计算环境中上下文处理技术领域,特别是涉及一种对等模式普适计算环境中的上下文感知信息的管理和共享的处理系统和方法。The invention relates to the technical field of context processing in a pervasive computing environment, in particular to a processing system and method for managing and sharing context-aware information in a peer-to-peer mode pervasive computing environment.
背景技术Background technique
伴随着计算、通信和内容的相互结合以及计算机微型化、嵌入式的发展趋势,计算模式正向着以人为中心的普适计算(Ubiquitous or PervasiveComputing)模式发展。在普适计算环境下,计算和通信能力将普遍存在并融入到日常生活环境中,信息空间与物理空间将实现融合,人们可以适时适地自由访问环境提供的各种信息和服务,计算机将从人们的视线中消失,人们的注意力将回归到要完成的任务本身。With the combination of computing, communication and content and the development trend of computer miniaturization and embedding, the computing model is developing towards the human-centered Ubiquitous or Pervasive Computing model. In the ubiquitous computing environment, computing and communication capabilities will be ubiquitous and integrated into the daily life environment. People's sight disappears, and people's attention will return to the task to be completed itself.
普适计算环境是一种普遍互连的环境。除当前常见的计算机之间的互联外,各种物体都通过不同方式与其他物体相连。普适计算环境下的网络环境包括各种无线网络、互联网、电话网、电视网等,还包括RFID网络、无线传感器网络、GPS网络等多种不同类型的网络。普适计算网络支持异构环境和多种设备的自动互连,对环境的动态变化具有自适应性,提供无处不在的通信服务。A ubiquitous computing environment is a pervasively interconnected environment. In addition to the current interconnection between computers, various objects are connected to other objects in different ways. The network environment under the ubiquitous computing environment includes various wireless networks, the Internet, telephone networks, television networks, etc., and also includes various types of networks such as RFID networks, wireless sensor networks, and GPS networks. Ubiquitous computing network supports heterogeneous environments and automatic interconnection of various devices, is adaptive to dynamic changes in the environment, and provides ubiquitous communication services.
当前普适计算的热门研究领域包括上下文感知信息处理等。Current popular research areas of ubiquitous computing include context-aware information processing and so on.
上下文感知信息包括时间、位置、场景等环境信息,屏幕大小、处理能力等设备信息以及身份、操作习惯、个人喜好、情绪状态等用户信息。上下文感知信息涉及上下文感知信息获取、上下文感知信息建模、上下文感知信息应用等多个方面的上下文感知信息处理。Context-aware information includes environmental information such as time, location, and scene, device information such as screen size and processing power, and user information such as identity, operating habits, personal preferences, and emotional state. Context-aware information involves context-aware information processing in many aspects, such as context-aware information acquisition, context-aware information modeling, and context-aware information application.
上下文感知信息处理系统通常分为两种:集中模式和对等(Peer-to-peer)模式。Context-aware information processing systems are generally divided into two types: centralized mode and peer-to-peer (Peer-to-peer) mode.
集中模式:上下文感知信息集中在一台服务器中进行处理。具有代表性的系统包括Gaia、PACE、SOCAM以及CoBrA。Centralized mode: Context-aware information is processed centrally in one server. Representative systems include Gaia, PACE, SOCAM, and CoBrA.
对等模式:上下文感知信息分布在用户的设备上进行处理。具有代表性的系统包括Context Toolkit和Confab。Peer-to-peer mode: Context-aware information is distributed on the user's device for processing. Representative systems include Context Toolkit and Confab.
现有的对等模式的上下文感知信息处理系统,例如Context Toolkit,为上下文感知应用的开发提供了统一的开发平台,构造了察觉计算应用的可重用支撑框架。但现有的对等模式的上下文感知信息处理系统,并非以组件级粒度在注册中心注册,而是每个传感器和察觉计算应用通过消息广播发现注册中心并注册,而这种注册-查询方式势必会随着终端数量的增加而大大增加终端间的通信开销,此外也会造成终端节点间传感器注册信息的过度冗余。Existing peer-to-peer context-aware information processing systems, such as Context Toolkit, provide a unified development platform for the development of context-aware applications and construct a reusable support framework for awareness computing applications. However, the existing peer-to-peer context-aware information processing system does not register in the registry at component-level granularity, but each sensor and perception computing application discovers and registers with the registry through message broadcasting, and this registration-query method is bound to As the number of terminals increases, the communication overhead between terminals will be greatly increased, and it will also cause excessive redundancy of sensor registration information between terminal nodes.
发明内容Contents of the invention
本发明所要解决的问题在于提供一种对等模式的上下文感知信息处理系统和方法,其减少系统通信开销和系统存储的冗余性,提供系统的性能。The problem to be solved by the present invention is to provide a peer-to-peer context-aware information processing system and method, which can reduce system communication overhead and system storage redundancy, and improve system performance.
为实现本发明目的而提供的一种对等模式的上下文感知信息处理系统,包括多个以对等模式组成普适计算环境的终端;A peer-to-peer context-aware information processing system provided to achieve the purpose of the present invention includes a plurality of terminals that form a pervasive computing environment in a peer-to-peer mode;
所述终端包括上下文数据库,数据访问代理模块,呈现引擎模块和管理注册中心,其中:The terminal includes a context database, a data access agent module, a presentation engine module and a management registration center, wherein:
所述上下文数据库,用于维护本地终端上经上下文感知推理获得的上下文语义及语义关系的上下文感知信息;The context database is used to maintain context-aware information of context semantics and semantic relations obtained through context-aware reasoning on the local terminal;
所述数据访问代理模块,用于为上下文感知信息访问提供组件,是上下文数据库的访问接口;还用于在本地终端的管理注册中心注册,同时通过对等多播通道在其他终端上的管理注册中心实现注册;注册内容为数据访问代理模块的接口信息;The data access proxy module is used to provide components for context-aware information access, and is an access interface of the context database; it is also used to register in the management registration center of the local terminal, and manage registration on other terminals through the peer-to-peer multicast channel at the same time The center realizes the registration; the registration content is the interface information of the data access proxy module;
所述呈现引擎模块,用于通过查询本地管理注册中心获得已注册的数据访问代理模块的接口信息,再通过所述已注册的数据访问代理模块,对上下文数据库中的上下文感知信息进行查询,同时面向应用需求进行上下文感知信息查询结果呈现;The presentation engine module is used to obtain the interface information of the registered data access proxy module by querying the local management registration center, and then query the context awareness information in the context database through the registered data access proxy module, and at the same time Presentation of context-aware information query results based on application requirements;
所述管理注册中心,用于根据呈现引擎模块的查询要求,查找已注册的数据访问代理模块的接口信息;The management registration center is used to search for the interface information of the registered data access proxy module according to the query requirements of the presentation engine module;
其中,每个终端上的管理注册中心除了维护本终端上的数据访问代理模块与呈现引擎模块之间的交互过程以外,还通过不同终端的管理注册中心之间进行通信实现跨终端的数据访问代理模块远程注册,使得本地终端上的呈现引擎模块可以通过在本地管理注册中心的查询,实现对其他终端上的上下文数据库的访问,进而获得整个网络环境的上下文感知信息数据。Among them, the management registration center on each terminal not only maintains the interaction process between the data access agent module and the presentation engine module on the terminal, but also realizes cross-terminal data access agent through communication between management registration centers of different terminals The remote registration of the module enables the presentation engine module on the local terminal to access the context database on other terminals through the query of the local management registration center, and then obtain the context-aware information data of the entire network environment.
所述以对等模式组成普适计算环境,为Context Toolkit、Confab组网方式组成的普适计算环境。The pervasive computing environment composed of the peer-to-peer mode is a pervasive computing environment composed of Context Toolkit and Confab networking.
为实现本发明目的还提供一种对等模式的上下文感知信息处理方法,包括下列步骤:In order to realize the object of the present invention, a context-aware information processing method in a peer-to-peer mode is also provided, including the following steps:
步骤A,在对等模式的普适计算环境中,将上下文感知信息存储在普适计算环境各终端的上下文数据库中;Step A, in the peer-to-peer pervasive computing environment, storing the context awareness information in the context database of each terminal in the pervasive computing environment;
步骤B,各终端上的数据访问代理模块在本地的管理注册中心注册;所述步骤B包括下列步骤:In step B, the data access agent module on each terminal registers at the local management registration center; said step B includes the following steps:
步骤B1,在终端启动之后,终端的管理注册中心通过多播的上下文管理注册探测消息,探测已经启动的其他终端上的有效管理注册中心,并与这些有效管理注册中心建立对等多播通道;Step B1, after the terminal is started, the management registration center of the terminal detects the effective management registration centers on other terminals that have been started through the multicast context management registration detection message, and establishes a peer-to-peer multicast channel with these effective management registration centers;
步骤B2,终端上的数据访问代理模块通过所述对等多播通道,利用上下文访问代理远程注册消息,在其他终端上的管理注册中心实现注册;Step B2, the data access proxy module on the terminal registers with the management registration center on other terminals by using the context access proxy remote registration message through the peer-to-peer multicast channel;
步骤C,终端的应用系统在进行上下文感知信息查询时,通过所述终端上的呈现引擎模块查询本地的管理注册中心获得已注册的数据访问代理模块的接口信息,再通过所述已注册的数据访问代理模块获取相应的上下文数据库中的上下文感知信息数据;Step C, when the application system of the terminal queries the local management registration center through the presentation engine module on the terminal to obtain the interface information of the registered data access proxy module, and then passes the registered data The access agent module acquires the context-aware information data in the corresponding context database;
其中,各个终端上的管理注册中心除了维护本终端上的数据访问代理模块与呈现引擎模块之间的交互过程以外,还通过不同终端的管理注册中心之间进行通信实现跨终端的数据访问代理模块远程注册,使得本地终端上的呈现引擎模块可以通过在本地管理注册中心的查询,实现对其他终端上的上下文数据库的访问,进而获得整个网络环境的上下文感知信息数据。Among them, the management registration center on each terminal not only maintains the interaction process between the data access agent module and the presentation engine module on the terminal, but also realizes the cross-terminal data access agent module through communication between the management registration centers of different terminals The remote registration enables the presentation engine module on the local terminal to access the context database on other terminals by querying the local management registration center, and then obtain the context-aware information data of the entire network environment.
所述步骤C可以包括下列步骤:Said step C may comprise the following steps:
步骤C1,终端的应用系统在进行上下文感知信息查询时,向呈现引擎模块发出上下文感知信息查询请求消息;Step C1, the application system of the terminal sends a context-aware information query request message to the presentation engine module when performing context-aware information query;
步骤C2,呈现引擎模块向管理注册中心发送上下文访问代理查询消息查询已注册的数据访问代理模块的接口信息;Step C2, the presentation engine module sends a context access proxy query message to the management registration center to query the interface information of the registered data access proxy module;
步骤C3,管理注册中心通过上下文访问代理查询反馈消息向呈现引擎模块反馈已经注册的数据访问代理模块的接口信息;Step C3, the management registration center feeds back the interface information of the registered data access agent module to the presentation engine module through the context access agent query feedback message;
步骤C4,呈现引擎模块根据反馈消息中的接口信息向数据访问代理模块转发应用系统的上下文感知信息查询请求消息;Step C4, the presentation engine module forwards the context-aware information query request message of the application system to the data access agent module according to the interface information in the feedback message;
步骤C5,数据访问代理模块访问相应的上下文数据库;Step C5, the data access proxy module accesses the corresponding context database;
步骤C6,数据访问代理模块通过上下文查询反馈消息将查询到的上下文感知信息反馈到呈现引擎模块;Step C6, the data access proxy module feeds back the context-aware information found to the presentation engine module through the context query feedback message;
步骤C7,呈现引擎模块向终端的应用系统提交查询到的上下文感知信息数据。Step C7, the presentation engine module submits the queried context-aware information data to the application system of the terminal.
所述步骤C7中,所述提交的上下文感知信息数据是以名-值对的形式提交的。In the step C7, the submitted context-aware information data is submitted in the form of a name-value pair.
所述步骤C也可以包括下列步骤:Said step C may also include the following steps:
步骤C1’,终端的应用系统在进行远程上下文感知信息查询时,向呈现引擎模块发出上下文感知信息查询请求消息;Step C1', the application system of the terminal sends a context-aware information query request message to the presentation engine module when performing remote context-aware information query;
步骤C2’,呈现引擎模块通过本地管理注册中心向远程管理注册中心发送上下文访问代理查询消息查询已注册的数据访问代理模块的接口信息;Step C2', the presentation engine module sends a context access proxy query message to the remote management registration center through the local management registration center to query the interface information of the registered data access proxy module;
步骤C3’,远程管理注册中心通过上下文访问代理查询反馈消息,利用本地管理注册中心,向呈现引擎模块反馈已经注册的数据访问代理模块的接口信息;Step C3', the remote management registration center queries the feedback message through the context access agent, and uses the local management registration center to feed back the interface information of the registered data access agent module to the presentation engine module;
步骤C4’,呈现引擎模块根据反馈消息中的已经注册的数据访问代理模块的接口信息向远程数据访问代理模块转发应用系统的上下文感知信息查询请求消息;Step C4', the presentation engine module forwards the context-aware information query request message of the application system to the remote data access agent module according to the interface information of the registered data access agent module in the feedback message;
步骤C5’,远程数据访问代理模块访问相应的远程上下文数据库;Step C5', the remote data access proxy module accesses the corresponding remote context database;
步骤C6’,远程数据访问代理模块通过上下文查询反馈消息将查询到的上下文感知信息反馈到本地呈现引擎模块;Step C6', the remote data access proxy module feeds back the context-aware information found to the local rendering engine module through the context query feedback message;
步骤C7’,本地呈现引擎模块向终端的应用系统提交查询到的上下文感知信息数据。In step C7', the local presentation engine module submits the queried context-aware information data to the application system of the terminal.
本发明的有益效果:本发明的对等模式的上下文感知信息处理系统和方法,针对现有的对等模式的上下文感知信息处理系统存在的缺陷,在终端的管理注册中心之间建立传输信息的广播信道,从而实现开销较少的信息共享,而在远程注册的过程中,只与上下文访问代理接口信息相关,与终端数量成正比,而与终端上的上下文种类和数量无关,因此其相对于现有技术,其减少系统通信开销和系统存储的冗余性,提高系统的性能。Beneficial effects of the present invention: the context-aware information processing system and method of the peer-to-peer mode of the present invention aim at the defects of the existing context-aware information processing system of the peer-to-peer mode, and establish a mechanism for transmitting information between management registration centers of terminals. broadcast channel, so as to achieve information sharing with less overhead, and in the process of remote registration, it is only related to the context access agent interface information, which is proportional to the number of terminals, and has nothing to do with the type and number of contexts on the terminal, so it is relative to In the prior art, it reduces system communication overhead and system storage redundancy, and improves system performance.
附图说明Description of drawings
图1为本发明对等模式的上下文感知信息处理系统示意图;FIG. 1 is a schematic diagram of a context-aware information processing system in a peer-to-peer mode in the present invention;
图2为本发明实施例一对等模式的上下文感知信息处理方法示意图;2 is a schematic diagram of a context-aware information processing method in a peer-to-peer mode according to an embodiment of the present invention;
图3为本发明实施例二对等模式的上下文感知信息处理方法示意图。FIG. 3 is a schematic diagram of a context-aware information processing method in a peer-to-peer mode according to Embodiment 2 of the present invention.
具体实施方式Detailed ways
为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明的一种对等模式的上下文感知信息处理系统和方法进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。In order to make the purpose, technical solution and advantages of the present invention clearer, a peer-to-peer context-aware information processing system and method of the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.
本发明的目的是面向普适计算环境中的分布式的对等(Peer-to-Peer)计算终端环境,实现对等模式的上下文存储、查询和共享,以满足对等模式的上下文感知信息处理的要求。The purpose of the present invention is to face the distributed peer-to-peer (Peer-to-Peer) computing terminal environment in the ubiquitous computing environment, realize the context storage, query and sharing of the peer-to-peer mode, so as to satisfy the context-aware information processing of the peer-to-peer mode requirements.
下面结合附图1~3,对本发明的实施方式和实现过程进行描述。终端的上下文感知信息通过各个终端上的上下文数据库及数据访问代理模块,呈现引擎模块和管理注册中心进行处理,而终端之间的上下文感知信息共享则通过管理注册中心之间的共享通信实现。The implementation and realization process of the present invention will be described below with reference to the accompanying
如图1所示,本发明的对等模式的上下文感知信息处理系统,包括多个以对等模式组成普适计算环境的终端1。As shown in FIG. 1 , the context-aware information processing system in peer-to-peer mode of the present invention includes a plurality of
本发明的系统,在普适计算环境中,全部终端1以对等模式组网,上下文感知信息的计算和管理分布在用户的设备上进行,察觉计算应用请求用户设备获取相关上下文知识。所述以对等模式组成普适计算环境包括但不限于Context Toolkit、Confab组网方式。In the system of the present invention, in the ubiquitous computing environment, all
所述终端1包括上下文数据库11,数据访问代理模块12,呈现引擎模块14和管理注册中心13。The
所述上下文数据库11,用于维护经上下文感知推理获得的上下文语义及语义关系的上下文感知信息。The
对等模式的组网的普适计算环境中,对所获取的上下文感知信息都以上下文数据库存储,其是一种现有技术。本发明对上下文数据库11的实现形式不做特别规定,作为一种可实施方式,常用的嵌入式数据库系统均可以构建出本发明的上下文数据库。In a peer-to-peer networked ubiquitous computing environment, the acquired context awareness information is stored in a context database, which is a prior art. The present invention does not specifically specify the implementation form of the
所述数据访问代理模块12,用于为上下文感知信息访问提供组件,是上下文数据库11的访问接口。The data
数据访问代理模块12提供对数据库中的上下文知识的查询接口。上下文数据库11可以设计为关系数据库。数据访问代理模块通过SQL语言,描述上下文查询需求。The data
具体实现因操作系统、数据库管理系统以及应用系统的不同而不同。例如,在windows平台上采用SQL Server数据库管理系统,在Linux平台上采用MySql数据库管理系统;JAVA应用程序需要通过JDBC进行数据库访问等。但基本原理都是通过SQL语言实现数据库访问。The specific implementation varies with different operating systems, database management systems, and application systems. For example, the SQL Server database management system is used on the Windows platform, and the MySql database management system is used on the Linux platform; JAVA applications need to access the database through JDBC, etc. But the basic principle is to realize database access through SQL language.
所述呈现引擎模块14,用于通过所述数据访问代理模块12,对上下文数据库11中的上下文感知信息进行查询,同时面向应用需求进行上下文感知信息查询结果呈现。The
呈现引擎模块14通过访问数据访问代理模块12,获取上下文数据库11的访问接口,实现上下文感知信息数据查询。The
本发明中,呈现引擎模块14作为对等模式的上下文感知信息处理系统呈现接口模块,转发终端1应用系统的上下文感知信息查询请求,承担上下文感知信息查询结果呈现的功能。In the present invention, the
所述管理注册中心13,用于根据呈现引擎模块14的查询要求,查找相应的数据访问代理模块12的接口信息;同时用于实现终端1之间的注册中心相互发现和互联互通,完成对等终端1之间的上下文感知信息数据共享。The
管理注册中心13维护系统中可访问的上下文数据库11,数据访问代理模块12在管理注册中心13注册,呈现引擎模块14通过查询管理注册中心13,获得可访问的数据访问代理模块12,进而实现对终端1的上下文数据库11的访问。同时为了建立对等终端1之间上下文的互联互通,实现跨终端1的上下文共享,每个终端1上的管理注册中心13除了维护本设备上的数据访问代理模块12与呈现引擎模块14之间的交互过程以外,还承担了终端1间上下文共享通信代理功能。不同终端1的管理注册中心13之间通信的主要目的是实现跨终端1的数据访问代理模块12远程注册,即通过管理注册中心13的互联互通,共享各个终端1的上下文感知信息数据共享,从而实现互联互通,使得本地终端1上的呈现引擎模块14可以通过在管理注册中心13的查询,实现对其他终端1上的上下文数据库11的访问,进而获得整个网络环境的上下文感知信息数据。The
下面详细说明本发明的对等模式的上下文感知信息处理方法,包括下列步骤:The context-aware information processing method of the peer-to-peer mode of the present invention is described in detail below, including the following steps:
实施例一,如图2所示。
步骤S100,在对等模式的普适计算环境中,将上下文感知信息存储在普适计算环境各终端1的上下文数据库11中;Step S100, in the peer-to-peer pervasive computing environment, storing the context awareness information in the
对等模式的组网的普适计算环境中,对所获取的上下文感知信息都以上下文数据库11存储,其是一种现有技术。因此在本发明实施例中不再一一详细描述。In a peer-to-peer networked ubiquitous computing environment, the acquired context awareness information is stored in the
步骤S200,数据访问代理模块12在管理注册中心13注册;Step S200, the data
数据访问代理模块12只有在管理注册中心13注册,才能被需要获取上下文感知信息的管理注册中心13及其他终端1所调用。因此,在每个终端1的管理注册中心13管理的已经注册的数据访问代理模块12是该终端1上的可用上下文访问代理。Only when the data
在终端1的应用系统发出上下文感知信息查询请求之前,通过上下文访问代理注册消息AGENT_REGISTER完成数据访问代理模块12在管理注册中心13的注册;注册内容实际为数据访问代理模块12的访问接口,以供呈现引擎模块14调用。Before the application system of the terminal 1 issues a context-aware information query request, the registration of the data
所述上下文访问代理注册消息如表1所示。The context access proxy registration message is shown in Table 1.
表1上下文访问代理注册消息Table 1 Context Access Proxy Registration Messages
类型:上下文访问代理注册消息AGENT_REGISTER;Type: context access agent registration message AGENT_REGISTER;
长度:消息体字节数;Length: the number of bytes in the message body;
终端地址:终端IP地址;Terminal address: terminal IP address;
访问端口号:上下文访问代理的进程通信端口。Access port number: the process communication port of the context access agent.
呈现引擎模块14需要获得数据访问代理模块12中的接口信息并通过此代理访问上下文数据库。呈现引擎模块是上下文数据访问者,因此不需要在管理注册中心13注册,而只是获取在管理注册中心13注册的数据访问代理模块12的接口信息。The
注册中心中记录的是数据访问代理模块12的接口信息,包括终端地址和访问端口号。呈现引擎模块14查询注册中心,获得数据访问代理模块12的接口信息,包括终端地址和端口号,可以通过网络通信的方式向数据访问代理模块12发送上下文查询请求,进而访问上下文数据库11。What is recorded in the registration center is the interface information of the data
步骤S300,终端1的应用系统在进行上下文感知信息查询时,呈现引擎模块14访问已经注册的数据访问代理模块12,通过所述数据访问代理模块12获取相应的上下文数据库11中的上下文感知信息数据。Step S300, when the application system of the
作为一种可实施方式,具体地,步骤S300包括下列步骤:As an implementable manner, specifically, step S300 includes the following steps:
步骤S310,终端1的应用系统在进行上下文感知信息查询时,向呈现引擎模块14发出上下文感知信息查询请求消息CONTEXT_REQUEST;Step S310, the application system of the
所述上下文感知信息查询请求消息如表2所示,其实际为多个上下文类型或者名称描述。The context-aware information query request message is shown in Table 2, which is actually described by multiple context types or names.
表2上下文感知信息查询请求消息Table 2 Context-aware information query request message
类型:上下文感知信息查询请求消息CONTEXT_REQUEST;Type: context-aware information query request message CONTEXT_REQUEST;
长度:消息体字节数;Length: the number of bytes in the message body;
上下文名n:应用系统所需上下文名称(类型名),如LOCATION,TIME等;Context name n: the context name (type name) required by the application system, such as LOCATION, TIME, etc.;
分隔符:用于分隔上下文名称,本发明采用“:”。Separator: used to separate context names, the present invention uses ":".
步骤S320,呈现引擎模块14向管理注册中心13发送上下文访问代理查询消息AGENT_QUERY查询相应的数据访问代理模块12的接口信息;Step S320, the
所述上下文访问代理查询消息AGENT_QUERY如表3所示。The context access agent query message AGENT_QUERY is shown in Table 3.
表3上下文访问代理查询消息Table 3 Context Access Proxy Query Messages
类型:访问代理查询AGENT_QUERY;Type: access agent query AGENT_QUERY;
长度:由于上下文访问代理查询消息为无消息体消息,因此长度为0;Length: Since the context access proxy query message is a message without message body, the length is 0;
消息体:为空。Message body: empty.
步骤S330,管理注册中心13通过上下文访问代理查询反馈消息AGENT_QUERY_R向呈现引擎模块14反馈步骤S100中描述的已经注册的数据访问代理模块12的接口信息;Step S330, the
所述上下文访问代理查询反馈消息AGENT_QUERY_R如表4所示。The context access agent query feedback message AGENT_QUERY_R is shown in Table 4.
表4上下文访问代理查询反馈消息Table 4 Context Access Proxy Query Feedback Messages
类型:上下文访问代理查询反馈消息AGENT_QUERY_R;Type: Context Access Agent Query Feedback Message AGENT_QUERY_R;
长度:消息体字节数;Length: the number of bytes in the message body;
终端地址:终端IP地址;Terminal address: terminal IP address;
访问端口号:上下文访问代理的进程通信端口。Access port number: the process communication port of the context access agent.
步骤S340,呈现引擎模块14向根据反馈消息中的接口信息向数据访问代理模块12转发应用系统的上下文感知信息查询请求消息;Step S340, the
上下文感知信息查询消息实际是转发步骤S300中的上下文感知信息查询请求消息,因此消息类型为上下文感知信息查询请求消息CONTEXT_QUERY。The context-aware information query message is actually forwarding the context-aware information query request message in step S300, so the message type is the context-aware information query request message CONTEXT_QUERY.
步骤S700,数据访问代理模块12访问相应的上下文数据库11;Step S700, the data
上下文数据库为关系数据库,因此数据访问代理获得并解析上下文查询请求消息CONTEXT_QUERY,将查询语义转化为上下文数据库的SQL(Structured Query Language)查询描述。The context database is a relational database, so the data access agent obtains and parses the context query request message CONTEXT_QUERY, and converts the query semantics into the SQL (Structured Query Language) query description of the context database.
步骤S350,数据访问代理模块12通过上下文查询反馈消息CONTEXT_QUERY_R将查询到的上下文感知信息反馈到呈现引擎模块14;In step S350, the data
所述上下文查询反馈消息CONTEXT_QUERY_R如表5所示。Table 5 shows the context query feedback message CONTEXT_QUERY_R.
表5上下文查询反馈消息Table 5 Context query feedback message
类型:上下文查询反馈消息CONTEXT_QUERY_R;Type: context query feedback message CONTEXT_QUERY_R;
长度:消息体字节数;Length: the number of bytes in the message body;
名n:应用系统所需上下文名称(类型名),如LOCATION,TIME等;Name n: the context name (type name) required by the application system, such as LOCATION, TIME, etc.;
分隔符1:用于分隔上下文名称与上下文值,本发明采用“;”;Separator 1: used to separate the context name and context value, the present invention uses ";";
值n:应用系统所需上下文对应的值;Value n: the value corresponding to the context required by the application system;
分隔符2:用于分隔上下文名一值对,本发明采用“:”。Separator 2: used to separate context name-value pairs, the present invention adopts ":".
步骤S360,呈现引擎模块14以名-值对的形式向终端1的应用系统提交查询到的上下文感知信息数据。In step S360, the
实施例二:Embodiment two:
如图3所示,作为另一种可实施方式,本发明实施例二实现远程终端之间的上下文感知信息查询,本发明实施二的对等模式的上下文感知信息处理方法中的上下文共享构建在各终端的驻留上下文管理基础之上,其通过终端间的共享消息,实现数据访问代理模块12的远程注册,进而完成终端上应用系统对于其他终端中上下文感知信息的查询获取。如图2所示,描述了第二终端上应用系统通过上下文共享访问获取第一终端上的上下文的过程。As shown in FIG. 3 , as another possible implementation mode, Embodiment 2 of the present invention implements context-aware information query between remote terminals. On the basis of the resident context management of each terminal, it realizes the remote registration of the data
在本实施例中,只对与实施例一不同的步骤进行描述,而对相同的步骤不同一一重复描述。In this embodiment, only the steps that are different from the first embodiment are described, and the same steps that are different from each other are repeatedly described.
本发明实施例二的对等模式的上下文感知信息处理方法,在对等模式的普适计算环境的终端启动之后,终端的管理注册中心13通过多播的上下文管理注册探测消息REGCENTER_DETECT,探测已经启动的其他终端上的有效管理注册中心13,并与这些有效管理注册中心13建立对等多播通道。In the context-aware information processing method in the peer-to-peer mode of Embodiment 2 of the present invention, after the terminal in the peer-to-peer mode pervasive computing environment is started, the
管理注册中心13首先发送广播探测消息REGCENTER_DETECT,其他终端上的管理注册中心13接收到该消息,并发送探测响应消息REGCENTER_DETECT_R,这样基于现有的多播连接技术在终端之间建立探测-响应连接关系,为终端之间的上下文访问代理远程注册提供多播通信通道。The
在终端启动之后,终端的管理注册中心13通过多播的上下文管理注册探测消息REGCENTER_DETECT,探测已经启动的其他终端上的有效管理注册中心13,并与这些有效管理注册中心13建立对等多播通道,这是对等终端间实现上下文共享的关键通道。After the terminal is started, the
所述上下文管理注册探测消息REGCENTER_DETECT如表6所示。The context management registration probe message REGCENTER_DETECT is shown in Table 6.
表6上下文管理注册探测消息Table 6 Context management registration probe message
类型:上下文管理注册探测消息REGCENTER_DETECT;Type: context management registration probe message REGCENTER_DETECT;
长度:由于上下文管理注册探测消息为无消息体消息,因此长度为0;Length: Since the context management registration probe message is a message without message body, the length is 0;
消息体:为空。Message body: empty.
第一终端上的数据访问代理模块12在该终端的管理注册中心13注册,同时通过所述对等多播通道,利用上下文访问代理远程注册消息AGENT_REMOTEREGISTER,在第二终端上的管理注册中心13实现注册。The data
所述上下文访问代理远程注册消息AGENT_REMOTEREGISTER如表7所示。The context access agent remote registration message AGENT_REMOTEREGISTER is shown in Table 7.
表7上下文访问代理远程注册消息Table 7 Context Access Proxy Remote Registration Messages
类型:上下文访问代理远程注册消息AGENT_REMOTEREGISTER,用于区分与终端本地的上下文访问代理注册消息;Type: context access agent remote registration message AGENT_REMOTEREGISTER, used to distinguish from the local context access agent registration message of the terminal;
长度:消息体字节数;Length: the number of bytes in the message body;
终端地址:待注册的上下文访问代理所在的终端IP地址;Terminal address: the terminal IP address where the context access agent to be registered is located;
访问端口号:上下文访问代理的进程通信端口。Access port number: the process communication port of the context access proxy.
呈现引擎模块通过管理注册中心获得远程终端的数据访问代理模块12的接口信息,建立第二终端上的呈现引擎模块对第一终端上的上下文感知信息数据的访问通道,并发送访问请求,最终实现远程访问第一终端的上下文感知信息数据。The presentation engine module obtains the interface information of the data
作为一种可实施方式,本发明中的数据通信接口,多播通道等物理链路和通信协议,可以利用本申请人自主研发的智能网络应用协议(IntelligentNetworked Application Protocol,INAP)(见“持普适计算的智能终端服务及设备管理技术研究”,史红周,中国科学院计算技术研究所博士毕业论文,2004年5月)而实现。本发明实施引用其中相关的内容而不再一一重复描述。As a possible implementation mode, the physical links and communication protocols such as the data communication interface and the multicast channel in the present invention can utilize the intelligent network application protocol (Intelligent Networked Application Protocol, INAP) independently developed by the applicant (see "Holding General Computing-friendly intelligent terminal service and equipment management technology research", Shi Hongzhou, doctoral dissertation of Institute of Computing Technology, Chinese Academy of Sciences, May 2004). The implementation of the present invention refers to relevant content therein without repeating description one by one.
本发明的对等模式的上下文感知信息处理系统和方法,具有两个显著的优点:The peer-to-peer context-aware information processing system and method of the present invention have two significant advantages:
1)通信开销小1) Small communication overhead
为了实现终端之间的上下文数据共享,现有的对等模式的上下文感知信息处理系统通常会引入更多的通信开销。本发明针对这一问题,在终端之间实现的是上下文访问代理的远程注册而不是上下文知识本身,由于每个终端维护的上下文知识的数量是巨大的,而数据访问代理模块在每个终端上是唯一的,因此终端之间的远程注册消息是一轻量消息,本发明的通信开销是比较少的。In order to realize context data sharing among terminals, the existing peer-to-peer context-aware information processing systems usually introduce more communication overhead. The present invention aims at this problem, realizes the remote registration of the context access agent between the terminals rather than the context knowledge itself, because the amount of context knowledge maintained by each terminal is huge, and the data access agent module is on each terminal is unique, so the remote registration message between terminals is a lightweight message, and the communication overhead of the present invention is relatively small.
2)存储冗余性低2) Low storage redundancy
本发明的各终端存储和维护终端上下文数据库。由于在终端之间实现的是上下文访问代理的远程注册,因此不需要进行上下文数据信息的同步;此外,在终端失效时,只是关闭了对该终端上下文信息的访问通道,不会影响其他终端之间上下文知道的本地或者远程访问。由于不需要在终端之间同步上下文知识,因此终端只需存储相关上下文,本发明实现了较低的存储冗余性。Each terminal of the present invention stores and maintains a terminal context database. Since the remote registration of the context access agent is implemented between the terminals, there is no need to synchronize the context data information; in addition, when the terminal fails, only the access channel to the context information of the terminal is closed, and it will not affect other terminals. context-aware local or remote access. Since context knowledge does not need to be synchronized between terminals, the terminals only need to store relevant contexts, and the present invention achieves low storage redundancy.
通过结合附图对本发明具体实施例的描述,本发明的其它方面及特征对本领域的技术人员而言是显而易见的。Other aspects and features of the present invention will be apparent to those skilled in the art by describing specific embodiments of the present invention in conjunction with the accompanying drawings.
以上对本发明的具体实施例进行了描述和说明,这些实施例应被认为其只是示例性的,并不用于对本发明进行限制,本发明应根据所附的权利要求进行解释。The specific embodiments of the present invention have been described and illustrated above, and these embodiments should be considered as exemplary only, and are not used to limit the present invention, and the present invention should be interpreted according to the appended claims.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN2008101013906ACN101247312B (en) | 2008-03-05 | 2008-03-05 | Context perception information processing system and method in peer-to-peer mode |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN2008101013906ACN101247312B (en) | 2008-03-05 | 2008-03-05 | Context perception information processing system and method in peer-to-peer mode |
| Publication Number | Publication Date |
|---|---|
| CN101247312A CN101247312A (en) | 2008-08-20 |
| CN101247312Btrue CN101247312B (en) | 2012-02-15 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN2008101013906AExpired - Fee RelatedCN101247312B (en) | 2008-03-05 | 2008-03-05 | Context perception information processing system and method in peer-to-peer mode |
| Country | Link |
|---|---|
| CN (1) | CN101247312B (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US9785987B2 (en) | 2010-04-22 | 2017-10-10 | Microsoft Technology Licensing, Llc | User interface for information presentation system |
| US9043296B2 (en) | 2010-07-30 | 2015-05-26 | Microsoft Technology Licensing, Llc | System of providing suggestions based on accessible and contextual information |
| WO2013105104A2 (en)* | 2011-09-12 | 2013-07-18 | Tata Consultancy Services Limited | A system for dynamic service collaboration through identification and context of plurality of heterogeneous devices |
| CN103248653B (en)* | 2012-02-09 | 2016-06-08 | 联芯科技有限公司 | Based on multi-terminal reconfiguration system and the method for virtual terminal context environmental perception |
| CN105022762A (en)* | 2014-04-30 | 2015-11-04 | 宏达国际电子股份有限公司 | Electronic device and data query method |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1581085A (en)* | 2004-05-15 | 2005-02-16 | 浙江大学 | Member management method for supporting general computation |
| CN1728091A (en)* | 2004-07-26 | 2006-02-01 | 三星电子株式会社 | Apparatus and method for providing context-aware services |
| US20060085750A1 (en)* | 2004-10-19 | 2006-04-20 | International Business Machines Corporation | Intelligent web based help system |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1581085A (en)* | 2004-05-15 | 2005-02-16 | 浙江大学 | Member management method for supporting general computation |
| CN1728091A (en)* | 2004-07-26 | 2006-02-01 | 三星电子株式会社 | Apparatus and method for providing context-aware services |
| US20060085750A1 (en)* | 2004-10-19 | 2006-04-20 | International Business Machines Corporation | Intelligent web based help system |
| Title |
|---|
| 吴华.基于环境/上下文感知的P2P网络的几个关键技术研究.华东师范大学硕士学位论文.2006,全文.* |
| 战照鹏.基于语义Web技术的上下文感知系统构架.计算机工程与应用 14.2005,(14),94-97. |
| 战照鹏.基于语义Web技术的上下文感知系统构架.计算机工程与应用 14.2005,(14),94-97.* |
| 杜桢.普适计算环境中上下文模型的建立.现代计算机(专业版) 10.2007,(10),66-69. |
| 杜桢.普适计算环境中上下文模型的建立.现代计算机(专业版) 10.2007,(10),66-69.* |
| Publication number | Publication date |
|---|---|
| CN101247312A (en) | 2008-08-20 |
| Publication | Publication Date | Title |
|---|---|---|
| US10404601B2 (en) | Load balancing in the internet of things | |
| KR101811966B1 (en) | Mechanisms for semantics publishing and discovery | |
| US8463915B1 (en) | Method for reducing DNS resolution delay | |
| KR101825700B1 (en) | Crawling of m2m devices | |
| US10932110B2 (en) | Method, apparatus and system for use in a web service | |
| US20150264134A1 (en) | Enhanced distributed resource directory | |
| CN101883107B (en) | Method and related device for realizing context perception service application | |
| CN105409248A (en) | Systems and methods for enhanced discovery | |
| CN111786998A (en) | Authority management method and device based on micro-service calling and storage medium | |
| US11283668B2 (en) | Method and apparatus in a web service system | |
| CN110413845B (en) | Resource storage method and device based on Internet of things operating system | |
| CN101616132A (en) | A data acquisition method and its device and system | |
| CN101247312B (en) | Context perception information processing system and method in peer-to-peer mode | |
| CN116320059A (en) | Building protocol data processing method, device and system | |
| CN107872538B (en) | Service processing method, reverse proxy and service server for decoupling TCP long connection | |
| CN105516271A (en) | Business processing system, business processing method and business processing apparatus | |
| WO2018132557A1 (en) | Dynamic protocol switching | |
| CN110139119A (en) | P2P live audio distribution method, device and the storage medium of digit broadcasting system | |
| CN115022392A (en) | IOT-oriented distributed publish-subscribe service method and system | |
| KR20040045149A (en) | Registry system and management method for by using uddi web service based on the ebxml registry | |
| WO2010054554A1 (en) | Method, system and server for centralized management of network service | |
| van der Westhuizen et al. | A framework for provisioning restful services on mobile devices | |
| Lilley | Scalability in an International Naming System | |
| JP2007013804A (en) | Attribute designation communication method and communication apparatus | |
| KR20150095098A (en) | Method for processing data query using information-centric networking |
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| C14 | Grant of patent or utility model | ||
| GR01 | Patent grant | ||
| CF01 | Termination of patent right due to non-payment of annual fee | ||
| CF01 | Termination of patent right due to non-payment of annual fee | Granted publication date:20120215 |