WO2012155539A1 - Method and near field communication network for sharing data and applications in the near field communication network - Google Patents

Method and near field communication network for sharing data and applications in the near field communication network Download PDF

Info

Publication number
WO2012155539A1
WO2012155539A1 PCT/CN2012/070234 CN2012070234W WO2012155539A1 WO 2012155539 A1 WO2012155539 A1 WO 2012155539A1 CN 2012070234 W CN2012070234 W CN 2012070234W WO 2012155539 A1 WO2012155539 A1 WO 2012155539A1
Authority
WO
WIPO (PCT)
Prior art keywords
server
client
data file
application
information
Prior art date
Application number
PCT/CN2012/070234
Other languages
French (fr)
Chinese (zh)
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 中兴通讯股份有限公司
Publication of WO2012155539A1 publication Critical patent/WO2012155539A1/en

Links

Classifications

    • 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/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • 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

Abstract

A method and a near field communication network for sharing data and applications in the near field communication network are provided, wherein the method for sharing data comprises: a client end interacts with a server end which has established near field communication, obtains and displays the identification information of the server end supported data files; when conforming that a user has selected a data file from the data files, the client end transmits to the server end a data sharing request, in which carrying the identification information of the user selected data file; according to the data sharing request; the client end receives the data file, the server end returns the data file corresponding to the identification information carried in the request to the client end. With the above technical solution, the contents of the data sharing and the application sharing in near field communication can be flexibly configured and dynamically expanded, and the shared contents do not need any presetting; the implementation elements of an application can be flexibly configured and the communication devices can fully take their own advantages.

Description

在近场通信网络中共享数据和应用的方法及近场通信网络  Method for sharing data and applications in near field communication network and near field communication network
技术领域 Technical field
本发明涉及近场通信领域, 尤其涉及一种在近场通信网络中共享数据和 应用的方法及近场通信网络。  The present invention relates to the field of near field communication, and more particularly to a method and a near field communication network for sharing data and applications in a near field communication network.
背景技术 Background technique
在物联网广泛发展的未来, 每个设备都可以被看作一个能够对外提供一 定服务的智能终端, 因此服务的发布和获取的需求会日益增加。 比如, 一个 电话机可以获取电影媒体数据或直接播放电影, 但由于其显示设备受到很大 限制, 则它可以将这个功能作为服务来提供, 而另一个具有合适的显示设备 的终端则可以通过与该电话机建立连接来获取该服务, 从而观看电影。  In the future of the widespread development of the Internet of Things, each device can be regarded as a smart terminal that can provide certain services to the outside world, so the demand for service release and acquisition will increase. For example, a telephone can acquire movie media data or play a movie directly, but because its display device is greatly limited, it can provide this function as a service, and another terminal with a suitable display device can pass The phone establishes a connection to obtain the service and thereby watch the movie.
目前物联网釆用的技术主要是数据共享, 对于上例也就是利用电话机获 取电影媒体数据的服务。 以这个应用场景为例, 播放视频需要三个必备条件: 能够获取到多媒体数据、 配置有显示设备及具备处理多媒体数据的能力。 现 有方式限制了支持的场景, 必须要求配置有显示设备的终端同时支持多媒体 数据处理功能才可以使用。 比如, 对于电视来讲, 它虽然具有显示功能, 但 理, 所以即使电话机支持该多媒体数据的处理功能, 但该电视依然无法正常 播放该视频, 因此这种方式在使用上就会受到很大的限制。 而且, 数据共享 环节和处理环节必须预先定制, 几乎不能动态扩展。  At present, the technology used in the Internet of Things is mainly data sharing. For the above example, it is a service that uses a telephone to obtain movie media data. Taking this application scenario as an example, playing video requires three prerequisites: the ability to acquire multimedia data, configure display devices, and have the ability to process multimedia data. The existing method limits the supported scenarios. It is required that the terminal configured with the display device supports the multimedia data processing function at the same time. For example, for a TV, although it has a display function, it is reasonable, so even if the telephone supports the processing function of the multimedia data, the television still cannot play the video normally, so this method will be greatly used in use. limits. Moreover, the data sharing and processing links must be pre-customized and can hardly be dynamically expanded.
发明内容 Summary of the invention
本发明的目的在于提供一种在近场通信网络中共享数据和应用的方法及 近场通信网络, 以支持动态扩展、 支持数据共享也支持应用共享。  It is an object of the present invention to provide a method and near field communication network for sharing data and applications in a near field communication network to support dynamic expansion, support for data sharing, and application sharing.
为解决上述问题, 釆用如下技术方案:  In order to solve the above problems, the following technical solutions are used:
一种在近场通信网络中共享数据的方法, 包括:  A method of sharing data in a near field communication network, comprising:
客户端与已建立近场通信的服务端交互, 获取并显示所述服务端支持的 数据文件的标识信息; The client interacts with the server that has established the near field communication, acquires and displays the supported by the server. Identification information of the data file;
在确认用户从所述服务端支持的数据文件中选择一数据文件时, 所述客 户端向所述服务端发送共享数据请求, 其中携带所述用户选择的数据文件的 标识信息;  When the user is selected to select a data file from the data file supported by the server, the client sends a shared data request to the server, where the identifier information of the data file selected by the user is carried;
所述服务端根据所述共享数据请求, 向所述客户端返回与所述共享数据 请求中携带的标识信息对应的数据文件;  And the server returns a data file corresponding to the identifier information carried in the shared data request to the client according to the shared data request;
所述客户端接收所述数据文件。  The client receives the data file.
该方法还包括:  The method also includes:
所述客户端接收到所述数据文件后, 在用户的选择下启用对应的本地应 用对所述数据文件进行处理并显示。  After receiving the data file, the client enables the corresponding local application to process and display the data file under the user's selection.
该方法还包括:  The method also includes:
所述客户端在与所述服务端交互时, 还获取所述服务端支持的数据文件 的描述信息;  And the client further acquires description information of the data file supported by the server when interacting with the server;
所述客户端接收到所述数据文件后, 根据所述数据文件的描述信息中的 类型信息, 自行选择相应的本地应用对所述数据文件进行处理并显示。  After receiving the data file, the client selects a corresponding local application to process and display the data file according to the type information in the description information of the data file.
该方法还包括:  The method also includes:
当用户选择的数据文件是由连续的数据流构成时, 所述客户端在启动本 地应用对该数据文件进行处理显示后,再次向所述服务端发送共享数据请求; 所述服务端处理该共享数据请求并提供新的数据文件, 循环往复直到所述客 户端确认所述用户关闭所述本地应用。  When the data file selected by the user is composed of a continuous data stream, the client sends a shared data request to the server again after starting the local application processing and displaying the data file; the server processes the sharing The data requests and provides a new data file, looping back until the client confirms that the user closes the local application.
一种在近场通信网络中共享应用的方法, 包括:  A method of sharing an application in a near field communication network, comprising:
客户端与已建立近场通信的服务端交互, 获取并显示所述服务端支持的 应用的标识信息;  The client interacts with the server that has established the near field communication, and obtains and displays the identification information of the application supported by the server;
在确认用户从所述服务端支持的应用中选择一应用时, 所述客户端向所 述服务端发送共享应用请求, 其中携带所述用户选择的应用的标识信息; 所述服务端根据接收到的所述共享应用请求, 启动与所述共享应用请求 中携带的标识信息对应的应用, 并向所述客户端返回所述应用的显示画面信 息; When the user is selected to select an application from the application supported by the server, the client sends a shared application request to the server, where the identifier of the application selected by the user is carried; The sharing application request, launching an application corresponding to the identification information carried in the shared application request, and returning a display screen message of the application to the client Interest rate
所述客户端显示接收到的所述显示画面信息, 并在每一次检测到用户通 过本端支持的输入设备在当前显示画面上进行的输入动作后, 将相应的输入 动作信息发送给所述服务端, 由所述服务端对所述输入动作信息解析后进行 相应处理, 并将处理后的显示画面发送给所述客户端进行显示。  The client displays the received display screen information, and sends the corresponding input action information to the service after detecting an input action performed by the input device supported by the local end on the current display screen. End, the server processes the input action information and performs corresponding processing, and sends the processed display screen to the client for display.
该方法还包括:  The method also includes:
所述输入动作与坐标位置有关时, 所述客户端将所述输入动作在本端的 坐标转换为在所述服务端的坐标后, 将转换后的坐标通过输入动作信息发送 给所述服务端。  When the input action is related to the coordinate position, the client converts the coordinate of the input action to the coordinate of the server, and then sends the converted coordinate to the server by input action information.
一种近场通信网络, 包括客户端和服务端, 其中:  A near field communication network, including a client and a server, wherein:
所述客户端设置成: 与已建立近场通信的服务端交互, 获取并显示所述 服务端支持的数据文件的标识信息; 还在确认用户从中选择一数据文件时, 向所述服务端发送共享数据请求, 其中携带所述用户选择的数据文件的标识 信息; 还接收所述服务端发来的数据文件;  The client is configured to: interact with a server that has established near field communication, acquire and display identification information of a data file supported by the server; and send a message to the server when confirming that the user selects a data file from the server a shared data request, where the identifier information of the data file selected by the user is carried; and the data file sent by the server is further received;
所述服务端设置成: 根据所述共享数据请求, 向所述客户端返回所述共 享数据请求中携带的标识信息对应的数据文件。  The server is configured to: return, according to the shared data request, a data file corresponding to the identifier information carried in the shared data request to the client.
其中: 所述客户端还设置成: 在与已建立进场通信的所述服务端交互时, 获取到所述服务端支持的数据文件的描述信息;  The client is further configured to: obtain, when interacting with the server that has established the approach communication, the description information of the data file supported by the server;
相应的, 在接收到所述数据文件后, 还根据该数据文件的描述信息中的 类型信息, 自行选择相应的本地应用对所述数据文件进行处理并显示。  Correspondingly, after receiving the data file, the data file is processed and displayed by selecting a corresponding local application according to the type information in the description information of the data file.
其中: 所述客户端还设置成: 当用户选择的数据文件是由连续的数据流 构成时, 在启动本地应用对该数据文件进行处理显示后, 再次向所述服务端 发送共享数据请求, 直到确认所述用户关闭所述本地应用为止;  The client is further configured to: when the data file selected by the user is composed of a continuous data stream, after the local application is started to process and display the data file, send the shared data request to the server again, until Confirming that the user closes the local application;
所述服务端还设置成: 处理所述共享数据请求并提供新的数据文件。 一种近场通信网络, 包括客户端和服务端, 其中:  The server is further configured to: process the shared data request and provide a new data file. A near field communication network, including a client and a server, wherein:
所述客户端设置成: 与已建立近场通信的服务端交互, 获取并显示所述 服务端支持的应用的标识信息; 还在确认用户从所述服务端支持的应用中选 择一应用时, 向所述服务端发送共享应用请求, 其中携带所述用户选择的应 用的标识信息; 还显示接收到所述服务端发来的显示画面信息, 并在每一次 检测到用户通过本端支持的输入设备在当前显示画面上进行的输入动作后, 将相应的输入动作信息发送给所述服务端; The client is configured to: interact with the server that has established the near field communication, acquire and display the identification information of the application supported by the server; and confirm that the user selects an application from the applications supported by the server, Sending a shared application request to the server, where the user selected The identification information used is also displayed. The display screen information sent by the server is also displayed, and each time an input operation performed by the input device supported by the local end on the current display screen is detected, the corresponding input action is performed. Information is sent to the server;
所述服务端设置成: 根据接收到的所述共享应用请求, 启动该请求中携 带的标识信息对应的应用, 并向所述客户端返回该应用的显示画面信息; 还 对收到的所述客户端发来的输入动作信息进行解析后进行相应处理, 并将处 理后的显示画面发送给所述客户端进行显示。  The server is configured to: start, according to the received shared application request, an application corresponding to the identifier information carried in the request, and return display screen information of the application to the client; The input action information sent by the client is parsed and processed accordingly, and the processed display screen is sent to the client for display.
其中: 所述客户端还设置成: 在所述输入动作与坐标位置有关时, 将该 输入动作在本端的坐标转换为在服务端的坐标后, 通过输入动作信息将转换 后的坐标发送给所述服务端。  Wherein: the client is further configured to: when the input action is related to the coordinate position, after the coordinate of the input action is converted to the coordinate of the server at the local end, the converted coordinate is sent to the Server.
一种客户端设备, 包括: 信息获取模块、 共享请求发送模块及接收模块, 其中:  A client device includes: an information acquisition module, a shared request sending module, and a receiving module, where:
所述信息获取模块设置成: 与已建立近场通信的服务端交互, 获取并显 示所述服务端支持的数据文件或应用的标识信息;  The information acquiring module is configured to: interact with a server that has established near field communication, and obtain and display the data file or the identification information of the application supported by the server;
所述共享请求发送模块设置成: 在确认用户从中选择一数据文件或应用 时, 向所述服务端发送共享数据请求或共享应用请求, 其中携带所述用户选 择的数据文件或应用的标识信息; 所述接收模块设置成: 还接收所述服务端发来的数据文件或显示画面信 息。  The sharing request sending module is configured to: when confirming that the user selects a data file or an application from the server, sending a shared data request or a shared application request to the server, where the user selects the data file or the identification information of the application; The receiving module is configured to: further receive a data file or display screen information sent by the server.
该客户端设备还包括显示模块和检测模块, 其中:  The client device further includes a display module and a detection module, wherein:
所述显示模块设置成: 显示接收到所述服务端发来的显示画面信息; 所述检测模块设置成: 在每一次检测到用户通过本端支持的输入设备在 当前显示画面上进行的输入动作后, 将相应的输入动作信息发送给所述服务 端。  The display module is configured to: display display screen information received by the server; and the detecting module is configured to: perform an input action on the current display screen by the input device supported by the user at each time After that, the corresponding input action information is sent to the server.
该客户端设备还包括坐标转换模块, 其中:  The client device also includes a coordinate conversion module, wherein:
所述坐标转换模块设置成: 在所述输入动作与坐标位置有关时, 将该输 入动作在本端的坐标转换为在服务端的坐标后, 通过输入动作信息将转换后 的坐标发送给所述服务端。 该客户端设备还包括显示模块, 其中: The coordinate conversion module is configured to: when the input action is related to the coordinate position, convert the coordinate of the input action to the coordinate of the server at the local end, and then send the converted coordinate to the server by inputting the action information. . The client device also includes a display module, wherein:
所述信息获取模块还设置成:在与已建立进场通信的所述服务端交互时, 获取到所述服务端支持的数据文件的描述信息;  The information obtaining module is further configured to: obtain, when interacting with the server that has established the approach communication, the description information of the data file supported by the server;
所述显示模块设置成: 在接收到所述数据文件后, 还根据该数据文件的 描述信息中的类型信息, 自行选择相应的本地应用对所述数据文件进行处理 并显示。  The display module is configured to: after receiving the data file, according to the type information in the description information of the data file, select a corresponding local application to process and display the data file.
其中: 所述共享请求发送模块还设置成: 当用户选择的数据文件是由连 续的数据流构成时, 在所述显示模块启动本地应用对该数据文件进行处理显 示后, 再次向所述服务端发送共享数据请求, 直到确认所述用户关闭所述本 地应用为止。  The sharing request sending module is further configured to: when the data file selected by the user is composed of a continuous data stream, after the display module starts the local application to process and display the data file, and then sends the data file to the server again. A shared data request is sent until it is confirmed that the user closes the local application.
一种服务器设备, 包括共享请求接收模块及发送模块, 其中:  A server device includes a sharing request receiving module and a sending module, wherein:
所述共享请求接收模块设置成: 接收已建立近场通信的客户端发来的共 享数据请求或共享应用请求;  The sharing request receiving module is configured to: receive a shared data request or a shared application request sent by a client that has established near field communication;
所述发送模块设置成: 根据已建立近场通信的客户端发来的共享数据请 求或共享应用请求, 向所述客户端返回所述共享数据请求或所述共享应用请 求中携带的标识信息对应的数据文件或应用。 其中: 所述发送模块还设置成: 向所述客户端返回与所述共享应用请求 中携带的标识信息对应的应用时, 还向所述客户端返回该应用的显示画面信 息。  The sending module is configured to: return, according to the shared data request or the shared application request sent by the client that has established the near field communication, to the client to return the shared data request or the identifier information carried in the shared application request. Data file or application. The sending module is further configured to: when returning the application corresponding to the identifier information carried in the shared application request to the client, returning the display screen information of the application to the client.
该服务器设备还包括解析处理模块, 其中:  The server device also includes an analysis processing module, wherein:
所述解析处理模块设置成: 对收到的所述客户端发来的输入动作信息进 行解析后进行相应处理,并将处理后的显示画面发送给所述客户端进行显示。  The parsing processing module is configured to: parse the received input action information sent by the client, perform corresponding processing, and send the processed display screen to the client for display.
一种近场通信网络, 包括如上所述的任意一种客户端设备和如上所述的 任意一种服务器设备。  A near field communication network comprising any of the client devices as described above and any of the server devices described above.
釆用上述技术方案后, 近场通信的数据共享和应用共享的内容可以灵活 配置, 动态扩展, 对于共享的内容无需任何预先的设定; 对于一个应用的实 现元素可以灵活配置, 通信设备可以充分发挥各自的优势。 附图概述 After using the above technical solution, the data sharing and application sharing content of the near field communication can be flexibly configured and dynamically expanded, and no pre-setting is needed for the shared content; the implementation element of an application can be flexibly configured, and the communication device can be fully configured. Give play to their respective advantages. BRIEF abstract
图 1为本发明实施例中在近场通信网络中共享数据的方法流程图; 图 2为本发明实施例中在近场通信网络中共享应用的方法流程图; 图 3为本发明实施例中一个在近场通信网络中共享数据的具体流程示意  1 is a flowchart of a method for sharing data in a near field communication network according to an embodiment of the present invention; FIG. 2 is a flowchart of a method for sharing an application in a near field communication network according to an embodiment of the present invention; A specific flow chart for sharing data in a near field communication network
本发明的较佳实施方式 Preferred embodiment of the invention
为使本发明的目的、 技术方案和优点更加清楚明白, 下文中将结合附图 对本发明的实施例进行详细说明。 需要说明的是, 在不冲突的情况下, 本申 请中的实施例及实施例中的特征可以相互任意组合。  In order to make the objects, the technical solutions and the advantages of the present invention more clearly, the embodiments of the present invention will be described in detail below with reference to the accompanying drawings. It should be noted that, in the case of no conflict, the features in the embodiments and the embodiments of the present application may be arbitrarily combined with each other.
本发明的技术方案实现了动态扩展上。 现有的应用场所一般事先已经确 认, 需要共享哪些应用, 以及应用共享的内容和协议均已经确认, 实现时只 要针对这些既定规范进行开发即可。 比如可以为餐饮业开发一套应用, 也可 以为运输业开发一套应用, 但是目前无法用为餐饮业开发的应用与另一款为 运输业开发的应用建立应用共享。 本发明正是为了解决这样的技术问题, 为 此, 需要初始规范内容更小 (即共享初始桌面和通信元数据格式) , 在此基 础上, 共享什么样的应用, 共享什么样的数据, 以什么流程来建立共享, 均 可以在元数据的交互中协商。  The technical solution of the present invention realizes dynamic expansion. Existing application sites are generally confirmed in advance, which applications need to be shared, and the content and protocols shared by the application have been confirmed, and implementation is only required to be developed for these established specifications. For example, it is possible to develop an application for the catering industry or to develop an application for the transportation industry, but it is currently not possible to share applications with applications developed for the catering industry and applications developed for the transportation industry. The present invention is to solve such a technical problem. For this reason, it is required that the initial specification content is smaller (that is, sharing the initial desktop and the communication metadata format), and on this basis, what kind of application is shared, and what kind of data is shared, What process to establish a share can be negotiated in the metadata interaction.
从本质上来讲, 实现动态扩展的基础有三个: 输入动作的解析、 共享内 容的单元功能划分与表述及建立交互的元数据格式。 服务器提供共享服务, 客户端请求共享服务, 以电影播放这个服务为例, 电影播放的单元功能可以 划分为媒体数据获取、 媒体解码和媒体内容显示这三个功能, 服务器以一定 的方式告知客户端自己支持媒体数据获取和媒体解码这两个功能的电影服 务, 客户端以输入动作的方式请求该电影服务, 典型的方式是服务器将自身 的电影服务显示在桌面上,并将自身桌面的象素大小和桌面画面告知客户端, 客户端用鼠标点击的方式输入一个动作, 服务器解析客户端的输入动作, 判 断到客户端点击的对象是电影服务图标。 服务器以占位图标的方式管理电影 服务图标, 所谓占位图标是指除了拥有一个可视图标之外, 还包含对应用的 属性描述, 对电影服务应用来说, 就要包括支持媒体数据获取、 媒体解码功 能, 以及媒体的输出格式等。 之后服务器将占位图标信息发送给客户端, 客 户端根据自己需要服务器的什么功能, 提供反馈, 随后服务器就根据协商结 果, 开始与客户端进行数据共享。 其中所谓的初始桌面包括为方便后续应用共享需要的环境信息, 比如桌 面的长宽及象素数、 输入数据的格式和组织方式、 服务器的桌面图片、 服务 器提供的共享应用的占位图标等。 In essence, there are three foundations for implementing dynamic expansion: the parsing of input actions, the division and representation of unit functions for shared content, and the metadata format for establishing interactions. The server provides a shared service, and the client requests a shared service. Taking the movie playing service as an example, the unit function of the movie playing can be divided into three functions of media data acquisition, media decoding, and media content display, and the server informs the client in a certain manner. A movie service that supports two functions of media data acquisition and media decoding. The client requests the movie service by inputting actions. The typical way is that the server displays its own movie service on the desktop and the pixels of its own desktop. The size and the desktop screen inform the client that the client inputs an action by means of a mouse click, and the server parses the input action of the client, and judges The object that is broken by the client is the movie service icon. The server manages the movie service icon in the form of a placeholder icon. The so-called placeholder icon refers to the attribute description of the application in addition to having a visual icon, and includes support for media data acquisition for the movie service application. Media decoding function, and the output format of the media. The server then sends the placeholder icon information to the client. The client provides feedback according to what functions the server needs. Then the server starts data sharing with the client according to the negotiation result. The so-called initial desktop includes environment information needed for subsequent application sharing, such as the length and width of the desktop and the number of pixels, the format and organization of the input data, the desktop image of the server, and the placeholder icon of the shared application provided by the server.
下面将结合附图对本发明的具体实施进行进一步详细的说明。  The specific implementation of the present invention will be further described in detail below with reference to the accompanying drawings.
本实施例应用于使用近场通信方式进行交互的服务端和客户端之间, 所 述近场通信包括但不限于近距离无线通讯( NFC, Near Field Communication )。 服务端至少具有提供数据服务的能力, 服务端还可以具备数据处理并完成视 图表现的应用功能; 客户端至少具备显示设备, 能通过近场通信网络与服务 端建立通信, 并可以根据情况选择对服务端提供的数据或者应用进行共享。  The present embodiment is applied between a server and a client that interact using a near field communication method, and the near field communication includes, but is not limited to, Near Field Communication (NFC). The server has at least the capability of providing data services, and the server can also have an application function of data processing and performing view representation; the client has at least a display device, can establish communication with the server through the near field communication network, and can select the pair according to the situation. The data or application provided by the server is shared.
下面对数据共享和应用共享两种情况, 分别进行阐述。  The following two cases of data sharing and application sharing are separately explained.
数据共享的方法, 如图 1所示, 包括:  The method of data sharing, as shown in Figure 1, includes:
步骤 101 , 客户端在与服务端建立近场通信后, 向服务端发送一个获取 桌面配置信息的请求; 服务端收到该请求后, 向客户端返回一个初始桌面, 其中携带了本服务端支持的各数据文件的标识信息, 还可以携带各数据文件 的描述信息; 其中, 标识信息用于唯一的标识对应的数据文件;  Step 101: After establishing a near field communication with the server, the client sends a request for obtaining the desktop configuration information to the server. After receiving the request, the server returns an initial desktop to the client, where the server supports the server. The identification information of each data file may further carry description information of each data file; wherein the identifier information is used to uniquely identify the corresponding data file;
步骤 102 , 客户端向用户显示服务端支持的各数据文件的标识信息 (如 有描述信息亦可一同显示) , 并在确定用户从中选择某数据文件进行数据共 享时, 向服务端发起共享数据请求, 其中携带用户选择的数据文件的标识信 息;  Step 102: The client displays the identification information of each data file supported by the server to the user (if the description information is also displayed together), and initiates a shared data request to the server when determining that the user selects a data file for data sharing. , carrying the identification information of the data file selected by the user;
步骤 103 , 服务端根据接收到的共享数据请求中携带的标识信息查找对 应的数据文件, 然后将该数据文件发送给客户端;  Step 103: The server searches for the corresponding data file according to the identifier information carried in the received shared data request, and then sends the data file to the client.
步骤 104 , 客户端收到该数据文件后, 可向用户询问釆用哪个应用处理 该文件, 并启动用户选定的本地应用, 由该应用对该数据文件进行处理。 如果该数据文件是由连续的数据流构成的 (如多媒体文件) , 则客户端 在启动该应用后, 再次向服务端发送共享数据请求, 服务端处理该请求并提 供新的数据文件, 循环往复直到用户关闭本地应用。 Step 104: After receiving the data file, the client may query the user for which application to process. The file, and launching a local application selected by the user, the data file is processed by the application. If the data file is composed of a continuous data stream (such as a multimedia file), after the client starts the application, the client sends a shared data request to the server again, and the server processes the request and provides a new data file. Until the user closes the local app.
在具体实现时, 客户端在收到数据文件后, 也可以根据该文件的类型自 动选择合适的应用, 然后启动该应用以对该数据文件进行处理。  In the specific implementation, after receiving the data file, the client can also automatically select an appropriate application according to the type of the file, and then start the application to process the data file.
假设服务端与客户端都有显示设备, 且两者显示的内容也保持一致, 即 服务端桌面上的所有显示内容都能在客户端上进行显示。 以共享电影播放应 用为例, 服务端设备内置有电影播放器, 且可以获取到电影媒体数据, 客户 端既不支持电影播放, 也不能获取到电影媒体数据, 利用上述方法可通过近 场通信共享服务端的电影播放应用, 观看电影。  Assume that both the server and the client have display devices, and the content displayed by the two is also consistent, that is, all display content on the server desktop can be displayed on the client. Taking a shared movie playing application as an example, the server device has a built-in movie player and can obtain movie media data, and the client does not support movie playing or movie media data, and can be shared by near field communication by using the above method. The server's movie playback app, watching movies.
应用共享的方法, 如图 2所示, 包括:  The application sharing method, as shown in Figure 2, includes:
步骤 201 , 客户端在与服务端建立近场通信后, 向服务端发送一个获取 桌面配置信息的请求, 服务端收到该请求后, 向客户端返回一个初始桌面, 其中携带了服务端支持的各应用的标识信息,还可以携带各应用的描述信息; 其中, 标识信息用于唯一的标识对应的应用;  Step 201: After establishing a near field communication with the server, the client sends a request for obtaining the desktop configuration information to the server. After receiving the request, the server returns an initial desktop to the client, where the server supports the server. The identification information of each application may further carry the description information of each application; where the identifier information is used to uniquely identify the corresponding application;
步骤 202 , 客户端向用户显示服务端支持的各应用的标识信息 (如有描 述信息亦可一同显示) , 并在确定用户从中选择某应用进行应用共享时, 向 服务端发起共享应用请求, 其中携带用户选择的应用的标识信息;  Step 202: The client displays the identification information of each application supported by the server to the user (if the description information is also displayed together), and initiates a sharing application request to the server when determining that the user selects an application for application sharing. Carrying identification information of the application selected by the user;
步骤 203 , 服务端根据接收到的共享应用请求中携带的标识信息启动相 应的应用, 并返回该应用的显示画面信息;  Step 203: The server starts the corresponding application according to the identifier information carried in the received shared application request, and returns display information of the application.
步骤 204 , 客户端收到该应用的显示画面信息后, 在显示设备上完成显 示。 用户通过客户端支持的输入设备, 如键盘、 鼠标或触控面板等, 输入需 要的信息, 客户端记录用户输入的信息, 并将该信息转换成服务端可识别的 格式后发送给服务端。 其中, 如果用户输入的信息与在显示设备上的位置有 关, 则客户端还需要将该位置在本设备上的坐标转换为在服务端的坐标后再 发送给该服务端;  Step 204: After receiving the display screen information of the application, the client finishes displaying on the display device. The user inputs the required information through an input device supported by the client, such as a keyboard, a mouse, or a touch panel. The client records the information input by the user, and converts the information into a format recognizable by the server, and then sends the information to the server. Wherein, if the information input by the user is related to the location on the display device, the client also needs to convert the coordinates of the location on the device to the coordinates of the server and then send the coordinates to the server;
步骤 205 , 服务端解析用户输入的信息, 并做出响应, 若更新了界面显 示, 则向客户端发送新的应用画面信息; Step 205, the server parses the information input by the user, and responds, if the interface is updated Displaying, sending new application screen information to the client;
之后, 重复执行步骤 204和步骤 205 , 直到接收到客户端发来的用户选 择关闭该应用的请求后, 服务端响应并最终关闭相应应用的执行。  After that, step 204 and step 205 are repeatedly executed, until after receiving the request sent by the client to close the application, the server responds and finally closes the execution of the corresponding application.
在上述对数据共享和对应用共享的方法的说明中, 涉及到了数据文件的 传输、 对客户端输入信息的响应和服务端应用画面信息的发布等三个关键的 技术。 其中, 数据文件的传输及应用画面信息的发布直接通过发送含有信息 标签和信息体的通信包就可以实现了。 而对客户端输入信息的响应, 则涉及 到输入动作的坐标转换, 下面进行详细阐述。  In the above description of the method of data sharing and application sharing, three key technologies, such as data file transmission, response to client input information, and server application screen information release, are involved. The transmission of the data file and the issuance of the application screen information can be directly realized by transmitting a communication packet containing the information tag and the information body. The response to the input information of the client involves the coordinate conversion of the input action, which is described in detail below.
服务端发布的应用画面信息 (也即前面提到的初始桌面) 由元信息和画 面图片数据组成, 元信息至少要包含该应用画面的外轮廓的坐标信息和几何 尺寸信息。 客户端在根据画面图片数据绘制应用或初始桌面的界面显示时, 必须统一使用统一的基准坐标。  The application screen information published by the server (that is, the initial desktop mentioned above) is composed of meta information and picture picture data, and the meta information includes at least coordinate information and geometric size information of the outer contour of the application picture. When the client displays the interface of the application or the initial desktop according to the picture picture data, the unified reference coordinates must be used uniformly.
服务端需要与客户端共享相适应的输入模拟程序, 该输入模拟程序的功 能是可以给服务端虚拟插入任何原始的输入动作, 比如鼠标单击、 字母输入 等等, 再经过与客户端共享的相适应的输入处理分发机制, 转换为对初始桌 面和 /或各应用的实际输入动作。 其中, 输入模拟程序是指为了解析客户端的 输入动作和内容, 需要以对方使用的输入栈(驱动层概念)形式插入对方的 输入队列, 也就是模拟对方的输入动作, 比如鼠标点击或者键盘输入。  The server needs to share the input simulation program with the client. The function of the input simulation program is to insert any original input actions into the server, such as mouse click, letter input, etc., and then share with the client. The appropriate input processing distribution mechanism translates into actual input actions to the initial desktop and/or each application. The input simulation program refers to inserting the input queue of the other party in the form of an input stack (drive layer concept) used by the other party in order to parse the input action and content of the client, that is, simulating the input action of the other party, such as mouse click or keyboard input.
当客户端确认在本设备上产生了输入动作时, 如果是与坐标相关的输入 时, 比如鼠标单击某位置, 就需要综合该输入动作在本地屏幕坐标和基准坐 标进行坐标转换, 计算出在服务端的相应坐标。 将经过本设备预处理的输入 动作发送给服务端后, 服务端通过本地的输入模拟程序虚拟成本地的输入动 作, 然后做出相应的输入响应。  When the client confirms that an input action is generated on the device, if it is a coordinate-related input, such as a mouse click on a certain position, it is necessary to synthesize the input action to perform coordinate conversion on the local screen coordinates and the reference coordinates, and calculate the The corresponding coordinates of the server. After the input action preprocessed by the device is sent to the server, the server inputs the virtual cost input through the local input simulation program, and then responds accordingly.
客户端和服务端间的通信报文分为: 获取桌面配置信息、请求共享数据、 同步输入动作和刷新显示数据四个类型。 通信 文由头信息和数据体两个部 分组成, 头信息包含一个类型字段(占 8比特)和一个数据体总长度字段(占 32比特) , 类型字段用于表明本报文的类型, 数据体总长度字段表明本报文 包含的数据体报文长度, 数据体依据不同的报文类型, 有对应的格式。 假设服务端的显示设备参数为 128 100 16, 即宽度为 100象素、 高度 为 128象素、 显示深度为 16比特。 The communication messages between the client and the server are divided into four types: obtaining desktop configuration information, requesting shared data, synchronizing input actions, and refreshing display data. The communication text is composed of two parts: the header information and the data body. The header information includes a type field (8 bits) and a data body total length field (32 bits). The type field is used to indicate the type of the message, and the data body is total. The length field indicates the length of the data body packet contained in this packet. The data body has a corresponding format according to different packet types. Assume that the display device parameter of the server is 128 100 16, that is, the width is 100 pixels, the height is 128 pixels, and the display depth is 16 bits.
针对本实施例, 只用到其中三个类型的报文, 格式分别定义如下: 获取桌面配置信息的请求报文: 类型字段值为 0x00, 无数据体报文; 刷新显示数据的报文: 类型字段值为 0x01 , 数据体中包含显示区域的左 上角坐标(占 16比特)、 宽度(占 8比特)、 高度(占 8比特)和显示数据; 同步输入动作的报文: 类型字段值为 0x02, 数据体中包含输入类型 (占 8比特 )和输入信息。 输入类型包含字符输入( 0x00 )、 鼠标左单击( 0x01 ) 、 鼠标右单击 (0x02 ) 。 字符输入的输入信息字段包含一个输入的 Unicode字 符, 占 32比特; 鼠标左单击和鼠标右单击包含一个坐标字段, 占 16比特; 下面用一个应用实例对上述应用共享流程进行进一步说明,如图 3所示, 包括如下步骤:  For the present embodiment, only three types of packets are used, and the formats are respectively defined as follows: Request packets for obtaining desktop configuration information: Type field value is 0x00, no data body message; Refresh message display data: Type The field value is 0x01, and the data body contains the upper left coordinate (16 bits), the width (8 bits), the height (8 bits), and the display data of the display area. The message of the synchronous input action: The type field value is 0x02. The data body contains the input type (occupies 8 bits) and the input information. Input types include character input ( 0x00 ), left mouse click ( 0x01 ), and right mouse click (0x02 ). The input information field of the character input contains an input Unicode character, which occupies 32 bits; the left mouse click and the right mouse click contain a coordinate field, occupying 16 bits; the application sharing process is further explained by an application example, such as As shown in Figure 3, the following steps are included:
步骤 301、 客户端通过近场通信连接到服务端后, 向服务端发送获取桌 面配置信息的请求报文(0x0000000000 ) ;  Step 301: After the client connects to the server through the near field communication, the client sends a request message (0x0000000000) for obtaining the desktop configuration information to the server.
步骤 302、 服务端获取自己的当前桌面显示数据 (占用, 向客户端发送 刷新显示数据报文(0χ010003200000006480χχχχ ) , 其中 xxxx表示桌面显示 数据;  Step 302: The server obtains its current desktop display data (occupied, sends a refresh display data message to the client (0χ010003200000006480χχχχ), where xxxx represents desktop display data;
步骤 303、 客户端接收到刷新显示数据报文, 从基准坐标起始, 开始绘 制初始桌面, 并记录下相关的数据;  Step 303: The client receives the refresh display data packet, starts from the reference coordinate, starts drawing the initial desktop, and records the related data.
步骤 304、 用户通过点击选择用于电影观看的应用, 客户端获取本次点 击操作后, 判断出该操作在初始桌面范围内, 则结合基准坐标, 向服务端发 送同步输入动作 ^艮文(0x02000000300 lxxxx ) , xxxx表示经过坐标转换后对 应的单击坐标;  Step 304: The user selects an application for movie viewing by clicking, and after the client obtains the click operation, it determines that the operation is within the initial desktop range, and sends a synchronous input action to the server according to the reference coordinate (0x02000000300). Lxxxx ) , xxxx represents the corresponding click coordinates after coordinate conversion;
步骤 305、 服务端将收到的鼠标单击信息转交给输入模拟程序, 该程序 经过处理后, 直接在硬件输入队列中加入一个对应的鼠标单击事件。 在应用 场景下, 服务端显示程序会自动完成事件处理, 完成事件分发, 由显示程序 定位到启动电影播放的单击事件, 完成电影播放器的启动, 开始电影播放; 步骤 306、 服务端根据电影播放应用的需要, 向客户端发送刷新显示数 据报文, 客户端完成显示更新, 循环往复, 完成电影应用的共享功能。 Step 305: The server forwards the received mouse click information to the input simulation program, and after processing, directly adds a corresponding mouse click event to the hardware input queue. In the application scenario, the server display program automatically completes the event processing, completes the event distribution, and the display program locates the click event for starting the movie play, completes the start of the movie player, and starts the movie play; Step 306, the server according to the movie The need to play the application, send the refresh display number to the client According to the message, the client completes the display update, loops back and forth, and completes the sharing function of the movie application.
所述输入模拟程序的实现与应用共享的实现方法相适应, 因此造成的不 同实现, 并不妨碍本发明的保护范围。 客户端与服务端在显示比例、 旋转、 透明度等显示方式上的不同, 也不构成本发明的限制之列, 本发明只要求客 户端输入动作能够被转换为服务端输入动作即可。  The implementation of the input simulation program is adapted to the implementation method of the application sharing, and thus the different implementations do not hinder the scope of protection of the present invention. The difference between the display mode, the rotation, the transparency and the like of the client and the server does not constitute a limitation of the present invention. The present invention only requires that the client input action can be converted into a server input action.
在本实施例中, 一种近场通信网络, 包括客户端和服务端, 其中: 所述客户端设置成: 与已建立近场通信的服务端交互, 获取并显示所述 服务端支持的数据文件的标识信息; 还在确认用户从中选择一数据文件时, 向所述服务端发送共享数据请求, 其中携带所述用户选择的数据文件的标识 信息; 还接收所述服务端发来的数据文件; In this embodiment, a near field communication network includes a client and a server, where: the client is configured to: interact with a server that has established near field communication, and acquire and display data supported by the server. And identifying, by the user, a data file, and sending a shared data request to the server, where the identifier of the data file selected by the user is carried; and receiving the data file sent by the server ;
所述服务端设置成: 根据所述共享数据请求, 向所述客户端返回与所述 共享数据请求中携带的标识信息对应的数据文件。 较优地,  The server is configured to: return, according to the shared data request, a data file corresponding to the identifier information carried in the shared data request to the client. More preferably,
所述客户端还设置成:在与已建立进场通信的所述服务端交互的过程中, 获取所述服务端支持的数据文件的描述信息;  The client is further configured to: obtain, in a process of interacting with the server that has established the approach communication, the description information of the data file supported by the server;
还在接收到所述数据文件后, 根据所述数据文件的描述信息中的类型信 息, 自行选择相应的应用对所述数据文件进行处理并显示。  After receiving the data file, according to the type information in the description information of the data file, the corresponding application is selected and processed and displayed.
较优地,  More preferably,
所述客户端还设置成: 当用户选择的所述数据文件是由连续的数据流构 成时, 在启动本地应用对该数据文件进行处理显示后, 再次向所述服务端发 送共享数据请求, 直到确认所述用户关闭所述应用为止;  The client is further configured to: when the data file selected by the user is composed of consecutive data streams, after the local application is started to process and display the data file, send the shared data request to the server again, until Confirming that the user closes the application;
所述服务端还设置成: 处理所述共享数据请求并提供新的数据文件。  The server is further configured to: process the shared data request and provide a new data file.
此外, 在本实施例中, 另一种近场通信网络中, 包括客户端和服务端, 其中: In addition, in this embodiment, another near field communication network includes a client and a server, where:
所述客户端设置成: 与已建立近场通信的服务端交互, 获取并显示所述 服务端支持的应用的标识信息; 还在确认用户从中选择一应用时, 向所述服 务端发送共享应用请求, 其中携带所述用户选择的应用的标识信息; 还显示 接收到所述服务端发来的显示画面信息, 并在每一次检测到用户通过本端支 持的输入设备在当前显示画面上进行的输入动作后, 将相应的输入动作信息 发送给所述服务端; The client is configured to: interact with a server that has established near field communication, acquire and display the The identification information of the application supported by the server; when the user is selected to select an application from the server, the shared application request is sent to the server, where the identifier information of the application selected by the user is carried; Displaying the screen information, and sending the corresponding input action information to the server after detecting the input action performed by the user on the current display screen by the input device supported by the local end;
所述服务端设置成: 根据接收到的所述共享应用请求, 启动与所述共享 应用请求中携带的标识信息对应的应用, 并向所述客户端返回该应用的显示 画面信息; 还对收到的所述客户端发来的输入动作信息进行解析后进行相应 处理, 并将处理后的显示画面发送给所述客户端进行显示。  The server is configured to: start an application corresponding to the identifier information carried in the shared application request according to the received shared application request, and return display information of the application to the client; The input operation information sent by the client is parsed and processed accordingly, and the processed display screen is sent to the client for display.
较优地,  More preferably,
所述客户端还设置成: 在所述输入动作与坐标位置有关时, 将该输入动 作在本端的坐标转换为在所述服务端的坐标后, 通过所述输入动作信息发送 给所述服务端。  The client is further configured to: when the input action is related to the coordinate position, the input action is converted to the coordinate of the server at the local end, and then sent to the server by the input action information.
本发明的实施例还提供了一种客户端设备, 包括: 信息获取模块、 共享 请求发送模块及接收模块, 其中:  An embodiment of the present invention further provides a client device, including: an information acquiring module, a sharing request sending module, and a receiving module, where:
所述信息获取模块设置成: 与已建立近场通信的服务端交互, 获取并显 示所述服务端支持的数据文件或应用的标识信息;  The information acquiring module is configured to: interact with a server that has established near field communication, and obtain and display the data file or the identification information of the application supported by the server;
所述共享请求发送模块设置成: 在确认用户从中选择一数据文件或应用 时, 向所述服务端发送共享数据请求或共享应用请求, 其中携带所述用户选 择的数据文件或应用的标识信息;  The sharing request sending module is configured to: when confirming that the user selects a data file or an application from the server, sending a shared data request or a shared application request to the server, where the user selects the data file or the identification information of the application;
所述接收模块设置成: 还接收所述服务端发来的数据文件或显示画面信 息。  The receiving module is configured to: further receive a data file or display screen information sent by the server.
该客户端设备还包括显示模块和检测模块, 其中:  The client device further includes a display module and a detection module, wherein:
所述显示模块设置成: 显示接收到所述服务端发来的显示画面信息; 所述检测模块设置成: 在每一次检测到用户通过本端支持的输入设备在 当前显示画面上进行的输入动作后, 将相应的输入动作信息发送给所述服务 端。  The display module is configured to: display display screen information received by the server; and the detecting module is configured to: perform an input action on the current display screen by the input device supported by the user at each time After that, the corresponding input action information is sent to the server.
该客户端设备还包括坐标转换模块, 其中: 所述坐标转换模块设置成: 在所述输入动作与坐标位置有关时, 将该输 入动作在本端的坐标转换为在服务端的坐标后, 通过输入动作信息将转换后 的坐标发送给所述服务端。 The client device also includes a coordinate conversion module, wherein: The coordinate conversion module is configured to: when the input action is related to the coordinate position, convert the coordinate of the input action to the coordinate of the server at the local end, and then send the converted coordinate to the server by inputting the action information. .
该客户端设备还包括显示模块, 其中:  The client device also includes a display module, wherein:
所述信息获取模块还设置成:在与已建立进场通信的所述服务端交互时, 获取到所述服务端支持的数据文件的描述信息;  The information obtaining module is further configured to: obtain, when interacting with the server that has established the approach communication, the description information of the data file supported by the server;
所述显示模块设置成: 在接收到所述数据文件后, 还根据该数据文件的 描述信息中的类型信息, 自行选择相应的本地应用对所述数据文件进行处理 并显示。  The display module is configured to: after receiving the data file, according to the type information in the description information of the data file, select a corresponding local application to process and display the data file.
其中: 所述共享请求发送模块还设置成: 当用户选择的数据文件是由连 续的数据流构成时, 在所述显示模块启动本地应用对该数据文件进行处理显 示后, 再次向所述服务端发送共享数据请求, 直到确认所述用户关闭所述本 地应用为止。  The sharing request sending module is further configured to: when the data file selected by the user is composed of a continuous data stream, after the display module starts the local application to process and display the data file, and then sends the data file to the server again. A shared data request is sent until it is confirmed that the user closes the local application.
本发明的实施例还提供了一种服务器设备, 包括共享请求接收模块及发 送模块, 其中:  An embodiment of the present invention further provides a server device, including a sharing request receiving module and a sending module, where:
所述共享请求接收模块设置成: 接收已建立近场通信的客户端发来的共 享数据请求或共享应用请求;  The sharing request receiving module is configured to: receive a shared data request or a shared application request sent by a client that has established near field communication;
所述发送模块设置成: 根据已建立近场通信的客户端发来的共享数据请 求或共享应用请求, 向所述客户端返回所述共享数据请求或所述共享应用请 求中携带的标识信息对应的数据文件或应用。  The sending module is configured to: return, according to the shared data request or the shared application request sent by the client that has established the near field communication, to the client to return the shared data request or the identifier information carried in the shared application request. Data file or application.
其中: 所述发送模块还设置成: 向所述客户端返回与所述共享应用请求 中携带的标识信息对应的应用时, 还向所述客户端返回该应用的显示画面信 息。  The sending module is further configured to: when returning the application corresponding to the identifier information carried in the shared application request to the client, returning the display screen information of the application to the client.
该服务器设备还包括解析处理模块, 其中:  The server device also includes an analysis processing module, wherein:
所述解析处理模块设置成: 对收到的所述客户端发来的输入动作信息进 行解析后进行相应处理,并将处理后的显示画面发送给所述客户端进行显示。 本发明的实施例还提供了一种近场通信网络, 包括如上所述的任意一种 客户端设备和如上所述的任意一种服务器设备。 本领域普通技术人员可以理解上述方法中的全部或部分步骤可通过程序 来指令相关硬件完成, 所述程序可以存储于计算机可读存储介质中, 如只读 存储器、 磁盘或光盘等。 可选地, 上述实施例的全部或部分步骤也可以使用 一个或多个集成电路来实现。 相应地, 上述实施例中的各模块 /单元可以釆用 硬件的形式实现, 也可以釆用软件功能模块的形式实现。 本发明不限制于任 何特定形式的硬件和软件的结合。 The parsing processing module is configured to: parse the received input action information sent by the client, perform corresponding processing, and send the processed display screen to the client for display. Embodiments of the present invention also provide a near field communication network, including any of the client devices described above and any of the server devices described above. One of ordinary skill in the art will appreciate that all or a portion of the above steps may be performed by a program to instruct the associated hardware, such as a read only memory, a magnetic disk, or an optical disk. Alternatively, all or part of the steps of the above embodiments may also be implemented using one or more integrated circuits. Correspondingly, each module/unit in the foregoing embodiment may be implemented in the form of hardware, or may be implemented in the form of a software function module. The invention is not limited to any specific form of combination of hardware and software.
以上所述仅为本发明的优选实施例而已, 并非用于限定本发明的保护范 围。 根据本发明的发明内容, 还可有其他多种实施例, 在不背离本发明精神 改变和变形, 凡在本发明的精神和原则之内, 所作的任何修改、 等同替换、 改进等, 均应包含在本发明的保护范围之内。  The above description is only a preferred embodiment of the present invention and is not intended to limit the scope of protection of the present invention. In view of the present invention, various other modifications, equivalents, improvements, etc., should be made without departing from the spirit and scope of the invention. It is included in the scope of protection of the present invention.
工业实用性 Industrial applicability
釆用上述技术方案后, 近场通信的数据共享和应用共享的内容可以灵活 配置, 动态扩展, 对于共享的内容无需任何预先的设定; 对于一个应用的实 现元素可以灵活配置, 通信设备可以充分发挥各自的优势。 因此本发明具有 4艮强的工业实用性。  After using the above technical solution, the data sharing and application sharing content of the near field communication can be flexibly configured and dynamically expanded, and no pre-setting is needed for the shared content; the implementation element of an application can be flexibly configured, and the communication device can be fully configured. Give play to their respective advantages. Therefore, the present invention has a strong industrial applicability.

Claims

权 利 要 求 书 Claim
1、 一种在近场通信网络中共享数据的方法, 包括:  1. A method of sharing data in a near field communication network, comprising:
客户端与已建立近场通信的服务端交互, 获取并显示所述服务端支持的 数据文件的标识信息;  The client interacts with the server that has established the near field communication, and obtains and displays the identification information of the data file supported by the server;
在确认用户从所述服务端支持的数据文件中选择一数据文件时, 所述客 户端向所述服务端发送共享数据请求, 其中携带所述用户选择的数据文件的 标识信息;  When the user is selected to select a data file from the data file supported by the server, the client sends a shared data request to the server, where the identifier information of the data file selected by the user is carried;
所述服务端根据所述共享数据请求, 向所述客户端返回与所述共享数据 请求中携带的标识信息对应的数据文件;  And the server returns a data file corresponding to the identifier information carried in the shared data request to the client according to the shared data request;
所述客户端接收所述数据文件。  The client receives the data file.
2、 如权利要求 1所述的方法, 该方法还包括:  2. The method of claim 1 further comprising:
所述客户端接收到所述数据文件后, 在用户的选择下启用对应的本地应 用对所述数据文件进行处理并显示。  After receiving the data file, the client enables the corresponding local application to process and display the data file under the user's selection.
3、 如权利要求 1所述的方法, 该方法还包括:  3. The method of claim 1 further comprising:
所述客户端在与所述服务端交互时, 还获取所述服务端支持的数据文件 的描述信息;  And the client further acquires description information of the data file supported by the server when interacting with the server;
所述客户端接收到所述数据文件后, 根据所述数据文件的描述信息中的 类型信息, 自行选择相应的本地应用对所述数据文件进行处理并显示。  After receiving the data file, the client selects a corresponding local application to process and display the data file according to the type information in the description information of the data file.
4、 如权利要求 1~3中任意一项所述的方法, 该方法还包括:  4. The method according to any one of claims 1 to 3, further comprising:
当用户选择的数据文件是由连续的数据流构成时, 所述客户端在启动本 地应用对该数据文件进行处理显示后,再次向所述服务端发送共享数据请求; 所述服务端处理该共享数据请求并提供新的数据文件, 循环往复直到所述客 户端确认所述用户关闭所述本地应用。  When the data file selected by the user is composed of a continuous data stream, the client sends a shared data request to the server again after starting the local application processing and displaying the data file; the server processes the sharing The data requests and provides a new data file, looping back until the client confirms that the user closes the local application.
5、 一种在近场通信网络中共享应用的方法, 包括:  5. A method of sharing applications in a near field communication network, comprising:
客户端与已建立近场通信的服务端交互, 获取并显示所述服务端支持的 应用的标识信息;  The client interacts with the server that has established the near field communication, and obtains and displays the identification information of the application supported by the server;
在确认用户从所述服务端支持的应用中选择一应用时, 所述客户端向所 述服务端发送共享应用请求, 其中携带所述用户选择的应用的标识信息; 所述服务端根据接收到的所述共享应用请求, 启动与所述共享应用请求 中携带的标识信息对应的应用, 并向所述客户端返回所述应用的显示画面信 息; When confirming that the user selects an application from the applications supported by the server, the client is The server sends a shared application request, where the identifier of the application selected by the user is carried, and the server initiates an application corresponding to the identifier information carried in the shared application request according to the received shared application request. And returning display information of the application to the client;
所述客户端显示接收到的所述显示画面信息, 并在每一次检测到用户通 过本端支持的输入设备在当前显示画面上进行的输入动作后, 将相应的输入 动作信息发送给所述服务端, 由所述服务端对所述输入动作信息解析后进行 相应处理, 并将处理后的显示画面发送给所述客户端进行显示。  The client displays the received display screen information, and sends the corresponding input action information to the service after detecting an input action performed by the input device supported by the local end on the current display screen. End, the server processes the input action information and performs corresponding processing, and sends the processed display screen to the client for display.
6、 如权利要求 5所述的方法, 该方法还包括:  6. The method of claim 5, further comprising:
所述输入动作与坐标位置有关时, 所述客户端将所述输入动作在本端的 坐标转换为在所述服务端的坐标后, 将转换后的坐标通过输入动作信息发送 给所述服务端。  When the input action is related to the coordinate position, the client converts the coordinate of the input action to the coordinate of the server, and then sends the converted coordinate to the server by input action information.
7、 一种近场通信网络, 包括客户端和服务端, 其中:  7. A near field communication network, including a client and a server, wherein:
所述客户端设置成: 与已建立近场通信的服务端交互, 获取并显示所述 服务端支持的数据文件的标识信息; 还在确认用户从中选择一数据文件时, 向所述服务端发送共享数据请求, 其中携带所述用户选择的数据文件的标识 信息; 还接收所述服务端发来的数据文件;  The client is configured to: interact with a server that has established near field communication, acquire and display identification information of a data file supported by the server; and send a message to the server when confirming that the user selects a data file from the server a shared data request, where the identifier information of the data file selected by the user is carried; and the data file sent by the server is further received;
所述服务端设置成: 根据所述共享数据请求, 向所述客户端返回所述共 享数据请求中携带的标识信息对应的数据文件。  The server is configured to: return, according to the shared data request, a data file corresponding to the identifier information carried in the shared data request to the client.
8、 如权利要求 7所述的近场通信网络, 其中:  8. The near field communication network of claim 7 wherein:
所述客户端还设置成: 在与已建立进场通信的所述服务端交互时, 获取 到所述服务端支持的数据文件的描述信息;  The client is further configured to: obtain, when interacting with the server that has established the approach communication, the description information of the data file supported by the server;
相应的, 在接收到所述数据文件后, 还根据该数据文件的描述信息中的 类型信息, 自行选择相应的本地应用对所述数据文件进行处理并显示。  Correspondingly, after receiving the data file, the data file is processed and displayed by selecting a corresponding local application according to the type information in the description information of the data file.
9、 如权利要求 7或 8所述的近场通信网络, 其中:  9. The near field communication network of claim 7 or 8, wherein:
所述客户端还设置成: 当用户选择的数据文件是由连续的数据流构成时, 在启动本地应用对该数据文件进行处理显示后, 再次向所述服务端发送共享 数据请求, 直到确认所述用户关闭所述本地应用为止; 所述服务端还设置成: 处理所述共享数据请求并提供新的数据文件。The client is further configured to: when the data file selected by the user is composed of a continuous data stream, after the local application is started to process and display the data file, the shared data request is sent to the server again until the confirmation is performed. Said that the user closes the local application; The server is further configured to: process the shared data request and provide a new data file.
10、 一种近场通信网络, 包括客户端和服务端, 其中: 10. A near field communication network, including a client and a server, wherein:
所述客户端设置成: 与已建立近场通信的服务端交互, 获取并显示所述 服务端支持的应用的标识信息; 还在确认用户从所述服务端支持的应用中选 择一应用时, 向所述服务端发送共享应用请求, 其中携带所述用户选择的应 用的标识信息; 还显示接收到所述服务端发来的显示画面信息, 并在每一次 检测到用户通过本端支持的输入设备在当前显示画面上进行的输入动作后, 将相应的输入动作信息发送给所述服务端;  The client is configured to: interact with the server that has established the near field communication, acquire and display the identification information of the application supported by the server; and confirm that the user selects an application from the applications supported by the server, Sending a shared application request to the server, where the identifier information of the application selected by the user is carried; and displaying the display screen information sent by the server, and detecting the input supported by the user through the local end After the input action performed by the device on the current display screen, the corresponding input action information is sent to the server;
所述服务端设置成: 根据接收到的所述共享应用请求, 启动该请求中携 带的标识信息对应的应用, 并向所述客户端返回该应用的显示画面信息; 还 对收到的所述客户端发来的输入动作信息进行解析后进行相应处理, 并将处 理后的显示画面发送给所述客户端进行显示。  The server is configured to: start, according to the received shared application request, an application corresponding to the identifier information carried in the request, and return display screen information of the application to the client; The input action information sent by the client is parsed and processed accordingly, and the processed display screen is sent to the client for display.
11、 如权利要求 10所述的近场通信网络, 其中:  11. The near field communication network of claim 10, wherein:
所述客户端还设置成: 在所述输入动作与坐标位置有关时, 将该输入动 作在本端的坐标转换为在服务端的坐标后, 通过输入动作信息将转换后的坐 标发送给所述服务端。  The client is further configured to: when the input action is related to the coordinate position, after the coordinate of the input action is converted to the coordinate of the server end, the converted coordinate is sent to the server by inputting the action information. .
12、 一种客户端设备, 包括: 信息获取模块、 共享请求发送模块及接收 模块, 其中:  12. A client device, comprising: an information acquisition module, a shared request sending module, and a receiving module, wherein:
所述信息获取模块设置成: 与已建立近场通信的服务端交互, 获取并显 示所述服务端支持的数据文件或应用的标识信息;  The information acquiring module is configured to: interact with a server that has established near field communication, and obtain and display the data file or the identification information of the application supported by the server;
所述共享请求发送模块设置成: 在确认用户从中选择一数据文件或应用 时, 向所述服务端发送共享数据请求或共享应用请求, 其中携带所述用户选 择的数据文件或应用的标识信息; 所述接收模块设置成: 还接收所述服务端发来的数据文件或显示画面信 息。  The sharing request sending module is configured to: when confirming that the user selects a data file or an application from the server, sending a shared data request or a shared application request to the server, where the user selects the data file or the identification information of the application; The receiving module is configured to: further receive a data file or display screen information sent by the server.
13、如权利要求 12所述的客户端设备, 该客户端设备还包括显示模块和 检测模块, 其中:  13. The client device of claim 12, the client device further comprising a display module and a detection module, wherein:
所述显示模块设置成: 显示接收到所述服务端发来的显示画面信息; 所述检测模块设置成: 在每一次检测到用户通过本端支持的输入设备在 当前显示画面上进行的输入动作后, 将相应的输入动作信息发送给所述服务 端。 The display module is configured to: display display screen information received by the server; The detecting module is configured to: after each detecting an input action performed by the input device supported by the local end on the current display screen, send the corresponding input action information to the server.
14、 如权利要求 12或 13所述的客户端设备, 该客户端设备还包括坐标 转换模块, 其中:  14. The client device of claim 12 or 13, the client device further comprising a coordinate conversion module, wherein:
所述坐标转换模块设置成: 在所述输入动作与坐标位置有关时, 将该输 入动作在本端的坐标转换为在服务端的坐标后, 通过输入动作信息将转换后 的坐标发送给所述服务端。  The coordinate conversion module is configured to: when the input action is related to the coordinate position, convert the coordinate of the input action to the coordinate of the server at the local end, and then send the converted coordinate to the server by inputting the action information. .
15、 如权利要求 12所述的客户端设备, 该客户端设备还包括显示模块, 其中:  15. The client device of claim 12, the client device further comprising a display module, wherein:
所述信息获取模块还设置成:在与已建立进场通信的所述服务端交互时, 获取到所述服务端支持的数据文件的描述信息;  The information obtaining module is further configured to: obtain, when interacting with the server that has established the approach communication, the description information of the data file supported by the server;
所述显示模块设置成: 在接收到所述数据文件后, 还根据该数据文件的 描述信息中的类型信息, 自行选择相应的本地应用对所述数据文件进行处理 并显示。  The display module is configured to: after receiving the data file, according to the type information in the description information of the data file, select a corresponding local application to process and display the data file.
16、 如权利要求 15所述的客户端设备, 其中:  16. The client device of claim 15, wherein:
所述共享请求发送模块还设置成: 当用户选择的数据文件是由连续的数 据流构成时, 在所述显示模块启动本地应用对该数据文件进行处理显示后, 再次向所述服务端发送共享数据请求, 直到确认所述用户关闭所述本地应用 为止。  The sharing request sending module is further configured to: when the data file selected by the user is composed of a continuous data stream, after the display module starts the local application to process and display the data file, send the sharing to the server again. Data request until it is confirmed that the user closes the local application.
17、 一种服务器设备, 包括共享请求接收模块及发送模块, 其中: 所述共享请求接收模块设置成: 接收已建立近场通信的客户端发来的共 享数据请求或共享应用请求;  A server device, comprising: a shared request receiving module and a sending module, wherein: the sharing request receiving module is configured to: receive a shared data request or a shared application request sent by a client that has established near field communication;
所述发送模块设置成: 根据已建立近场通信的客户端发来的共享数据请 求或共享应用请求, 向所述客户端返回所述共享数据请求或所述共享应用请 求中携带的标识信息对应的数据文件或应用。  The sending module is configured to: return, according to the shared data request or the shared application request sent by the client that has established the near field communication, to the client to return the shared data request or the identifier information carried in the shared application request. Data file or application.
18、 如权利要求 17所述的服务器设备, 其中: 18. The server device according to claim 17, wherein:
所述发送模块还设置成: 向所述客户端返回与所述共享应用请求中携带 的标识信息对应的应用时, 还向所述客户端返回该应用的显示画面信息。The sending module is further configured to: return to the client and carry the request in the shared application When the application corresponding to the identification information is used, the display screen information of the application is also returned to the client.
19、 如权利要求 17或 18所述的服务器设备, 该服务器设备还包括解析 处理模块, 其中: The server device according to claim 17 or 18, further comprising an analysis processing module, wherein:
所述解析处理模块设置成: 对收到的所述客户端发来的输入动作信息进 行解析后进行相应处理,并将处理后的显示画面发送给所述客户端进行显示。  The parsing processing module is configured to: parse the received input action information sent by the client, perform corresponding processing, and send the processed display screen to the client for display.
20、 一种近场通信网络, 包括如权利要求 12-16 中任一项所述的客户端 设备和如权利要求 17-19中任一项所述的服务器设备。  A near field communication network, comprising the client device according to any one of claims 12-16 and the server device according to any one of claims 17-19.
PCT/CN2012/070234 2011-10-09 2012-01-11 Method and near field communication network for sharing data and applications in the near field communication network WO2012155539A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201110302734.1 2011-10-09
CN2011103027341A CN102394866A (en) 2011-10-09 2011-10-09 Methods for sharing data and applications in near-field communication network and near-field communication network

Publications (1)

Publication Number Publication Date
WO2012155539A1 true WO2012155539A1 (en) 2012-11-22

Family

ID=45862075

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2012/070234 WO2012155539A1 (en) 2011-10-09 2012-01-11 Method and near field communication network for sharing data and applications in the near field communication network

Country Status (2)

Country Link
CN (1) CN102394866A (en)
WO (1) WO2012155539A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103036597A (en) * 2012-12-12 2013-04-10 华为终端有限公司 Method and device of sharing resources among devices in close range
CN112887756A (en) * 2021-01-11 2021-06-01 上海七牛信息技术有限公司 Multi-input multi-output communication system and method for multimedia micro-service

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104335193B (en) * 2012-05-25 2017-12-01 祥闳科技股份有限公司 Data transmission architecture
CN102833345B (en) * 2012-09-05 2016-12-07 中兴通讯股份有限公司 A kind of equipment room shares the method for content, Apparatus and system
CN102904934A (en) * 2012-09-25 2013-01-30 东莞宇龙通信科技有限公司 Terminal data transmission method and system thereof
CN103780637B (en) * 2012-10-18 2016-12-21 腾讯科技(深圳)有限公司 Information sharing apparatus and method
CN112291775A (en) * 2020-10-19 2021-01-29 深圳市中诺通讯有限公司 Method and device for terminal to acquire service
CN114221969B (en) * 2021-11-24 2023-08-22 安徽听见科技有限公司 Data synchronization method, terminal, server and system based on near field communication

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101546362A (en) * 2008-03-27 2009-09-30 通用电气公司 Systems and methods utilizing NFC technology to implement an on-demand portable medical record
CN101551826A (en) * 2009-05-19 2009-10-07 成都市华为赛门铁克科技有限公司 Data retrieval process, set and system
CN102047223A (en) * 2008-03-27 2011-05-04 摩托罗拉移动公司 Method and apparatus for automatic near field communication application selection in an electronic device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7194690B2 (en) * 2003-04-17 2007-03-20 Lenovo (Singapore) Pte. Ltd. Remote support for computer or other electronic device
US9317599B2 (en) * 2008-09-19 2016-04-19 Nokia Technologies Oy Method, apparatus and computer program product for providing relevance indication

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101546362A (en) * 2008-03-27 2009-09-30 通用电气公司 Systems and methods utilizing NFC technology to implement an on-demand portable medical record
CN102047223A (en) * 2008-03-27 2011-05-04 摩托罗拉移动公司 Method and apparatus for automatic near field communication application selection in an electronic device
CN101551826A (en) * 2009-05-19 2009-10-07 成都市华为赛门铁克科技有限公司 Data retrieval process, set and system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103036597A (en) * 2012-12-12 2013-04-10 华为终端有限公司 Method and device of sharing resources among devices in close range
CN112887756A (en) * 2021-01-11 2021-06-01 上海七牛信息技术有限公司 Multi-input multi-output communication system and method for multimedia micro-service

Also Published As

Publication number Publication date
CN102394866A (en) 2012-03-28

Similar Documents

Publication Publication Date Title
WO2012155539A1 (en) Method and near field communication network for sharing data and applications in the near field communication network
CA2820342C (en) Application discovery
US7996538B2 (en) Information processing apparatus and content information processing method for transmitting content and event information to a client
US20120060100A1 (en) System and method for transferring media content
JP5916822B2 (en) Apparatus and method for interface between remote user interface server and remote user interface client
KR20160019087A (en) System, method and computer-readable medium for presenting media content
KR20150095554A (en) Information processing device, information processing method and program
CA2960118A1 (en) System with a companion device and a primary device
US11809380B2 (en) Information sharing method, apparatus, electronic device, and storage medium
WO2014190655A1 (en) Application synchronization method, application server and terminal
WO2014056427A1 (en) Method and apparatus for displaying multiple images, home network system and mobile terminal
CN114286137A (en) Mirror image screen projection method, display device and terminal
US20100053472A1 (en) Image content transmitting server, image display apparatus, image content transmitting method, and image displaying method
KR101329668B1 (en) Contents sharing system and method using push server
EP2339787B1 (en) System and Method for Displaying Document Content Using UPnP
CN115022688A (en) Display device and media data relay method
CN112910745B (en) Control method and device of intelligent household equipment
KR101991787B1 (en) Home network media transport negotiation
JP2010033477A (en) Thin client system, application server, device management device, terminal control server and communication method
Park et al. Development of a Second Screen Service for Personalized
JP2009246814A (en) Vod system for client control type moving image communication terminal
JP2010232812A (en) Moving image file transmission server and operation control method therefor
Concolato et al. Declarative Interfaces for dynamic widgets communications
CN115499693A (en) Multi-screen different display control method, device and system, storage medium and electronic equipment
TW201423417A (en) Real-time digital content sharing system and method

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: 12784969

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 12784969

Country of ref document: EP

Kind code of ref document: A1