WO2014180436A1 - 一种终端间进行通信的方法及终端 - Google Patents

一种终端间进行通信的方法及终端 Download PDF

Info

Publication number
WO2014180436A1
WO2014180436A1 PCT/CN2014/079631 CN2014079631W WO2014180436A1 WO 2014180436 A1 WO2014180436 A1 WO 2014180436A1 CN 2014079631 W CN2014079631 W CN 2014079631W WO 2014180436 A1 WO2014180436 A1 WO 2014180436A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal
terminals
local file
device list
online device
Prior art date
Application number
PCT/CN2014/079631
Other languages
English (en)
French (fr)
Inventor
孙健
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2014180436A1 publication Critical patent/WO2014180436A1/zh

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/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes

Definitions

  • the present invention relates to the field of information communication, and in particular, to a method and a terminal for performing communication between terminals.
  • various smart devices such as smart phones, tablet computers, and smart set-top boxes have entered more and more families, becoming a necessity in people's work and life. It is also common for a family or even a person to have more than one smart device. Therefore, in the home network, sharing media resources between various terminal devices, browsing and playing on any device, providing more and more convenient operation modes has become a universal and urgent need.
  • Content sharing Sharing media file content between home smart terminal devices.
  • Embodiments of the present invention provide a method and a terminal for performing communication between terminals, which enable a terminal in a local area network to perform information communication.
  • an embodiment of the present invention provides a method for performing communication between terminals, including: transmitting device information of the terminal to other terminals in the same local area network as the terminal; Obtaining a return receipt message returned by the other terminal after adding the terminal to the online device list of the other terminal according to the device information of the terminal; and adding the other terminal to the terminal online according to the receipt message Inside the device list.
  • the method for communicating between the terminals further includes: sending a heartbeat message to other terminals in the online device list of the terminal within a preset time; if the response of the other terminal is not received, Other terminals are deleted from the online device list of the terminal.
  • the method for performing communication between the terminals further includes: transmitting local file metadata of the terminal to other terminals in the online device list of the terminal; and acquiring, by the other terminal, the terminal After the local file metadata, the local file metadata of the other terminal returned. Further, the method for performing communication between the terminals further includes: modifying a synchronization time of the terminal and the other terminal according to the acquired time of the local file metadata of the other terminal.
  • the method for communicating between the terminals further includes: sending an operation instruction for the terminal to operate the local file of the other terminal to the other terminal device; acquiring other terminals according to the operation instruction to the other terminal The result of the operation of the local file for the operation.
  • the method for communicating between the terminals further includes: retrieving and acquiring a local file of the terminal, and operating a local file of the terminal. Further, the operations include: viewing, copying, deleting, or modifying.
  • Another embodiment of the present invention further provides a terminal, including: a sending module, configured to send device information of the terminal to other terminals in the same local area network as the terminal; and an acquiring module, configured to acquire the other a return receipt message returned by the terminal after the terminal is added to the online device list of the other terminal according to the device information of the terminal; The processing module is configured to add the other terminal to the online device list of the terminal according to the receipt message.
  • the sending module is further configured to send a heartbeat message to other terminals in the online device list of the terminal within a preset time; the processing module is further configured to: if the response of the other terminal is not received, The other terminal is deleted from the online device list of the terminal.
  • the sending module is further configured to send the local file metadata of the terminal to other terminals in the online device list of the terminal; the acquiring module is further configured to acquire, by the other terminal, the terminal After the local file metadata, the local file metadata of the other terminal returned.
  • the processing module is further configured to modify a synchronization time of the terminal and the other terminal according to the acquired time of the local file metadata of the other terminal.
  • the sending module is further configured to send an operation instruction for the terminal to operate the local file of the other terminal to the other terminal device;
  • the acquiring module is further configured to acquire another terminal according to the operation instruction The operation result information of the operation of the local file of the other terminal.
  • FIG. 2 is a schematic diagram of a specific process for mutual discovery between terminals according to an embodiment of the present invention
  • FIG. 3 is a home network according to an embodiment of the present invention
  • FIG. 4 is a schematic flowchart of a resource file display and operation function between terminals in a home network according to an embodiment of the present invention
  • FIG. 5 is a schematic flowchart of a local file information operation performed by a terminal in a home network according to an embodiment of the present invention
  • FIG. 6 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
  • an embodiment of the present invention provides a method for performing communication between terminals, including: Step 11: Send device information of the terminal to other terminals in the same local area network as the terminal; Step 12 Obtaining a return receipt message returned by the other terminal after adding the terminal to the online device list of the other terminal according to the device information of the terminal; Step 13, adding the other terminal to the service according to the receipt message
  • the terminal's online device list is established on the terminal in the same local area network (such as the home network), and other terminals can be added to the online device list of the terminal, thereby realizing mutual discovery between the terminals in the same local area network, thereby Prepare for resource sharing between terminals.
  • the method for performing communication between the terminals further includes: Step 14: Send a heartbeat message to other terminals in the online device list of the terminal within a preset time; Step 15 If the response of the other terminal is not received, the other terminal is deleted from the online device list of the terminal.
  • Step 14 Send a heartbeat message to other terminals in the online device list of the terminal within a preset time
  • Step 15 If the response of the other terminal is not received, the other terminal is deleted from the online device list of the terminal.
  • the sending module sends the device information of the smart terminal, including: device identifier, IP, software and hardware information, authentication message, etc.; the acquiring module in the smart terminal B in the local area network receives the After the device information of the smart terminal, the processing module adds the smart terminal A to the online device list of the smart terminal B through the authentication message, and then sends a return message to the smart terminal A; the processing module of the smart terminal A sends the smart terminal according to the receipt message.
  • B joins the online device list; the sending module of the intelligent terminal A periodically sends a heartbeat message to the device in its online device list, and waits for its receipt. If the corresponding device does not answer within a certain period of time, it deletes it from the online device list.
  • the method for communicating between the terminals further includes: Step 21: Send local file metadata of the terminal to other terminals in the online device list of the terminal; Step 22 And acquiring local file metadata of the other terminal that is returned by the other terminal after receiving the local file metadata of the terminal.
  • file metadata synchronization between terminals in the same local area network is realized by transmitting local file metadata of the terminal to other terminals in the online device list, and obtaining local file metadata of other terminals.
  • the method for performing communication between the terminals further includes: Step 23: Modify a synchronization time of the terminal and the other terminal according to the acquired time of the local file metadata of the other terminal.
  • the intelligent terminal in the local area network can perform metadata transmission to achieve the purpose of synchronizing the file information of each intelligent terminal; meanwhile, after the information of the intelligent terminal is synchronized, The time when the file information is synchronized is recorded, so that some smart terminals do not synchronize the file information for a long time, and the file information is inconsistent.
  • the specific implementation process of the embodiment is described below with reference to FIG. 3: The smart terminal A detects whether the online device list is empty. If not, the sending module of the smart terminal A sends the local file metadata of the smart terminal A to the smart device.
  • the smart terminal B After receiving the file metadata sent by the smart terminal A, the smart terminal B updates and synchronizes the local file metadata of the smart terminal B, and then sends the local file metadata of the smart terminal B to the smart terminal A, and simultaneously The smart terminal B modifies the synchronization time of the smart terminal A in its online device list; the smart terminal A receives the file element sent by the smart terminal B. After the data, the local file metadata of the user is updated and synchronized, and the smart terminal A modifies the synchronization time of the smart terminal B in its online device list.
  • the method for communicating between the terminals further includes: Step 31: Send an operation instruction for the terminal to operate the local file of the other terminal to the other terminal device; Step 32 And obtaining operation result information that the other terminal operates on the local file of the other terminal according to the operation instruction.
  • the metadata information includes information such as a file name, a type, a terminal IP and a storage path, and the like; Therefore, the user can be operated by any device on any media resource in the home network; the user is prevented from operating because the resource file that the user wants to find is specifically stored in the smart terminal.
  • the specific implementation process of the embodiment is described below with reference to FIG. 4.
  • the specific implementation process of the foregoing embodiment of the present invention is as shown in FIG. 4.
  • the smart terminal A passes the sending module.
  • the operation command message is sent to the smart terminal B.
  • the smart terminal B operates the local file through the processing module.
  • the result is sent to the smart terminal A, and the smart terminal A receives the operation result.
  • the method for communicating between the terminals further includes: Step 41: retrieve and acquire a local file of the terminal, and perform operations on a local file of the terminal.
  • the intelligent terminal A sends a file retrieval command message to the file retrieval module through the processing module, and the file retrieval module invokes the interface of the file operation proxy module to implement a specific local media file retrieval function.
  • Obtaining local media file metadata information such as a file name, a creation time, a type, a size, a snapshot, and the like; and operating the local file of the smart terminal A.
  • the operations include: Copy, delete or modify, etc.
  • the foregoing embodiment of the present invention is that the method for communicating between the terminals can integrate media resources of all smart devices in the home network, and synchronize media between the devices.
  • the embodiment of the present invention further provides a terminal, including: a sending module, configured to send device information of the terminal to other terminals in the same local area network as the terminal; and an acquiring module, configured to acquire the other terminal according to The device information of the terminal is added to the online device list of the other terminal, and the return receipt message is returned; the processing module is configured to add the other terminal to the online device of the terminal according to the receipt message. Inside the list.
  • the sending module is further configured to send a heartbeat message to other terminals in the online device list of the terminal within a preset time; the processing module is further configured to: if the response of the other terminal is not received, The other terminal is deleted from the online device list of the terminal.
  • the specific implementation process of the foregoing embodiment of the present invention is as shown in FIG. 2, after the smart terminal A is started, the sending module sends the device information of the smart terminal, including: device identifier, IP, software and hardware information, authentication message, and the like; After receiving the device information of the smart terminal, the processing module of the smart terminal B in the local area network adds the smart terminal A to the online device list of the smart terminal B through the authentication message, and then sends the smart terminal A to the smart terminal A.
  • the processing module of the intelligent terminal A adds the smart terminal B to the online device list according to the receipt message; the sending module of the intelligent terminal A periodically sends a heartbeat message to the device in the online device list, and waits for the receipt thereof, if at a certain time If the corresponding device does not answer, it will be deleted from the online device list.
  • the sending module is further configured to send the local file metadata of the terminal to other terminals in the online device list of the terminal; the acquiring module is further configured to acquire, by the other terminal, the terminal After the local file metadata, the local file metadata of the other terminal returned.
  • the processing module is further configured to modify a synchronization time of the terminal and the other terminal according to the acquired time of the local file metadata of the other terminal.
  • the specific implementation process of the foregoing embodiment of the present invention is as shown in FIG. 3.
  • the smart terminal A detects whether the online device list is empty. If not, the sending module of the smart terminal A sends the local file element of the smart terminal A. The data is sent to the smart terminal B, and the smart terminal B is smart after receiving the file metadata sent by the smart terminal A.
  • the local file metadata of the terminal B is updated and synchronized, and then the local file metadata of the smart terminal B is sent to the smart terminal A, and the smart terminal B modifies the synchronization time of the smart terminal A in the online device list; the smart terminal A is After receiving the file metadata sent by the smart terminal B, the local file metadata of the user is updated and synchronized, and the smart terminal A modifies the synchronization time of the smart terminal B in the online device list.
  • the sending module is further configured to send an operation instruction for the terminal to operate the local file of the other terminal to the other terminal device; the acquiring module is further configured to acquire another terminal according to the operation instruction The operation result information of the operation of the local file of the other terminal.
  • the smart terminal A When the user wants to operate the smart terminal B through the smart terminal A, the smart terminal A sends an operation command message to the smart terminal B through the sending module, and the smart terminal B After receiving the command message, the processing module performs operations on the local file. After the operation is completed, the result is sent to the smart terminal A. After receiving the operation result, the smart terminal A passes the processing to display the processing result to the user. Further, the terminal may further retrieve and acquire the local file metadata of the terminal locally, and perform operations on the local file metadata of the terminal. The operations include: viewing, copying, deleting, or modifying. For the terminal, the specific implementation structure is as shown in FIG. 6.
  • the device After the smart terminal A is started, the device sends a device message to other intelligent terminals in the local area network, and the other smart terminals authenticate and send a return message through the device message.
  • the intelligent terminal in the local area network synchronizes information through communication in the local area network, and can also operate another intelligent terminal through one intelligent terminal through communication in the local area network; when operating the file resource of the intelligent terminal,
  • the processing module and the file retrieval module and the file operation proxy module are mutually configured, mainly because the processing module sends a command to the file retrieval module, and the file retrieval module invokes the interface of the file operation proxy module to implement a specific local file operation function.
  • the above embodiments of the present invention integrate media resources of all intelligent terminal devices in the home network, and synchronize media resource information between the smart terminal devices, so that all smart terminal devices can obtain complete home network media resource information.
  • the user can operate any media resource in the home network through any device, which makes the user's operation simple, convenient, fast and effective, and saves the user's time.
  • the above is a preferred embodiment of the present invention, and it should be noted that those skilled in the art can also make several improvements and retouchings without departing from the principles of the present invention. It should be considered as the scope of protection of the present invention.
  • a method and a terminal for performing communication between terminals have the following beneficial effects: media resources of all terminals in a home area network can be integrated, and synchronization is performed between each terminal device. Media resource information, so that all devices can get complete home network media resource information.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Small-Scale Networks (AREA)
  • Computer And Data Communications (AREA)

Abstract

一种终端间进行通信的方法及终端,该方法包括:发送所述终端的设备信息给与所述终端处于同一局域网内的其他终端;获取所述其他终端根据所述终端的设备信息将所述终端加入所述其他终端的在线设备列表内后,返回的回执消息;根据所述回执消息,将所述其他终端加入所述终端的在线设备列表内。通过该方法,可以将家庭局域网络中所有终端的媒体资源进行整合,通过在各终端设备之间同步媒体资源信息,使得所有设备都能获得完整的家庭网络媒体资源信息。

Description

一种终端间进行通信的方法及终端 技术领域 本发明涉及信息通信领域, 特别涉及一种终端间进行通信的方法及终端。 背景技术 随着移动互联网的发展, 智能手机、 平板电脑、 智能机顶盒等各类智能设备已进 入越来越多的家庭, 成为人们工作、 生活中的必需品。 一个家庭甚至是一个人拥有一 个以上的智能设备, 也成为了普遍现象。 因此在家庭网络中, 在各终端设备之间共享 媒体资源, 在任意设备上浏览、 播放, 提供更多、 更便捷的操作方式以成为了一个普 遍和迫切的需求。 目前比较通用的家庭智能终端媒体资源共享的方法主要有以下两种: 内容共享: 在家庭智能终端设备之间共享媒体文件内容。 通过设备发现链接到一 个或多个设备, 然后通过下拉或推送的方法, 在各设备之间共享媒体文件内容。 典型 的代表有数字生活网络联盟(Digital Living Network Alliance,简称为 DLNA)和 Apple 公司的 AirPlay。 屏幕共享: 直接将源设备屏幕图像流化, 然后发送到目的设备上播放。 典型的代 表有 Miracast禾口 Apple公司的 AirPlay Mirroring。 上述现有媒体资源共享方法都解决了一些应用场景下的用户需求, 但是这些方法 都是将家庭网络中的各智能设备作为一个单独个体来进行操作, 无法将家庭网络中的 智能设备整个成一个整体, 来呈现给用户。 发明内容 本发明实施例提供了一种终端间进行通信的方法及终端, 能够使局域网络内的终 端进行信息通信。 为了达到上述目的, 本发明的实施例提供了一种终端间进行通信的方法, 包括: 发送所述终端的设备信息给与所述终端处于同一局域网内的其他终端; 获取所述其他终端根据所述终端的设备信息将所述终端加入所述其他终端的在线 设备列表内后, 返回的回执消息; 根据所述回执消息, 将所述其他终端加入所述终端的在线设备列表内。 进一步地, 所述终端间进行通信的方法还包括: 在一预设时间内向所述终端的在线设备列表内的其他终端发送心跳消息; 若没有接收到所述其他终端的回应, 则将所述其他终端从所述终端的在线设备列 表内删除。 其中, 所述终端间进行通信的方法还包括: 将所述终端的本地文件元数据发送给 所述终端的在线设备列表内的其他终端; 并获取所述其他终端接收到所述终端的所述本地文件元数据后, 返回的所述其他 终端的本地文件元数据。 进一步地, 所述终端间进行通信的方法还包括: 根据获取的所述其他终端的本地 文件元数据的时间, 修改所述终端与所述其他终端的同步时间。 其中, 所述终端间进行通信的方法还包括: 发送所述终端对所述其他终端的本地 文件进行操作的操作指令给所述其他终端设备; 获取其他终端根据所述操作指令对所述其他终端的本地文件进行操作的操作结果 信息。 其中, 所述终端间进行通信的方法还包括: 检索并获取所述终端的本地文件, 并 对所述终端的本地文件进行操作。 进一步地, 所述操作包括: 查看、 拷贝、 删除或修改。 本发明的另一实施例还提供了一种终端, 包括: 发送模块, 设置为发送所述终端的设备信息给与所述终端处于同一局域网内的其 他终端; 获取模块, 设置为获取所述其他终端根据所述终端的设备信息将所述终端加入所 述其他终端的在线设备列表内后, 返回的回执消息; 处理模块, 设置为根据所述回执消息, 将所述其他终端加入所述终端的在线设备 列表内。 进一步地, 所述发送模块还设置为在一预设时间内向所述终端的在线设备列表内 的其他终端发送心跳消息; 所述处理模块还设置为若没有接收到所述其他终端的回应, 则将所述其他终端从 所述终端的在线设备列表内删除。 其中, 所述发送模块还设置为将所述终端的本地文件元数据发送给所述终端的在 线设备列表内的其他终端; 所述获取模块还设置为获取所述其他终端接收到所述终端的所述本地文件元数据 后, 返回的所述其他终端的本地文件元数据。 进一步地, 所述处理模块还设置为根据获取的所述其他终端的本地文件元数据的 时间, 修改所述终端与所述其他终端的同步时间。 其中, 所述发送模块还设置为发送所述终端对所述其他终端的本地文件进行操作 的操作指令给所述其他终端设备; 所述获取模块还设置为获取其他终端根据所述操作指令对所述其他终端的本地文 件进行操作的操作结果信息。 本发明实施例的上述方案的有益效果如下: 通过本发明的上述实施例所提供的终端间进行通信的方法及终端, 可以将家庭局 域网络中所有终端的媒体资源进行整合, 通过在各终端设备之间同步媒体资源信息, 使得所有设备都能获得完整的家庭网络媒体资源信息。 附图说明 图 1是本发明的实施例终端间进行通信的方法流程图; 图 2是本发明的实施例的终端间进行相互发现的一具体流程示意图; 图 3是本发明的实施例家庭网络中终端间资源信息同步功能的流程示意图; 图 4是本发明的实施例家庭网络中终端间进行资源文件展示和操作功能的流程示 意图; 图 5是本发明的实施例家庭网络中终端进行本地文件信息操作的流程示意图; 图 6为本发明的实施例终端的一具体结构示意图。 具体实施方式 为使本发明要解决的技术问题、 技术方案和优点更加清楚, 下面将结合附图及具 体实施例进行详细描述。 需要说明的是, 在不冲突的情况下, 本申请中的实施例及实 施例中的特征可以相互组合。 本发明实施例针对现有的无法将家庭网络中的智能设备整个成一个整体的问题, 提供了一种终端间进行通信的方法及终端。 如图 1所示, 本发明的实施例提供了一种终端间进行通信的方法, 包括: 步骤 11, 发送所述终端的设备信息给与所述终端处于同一局域网内的其他终端; 步骤 12, 获取所述其他终端根据所述终端的设备信息将所述终端加入所述其他终 端的在线设备列表内后, 返回的回执消息; 步骤 13, 根据所述回执消息, 将所述其他终端加入所述终端的在线设备列表内。 该实施例通过将处于同一局域网内 (如家庭网络) 的终端上建立在线设备列表, 并可以将其它终端添加到本终端的在线设备列表, 从而实现同一局域网内的终端之间 的相互发现, 从而为终端间进行资源共享提供准备。 进一步地, 在上述实施例的基础上, 所述终端间进行通信的方法还包括: 步骤 14, 在一预设时间内向所述终端的在线设备列表内的其他终端发送心跳消 息; 步骤 15, 若没有接收到所述其他终端的回应, 则将所述其他终端从所述终端的在 线设备列表内删除。 通过本发明的上述实施例所提供的方法, 可以使同一局域网络内的智能终端相互 建立联系, 使所述局域网络内的智能终端整合成一个整体; 同时该方法还包括了终端 在线监测功能, 避免因为终端不在线而导致元数据传输失败。 下面结合图 2说明该实施例的具体实现流程: 智能终端 A启动后, 所述发送模块发送所述智能终端的设备信息, 包括: 设备标 识、 IP、 软硬件信息、 认证消息等; 所述局域网络内的智能终端 B中的获取模块在接 收到所述智能终端的设备信息后, 所述处理模块通过认证消息将智能终端 A加入智能 终端 B的在线设备列表, 然后向智能终端 A发送回执消息; 智能终端 A的处理模块 根据回执消息将智能终端 B加入在线设备列表;智能终端 A的发送模块定时向其在线 设备列表中的设备发送心跳消息, 并等待其回执,若在一定时间内相应设备没有应答, 则将其从在线设备列表中删除。 在本发明的另一实施例中, 所述终端间进行通信的方法还包括: 步骤 21, 将所述终端的本地文件元数据发送给所述终端的在线设备列表内的其他 终端; 步骤 22, 并获取所述其他终端接收到所述终端的所述本地文件元数据后, 返回的 所述其他终端的本地文件元数据。 该实施例通过将终端的本地文件元数据发送给在线设备列表内的其它终端, 并可 以获得其它终端的本地文件元数据, 从而实现了同一局域网内终端间的文件元数据同 步。 进一步地, 该实施例中, 所述终端间进行通信的方法还包括: 步骤 23, 根据获取的所述其他终端的本地文件元数据的时间, 修改所述终端与所 述其他终端的同步时间。 通过本发明的上述实施例所提供的方法, 可以使所述局域网络内的智能终端进行 元数据传输, 达到每个智能终端的文件信息同步的目的; 同时在所述智能终端信息同 步之后,还会记录同步文件信息的时间,避免一些智能终端长时间没有同步文件信息, 而出现文件信息不一致的现象。 下面结合图 3说明该实施例的具体实现流程: 智能终端 A检测其在线设备列表是否为空,若不为空则所述智能终端 A的发送模 块将发送智能终端 A的本地文件元数据给智能终端 B,智能终端 B在接收到智能终端 A发送过来的文件元数据后对智能终端 B的本地文件元数据进行更新同步, 然后再将 智能终端 B的本地文件元数据发送给智能终端 A, 同时智能终端 B在其在线设备列表 内修改智能终端 A的同步时间; 智能终端 A在接收到智能终端 B发送过来的文件元 数据后, 对其本身的本地文件元数据进行更新同步, 同时智能终端 A在其在线设备列 表内修改智能终端 B的同步时间。 在本发明的又一实施例中, 所述终端间进行通信的方法还包括: 步骤 31, 发送所述终端对所述其他终端的本地文件进行操作的操作指令给所述其 他终端设备; 步骤 32, 获取其他终端根据所述操作指令对所述其他终端的本地文件进行操作的 操作结果信息。 通过本发明的上述实施例所提供的方法, 由于终端上保存的是局域网内其它终端 的媒体文件元数据信息, 而元数据信息中又包含文件名、 类型、 所在终端 IP和存储路 径等信息; 所以可以使得用户通过任意一个设备对家庭网络中的任意媒体资源进行操 作; 避免用户因为忘记想要找的资源文件具体在那个智能终端利存储而不能所述资源 文件进行操作。 下面结合图 4说明该实施例的具体实现流程: 本发明的上述实施例的具体实现过程如图 4所示, 在用户要通过智能终端 A操作 智能终端 B的时候, 智能终端 A通过发送模块将操作命令消息发送到智能终端 B上, 智能终端 B接收所述命令消息后通过处理模块对其本地文件进行操作, 操作完成后在 将结果发送给智能终端 A, 智能终端 A接收所述操作结果后通过处理, 向用户展示处 理结果。 在本发明的又一实施例中, 所述终端间进行通信的方法还包括: 步骤 41, 检索并获取所述终端的本地文件, 并对所述终端的本地文件进行操作。 下面结合图 5说明该实施例的具体实现流程: 智能终端 A通过处理模块向文件检索模块发送文件检索的命令消息, 文件检索模 块调用文件操作代理模块的接口, 实现具体的本地媒体文件检索功能, 获得本地媒体 文件元数据信息, 如文件名、 创建时间、 类型、 大小、 快照等; 并可以对智能终端 A 的本地文件进行操作, 本发明的上述各实施例中, 所述操作包括: 查看、 拷贝、 删除 或修改等。 本发明的上述实施例相比于传统的媒体共享方法, 在于所述终端间进行通信的方 法可以将家庭网络中所有智能设备的媒体资源进行整合, 通过在各设备之间同步媒体 资源信息, 使得所有设备都能获得完整的家庭网络媒体资源信息。 这样也就使得用户 可以通过任意一个设备对家庭网络中的任意媒体资源进行操作。 本发明的实施例还提供了一种终端, 包括: 发送模块, 设置为发送所述终端的设备信息给与所述终端处于同一局域网内的其 他终端; 获取模块, 设置为获取所述其他终端根据所述终端的设备信息将所述终端加入所 述其他终端的在线设备列表内后, 返回的回执消息; 处理模块, 设置为根据所述回执消息, 将所述其他终端加入所述终端的在线设备 列表内。 进一步地, 所述发送模块还设置为在一预设时间内向所述终端的在线设备列表内 的其他终端发送心跳消息; 所述处理模块还设置为若没有接收到所述其他终端的回应, 则将所述其他终端从 所述终端的在线设备列表内删除。 本发明的上述实施例的具体实现过程如图 2所示, 智能终端 A启动后, 所述发送 模块发送所述智能终端的设备信息, 包括: 设备标识、 IP、 软硬件信息、 认证消息等; 所述局域网络内的智能终端 B中的获取模块在接收到所述智能终端的设备信息后, 所 述处理模块通过认证消息将智能终端 A加入智能终端 B的在线设备列表,然后向智能 终端 A发送回执消息; 智能终端 A的处理模块根据回执消息将智能终端 B加入在线 设备列表; 智能终端 A的发送模块定时向其在线设备列表中的设备发送心跳消息, 并 等待其回执, 若在一定时间内相应设备没有应答, 则将其从在线设备列表中删除。 其中, 所述发送模块还设置为将所述终端的本地文件元数据发送给所述终端的在 线设备列表内的其他终端; 所述获取模块还设置为获取所述其他终端接收到所述终端 的所述本地文件元数据后, 返回的所述其他终端的本地文件元数据。 进一步地, 所述处理模块还设置为根据获取的所述其他终端的本地文件元数据的 时间, 修改所述终端与所述其他终端的同步时间。 本发明的上述实施例的具体实现过程如图 3所示, 智能终端 A检测其在线设备列 表是否为空,若不为空则所述智能终端 A的发送模块将发送智能终端 A的本地文件元 数据给智能终端 B,智能终端 B在接收到智能终端 A发送过来的文件元数据后对智能 终端 B的本地文件元数据进行更新同步,然后再将智能终端 B的本地文件元数据发送 给智能终端 A, 同时智能终端 B在其在线设备列表内修改智能终端 A的同步时间; 智 能终端 A在接收到智能终端 B发送过来的文件元数据后,对其本身的本地文件元数据 进行更新同步, 同时智能终端 A在其在线设备列表内修改智能终端 B的同步时间。 其中, 所述发送模块还设置为发送所述终端对所述其他终端的本地文件进行操作 的操作指令给所述其他终端设备; 所述获取模块还设置为获取其他终端根据所述操作指令对所述其他终端的本地文 件进行操作的操作结果信息。 本发明的上述实施例的具体实现过程如图 4所示, 在用户要通过智能终端 A操作 智能终端 B的时候, 智能终端 A通过发送模块将操作命令消息发送到智能终端 B上, 智能终端 B接收所述命令消息后通过处理模块对其本地文件进行操作, 操作完成后在 将结果发送给智能终端 A, 智能终端 A接收所述操作结果后通过处理, 向用户展示处 理结果。 进一步的, 所述终端还可以在本地检索并获取所述终端的本地文件元数据, 并对 所述终端的本地文件元数据进行操作。 所述操作包括: 查看、 拷贝、 删除或修改。 对于上述终端, 其具体的实现结构图如图 6所示, 其中, 智能终端 A启动后, 向 局域网内的其他智能终端发送设备消息, 其他智能终端通过所述设备消息进行认证并 发送回执消息, 使之相互建立联系; 所述局域网内的智能终端通过局域网内通信进行 信息同步,同时也可以通过局域网内通信达到通过一个智能终端操作另一个智能终端; 操作所述智能终端的文件资源时, 可以通过处理模块以及文件检索模块和文件操作代 理模块相互配个完成, 主要是处理模块向文件检索模块发送命令, 文件检索模块调用 文件操作代理模块的接口, 实现具体的本地文件操作功能。 本发明的上述实施例将家庭网络中所有智能终端设备的媒体资源进行整合, 通过 在各智能终端设备之间同步媒体资源信息, 使得所有智能终端设备都能获得完整的家 庭网络媒体资源信息。 这样也就使得用户可以通过任意一个设备对家庭网络中的任意 媒体资源进行操作, 使用户操作起来简单方便, 快速有效; 同时也节省了用户的时间。 以上所述是本发明的优选实施方式, 应当指出, 对于本技术领域的普通技术人员 来说, 在不脱离本发明所述原理的前提下, 还可以作出若干改进和润饰, 这些改进和 润饰也应视为本发明的保护范围。 工业实用性 如上所述, 本发明实施例提供的一种终端间进行通信的方法及终端具有以下 有益效果: 可以将家庭局域网络中所有终端的媒体资源进行整合, 通过在各终端设 备之间同步媒体资源信息, 使得所有设备都能获得完整的家庭网络媒体资源信息。

Claims

权 利 要 求 书
1. 一种终端间进行通信的方法, 包括:
发送所述终端的设备信息给与所述终端处于同一局域网内的其他终端; 获取所述其他终端根据所述终端的设备信息将所述终端加入所述其他终端 的在线设备列表内后, 返回的回执消息;
根据所述回执消息, 将所述其他终端加入所述终端的在线设备列表内。
2. 根据权利要求 1所述的终端间进行通信的方法, 其中, 还包括:
在一预设时间内向所述终端的在线设备列表内的其他终端发送心跳消息; 若没有接收到所述其他终端的回应, 则将所述其他终端从所述终端的在线 设备列表内删除。
3. 根据权利要求 1所述的终端间进行通信的方法, 其中, 还包括:
将所述终端的本地文件元数据发送给所述终端的在线设备列表内的其他终
¾ ;
并获取所述其他终端接收到所述终端的所述本地文件元数据后, 返回的所 述其他终端的本地文件元数据。
4. 根据权利要求 3所述的终端间进行通信的方法, 其中, 还包括: 根据获取的所述其他终端的本地文件元数据的时间, 修改所述终端与所述 其他终端的同步时间。
5. 根据权利要求 1所述的终端间进行通信的方法, 其中, 还包括:
发送所述终端对所述其他终端的本地文件进行操作的操作指令给所述其他 终端设备;
获取其他终端根据所述操作指令对所述其他终端的本地文件进行操作的操 作结果信息。
6. 根据权利要求 1所述的终端间进行通信的方法, 其中, 还包括:
检索并获取所述终端的本地文件, 并对所述终端的本地文件进行操作。 根据权利要求 5或 6所述的终端间进行通信的方法, 其中, 所述操作包括: 查 看、 拷贝、 删除或修改。
8. 一种终端, 包括:
发送模块, 设置为发送所述终端的设备信息给与所述终端处于同一局域网 内的其他终端;
获取模块, 设置为获取所述其他终端根据所述终端的设备信息将所述终端 加入所述其他终端的在线设备列表内后, 返回的回执消息;
处理模块, 设置为根据所述回执消息, 将所述其他终端加入所述终端的在 线设备列表内。
9. 根据权利要求 8所述的终端, 其中, 所述发送模块还设置为在一预设时间内向 所述终端的在线设备列表内的其他终端发送心跳消息;
所述处理模块还设置为若没有接收到所述其他终端的回应, 则将所述其他 终端从所述终端的在线设备列表内删除。
10. 根据权利要求 8所述的终端, 其中, 所述发送模块还设置为将所述终端的本地 文件元数据发送给所述终端的在线设备列表内的其他终端;
所述获取模块还设置为获取所述其他终端接收到所述终端的所述本地文件 元数据后, 返回的所述其他终端的本地文件元数据。
11. 根据权利要求 10所述的终端,其中,所述处理模块还设置为根据获取的所述其 他终端的本地文件元数据的时间, 修改所述终端与所述其他终端的同步时间。
12. 根据权利要求 8所述的终端, 其中, 所述发送模块还设置为发送所述终端对所 述其他终端的本地文件进行操作的操作指令给所述其他终端设备;
所述获取模块还设置为获取其他终端根据所述操作指令对所述其他终端的 本地文件进行操作的操作结果信息。
PCT/CN2014/079631 2013-12-09 2014-06-10 一种终端间进行通信的方法及终端 WO2014180436A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201310661999.XA CN104702578A (zh) 2013-12-09 2013-12-09 一种终端间进行通信的方法及终端
CN201310661999.X 2013-12-09

Publications (1)

Publication Number Publication Date
WO2014180436A1 true WO2014180436A1 (zh) 2014-11-13

Family

ID=51866816

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/079631 WO2014180436A1 (zh) 2013-12-09 2014-06-10 一种终端间进行通信的方法及终端

Country Status (2)

Country Link
CN (1) CN104702578A (zh)
WO (1) WO2014180436A1 (zh)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105391773A (zh) * 2015-10-16 2016-03-09 广东欧珀移动通信有限公司 一种数据传输方法及装置
CN106060894A (zh) * 2016-05-16 2016-10-26 乐视控股(北京)有限公司 一种获取互动设备列表的方法及系统
CN106302692A (zh) * 2016-08-09 2017-01-04 深圳Tcl新技术有限公司 设备的发现方法和装置

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101218797A (zh) * 2005-07-04 2008-07-09 Sk电信股份有限公司 用于家庭网络服务的住宅网关系统
CN101621385A (zh) * 2008-06-30 2010-01-06 Tcl集团股份有限公司 一种智能设备组的管理方法
CN102123065A (zh) * 2010-12-29 2011-07-13 东软集团股份有限公司 家庭间dlna设备发现和控制方法及装置
CN103108381A (zh) * 2012-12-31 2013-05-15 中兴通讯股份有限公司 近场通讯方法与设备
JP2013123126A (ja) * 2011-12-09 2013-06-20 Samsung Yokohama Research Institute Co Ltd Dlna対応機器およびその探索方法

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4756914B2 (ja) * 2005-05-30 2011-08-24 キヤノン株式会社 遠隔協調作業支援システム及びその制御方法
CN100362799C (zh) * 2006-03-23 2008-01-16 华为技术有限公司 一种社会网络的实现方法
CN102118418A (zh) * 2009-12-30 2011-07-06 比亚迪股份有限公司 一种移动终端数据共享系统和方法
CN103051624A (zh) * 2012-12-21 2013-04-17 康佳集团股份有限公司 通过移动设备向智能终端推送共享媒体资源的方法和系统
CN103108051A (zh) * 2013-02-27 2013-05-15 上海够快网络科技有限公司 一种从云端服务器同步共享文件的方法

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101218797A (zh) * 2005-07-04 2008-07-09 Sk电信股份有限公司 用于家庭网络服务的住宅网关系统
CN101621385A (zh) * 2008-06-30 2010-01-06 Tcl集团股份有限公司 一种智能设备组的管理方法
CN102123065A (zh) * 2010-12-29 2011-07-13 东软集团股份有限公司 家庭间dlna设备发现和控制方法及装置
JP2013123126A (ja) * 2011-12-09 2013-06-20 Samsung Yokohama Research Institute Co Ltd Dlna対応機器およびその探索方法
CN103108381A (zh) * 2012-12-31 2013-05-15 中兴通讯股份有限公司 近场通讯方法与设备

Also Published As

Publication number Publication date
CN104702578A (zh) 2015-06-10

Similar Documents

Publication Publication Date Title
JP6101861B2 (ja) グループ作成方法、グループ脱退方法、装置、プログラム、及び記録媒体
WO2014101889A1 (zh) 数据同步方法及设备
JP5275584B2 (ja) UPnPコンテンツディレクトリサービスを同期化する方法及び装置
JP5094840B2 (ja) ホームネットワークデバイスのコンテンツを同期化する方法及び装置
US20160100035A1 (en) Personal handheld web server and storage device
US10034057B2 (en) Message processing method, device, gateway, STB and IPTV
WO2020062805A1 (zh) 一种多媒体文件处理方法、发送终端和显示终端
WO2013063941A1 (zh) 家庭网络中dlna终端的屏幕共享方法及系统
WO2004077207A2 (en) A method of sharing files between user stations in a network
WO2022262465A1 (zh) 基于opc ua的时间敏感网络集中用户配置方法及系统
JP2022534179A (ja) データ伝送方法、装置、コンピュータプログラム、及びコンピュータ装置
WO2013127145A1 (zh) 针对群组资源的操作方法、群组服务器
WO2013177734A1 (zh) 局域网中媒体资源播放列表的处理方法、装置和系统
US20140012813A1 (en) Method and apparatus for synchronizing personal information
WO2017114190A1 (zh) 一种文件上传处理方法及装置
WO2014154108A1 (zh) 媒体流的转移方法和用户设备
WO2013152677A1 (zh) 资源共享方法及设备
US20150244755A1 (en) Method, apparatus, and home network system for presenting multiple images, and mobile terminal
WO2013174060A1 (zh) 基于个人信息管理系统的信息同步方法、装置及通信终端
US8909600B2 (en) Information processing apparatus, information processing method, and storage medium
JP2016524767A (ja) インスタントメッセージの管理方法、装置、プログラム及び記録媒体
WO2021087892A1 (zh) 资源的订阅方法、设备及存储介质
WO2014180436A1 (zh) 一种终端间进行通信的方法及终端
WO2024017113A1 (zh) 数据同步方法、装置和电子设备
CN104378425B (zh) 移动终端和web终端之间互连及同步通讯信息的方法

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

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

Country of ref document: EP

Kind code of ref document: A1