WO2014187295A1 - Communication method, terminal and communication system - Google Patents

Communication method, terminal and communication system Download PDF

Info

Publication number
WO2014187295A1
WO2014187295A1 PCT/CN2014/077807 CN2014077807W WO2014187295A1 WO 2014187295 A1 WO2014187295 A1 WO 2014187295A1 CN 2014077807 W CN2014077807 W CN 2014077807W WO 2014187295 A1 WO2014187295 A1 WO 2014187295A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal
communication
group
module
controlled terminal
Prior art date
Application number
PCT/CN2014/077807
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 WO2014187295A1 publication Critical patent/WO2014187295A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/06Selective distribution of broadcast services, e.g. multimedia broadcast multicast service [MBMS]; Services to user groups; One-way selective calling services
    • H04W4/08User group management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication

Definitions

  • the present invention relates to the field of electronic communications, and in particular, to a communication method, a terminal, and a communication system. Background technique
  • Wireless compatibility authentication direct connection Wi-Fi Direct, Wireless Fidelity
  • the Direct technology allows each terminal in the wireless network to be connected to each other without using a wireless router, and allows the wireless terminal to establish a connection through the topology of the group, including the master terminal and the access terminal, and the master terminal And the access terminal may be a one-to-one or one-to-many topology; wherein the master terminal is responsible for controlling and managing the entire group throughout the process, including controlling access of the access terminal, when the group is started, and Termination, etc., and can provide some of the services provided by the infrastructure access point.
  • embodiments of the present invention provide a communication method, a terminal, and a communication system.
  • the embodiment of the present invention provides a communication method, where the method includes: the main control terminal invites the controlled terminal to join the communication group through the near field wireless communication, acquires the identifier of the controlled terminal, and uses all the communication groups.
  • the member's identity informs each member of the communication group; members of the communication group communicate with each other based on the learned identity.
  • the initiating terminal invites the controlled terminal to join the communication group by the near field wireless communication
  • the master control terminal detects the broadcast message sent by the controlled terminal through the near field wireless communication, where
  • the controlled terminal broadcast message includes a terminal name of the controlled terminal; and establishing a connection with the controlled terminal according to the detected broadcast message.
  • the method further includes: storing the controlled terminal identification information to the identifier list; and the master terminal notifying the identifier of all members in the communication group
  • Each member in the group includes: the master terminal transmitting the identifier list to each member of the group.
  • the members in the communication group communicate with each other according to the learned identifiers: in the communication group, according to the obtained identifiers, any one member initiates communication actively, in the group
  • the other member implements resource sharing with the member terminal, where the identifier is IP information of a group member.
  • the embodiment of the present invention further provides a terminal, where the terminal includes: a group module and a communication module, where the group module is configured to establish a communication group by using near field wireless communication and the controlled terminal;
  • the acquired identifier communicates with other members within the communication group.
  • the group module includes: a detection sub-module, a transmission sub-module, and a connection sub-module, where the detection sub-module is configured to detect a broadcast message sent by the controlled terminal through the near field wireless communication, where the controlled terminal broadcast message includes a terminal name of the controlled terminal; the sending submodule configured to notify each member in the communication group of the identity of all members in the communication group; the connection submodule is configured to be according to the detected Broadcast message, establishing a connection with the controlled terminal.
  • the terminal further includes a storage module, and the storage module is configured to: after the obtaining the identifier of the controlled terminal, storing an identifier list that includes the controlled terminal identification information, where the sending module is specifically configured to Each member of the group sends the list of identities.
  • An embodiment of the present invention further provides another terminal, where the terminal includes a group module and a communication module, where the group module is configured to establish a communication group by using a near field wireless communication and a master terminal; the communication module is configured according to The identified identity and all other members of the communication group communicate with each other.
  • the group module includes a radio frequency submodule, a connection submodule, and a receiving submodule, and the radio frequency
  • the submodule is configured to transmit a broadcast message through the near field wireless communication and accept the invitation of the main control terminal, and join the communication group, where the broadcast message includes the terminal name of the terminal;
  • the connection submodule is configured to establish a connection with the main control terminal.
  • the receiving submodule is configured to receive an identification of all members of the communication group.
  • the embodiment of the present invention further provides a communication system, where the communication system includes a main control terminal and a controlled terminal, the main control terminal includes a first group module and a first communication module, and the first group module is configured as Establishing a communication group by the near field wireless communication and the controlled terminal; the first communication module is configured to communicate with other members in the communication group according to the acquired identifier; the controlled terminal includes a second group a group module and a second communication module, wherein the second group module is configured to establish a communication group by the near field wireless communication and the master terminal; the second communication module is configured to learn the identifier and the communication group according to the All other members of the group communicate with each other.
  • the embodiment of the present invention further provides a computer readable storage medium, where the storage medium includes a set of instructions, and the instructions are used to execute the communication method described in the foregoing embodiments.
  • the Wi-Fi Direct technology constitutes a communication group, and IP information sharing is implemented in the communication group, so that all member terminals in the group communicate with each other.
  • the communication system provided by the embodiment of the present invention does not depend on the router, nor does it depend on the carrier network, realizes real-time group communication and sharing from the router, and performs high-speed transmission based on Wi-Fi Direct, communication between all members in the group. The delay is small and the real-time performance is strong.
  • Figure 2 is a flow chart of an embodiment of the present invention
  • FIG. 3 is a schematic diagram of interaction of another embodiment of the present invention.
  • FIG. 4 is a schematic diagram of a terminal embodiment of the present invention.
  • FIG. 5 is a schematic diagram of another terminal embodiment of the present invention
  • FIG. Figure 6 is a schematic diagram of a system in accordance with an embodiment of the present invention. detailed description
  • the embodiment of the present invention forms a communication group through the terminal, in the group.
  • members initiate communication
  • other members can share the communication information.
  • group members can communicate with each other, share data, and the like within the group.
  • the host terminal first invites other terminals to join the group through Wi-Fi Direct. After the member joins, if the members in the group share communication information, each member needs to know the uniqueness of other members.
  • the identifier such as IP information
  • IP information is used to receive communications initiated by other members, so the group convener host terminal needs to save their unique identifier when establishing a connection with the group members, and then send the saved identifier to each After the member terminal and the master terminal complete the convening task, that is, after the group is established, the master terminal and other members can share the communication information initiated by other members.
  • Step S11 The main control terminal invites the controlled terminal to join the communication group through near field wireless communication, and acquires the controlled terminal. Identifying, and notifying each member of the communication group of the identity of all members of the communication group;
  • Step S12 The members in the communication group communicate with each other according to the learned identifier.
  • FIG. 2 is a flowchart of an embodiment of the present invention. This embodiment discloses a method for a terminal to communicate with each other through a Wi-Fi direct connection technology. As shown in FIG. 2, the method includes:
  • Step 201 Turn on the terminal directly connected to the Wi-Fi to send a broadcast message. Specifically, after the terminal turns on the Wi-Fi Direct, the information of the terminal is broadcasted through the Wi-Fi Direct protocol, and the information includes a terminal name, an encryption mode, a signal strength, and the like, when the terminal is in a Wi-Fi state. When the change is made, a broadcast message is sent to notify the surrounding terminals.
  • Step 202 The master control terminal detects the broadcast message sent by the controlled terminal.
  • the broadcast monitor is used to monitor and obtain the discovery terminal message.
  • Step 203 The master terminal joins the controlled terminal 1 to the communication group according to the monitored broadcast message, establishes a connection with the controlled terminal 1, and acquires the terminal identifier of the controlled terminal 1;
  • the master terminal establishes a connection with the controlled terminal according to the terminal name of the terminal, and acquires the controlled terminal identifier in the connection process.
  • the controlled terminal is identified as a parameter identifier capable of uniquely determining the controlled terminal, such as an IP address.
  • Step 204 The master terminal stores an IP address of the master terminal and the controlled terminal in an identifier list.
  • Step 205 The main control terminal joins the controlled terminal 2 to the communication group according to the monitored broadcast message, establishes a connection with the controlled terminal, and acquires the terminal identifier of the controlled terminal 2; the IP address of the controlled terminal 2 Stored to the list of identifiers;
  • the main control terminal joins the controlled terminal 3 to the communication group according to the monitored broadcast message, establishes a connection with the controlled terminal, and acquires the terminal identifier of the controlled terminal 3; the IP address of the controlled terminal 3 Stored to the list of identifiers;
  • Step 206 Send the identifier list to the controlled terminal 1 in the communication group, the controlled terminal 2, and the controlled terminal 3;
  • the communication group includes a master terminal, a controlled terminal 1, a controlled terminal 2, and a receiver.
  • the four members of the control terminal 3 do not limit the number of group members in the embodiment of the present invention.
  • Step 207 The group member performs data transmission through the socket. Any member of the group acts as a server, and other members of the group act as clients.
  • a server socket object is created.
  • the server socket object waits for a connection from a client with a specified address and port and blocks the thread until the connection occurs, so it is built in a background thread. ;
  • the master terminal and the controlled terminal in the group display both the transmitted and received messages in the visual group interface.
  • Step 208 Any member of the communication group exits the group communication.
  • the member in the communication group can trigger the group communication to be closed by the corresponding function button or menu item, close the group communication window of the member, and disconnect the other members of the communication group.
  • Step 209 The process ends.
  • FIG. 3 is a schematic diagram of data sharing interaction according to an embodiment of the present invention.
  • the embodiment of the present invention discloses a method for sharing data in a group formed by a Wi-Fi Direct connection technology, and the method shown in FIG. 3 includes the following steps. Steps:
  • Step 301 Any user in the communication group can be regarded as a host user, select other users in the group, and click a data sharing button;
  • Step 302 The master control terminal sends a data sharing request to the controlled terminal corresponding to other users in the group, and starts to play the video after sending the sharing mode request.
  • Step 303 The controlled terminal pops up a prompt to the controlled end user, prompting the controlled terminal user to send a response response to the main control terminal.
  • Step 304 The controlled end user receives the data sharing request, and triggers the controlled terminal to enter Data sharing;
  • Step 305 After receiving the data sharing request, the controlled terminal sends a response response to the data sharing request to the main control terminal according to the terminal identifier of the main control terminal.
  • Step 306 After the main control terminal enters the sharing mode, the screen video data is captured and processed. Specifically, the step includes: performing high-speed compression on the video data of the video screen in a preset compression manner, and storing the video data in the storage module. In the middle, the motion compensation coding algorithm and the transform coding are combined, the motion compensation removes the time domain redundancy, the transform coding removes the spatial redundancy, and the combined signal delay of the coding and decoding does not exceed 150 ms.
  • Step 307 After receiving the signal of receiving the control request, extracting compressed screen video data from the storage module, and transmitting the transmission data through the established channel;
  • the established channel is a WIFI direct communication channel established by the master control terminal and the controlled terminal.
  • Step 308 After receiving the high-speed compressed data, the controlled terminal obtains a video digital signal according to a corresponding decompression method
  • Step 309 The controlled terminal plays the video, that is, the screen data is obtained by demodulation and played by the local player;
  • Step 310 The main control user clicks the close data sharing button
  • Step 311 The master terminal sends a close data sharing notification to the controlled terminal.
  • Step 312 The controlled terminal receives the closed data sharing notification, exits data sharing, and prompts the controlled end user.
  • the controlled terminal and the main control terminal can exit the communication mode at any time.
  • the controlled terminal exits the communication mode the shared terminal does not affect the sharing of the controlled terminal and other controlled terminals.
  • the main control terminal exits the communication mode, All controlled terminals will be notified to exit the communication mode.
  • the communication mode in the embodiment of the present invention includes not only group communication and data sharing, but the embodiment only lists two examples.
  • the communication modes can be simultaneously and combined without conflict, and those skilled in the art do not pay.
  • the modifications made to the embodiments of the present invention under the premise of creative labor are also within the scope of protection of the embodiments of the present invention.
  • the group communication and the data sharing provided by the embodiment of the present invention can be directly entered by the terminal after the group is established, and the communication modes of the two can be mutually converted. For example, when the master terminal and the controlled terminal are in the group communication mode, the sharing can be triggered. Mode, Similarly, when the master terminal and the controlled terminal are in a shared state, the group communication mode can be triggered in the same manner as the embodiment described above. In the technical solution provided by the embodiment of the present invention, any terminal in the group may be actively initiated to become a master terminal.
  • the communication terminal as shown in FIG. 4 includes: a group module 41 configured to establish a communication group by using near field wireless communication and the controlled terminal;
  • the communication module 42 is configured to communicate with other members of the communication group based on the acquired identification.
  • the group module 41 includes:
  • the detecting sub-module 411 is configured to detect a broadcast message sent by the controlled terminal through the near field wireless communication, where the controlled terminal broadcast message includes a terminal name of the controlled terminal;
  • the sending submodule 413 is configured to notify each member in the communication group of the identity of all members in the communication group;
  • connection sub-module 412 is configured to establish a connection with the controlled terminal according to the detected broadcast message.
  • the group module 41 and the communication module 42 may be a central processing unit (CPU) of a communication terminal shown in FIG. 3, a microprocessor (MPU, Micro Processing Unit), and a digital signal processor ( DSP, Digital Signal Processor) or Field Programmable Gate Array (FPGA).
  • CPU central processing unit
  • MPU Microprocessor
  • DSP Digital Signal Processor
  • FPGA Field Programmable Gate Array
  • the terminal includes a group module 51 and a communication module 52, and the group module 51 is configured to pass near-field wireless.
  • the communication and the master terminal establish a communication group; the communication module 52 is configured to communicate with each other according to the learned identity and all other members in the communication group.
  • the group module 51 includes a radio frequency sub-module 511, a connection sub-module 512, and a receiving sub-module 513.
  • the radio frequency sub-module 511 is configured to transmit a broadcast message through near-field wireless communication and accept an invitation from the main control terminal to join the communication.
  • the broadcast message includes a terminal name of the terminal;
  • the connection sub-module 512 is configured to establish a connection with the master terminal;
  • the receiving sub-module 513 is configured to receive an identifier of all members in the communication group.
  • group module 51 and the communication module 52 may be implemented by a CPU, an MPU, a DSP or an FPGA of the communication terminal shown in FIG. 5.
  • FIG. 6 is a schematic structural diagram of a communication system group according to an embodiment of the present invention.
  • the communication system shown in FIG. 6 includes a master terminal 61, a controlled terminal 62, and a controlled terminal.
  • the main control terminal 61 includes a group module and a communication module, and the group module is configured to establish a communication group by using a near field wireless communication and a controlled terminal; the communication module is configured to: according to the acquired identifier and the Other members of the communication group communicate with each other.
  • the controlled terminal 62 and the controlled terminal 63 both include a group module and a communication module, and the group module is configured to establish a communication group by the near field wireless communication and the master terminal; the communication module is configured to be learned according to the The identification and all other members of the communication group communicate with each other.
  • the master terminal and the controlled terminal both have a Wi-Fi Direct function, which is used to search for a radio frequency identifier of the terminal, automatically establish a wireless connection, and transmit data through the Wi-Fi Direct; currently using Android4 Smart terminals above the .0 platform have Wi-Fi Direct modules.
  • any terminal having the Wi-Fi Direct function can be implemented, and the main control terminal invites an available controlled terminal to access the group, and the main control terminal can select to initiate the group communication mode or share. mode. If the main control terminal selects the group communication mode, the group chat interface is started; if the main control terminal selects the sharing mode, the path is provided to enter the sharing mode, and different modes can be simultaneously performed and switched without conflict.
  • the embodiment of the present invention further provides a computer readable storage medium, where the storage medium includes a set of instructions, and the instructions are used to execute the communication method according to the embodiment of the present invention.
  • embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of a hardware embodiment, a software embodiment, or an embodiment of a combination of software and hardware. Moreover, the invention can be embodied in the form of a computer program product embodied on one or more computer usable storage media (including but not limited to disk storage and optical storage, etc.) including computer usable program code.
  • the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
  • the apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
  • These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device.
  • the instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.

Abstract

The present invention discloses a communication method, said method comprising the following steps: a main control terminal, by means of near-field wireless communication, invites a controlled terminal to join a communication group, obtains an identifier for the controlled terminal and notifies each member of the communication group of the identifiers of all members (S11); the members of the communication group communicate with one another in accordance with the notified identifiers (S12). The present invention additionally discloses a terminal and a communication system.

Description

一种通信方法、 终端及通信系统 技术领域  Communication method, terminal and communication system
本发明涉及电子通信领域,尤其涉及一种通信方法、终端及通信系统。 背景技术  The present invention relates to the field of electronic communications, and in particular, to a communication method, a terminal, and a communication system. Background technique
无线通信网络中, 无线相容性认证直连 ( Wi-Fi Direct, Wireless Fidelity Wireless compatibility authentication direct connection (Wi-Fi Direct, Wireless Fidelity)
Direct )技术允许无线网络中的各个终端之间无需通过无线路由器即可相互 连接, 可以允许无线终端通过组建小组的拓朴形式来建立连接, 包括主控 终端和接入终端, 所述主控终端和接入终端可以是一对一或一对多的拓朴 形式; 其中, 所述主控终端在整个过程中负责整个小组的控制和管理, 包 括控制接入终端的加入、 小组何时启动和终止等, 且能够提供基础设施接 入点所提供的部分服务。 The Direct technology allows each terminal in the wireless network to be connected to each other without using a wireless router, and allows the wireless terminal to establish a connection through the topology of the group, including the master terminal and the access terminal, and the master terminal And the access terminal may be a one-to-one or one-to-many topology; wherein the master terminal is responsible for controlling and managing the entire group throughout the process, including controlling access of the access terminal, when the group is started, and Termination, etc., and can provide some of the services provided by the infrastructure access point.
但是,目前的 Wi-Fi Direct技术在终端在接入后是用于点对点文件传输, 还无法实现针对群组进行实时通信的业务, 这就不能充分利用 Wi-Fi Direct 技术带来的种种优势。 发明内容  However, the current Wi-Fi Direct technology is used for point-to-point file transmission after the terminal is accessed, and it is not possible to implement real-time communication for the group, which cannot fully utilize the advantages brought by the Wi-Fi Direct technology. Summary of the invention
为了解决现有存在的技术问题, 本发明实施例提供一种通信方法、 终 端和通信系统。  In order to solve the existing technical problems, embodiments of the present invention provide a communication method, a terminal, and a communication system.
本发明实施例提供一种通信方法, 所述方法包括: 主控终端通过近场 无线通信邀请受控终端加入通信群组, 获取所述受控终端的标识, 并将所 述通信群组内所有成员的标识告知所述通信群组内的每一成员; 所述通信 群组内的成员根据获知的所述标识互相通信。  The embodiment of the present invention provides a communication method, where the method includes: the main control terminal invites the controlled terminal to join the communication group through the near field wireless communication, acquires the identifier of the controlled terminal, and uses all the communication groups. The member's identity informs each member of the communication group; members of the communication group communicate with each other based on the learned identity.
该方案中, 所述主控终端通过近场无线通信邀请受控终端加入通信群 组包括:主控终端检测受控终端通过近场无线通信发出的广播消息,其中, 所述受控终端广播消息包括受控终端的终端名; 根据检测到的所述广播消 息, 与所述受控终端建立连接。 In the solution, the initiating terminal invites the controlled terminal to join the communication group by the near field wireless communication, and the master control terminal detects the broadcast message sent by the controlled terminal through the near field wireless communication, where The controlled terminal broadcast message includes a terminal name of the controlled terminal; and establishing a connection with the controlled terminal according to the detected broadcast message.
在所述获取受控终端的标识之后, 所述方法还包括: 将所述受控终端 标识信息存储到标识列表; 所述主控终端将所述通信群组内所有成员的标 识告知所述通信群组内的每一成员包括: 所述主控终端向所述群组中每一 个成员发送所述标识列表。  After the obtaining the identifier of the controlled terminal, the method further includes: storing the controlled terminal identification information to the identifier list; and the master terminal notifying the identifier of all members in the communication group Each member in the group includes: the master terminal transmitting the identifier list to each member of the group.
所述方法中, 所述通信群组内的成员根据获知的所述标识互相通信包 括: 所述通信群组内, 根据获取到的所述标识, 任意一个成员主动发起通 信, 所述群组内其他成员实现与所述成员终端的资源共享, 其中, 所述标 识为群组成员的 IP信息。  In the method, the members in the communication group communicate with each other according to the learned identifiers: in the communication group, according to the obtained identifiers, any one member initiates communication actively, in the group The other member implements resource sharing with the member terminal, where the identifier is IP information of a group member.
本发明实施例还提供一种终端,所述终端包括:群组模块和通信模块, 所述群组模块配置为通过近场无线通信和受控终端建立通信群组; 所述通 信模块配置为根据获取的所述标识与所述通信群组内的其他成员互相通信。 所述群组模块包括: 检测子模块、 发送子模块和连接子模块, 所述检测子 模块配置为检测受控终端通过近场无线通信发出的广播消息, 其中, 所述 受控终端广播消息包括受控终端的终端名; 所述发送子模块配置为将所述 通信群组内所有成员的标识告知所述通信群组内的每一成员; 所述连接子 模块配置为根据检测到的所述广播消息, 与所述受控终端建立连接。  The embodiment of the present invention further provides a terminal, where the terminal includes: a group module and a communication module, where the group module is configured to establish a communication group by using near field wireless communication and the controlled terminal; The acquired identifier communicates with other members within the communication group. The group module includes: a detection sub-module, a transmission sub-module, and a connection sub-module, where the detection sub-module is configured to detect a broadcast message sent by the controlled terminal through the near field wireless communication, where the controlled terminal broadcast message includes a terminal name of the controlled terminal; the sending submodule configured to notify each member in the communication group of the identity of all members in the communication group; the connection submodule is configured to be according to the detected Broadcast message, establishing a connection with the controlled terminal.
所述终端还包括存储模块, 所述存储模块配置为在所述获取受控终端 的标识之后, 存储包含受控终端标识信息的标识列表, 该方案中, 所述发 送模块具体用于向所述群组中每一个成员发送所述标识列表。  The terminal further includes a storage module, and the storage module is configured to: after the obtaining the identifier of the controlled terminal, storing an identifier list that includes the controlled terminal identification information, where the sending module is specifically configured to Each member of the group sends the list of identities.
本发明实施例还提供另外一种终端, 所述终端包括群组模块和通信模 块, 所述群组模块配置为通过近场无线通信和主控终端建立通信群组; 所 述通信模块配置为根据获知的所述标识和所述通信群组内其他所有成员互 相通信。  An embodiment of the present invention further provides another terminal, where the terminal includes a group module and a communication module, where the group module is configured to establish a communication group by using a near field wireless communication and a master terminal; the communication module is configured according to The identified identity and all other members of the communication group communicate with each other.
所述群组模块包括射频子模块、 连接子模块和接收子模块, 所述射频 子模块配置为通过近场无线通信发射广播消息并接受主控终端的邀请, 加 入通信群组, 所述广播消息包含所述终端的终端名; 所述连接子模块配置 为与主控终端建立连接; 所述接收子模块配置为接收所述通信群组内所有 成员的标识。 The group module includes a radio frequency submodule, a connection submodule, and a receiving submodule, and the radio frequency The submodule is configured to transmit a broadcast message through the near field wireless communication and accept the invitation of the main control terminal, and join the communication group, where the broadcast message includes the terminal name of the terminal; the connection submodule is configured to establish a connection with the main control terminal. The receiving submodule is configured to receive an identification of all members of the communication group.
本发明实施例还提供一种通信系统, 所述通信系统包括主控终端和受 控终端, 所述主控终端包括第一群组模块和第一通信模块, 所述第一群组 模块配置为通过近场无线通信和受控终端建立通信群组; 所述第一通信模 块配置为根据获取的所述标识与所述通信群组内的其他成员互相通信; 所述受控终端包括第二群组模块和第二通信模块, 所述第二群组模块 配置为通过近场无线通信和主控终端建立通信群组; 所述第二通信模块配 置为根据获知的所述标识和所述通信群组内其他所有成员互相通信。  The embodiment of the present invention further provides a communication system, where the communication system includes a main control terminal and a controlled terminal, the main control terminal includes a first group module and a first communication module, and the first group module is configured as Establishing a communication group by the near field wireless communication and the controlled terminal; the first communication module is configured to communicate with other members in the communication group according to the acquired identifier; the controlled terminal includes a second group a group module and a second communication module, wherein the second group module is configured to establish a communication group by the near field wireless communication and the master terminal; the second communication module is configured to learn the identifier and the communication group according to the All other members of the group communicate with each other.
本发明实施例还提供一种计算机可读存储介质, 所述存储介质包括一 组指令, 所述指令用于执行上述实施例所述的通信方法。  The embodiment of the present invention further provides a computer readable storage medium, where the storage medium includes a set of instructions, and the instructions are used to execute the communication method described in the foregoing embodiments.
由上述的技术方案可见, 本发明实施例所述的通信方法, 通过基于 It can be seen from the foregoing technical solutions that the communication method according to the embodiment of the present invention is based on
Wi-Fi Direct技术组成通信群组, 并在所述通信群组内实现了 IP信息共享, 实现群组中所有成员终端的互相通信。 本发明实施例提供的通信系统不依 赖于路由器, 也不依赖于运营商网络, 实现脱离路由器的实时群组通信和 共享, 基于 Wi-Fi Direct 的高速传输, 群组中所有成员之间的通信延迟小, 实时性强。 附图说明 The Wi-Fi Direct technology constitutes a communication group, and IP information sharing is implemented in the communication group, so that all member terminals in the group communicate with each other. The communication system provided by the embodiment of the present invention does not depend on the router, nor does it depend on the carrier network, realizes real-time group communication and sharing from the router, and performs high-speed transmission based on Wi-Fi Direct, communication between all members in the group. The delay is small and the real-time performance is strong. DRAWINGS
图 1是本发明实施例基本流程图;  1 is a basic flow chart of an embodiment of the present invention;
图 2是本发明一个实施例流程图;  Figure 2 is a flow chart of an embodiment of the present invention;
图 3是本发明另一个实施例交互示意图;  3 is a schematic diagram of interaction of another embodiment of the present invention;
图 4是本发明一终端实施例示意图;  4 is a schematic diagram of a terminal embodiment of the present invention;
图 5是本发明另一终端实施例示意图; 图 6是本发明实施例系统示意图。 具体实施方式 FIG. 5 is a schematic diagram of another terminal embodiment of the present invention; FIG. Figure 6 is a schematic diagram of a system in accordance with an embodiment of the present invention. detailed description
下面结合附图和具体实施例对本发明的技术方案进一步详细阐述。 为了解决目前的 Wi-Fi Direct技术在终端在接入后是用于点对点文件传 输, 无法实现针对群组进行实时通信的业务的问题, 本发明实施例通过终 端组成通信群组, 群组内的成员主动发起通信时, 其他成员可以共享该通 信信息, 例如, 群成员可以在群组内互相通讯、 共享数据等等。 在组建群 组时, 首先由主控终端通过 Wi-Fi Direct邀请其他终端加入群组, 在成员加 入后, 如果实现群组内的成员共享通信信息的话, 需要每个成员都知道其 他成员的唯一标识, 例如 IP信息, 借此来接收其他成员主动发起的通信, 因此群组的召集人主控终端需要在与群组成员建立连接时保存他们的唯一 标识, 然后把保存的标识发给每个成员, 主控终端在完成召集任务, 即群 组组建完毕后, 主控终端和其他成员一样可以共享其他成员发起的通信信 息。  The technical solutions of the present invention are further elaborated below in conjunction with the accompanying drawings and specific embodiments. In order to solve the problem that the current Wi-Fi Direct technology is used for point-to-point file transmission after the terminal is accessed, and the service for real-time communication for the group cannot be implemented, the embodiment of the present invention forms a communication group through the terminal, in the group. When members initiate communication, other members can share the communication information. For example, group members can communicate with each other, share data, and the like within the group. When a group is formed, the host terminal first invites other terminals to join the group through Wi-Fi Direct. After the member joins, if the members in the group share communication information, each member needs to know the uniqueness of other members. The identifier, such as IP information, is used to receive communications initiated by other members, so the group convener host terminal needs to save their unique identifier when establishing a connection with the group members, and then send the saved identifier to each After the member terminal and the master terminal complete the convening task, that is, after the group is established, the master terminal and other members can share the communication information initiated by other members.
图 1是本发明实施例基本流程图,如图 1所述的方法,包括以下步骤: 步骤 S11 : 主控终端通过近场无线通信邀请受控终端加入通信群组, 获 取所述受控终端的标识, 并将所述通信群组内所有成员的标识告知所述通 信群组内的每一成员;  1 is a basic flowchart of an embodiment of the present invention. The method as shown in FIG. 1 includes the following steps: Step S11: The main control terminal invites the controlled terminal to join the communication group through near field wireless communication, and acquires the controlled terminal. Identifying, and notifying each member of the communication group of the identity of all members of the communication group;
步骤 S12: 所述通信群组内的成员根据获知的所述标识互相通信。  Step S12: The members in the communication group communicate with each other according to the learned identifier.
为了使本发明实现的技术手段, 创作特征, 达成目的与功效易于明白 了解, 下面结合具体图示, 进一步阐述。  In order to make the technical means, creative features, and goals and effects of the present invention easy to understand and understand, the following further clarifies with reference to specific illustrations.
实施例一  Embodiment 1
图 2是本发明一个实施例流程图,本实施例公开了一种终端通过 Wi-Fi 直连技术组成群组相互通信的方法, 如图 2所示, 包括:  2 is a flowchart of an embodiment of the present invention. This embodiment discloses a method for a terminal to communicate with each other through a Wi-Fi direct connection technology. As shown in FIG. 2, the method includes:
步骤 201 : 打开 Wi-Fi直连的终端发出广播消息; 具体的, 在所述终端打开 Wi-Fi Direct之后, 本终端的信息就会通过 Wi-Fi Direct协议广播出去,这些信息包括终端名、加密方式、信号强度等, 当所述终端 Wi-Fi状态的改变时, 都会发送广播消息通知周围的终端。 Step 201: Turn on the terminal directly connected to the Wi-Fi to send a broadcast message. Specifically, after the terminal turns on the Wi-Fi Direct, the information of the terminal is broadcasted through the Wi-Fi Direct protocol, and the information includes a terminal name, an encryption mode, a signal strength, and the like, when the terminal is in a Wi-Fi state. When the change is made, a broadcast message is sent to notify the surrounding terminals.
步骤 202: 主控终端检测受控终端发出的所述广播消息;  Step 202: The master control terminal detects the broadcast message sent by the controlled terminal.
具体的, 本实施例中通过创建一个广播监听器去检测在范围内的可使 用的对等终端, 如果发现过程成功且检测到了对等终端, 利用所述广播监 听器监听并获得发现终端消息。  Specifically, in this embodiment, by creating a broadcast listener to detect the available peer terminal in the range, if the discovery process is successful and the peer terminal is detected, the broadcast monitor is used to monitor and obtain the discovery terminal message.
步骤 203: 主控终端根据监测到的所述广播消息, 将与受控终端 1加入 通信群组, 与受控终端 1建立连接, 并获取受控终端 1的终端标识;  Step 203: The master terminal joins the controlled terminal 1 to the communication group according to the monitored broadcast message, establishes a connection with the controlled terminal 1, and acquires the terminal identifier of the controlled terminal 1;
其中, 所述主控终端根据终端的终端名与所述受控终端建立连接, 在 连接过程中获取所述受控终端标识。 所述受控终端标识为能够唯一确定受 控终端的参数标识, 比如: IP地址。  The master terminal establishes a connection with the controlled terminal according to the terminal name of the terminal, and acquires the controlled terminal identifier in the connection process. The controlled terminal is identified as a parameter identifier capable of uniquely determining the controlled terminal, such as an IP address.
步骤 204: 所述主控终端将所述主控终端和受控终端的 IP地址存储到 标识列表;  Step 204: The master terminal stores an IP address of the master terminal and the controlled terminal in an identifier list.
步骤 205: 主控终端根据监测到的所述广播消息, 将与受控终端 2加入 通信群组, 与受控终端建立连接, 并获取受控终端 2 的终端标识; 受控终 端 2的 IP地址存储到标识列表;  Step 205: The main control terminal joins the controlled terminal 2 to the communication group according to the monitored broadcast message, establishes a connection with the controlled terminal, and acquires the terminal identifier of the controlled terminal 2; the IP address of the controlled terminal 2 Stored to the list of identifiers;
同理, 主控终端根据监测到的所述广播消息, 将与受控终端 3加入通 信群组, 与受控终端建立连接, 并获取受控终端 3的终端标识; 受控终端 3 的 IP地址存储到标识列表;  Similarly, the main control terminal joins the controlled terminal 3 to the communication group according to the monitored broadcast message, establishes a connection with the controlled terminal, and acquires the terminal identifier of the controlled terminal 3; the IP address of the controlled terminal 3 Stored to the list of identifiers;
步骤 206: 将所述标识列表发送到所述通信群组中的所述受控终端 1、 所述受控终端 2和所述受控终端 3;  Step 206: Send the identifier list to the controlled terminal 1 in the communication group, the controlled terminal 2, and the controlled terminal 3;
这样, 所述通信群组中每一位成员终端都保存了群组中其他终端的终 端标识, 本实施例中所述通信群组包括主控终端、 受控终端 1、 受控终端 2 和受控终端 3这四个成员, 本发明实施例对群组成员的个数并不做限制。  In this way, each member terminal in the communication group saves the terminal identifiers of other terminals in the group. In this embodiment, the communication group includes a master terminal, a controlled terminal 1, a controlled terminal 2, and a receiver. The four members of the control terminal 3 do not limit the number of group members in the embodiment of the present invention.
步骤 207: 群组成员通过套接字进行数据的传输; 群组中任意一个成员作为服务器, 群组中其他成员作为客户端。 Step 207: The group member performs data transmission through the socket. Any member of the group acts as a server, and other members of the group act as clients.
具体的, 创建一个服务器套接字(Server Socket )对象, 所述服务端套 接字对象等待一个来自指定地址和端口的客户端的连接且阻塞线程直到连 接发生, 所以把它建立在一个后台线程里;  Specifically, a server socket object is created. The server socket object waits for a connection from a client with a specified address and port and blocks the thread until the connection occurs, so it is built in a background thread. ;
创建一个客户端套接字 ( Client Socket )对象, 所述客户端套接字对象 使用指定 IP地址和端口去连接服务端终端;  Creating a client socket object, where the client socket object uses a specified IP address and port to connect to the server terminal;
从客户端给服务端发送数据, 当客户端成功连接服务端终端后, 你可 以通过字节流从客户端给服务端发送数据;  Send data from the client to the server. After the client successfully connects to the server terminal, you can send data from the client to the server through the byte stream.
所述主控终端与群组内的受控终端将发送与接收的消息都在所述可视 化群组界面中显示。  The master terminal and the controlled terminal in the group display both the transmitted and received messages in the visual group interface.
步骤 208: 所述通信群组中任意成员退出群组通信;  Step 208: Any member of the communication group exits the group communication.
具体的, 所述通信群组中的成员可以通过相应的功能按钮或者菜单项 触发关闭群组通信, 关闭所述成员的群组通信窗口, 断开与所述通信群组 中其他成员的连接。  Specifically, the member in the communication group can trigger the group communication to be closed by the corresponding function button or menu item, close the group communication window of the member, and disconnect the other members of the communication group.
步骤 209: 流程结束。  Step 209: The process ends.
实施例二  Embodiment 2
图 3是本发明实施例数据共享交互示意图, 本发明实施例公开了一种 终端在通过 Wi-Fi直连技术组成的群组中进行共享数据的方法,如图 3所示 的方法, 包括以下步骤:  3 is a schematic diagram of data sharing interaction according to an embodiment of the present invention. The embodiment of the present invention discloses a method for sharing data in a group formed by a Wi-Fi Direct connection technology, and the method shown in FIG. 3 includes the following steps. Steps:
步骤 301: 所述通信群组中任意用户可以当作主控端用户, 选择群组中 其他用户, 点击数据共享按钮;  Step 301: Any user in the communication group can be regarded as a host user, select other users in the group, and click a data sharing button;
步骤 302:主控终端向群组中其他用户对应的受控终端发送数据共享请 求, 并在发送所述共享模式请求后, 开始播放视频;  Step 302: The master control terminal sends a data sharing request to the controlled terminal corresponding to other users in the group, and starts to play the video after sending the sharing mode request.
步骤 303: 受控终端向受控端用户弹出提示,提示受控终端用户向主控 终端发送一个应答响应;  Step 303: The controlled terminal pops up a prompt to the controlled end user, prompting the controlled terminal user to send a response response to the main control terminal.
步骤 304: 受控端用户接收所述数据共享请求, 并触发所述受控终端进 入数据共享; Step 304: The controlled end user receives the data sharing request, and triggers the controlled terminal to enter Data sharing;
步骤 305, 受控终端接收到所述数据共享请求后, 根据主控终端的终端 标识, 向所述主控终端发送对所述数据共享请求的应答响应;  Step 305: After receiving the data sharing request, the controlled terminal sends a response response to the data sharing request to the main control terminal according to the terminal identifier of the main control terminal.
步骤 306: 主控终端进入共享模式后, 捕获屏幕视频数据并处理; 具体的, 该步骤包括釆用预设的压缩方式对所述视屏幕视频数据进行 高速压缩并存储在存储模块, 该实施例中釆用运动补偿编码算法和变换编 码相结合, 运动补偿去除时域冗余, 变换编码去除空间冗余, 编码和解码 的组合信号延迟不得超过 150ms。  Step 306: After the main control terminal enters the sharing mode, the screen video data is captured and processed. Specifically, the step includes: performing high-speed compression on the video data of the video screen in a preset compression manner, and storing the video data in the storage module. In the middle, the motion compensation coding algorithm and the transform coding are combined, the motion compensation removes the time domain redundancy, the transform coding removes the spatial redundancy, and the combined signal delay of the coding and decoding does not exceed 150 ms.
步骤 307: 在收到接收控制请求的信号后,从所述存储模块中提取压缩 的屏幕视频数据, 并经已经建立的通道发送传输数据;  Step 307: After receiving the signal of receiving the control request, extracting compressed screen video data from the storage module, and transmitting the transmission data through the established channel;
所述已经建立的信道为主控终端和所述受控终端建立的 WIFI 直连通 道。  The established channel is a WIFI direct communication channel established by the master control terminal and the controlled terminal.
步骤 308: 受控终端在接收到所述高速压缩数据后,根据对应的解压方 法得到视频数字信号;  Step 308: After receiving the high-speed compressed data, the controlled terminal obtains a video digital signal according to a corresponding decompression method;
步骤 309: 受控终端播放视频, 即通过解调得到所述屏幕数据并通过本 地播放器播放;  Step 309: The controlled terminal plays the video, that is, the screen data is obtained by demodulation and played by the local player;
步骤 310: 主控端用户点击关闭数据共享按钮;  Step 310: The main control user clicks the close data sharing button;
步骤 311 : 主控终端向所述受控终端发送关闭数据共享通知; 步骤 312: 受控终端接收到所述关闭数据共享通知, 退出数据共享, 并 提示受控端用户。  Step 311: The master terminal sends a close data sharing notification to the controlled terminal. Step 312: The controlled terminal receives the closed data sharing notification, exits data sharing, and prompts the controlled end user.
其中, 所述受控终端和主控终端可以在任意时刻退出通信模式, 当受 控终端退出通信模式时, 并不影响主控终端和其他受控终端的共享, 当主 控终端退出通信模式, 会通知所有受控终端退出所述通信模式。  The controlled terminal and the main control terminal can exit the communication mode at any time. When the controlled terminal exits the communication mode, the shared terminal does not affect the sharing of the controlled terminal and other controlled terminals. When the main control terminal exits the communication mode, All controlled terminals will be notified to exit the communication mode.
需要说明的是, 本发明实施例中的通信模式不仅仅只包括群组通信和 数据共享, 所述实施例只是列出两种例子。 本发明实施例中所述通信模式 在不冲突的情况下是可以同时进行并组合的, 凡是在本领域技术人员不付 出创造性劳动的前提下对本发明实施例做出的修改也在本发明实施例的保 护范围之内。 It should be noted that the communication mode in the embodiment of the present invention includes not only group communication and data sharing, but the embodiment only lists two examples. In the embodiment of the present invention, the communication modes can be simultaneously and combined without conflict, and those skilled in the art do not pay. The modifications made to the embodiments of the present invention under the premise of creative labor are also within the scope of protection of the embodiments of the present invention.
本发明实施例提供的群组通信和数据共享可以由终端建立群组后直接 进入, 两者通信方式可以相互转化, 比如在主控终端和受控终端处于群组 通信模式状态下, 可以触发共享模式, 同样, 在主控终端和受控终端处于 共享状态下, 可以触发群组通信模式, 实现方式同上面所述的实施例。 本 发明实施例提供的技术方案中, 群组内的任意终端, 都可以主动发起, 成 为主控终端。  The group communication and the data sharing provided by the embodiment of the present invention can be directly entered by the terminal after the group is established, and the communication modes of the two can be mutually converted. For example, when the master terminal and the controlled terminal are in the group communication mode, the sharing can be triggered. Mode, Similarly, when the master terminal and the controlled terminal are in a shared state, the group communication mode can be triggered in the same manner as the embodiment described above. In the technical solution provided by the embodiment of the present invention, any terminal in the group may be actively initiated to become a master terminal.
图 4为本发明终端实施例示意图  4 is a schematic diagram of a terminal embodiment of the present invention
如图 4所述的通信终端, 包括: 群组模块 41, 配置为通过近场无线通 信和受控终端建立通信群组;  The communication terminal as shown in FIG. 4 includes: a group module 41 configured to establish a communication group by using near field wireless communication and the controlled terminal;
通信模块 42, 配置为根据获取的所述标识与所述通信群组内的其他成 员互相通信。  The communication module 42 is configured to communicate with other members of the communication group based on the acquired identification.
所述群组模块 41包括:  The group module 41 includes:
检测子模块 411,配置为检测受控终端通过近场无线通信发出的广播消 息, 其中, 所述受控终端广播消息包括受控终端的终端名;  The detecting sub-module 411 is configured to detect a broadcast message sent by the controlled terminal through the near field wireless communication, where the controlled terminal broadcast message includes a terminal name of the controlled terminal;
发送子模块 413,配置为将所述通信群组内所有成员的标识告知所述通 信群组内的每一成员;  The sending submodule 413 is configured to notify each member in the communication group of the identity of all members in the communication group;
连接子模块 412, 配置为根据检测到的所述广播消息, 与所述受控终端 建立连接。  The connection sub-module 412 is configured to establish a connection with the controlled terminal according to the detected broadcast message.
需要说明的是, 上述群组模块 41和通信模块 42可以由图 3所示通信 终端的中央处理器(CPU, Central Processing Unit ),微处理器(MPU, Micro Processing Unit )、 数字信号处理器(DSP, Digital Signal Processor )或现场 可编程门阵列 (FPGA, Field Programmable Gate Array )来实现。  It should be noted that the group module 41 and the communication module 42 may be a central processing unit (CPU) of a communication terminal shown in FIG. 3, a microprocessor (MPU, Micro Processing Unit), and a digital signal processor ( DSP, Digital Signal Processor) or Field Programmable Gate Array (FPGA).
图 5是本发明实施例另一终端示意图, 如图 5所示的终端, 所述终端 包括群组模块 51和通信模块 52, 所述群组模块 51配置为, 通过近场无线 通信和主控终端建立通信群组; 所述通信模块 52配置为, 根据获知的所述 标识和所述通信群组内其他所有成员互相通信。 5 is a schematic diagram of another terminal according to an embodiment of the present invention. As shown in FIG. 5, the terminal includes a group module 51 and a communication module 52, and the group module 51 is configured to pass near-field wireless. The communication and the master terminal establish a communication group; the communication module 52 is configured to communicate with each other according to the learned identity and all other members in the communication group.
其中, 所述群组模块 51包括射频子模块 511、 连接子模块 512和接收 子模块 513,所述射频子模块 511配置为通过近场无线通信发射广播消息并 接受主控终端的邀请, 加入通信群组, 所述广播消息包含所述终端的终端 名; 所述连接子模块 512配置为与主控终端建立连接; 所述接收子模块 513 配置为接收所述通信群组内所有成员的标识。  The group module 51 includes a radio frequency sub-module 511, a connection sub-module 512, and a receiving sub-module 513. The radio frequency sub-module 511 is configured to transmit a broadcast message through near-field wireless communication and accept an invitation from the main control terminal to join the communication. a group, the broadcast message includes a terminal name of the terminal; the connection sub-module 512 is configured to establish a connection with the master terminal; and the receiving sub-module 513 is configured to receive an identifier of all members in the communication group.
需要说明的是, 上述群组模块 51和通信模块 52可以由图 5所示通信 终端的 CPU、 MPU、 DSP或 FPGA来实现。  It should be noted that the group module 51 and the communication module 52 may be implemented by a CPU, an MPU, a DSP or an FPGA of the communication terminal shown in FIG. 5.
图 6为本发明实施例通信系统组结构示意图  6 is a schematic structural diagram of a communication system group according to an embodiment of the present invention;
如图 6所示的通信系统, 包括主控终端 61、 受控终端 62和受控终端 The communication system shown in FIG. 6 includes a master terminal 61, a controlled terminal 62, and a controlled terminal.
63, 63,
所述主控终端 61包括群组模块和通信模块, 所述群组模块配置为通过 近场无线通信和受控终端建立通信群组; 所述通信模块配置为根据获取的 所述标识与所述通信群组内的其他成员互相通信。  The main control terminal 61 includes a group module and a communication module, and the group module is configured to establish a communication group by using a near field wireless communication and a controlled terminal; the communication module is configured to: according to the acquired identifier and the Other members of the communication group communicate with each other.
所述受控终端 62和受控终端 63都包括群组模块和通信模块, 所述群 组模块配置为通过近场无线通信和主控终端建立通信群组; 所述通信模块 配置为根据获知的所述标识和所述通信群组内其他所有成员互相通信。  The controlled terminal 62 and the controlled terminal 63 both include a group module and a communication module, and the group module is configured to establish a communication group by the near field wireless communication and the master terminal; the communication module is configured to be learned according to the The identification and all other members of the communication group communicate with each other.
本实施例中, 具备所述主控终端和受控终端都具有 Wi-Fi Direct功能, 用于搜索终端的射频标识, 自动建立无线连接, 并通过所述 Wi-Fi Direct传 输数据;目前使用 Android4.0平台以上的智能终端都具备 Wi-Fi Direct模块。  In this embodiment, the master terminal and the controlled terminal both have a Wi-Fi Direct function, which is used to search for a radio frequency identifier of the terminal, automatically establish a wireless connection, and transmit data through the Wi-Fi Direct; currently using Android4 Smart terminals above the .0 platform have Wi-Fi Direct modules.
本发明实施例提供的技术方案中,任意一个具有 Wi-Fi Direct功能的终 端都可以实现, 主控终端邀请可用的受控终端接入群组, 主控终端可以选 择启动群组通信模式还是共享模式。 如果主控终端选择群组通信模式, 则 启动群组聊天界面; 如果主控终端选择共享模式, 则提供路径进入共享模 式, 不同模式之间在不冲突的情况下可以同时进行和切换。 本发明实施例还提供了一种计算机可读存储介质, 所述存储介质包括 一组指令, 所述指令用于执行本发明实施例所述的通信方法。 In the technical solution provided by the embodiment of the present invention, any terminal having the Wi-Fi Direct function can be implemented, and the main control terminal invites an available controlled terminal to access the group, and the main control terminal can select to initiate the group communication mode or share. mode. If the main control terminal selects the group communication mode, the group chat interface is started; if the main control terminal selects the sharing mode, the path is provided to enter the sharing mode, and different modes can be simultaneously performed and switched without conflict. The embodiment of the present invention further provides a computer readable storage medium, where the storage medium includes a set of instructions, and the instructions are used to execute the communication method according to the embodiment of the present invention.
本领域内的技术人员应明白, 本发明的实施例可提供为方法、 系统、 或计算机程序产品。 因此, 本发明可釆用硬件实施例、 软件实施例、 或结 合软件和硬件方面的实施例的形式。 而且, 本发明可釆用在一个或多个其 中包含有计算机可用程序代码的计算机可用存储介质 (包括但不限于磁盘 存储器和光学存储器等 )上实施的计算机程序产品的形式。  Those skilled in the art will appreciate that embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of a hardware embodiment, a software embodiment, or an embodiment of a combination of software and hardware. Moreover, the invention can be embodied in the form of a computer program product embodied on one or more computer usable storage media (including but not limited to disk storage and optical storage, etc.) including computer usable program code.
本发明是参照根据本发明实施例的方法、 设备(系统)、 和计算机程序 产品的流程图和 /或方框图来描述的。 应理解可由计算机程序指令实现流程 图和 /或方框图中的每一流程和 /或方框、以及流程图和 /或方框图中的流程和 /或方框的结合。 可提供这些计算机程序指令到通用计算机、 专用计算机、 嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器, 使得 在流程图一个流程或多个流程和 /或方框图一个方框或多个方框中指定的功 能的装置。  The present invention has been described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (system), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart and/or block diagrams, and combinations of flow and / or blocks in the flowcharts and / or block diagrams can be implemented by computer program instructions. These computer program instructions can be provided to a general purpose computer, a special purpose computer, an embedded processor or other programmable data processing device processor to produce a machine such that a flow or a block diagram of a flow or a block diagram or A device that has multiple functions specified in the box.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理 设备以特定方式工作的计算机可读存储器中, 使得存储在该计算机可读存 储器中的指令产生包括指令装置的制造品, 该指令装置实现在流程图一个 流程或多个流程和 /或方框图一个方框或多个方框中指定的功能。  The computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device. The apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上, 使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现 的处理, 从而在计算机或其他可编程设备上执行的指令提供用于实现在流 程图一个流程或多个流程和 /或方框图一个方框或多个方框中指定的功能的 步骤。  These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device. The instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.
本行业的技术人员应当了解, 本发明不受上述实施例的限制, 上述实 施例和发明书中描述的只是本发明的原理, 在不脱离本发明精神和范围的 前提下, 本发明还会有各种变化和改进, 这些变化和改进都落入要求保护 的发明范围内。 It should be understood by those skilled in the art that the present invention is not limited by the above-described embodiments, and that the embodiments described in the foregoing embodiments and the invention are only the principles of the invention, without departing from the spirit and scope of the invention. There are various changes and modifications to the invention that fall within the scope of the claimed invention.

Claims

权利要求书 claims
1、 一种通信方法, 所述方法包括: 1. A communication method, the method includes:
主控终端通过近场无线通信邀请受控终端加入通信群组, 获取所述 受控终端的标识, 并将所述通信群组内所有成员的标识告知所述通信群 组内的每一成员; The master terminal invites the controlled terminal to join the communication group through near-field wireless communication, obtains the identity of the controlled terminal, and informs each member of the communication group of the identities of all members in the communication group;
所述通信群组内的成员根据获知的所述标识互相通信。 Members within the communication group communicate with each other based on the learned identification.
2、 如权利要求 1所述的方法, 其中, 所述主控终端通过近场无线通 信邀请受控终端加入通信群组包括: 2. The method of claim 1, wherein the master terminal inviting the controlled terminal to join the communication group through near field wireless communication includes:
主控终端检测受控终端通过近场无线通信发出的广播消息, 其中, 所述受控终端广播消息包括受控终端的终端名; 根据检测到的所述广播 消息, 与所述受控终端建立连接。 The master control terminal detects a broadcast message sent by the controlled terminal through near-field wireless communication, wherein the controlled terminal broadcast message includes the terminal name of the controlled terminal; and establishes a connection with the controlled terminal based on the detected broadcast message. connect.
3、如权利要求 1所述的方法,其中,所述获取受控终端的标识之后, 所述方法还包括: 3. The method of claim 1, wherein after obtaining the identity of the controlled terminal, the method further includes:
将所述受控终端标识信息存储到标识列表。 Store the controlled terminal identification information in an identification list.
4、 如权利要求 3所述的方法, 其中, 4. The method of claim 3, wherein,
所述主控终端将所述通信群组内所有成员的标识告知所述通信群组 内的每一成员包括: The main control terminal informs each member in the communication group of the identities of all members in the communication group, including:
所述主控终端向所述群组中每一个成员发送所述标识列表。 The main control terminal sends the identification list to each member of the group.
5、 如权利要求 1所述的方法, 其中, 5. The method of claim 1, wherein,
所述通信群组内的成员根据获知的所述标识互相通信包括: 所述通信群组内, 根据获取到的所述标识, 任意一个成员主动发起 通信, 所述群组内其他成员实现与所述成员终端的资源共享, 其中, 所 述标识为群组成员的 IP信息。 The members in the communication group communicate with each other based on the obtained identification, including: within the communication group, according to the obtained identification, any member actively initiates communication, and other members in the group implement communication with all The resource sharing of member terminals is described, wherein the identifier is the IP information of the group member.
6、 一种终端, 所述终端包括: 6. A terminal, the terminal includes:
群组模块, 配置为通过近场无线通信和受控终端建立通信群组; 通信模块, 配置为根据获取的所述标识与所述通信群组内的其他成 员互相通信。 A group module configured to establish a communication group with the controlled terminal through near-field wireless communication; The communication module is configured to communicate with other members in the communication group according to the obtained identification.
7、 如权利要求 6所述的终端, 其中, 所述群组模块包括: 检测子模块, 配置为检测受控终端通过近场无线通信发出的广播消 息, 其中, 所述受控终端广播消息包括受控终端的终端名; 7. The terminal according to claim 6, wherein the group module includes: a detection submodule configured to detect broadcast messages sent by the controlled terminal through near field wireless communication, wherein the controlled terminal broadcast messages include The terminal name of the controlled terminal;
发送子模块, 配置为将所述通信群组内所有成员的标识告知所述通 信群组内的每一成员; The sending submodule is configured to inform each member in the communication group of the identities of all members in the communication group;
连接子模块, 配置为根据检测到的所述广播消息, 与所述受控终端 建立连接。 The connection submodule is configured to establish a connection with the controlled terminal according to the detected broadcast message.
8、 如权利要求 6所述的终端, 其中, 所述终端还包括: 8. The terminal according to claim 6, wherein the terminal further includes:
存储模块, 配置为在所述获取受控终端的标识之后, 存储包含受控 终端标识信息的标识列表。 The storage module is configured to store an identification list containing the identification information of the controlled terminal after obtaining the identification of the controlled terminal.
9、 如权利要求 8所述的终端, 其中, 所述发送模块配置为向所述 群组中每一个成员发送所述标识列表。 9. The terminal according to claim 8, wherein the sending module is configured to send the identification list to each member of the group.
10、 一种终端, 所述终端包括: 10. A terminal, the terminal includes:
群组模块, 配置为通过近场无线通信和主控终端建立通信群组; 通信模块, 配置为根据获知的所述标识和所述通信群组内其他所有 成员互相通信。 The group module is configured to establish a communication group with the master control terminal through near-field wireless communication; the communication module is configured to communicate with all other members of the communication group based on the learned identification.
11、 如权利要求 10所述的终端, 其中, 所述群组模块包括: 射频子模块: 配置为通过近场无线通信发射广播消息并接受主控终 端的邀请, 加入通信群组, 所述广播消息包含所述终端的终端名; 11. The terminal according to claim 10, wherein the group module includes: a radio frequency sub-module: configured to transmit broadcast messages through near-field wireless communication and accept invitations from the master terminal to join the communication group, the broadcast The message contains the terminal name of the terminal;
连接子模块: 配置为与主控终端建立连接; Connection submodule: configured to establish a connection with the main control terminal;
接收子模块: 配置为接收所述通信群组内所有成员的标识。 Receiving submodule: configured to receive the identities of all members in the communication group.
12、 一种通信系统, 包括主控终端和受控终端, 12. A communication system including a master control terminal and a controlled terminal,
所述主控终端包括: The main control terminal includes:
第一群组模块, 配置为通过近场无线通信和受控终端建立通信群组; 第一通信模块, 配置为根据获取的所述标识与所述通信群组内的其 他成员互相通信; The first group module is configured to establish a communication group with the controlled terminal through near-field wireless communication; The first communication module is configured to communicate with other members in the communication group according to the obtained identification;
所述受控终端包括: The controlled terminal includes:
第二群组模块, 配置为通过近场无线通信和主控终端建立通信群组; 第二通信模块, 配置为根据获知的所述标识和所述通信群组内其他 所有成员互相通信。 The second group module is configured to establish a communication group with the master control terminal through near-field wireless communication; the second communication module is configured to communicate with all other members of the communication group based on the learned identification.
13、 一种计算机可读存储介质, 所述存储介质包括一组指令, 所述 指令用于执行权利要求 1-5任一项所述的通信方法。 13. A computer-readable storage medium, the storage medium includes a set of instructions, the instructions are used to execute the communication method according to any one of claims 1-5.
PCT/CN2014/077807 2013-12-30 2014-05-19 Communication method, terminal and communication system WO2014187295A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201310749686.X 2013-12-30
CN201310749686.XA CN104754523A (en) 2013-12-30 2013-12-30 Communication method, terminal and communication system

Publications (1)

Publication Number Publication Date
WO2014187295A1 true WO2014187295A1 (en) 2014-11-27

Family

ID=51932863

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/077807 WO2014187295A1 (en) 2013-12-30 2014-05-19 Communication method, terminal and communication system

Country Status (2)

Country Link
CN (1) CN104754523A (en)
WO (1) WO2014187295A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104506594A (en) * 2014-12-11 2015-04-08 腾讯科技(深圳)有限公司 Data communication method and system for social application system
CN112995908A (en) * 2019-12-18 2021-06-18 东莞宇龙通信科技有限公司 Rescue method, rescue device, terminal device and storage medium

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106170139B (en) * 2016-09-21 2019-10-01 北京邮电大学 A kind of frequency spectrum detecting method and system
CN108390923A (en) * 2018-02-05 2018-08-10 东莞职业技术学院 A kind of shared system and sharing method of desktop signals
CN112118538A (en) * 2019-06-20 2020-12-22 青岛海信移动通信技术股份有限公司 Method and device for device information interaction between terminals
CN110536253A (en) * 2019-08-14 2019-12-03 维沃移动通信有限公司 A kind of group's Adding Way and mobile terminal
CN112511993B (en) * 2019-09-16 2023-06-27 中兴通讯股份有限公司 Method, device and terminal for transmitting data by group

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102651901A (en) * 2011-02-24 2012-08-29 索尼公司 Wireless communication apparatus, wireless communication method, program, and wireless communication system
CN103297096A (en) * 2012-02-21 2013-09-11 三星电子株式会社 Apparatus and method for transmitting and receiving multimedia data by using NFC

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102651901A (en) * 2011-02-24 2012-08-29 索尼公司 Wireless communication apparatus, wireless communication method, program, and wireless communication system
CN103297096A (en) * 2012-02-21 2013-09-11 三星电子株式会社 Apparatus and method for transmitting and receiving multimedia data by using NFC

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104506594A (en) * 2014-12-11 2015-04-08 腾讯科技(深圳)有限公司 Data communication method and system for social application system
CN112995908A (en) * 2019-12-18 2021-06-18 东莞宇龙通信科技有限公司 Rescue method, rescue device, terminal device and storage medium

Also Published As

Publication number Publication date
CN104754523A (en) 2015-07-01

Similar Documents

Publication Publication Date Title
WO2014187295A1 (en) Communication method, terminal and communication system
CN105472778B (en) Establish the method and device being wirelessly connected
WO2019090902A1 (en) Screen sharing method and apparatus, electronic device, and storage medium
US20140089431A1 (en) Instant messaging method, terminal, server, and system
WO2014169581A1 (en) Remote wireless screen sharing method, device and system
WO2015139179A1 (en) Method and terminal for content synchronization among terminals
CN104113458A (en) Mobile terminal and intelligent household appliance interconnecting method and device
CN105682182B (en) A kind of discovery of equipment and equipment connection method, equipment and system
JP2015512165A (en) System and method for connecting an audio controller to a hidden audio network
US10419543B2 (en) Method and system for establishing a connection between a seeker device and a target device
WO2015165350A1 (en) Method, device and system of switching smart television mobile end and obtaining television end information
US20190297119A1 (en) Establishing direct secure connection between collaboration devices in a room or space
CN107969026B (en) Method for realizing wireless screen projection in wireless local area network and wireless controller AC
KR20130137027A (en) Hybrid networking simple-connect setup via proxy device
CN111427527A (en) Screen projection method, device, equipment and computer readable storage medium
US10321494B2 (en) Method and apparatus for communicating in a wireless communication network
WO2015018327A1 (en) Method and apparatus for interconnection between terminal device and gateway device
KR20160145030A (en) Publish/subscribe network enabled for multimedia signaling control, method for initiating a session within the network and respective network device
CN105933469B (en) Network access method and device for intelligent equipment and intelligent equipment
CN113794996B (en) Device communication, device control method, device, electronic device, and storage medium
US20230156466A1 (en) Bluetooth Networking Method for Electronic Device and Related Device
US10404534B2 (en) Method and device for networking intelligent terminals
US10649723B2 (en) Communication device, control method, and storage medium
US20150365133A1 (en) Touch and Talk Auto-Configuring of Video Conferences Using Near Field Communication (NFC)
US9413601B2 (en) Channel reuse among communication networks sharing a communication channel

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

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

Country of ref document: EP

Kind code of ref document: A1