WO2009059542A1 - A method, system and device for implementing chat - Google Patents

A method, system and device for implementing chat Download PDF

Info

Publication number
WO2009059542A1
WO2009059542A1 PCT/CN2008/072874 CN2008072874W WO2009059542A1 WO 2009059542 A1 WO2009059542 A1 WO 2009059542A1 CN 2008072874 W CN2008072874 W CN 2008072874W WO 2009059542 A1 WO2009059542 A1 WO 2009059542A1
Authority
WO
WIPO (PCT)
Prior art keywords
chat session
chat
node
session
request
Prior art date
Application number
PCT/CN2008/072874
Other languages
French (fr)
Chinese (zh)
Inventor
Hai Huang
Deepanshu Gautam
Original Assignee
Huawei Technologies Co., Ltd.
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 Huawei Technologies Co., Ltd. filed Critical Huawei Technologies Co., Ltd.
Publication of WO2009059542A1 publication Critical patent/WO2009059542A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/16Arrangements for providing special services to substations
    • H04L12/18Arrangements for providing special services to substations for broadcast or conference, e.g. multicast
    • H04L12/1813Arrangements for providing special services to substations for broadcast or conference, e.g. multicast for computer conferences, e.g. chat rooms
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/58Message adaptation for wireless communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/16Arrangements for providing special services to substations
    • H04L12/18Arrangements for providing special services to substations for broadcast or conference, e.g. multicast
    • H04L12/189Arrangements for providing special services to substations for broadcast or conference, e.g. multicast in combination with wireless systems

Definitions

  • the present invention relates to an application technology in a ZigBee network, and in particular, to a method, system and device for implementing a chat in a ZigBee network. Background technique
  • ZigBee is an emerging short-range, low-rate wireless networking technology that is primarily used for short-range wireless connectivity.
  • ZigBee has its own protocol standard, which coordinates communication among tens of thousands of tiny nodes. These nodes require very little energy to relay data from one node to another in a relay manner.
  • the ZigBee network can consist of 64k nodes, and the typical communication distance between nodes is 75 meters, but the communication distance between nodes can also be extended to several hundred meters.
  • Chat is actually the process of transmitting instant messages between different network entities, such as using the Open Mobile Alliance (OMA) - Instant Messaging (IM) technology for chatting.
  • OMA Open Mobile Alliance
  • IM Instant Messaging
  • Embodiments of the present invention provide a method for implementing a chat, which can implement a chat function in a ZigBee network.
  • Embodiments of the present invention also provide a system for implementing chat, which is capable of implementing chat in a ZigBee network.
  • the embodiment of the invention further provides a device for implementing chat, which can implement chat in a ZigBee network.
  • a device for implementing chat which can implement chat in a ZigBee network.
  • the node acquires chat session information in the ZigBee network according to the supported chat cluster, and performs a chat session according to the obtained chat session information.
  • a system for implementing a chat including a server supporting a chat cluster and one or more nodes, wherein
  • a server configured to establish a chat session according to a request of the node, or join the node to the chat session; maintain the chat session;
  • the node is configured to request the server to establish a chat session or join a chat session, and send an instant message between the other nodes in the same chat session during the chat.
  • An apparatus for implementing a chat the device supporting a chat cluster, including a transceiver module and a maintenance module, wherein
  • transceiver module configured to receive a chat session request sent by the node, and send the request to the maintenance module
  • a maintenance module configured to join the node to the maintained chat session according to the join chat session request received from the transceiver module.
  • a node for implementing a chat the device supports a chat cluster, including a request module and a chat module, wherein
  • the requesting module is configured to request to establish a chat session or join a chat session; the chat module is configured to request to establish a chat session or join the chat session successfully, during the chat process, and other nodes in the same chat session Send instant messages between.
  • the embodiment of the present invention defines commands and messages for chat in the telecommunication application of the ZigBee network, and forms a chat cluster, so that nodes in the ZigBee network support chat clusters, and use centralized clusters through chat clusters.
  • Mode or Ad-Hoc (peer-to-peer) mode communication enabling chat between these nodes. Therefore, the method, system and device provided by the embodiments of the present invention can implement chat in a ZigBee network.
  • FIG. 1 is a schematic structural diagram of a layer of a ZigBee network according to an embodiment of the present invention
  • FIG. 2 is a schematic diagram of a network structure for implementing chat between nodes supporting a chat cluster in a centralized server mode according to an embodiment of the present invention
  • FIG. 3 is a schematic structural diagram of a server according to an embodiment of the present invention.
  • FIG. 4 is a schematic diagram of a network structure for implementing a chat between nodes supporting a chat cluster in an Ad-Hoc mode according to an embodiment of the present invention
  • FIG. 5 is a schematic structural diagram of a chair node according to an embodiment of the present invention.
  • FIG. 6 is a schematic structural diagram of a chat cluster established according to an embodiment of the present invention.
  • FIG. 7 is a flowchart of a method for establishing a chat session by a node using a centralized service mode according to an embodiment of the present invention
  • FIG. 8 is a flowchart of a method for joining a chat session by using a centralized service mode according to an embodiment of the present invention
  • FIG. 9 is a flow chart of a method for exiting a chat session by using a centralized service mode according to an embodiment of the present invention.
  • FIG. 10 is a flow chart of a method for performing a chat session using a centralized service mode according to an embodiment of the present invention
  • FIG. 11 is a flow chart of a method for switching a chairman node in an Ad-Hoc mode according to an embodiment of the present invention
  • FIG. 12 is a schematic diagram of a system for implementing chat in a centralized server mode in a ZigBee network according to an embodiment of the present invention
  • FIG. 13 is a schematic diagram of a system for implementing a chat in an Ad-Hoc mode in a ZigBee network according to an embodiment of the present invention
  • FIG. 14 is a schematic diagram of an apparatus for implementing chat in a ZigBee network according to an embodiment of the present invention
  • FIG. 15 is a schematic diagram of a node for implementing chat in a ZigBee network according to an embodiment of the present invention.
  • the layer structure of the network is as shown in Figure 1. From the bottom layer to the upper layer, it includes the IEEE 802.15.4-based physical layer and MAC layer, and the ZigBee Alliance defined network layer, security layer and application program interface. .
  • the network layer mainly implements functions such as nodes joining or leaving the network in the ZigBee network, receiving or discarding other nodes, routing and transmitting data, and supporting various topologies such as a star, a tree, and a grid; Key management and access functions; the application interface is used to provide the application's interface to the upper layer of the node, including application sub-layer support (APS, Application Support Sub-layer), ZigBee device object (ZDO, ZigBee Device Object) and application.
  • the interface of the Application Profile implements upper-level node management.
  • the application specification defines some device descriptions, as well as commands and attributes (messages) passed between these devices.
  • the embodiment of the present invention defines commands and messages for chat in a telecommunication application of a ZigBee network, and forms a chat cluster, so that nodes in the ZigBee network support chat clusters, and these nodes are implemented through chat clusters. Chat between.
  • the node supporting the chat cluster in the ZigBee network can communicate in two modes, that is, using the centralized server mode or the Ad-Hoc mode for communication, and implementing chat.
  • the following two methods are introduced separately.
  • chat between the nodes supporting chat clusters in the centralized server mode is as follows:
  • the server will provide management of the chat session, that is, the server can maintain the chat session of different chat topics.
  • the node supporting the chat cluster joins the ZigBee network
  • the node can find and obtain the ongoing progress from the server. Chat session information, choose a chat session to join. Multiple nodes can join the same chat session and chat.
  • FIG. 2 is a schematic diagram of a network structure for implementing chat between nodes supporting a chat cluster in a centralized server mode according to an embodiment of the present invention, including a server and a plurality of nodes.
  • the server is a server in the mall, and the server is connected to an access point of a ZigBee network, and the access point is connected to the network of the operator.
  • the server can provide information to the access point for the operator to manage through the operator's network. For example, after the chat ends, the server sends the charging information to the operator's network through the access point.
  • the node located in the center of the ZigBee network is a server, and a chat session can be established and maintained.
  • the node in the ZigBee network searches for and acquires the information of the chat session to join the chat session.
  • the access point is represented by a triangle.
  • the dotted circle represents a chat session group that is included in the chat session group.
  • the server includes a chat session management module, a user list management module, and a ZigBee program module, as shown in FIG. 3, where
  • the chat session management module 301 is configured to manage the current chat session, and send the management information of the chat session to the ZigBee program module 303.
  • the user list management module 302 is configured to manage the node participating in the current chat session, and send the management information of the participating node to the ZigBee program module 303.
  • the ZigBee program module 303 is configured to send, according to the management information of the chat session received from the chat session management module 301 and the management information of the participating nodes received from the user list management module 302, the ZigBee program, and then send through the application program interface. To the bottom layer, the underlying network is instructed to control the nodes in the ZigBee network, and the management of the chat session and the management of the participating nodes are completed.
  • Ad-Hoc mode to implement chat between nodes supporting chat clusters is as follows: In this mode, any node in the ZigBee network (supporting chat clusters) can initiate and maintain a chat session. When initiating a chat session, the originating node must select a subject and session ID for the chat session and ensure that the session ID is unique '1' in the entire network.
  • FIG. 4 is a schematic diagram of a network structure for implementing chat between nodes supporting a chat cluster by using an Ad-Hoc mode according to an embodiment of the present invention, including multiple nodes, wherein a large solid dot represents a coordination node in a ZigBee network, and a large
  • the hollow circle point represents the node that maintains the chat session (herein referred to as the chairman node)
  • the small hollow circle point represents the node participating in the chat session
  • the small solid circle point represents the node that does not participate in the chat session
  • the solid line represents the communication between the nodes.
  • the range of links and dashed lines is different for different chat sessions.
  • FIG. 5 is a schematic structural diagram of a chair node according to an embodiment of the present invention, including a chat information module 501, a chat session management module 502, a user list management module 503, and a ZigBee program module 504, where
  • the chat information module 501 is configured to store the chat information of the established chat session.
  • the chat session management module 502 is configured to establish a chat session and store the chat information of the chat session in the chat information module 501, and manage the established chat session. Obtaining the chat information in the chat information module 501, and sending the management information of the chat session to the ZigBee program module 504 according to the chat information;
  • a user list management module 503, configured to manage nodes participating in the current chat session, and send management information of the participating nodes to the ZigBee program module 504;
  • the ZigBee program module 504 is configured to send, according to the management information of the chat session received from the chat session management module 502 and the management information of the participating nodes received from the user list management module 503, the ZigBee program, and then send through the application program interface.
  • the underlying network is instructed to control the nodes in the ZigBee network, and the management of the chat session and the management of the participating nodes are completed.
  • a chat cluster needs to be established in the ZigBee network, which may also be referred to as a messaging cluster, and the nodes that need to implement the chat support the chat cluster, that is, the node can be generated or generated on the node. Identify the message or command capabilities in the chat cluster.
  • the chat cluster is described in detail below.
  • FIG. 6 is a schematic structural diagram of a chat cluster established according to an embodiment of the present invention.
  • the structure needs to be constructed on a chair node or a server that implements a chat, and includes:
  • U-ID The unique user ID used by the node during the chat session. This user ID is the same as the address assigned when the node joins the ZigBee network.
  • C-ID The chat session ID, all nodes in the same chat session belong to the same session; C-ID is specified by the server in the centralized server mode; specified by the chairman node in Ad-Hoc mode, and its uniqueness is ensured ;
  • UserList is a structure type of data that contains U-ID and Nickname Information such as a list used by the server or the chairman node to notify the new entrant that the entrant has participated in the chat session node;
  • ChatroomList is a structure type of data that contains C-ID, Name, and so on. This is where the server or chairman node responds to other nodes to find the subject of the chat.
  • the messages used in the chat cluster need to be defined. According to different purposes, the messages may be classified into client messages and server messages, which are described below.
  • Client messages include:
  • Join—Chat—Request which carries the U-ID, Nickname, and C-ID, is the message that the node sends a request to the server or the chairman node to join the chat session.
  • Leave—Chat—Request generally carries the U-ID, which is the message sent by the node to the server or the chairman node to log out of the chat session.
  • Start—Chat—Request generally carries the Name and U—ID, and the node sends a request to the server to create a chat session.
  • Server-side messages include:
  • Join—Chat—Session—Response which carries the UserList, sent by the server or the chair node as a response to the Join-Chat-Session-Request.
  • the message return parameter contains a structure data (nickname, U-ID, etc.), and the list of people who have participated in is packaged and sent to the requesting node.
  • User—Joined generally carries the U-ID and Nickname to announce the new node to the chat session message to other nodes in the chat session.
  • GMessage generally carrying C-ID, Nickname and Message, to the same chat Multicast messages sent by all nodes in the session, the multicast method is specified by the protocol defined by the ZigBee Alliance.
  • Search— Chat— Response generally carries the ChatroomList, the response sent by the server or the chairman node as a Search-Chat-Request, whose data structure contains all current chat themes.
  • Start—Chat—Response generally carries the C-ID, as a response to the Start-Chat-Request, indicating that the chat session was established and maintained.
  • the client is defined as a node in a ZigBee network, and the node may be a mobile terminal having communication capability in a ZigBee network.
  • PDA Personal Digital Assistant
  • the server As the coordinator in the ZigBee network, that is, the server, responsible for maintaining the entire ZigBee network and managing the chat session; defining the chat session as Chat Session, Includes one or more Clients.
  • FIG. 7 is a flowchart of a method for establishing a chat session by a node in a centralized service mode according to an embodiment of the present invention, and the specific steps are as follows:
  • Step 701 After the client accesses the ZigBee network, the server sends a Start_Chat-Request message to the server, and carries a Name, which is used to indicate that a chat session is to be established and indicates the subject of the chat session.
  • Step 702 After receiving the message, the server establishes a chat session whose subject is the Name carried by the message, that is, maintains the chat session and establishes a UserList for the chat session and allocates a unique C-ID in the ZigBee network.
  • Step 703 the server returns a Start_Chat_Response message to the Client, carrying The CJD assigned to this chat session.
  • the server can accept the message sent by other nodes to join the chat session, and send the information of the client to other nodes, and send the information of other nodes to the client.
  • the other nodes in the chat session have already learned the information of the client, and can send the Nickname carrying the client, the C-ID of the chat session, and the GMessag of the information to the client, and the client can also carry the Nickname of other nodes.
  • the CJD of the chat session and the GMessag of the information are sent to the corresponding other nodes in the chat session, and the other nodes and the client can chat in the chat session.
  • FIG. 8 is a flow chart of a method for joining a chat session by using a centralized service mode according to an embodiment of the present invention, and the specific steps are as follows:
  • Step 801 After the client accesses the ZigBee network, send a Search-Call-Request message to the server, requesting the chat session information that the server has established.
  • Step 802 After receiving the message, the server sends the established chat session list, that is, the Chatroomlist, to the Client in the Search_Chat_Response message.
  • Step 803 The client selects the chat session that the user wants to join according to the Chatroomlist, and sends the C-ID of the chat session that he/she wants to join, the Nickname that is added to the chat session, and the used U-ID in the Join_Chat-Request message to the server.
  • Step 804 The server updates the user list of the chat session corresponding to the C-ID according to the Nickname and the U-ID carried in the received message, and sets the user list in the UserList, and sends the Response_Chat Response message to the Client.
  • the server also sends the Nickname and U_ID of the client newly added to the user list of the chat session corresponding to the C-ID to other nodes in the user list, so as to inform other nodes that a new node joins and determines to join the new node.
  • the information of the node so that the newly joined node can chat with other nodes in the user list.
  • the other nodes in the chat session have already learned the information of the client, and can send the Nickname carrying the client, the C-ID of the chat session, and the GMessag of the information to the client, and the client can also carry other nodes.
  • Nickname, the C-ID of the chat session, and the GMessag of the message sent to the corresponding chat session The other nodes in the network, other nodes and the client can chat in the chat session.
  • FIG. 9 is a flow chart of a method for exiting a chat session by using a centralized service mode according to an embodiment of the present invention, and the specific steps are as follows:
  • Step 901 The client that has joined the chat session sends a Leave-Call-Request message to the server, and carries the C-ID of the joined chat session, and is used to leave the already-joined chat session.
  • Step 902 The server determines, according to the C-ID carried in the received message, the user list of the corresponding chat session, and updates the user list, that is, deletes the information of the client (including Nick_Name and U-ID).
  • the information of the client may be carried by the Leave-Call-Request message, or may be obtained by the Server in other manners.
  • Step 903 The server sends a Leave-Call-Response message to the client, and determines that the client has left the chat session.
  • the server also sends the Nickname and U_ID of the Client deleted in the user list of the chat session corresponding to the C-ID to other nodes in the user list, so as to inform other nodes that there are leaving nodes and determine to leave the node. Information.
  • the node is defined as a node in the ZigBee network, which may be a mobile terminal or PDA with ZigBee communication capability, and the chairman is defined as the chairman.
  • a node which is any node in the ZigBee network, is responsible for establishing and maintaining a chat session;
  • a Chat Session is a chat session, including at least a chairman, and one or more riods.
  • a chat session corresponding to a C-ID is typically created by the chairman, and a list of users of the chat session is maintained and information of the chat session is recorded.
  • FIG. 10 is a flow chart of a method for performing a chat session in a centralized service mode according to an embodiment of the present invention, and the specific steps are:
  • Step 1001 The node multicasts a Serach_Chat-Request message in the ZigBee network, and is used to search for a chat session that has been established in the network.
  • the node can be one or more.
  • Step 1002 The chairman that receives the message sends the list of chat sessions maintained by itself, that is, the Chatroomlist, to the node requesting the chat session in the Serach_Chat_Response message.
  • the chairman may be one or more.
  • Step 1003 After receiving the message, the node selects a chat session that is desired to join according to the carried Chatroomlist.
  • Step 1004 The node sends the C-ID of the chat session that you want to join, the Nickname that is added to the chat session, and the U-ID that is used to be carried in the Join_Chat-Request message to the chairman that maintains the chat session.
  • Step 1005 The chairman that maintains the chat session updates the user list of the chat session corresponding to the C-ID according to the Nickname and U-ID carried in the received message, and sets the user list in the UserList, and carries it in the Join_Chat_ The message is sent to riods.
  • the chairman who maintains the chat session also sends the Nickname and U_ID of the client newly added to the user list of the chat session corresponding to the C-ID to other nodes in the user list, so as to inform other nodes that there are new nodes.
  • Step 1006 the other nodes in the chat session have learned the information of the client, and will carry the Nickname of the client, the C-ID of the chat session and the GMessag of the information are sent to the client, and the client will carry the Nickname of the other node, the chat session
  • the C-ID and the GMessag of the information are sent to the corresponding other nodes in the chat session, and the other nodes and the client can chat in the chat session.
  • This step can continue and last for a while.
  • Step 1007 the node sends to the chairman who maintains the chat session
  • the Leave-Chat-Request message carries the U-ID of the joined chat session and is used to leave the chat session that has been joined.
  • Step 1008 The chairman that maintains the chat session determines a user list of the corresponding chat session according to the U-ID carried in the received message, and updates the user list, that is, deletes Node information (including Nick_Name and U-ID).
  • Step 1009 Maintain the chairman of the chat session to send a Leave-Chat-Response message to the node, and determine that the node has left the chat session.
  • the chairman who maintains the chat session also sends the Nickname and U_ID of the Client deleted in the user list of the chat session corresponding to the C-ID to other nodes in the user list, so as to inform other nodes that they have left.
  • the node also determines the information leaving the node.
  • FIG. 11 is a flowchart of a method for switching a chair node in an Ad-Hoc mode according to an embodiment of the present invention. The specific steps are as follows:
  • Step 1101 The chairman who wants to leave the maintained chat session multicasts a Switch-Authority-Request message in the ZigBee network, and the message may carry a Chatroomlist to leave the chat session or carry a C-ID for querying instead of maintaining the chat session. node.
  • Step 1102 A node in the ZigBee network responds to the message, and sends a Switch- Chairman_Response message to the cChairman, carrying the U ID, indicating that it is desirable to maintain the chat session instead of the chairman.
  • the message may be sent to one or more nodes, and the one or more nodes separately send the message to the chairman.
  • Step 1103 After the chairman receives at least one message within the set time, select a node to replace himself according to the set rule.
  • the set time can be set according to user needs or network conditions.
  • the set rules are set as required, and are not limited here.
  • Step 1104 The chairman carries the information of the selected node in the Switch_National-Confirm message to all nodes in the chat session group.
  • Step 1105 after the selected node receives the message, instead of chairman maintenance
  • the chat session will unicast the Switch- Chairman- Confirm message to the original chairman in the chat session group to be maintained.
  • Step 1106 After receiving the message, the chairman initiates a process of exiting the chat session to the selected node.
  • the process may refer to steps 1007 to 1009, and is not described here.
  • step 1103 in this embodiment if the chairman does not receive the Switch_Authent_Response message returned by any node within the set time, the chairman may specify in the chat session group according to a preset specified rule.
  • a node acts as an alternate chairman node, initiates a request to its unicast, waits for its consent to designate the node as the chairman node, or in order to quickly switch the chairman, the chairman directly designates a node as the alternate chairman node and directly indicates the handover, replacing the designated node. Maintain a chat session.
  • FIG. 12 is a schematic diagram of a system for implementing chat in a centralized server mode in a ZigBee network according to an embodiment of the present invention: a server supporting a chat cluster is included. 1201 and one or more nodes 1202, wherein
  • the server 1201 is configured to establish a chat session according to the request of the node 1202, or join the node 1202 to the chat session; and maintain the chat session;
  • the node 1202 is configured to request the server 1201 to establish a chat session or join a chat session, and during the chat, an instant message is transmitted between the other nodes in the same chat session.
  • the server 1201 is further configured to receive other nodes of the chat session sent by the node 1202.
  • the node 1202 is further configured to send a leave chat session request to the server 1201.
  • the server 1201 is further configured to receive a request for the node 1202 to obtain an Endpoint number of the chat session, and send an Endpoint number matching the chat session to the node 1202;
  • the node 1202 is further configured to send the acquisition to the server 1201 to perform a chat session.
  • the request of the Endpoint number receives the Endpoint number of the matching chat session sent by the server 1201, and uses the Endpoint number to communicate with the server 1201 to perform a chat session.
  • FIG. 13 is a schematic diagram of a system for implementing chat in an Ad-Hoc mode in a ZigBee network according to an embodiment of the present invention, including more than one node supporting a chat cluster, including a node 1301 (referred to as a chairman node) as a chairman node, and a participating chat session.
  • Node 1302 (called a node), where
  • the chairman node 1301 is configured to establish and maintain a chat session, and the node 1302 joins the chat session according to the request of the node 1302;
  • the node 1302 is configured to request the chairman node 1301 to join a chat session, and transmit an instant message between the other nodes in the same chat session or the chairman node 1301 during the chat.
  • the chairman node 1301 is further configured to receive, by the node 1302, another node that sends the chat session;
  • the node 1302 is further configured to send a leave chat session request to the chairman node 1301.
  • the chairman node 1301 is further configured to send a request to the node 1302 to replace the maintenance chat session, and after receiving the response of the node that participates in the chat session to replace the maintenance of the chat session, send a response to the participating chat session. Select one of the nodes to replace the maintenance chat session.
  • FIG. 14 is a schematic diagram of a device for implementing a chat in a ZigBee network according to an embodiment of the present invention.
  • the device supports a chat cluster, and includes a transceiver module 1401. And maintenance module 1402, wherein
  • the transceiver module 1401 is configured to receive a join chat session request sent by the node, and send the request to the maintenance module 1402.
  • the maintenance module 1402 is configured to join the node to the maintained chat session according to the join chat session request received from the transceiver module 1401.
  • the transceiver module 1401 further includes a first transceiver submodule
  • the maintenance module 1402 further includes a first maintenance submodule
  • the device is a server
  • the first transceiver module is configured to receive a chat session request sent by the node, and send the request to the first maintenance sub-module, where the first maintenance sub-module is configured to establish a chat according to the sending from the first transceiver sub-module.
  • the session request establishes and maintains a chat session; or when the device is a chair node, the first maintenance sub-module is configured to actively establish or maintain a chat session.
  • the transceiver module 1401 further includes a second transceiver submodule
  • the maintenance module 1402 further includes a second maintenance submodule
  • the second transceiver sub-module is configured to receive a leave session request sent by the node, and send the request to the second maintenance sub-module, where the second maintenance sub-module is configured to update the user list of the maintained chat session and pass the The second transceiver submodule notifies other nodes of the chat session.
  • the transceiver module 1401 further includes a third transceiver submodule
  • the maintenance module 1402 further includes a third maintenance submodule
  • the third transceiver submodule is used by Sending a request to replace the maintenance of the chat session with the node, and receiving the response of the substitute maintenance chat session returned by the node participating in the chat session, and sending the response to the third maintenance sub-module, the third maintenance sub-module, for participating in the response from the sending Select a node in the node of the chat session instead of maintaining the chat session.
  • FIG. 15 is a schematic diagram of a node for implementing a chat in a ZigBee network according to an embodiment of the present invention.
  • the device supports a chat cluster, and includes a request module 1501 and a chat module 1502.
  • the requesting module 1501 is configured to request to establish a chat session or join a chat session.
  • the chat module 1502 is configured to transmit an instant message between the other nodes in the same chat session during the chat process.
  • the requesting module 1501 further includes a first requesting submodule, configured to send a leave chat session request;
  • the node further includes a receiving module for receiving an update notification of the user list of the chat session.
  • the receiving module further includes a receiving submodule for receiving a request to replace the maintenance chat session, and returning a response instead of maintaining the chat session.
  • Implementing chat in a ZigBee network can be applied in the following scenarios: 1) Shopping in the mall, the ZigBee network is constructed within the mall, and the consumers shopping in the mall use the mobile terminal for communication, and the mobile terminal acts as a node in the ZigBee network. Consumers shopping at the mall can use the ZigBee network to use centralized server mode chat, servers in the mall can provide consumers with different themes of chat sessions, and manage these chat sessions, these chat sessions can provide convenience to consumers There are: a large number of purchases, consumers can find other consumers with the same or similar interests through the chat session to buy goods together to obtain higher discounts; information collection, consumers can get suggestions and feedback from other consumers through chat sessions, To help choose the goods you want to meet; Dating, consumers find dating objects through chat sessions.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • General Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Information Transfer Between Computers (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

A method, system and device are used for implementing a chat. The method includes that a node supporting the chat cluster in the ZigBee network joins in the ZigBee network, the node obtains the chat conversation information in the ZigBee network according to the supported chat cluster, and performs the chat conversation according to the obtained chat conversation information. The method, system and device implement the chat in the ZigBee network.

Description

一种实现聊天的方法、 系统及装置 本申请要求于 2007年 10 月 30 日提交中国专利局, 申请号为 200710164355.4, 发明名称为 "一种实现聊天的方法、 系统及装置" 的中国专利申请的优先权, 其全部内容通过引用结合在本申请中。 技术领域  The present invention claims to be submitted to the Chinese Patent Office on October 30, 2007, the application number is 200710164355.4, and the invention is entitled "A method, system and device for implementing chat". Priority is hereby incorporated by reference in its entirety. Technical field
本发明涉及 ZigBee网络中的应用技术, 特别涉及一种在 ZigBee 网络中实现聊天的方法、 系统及装置。 背景技术  The present invention relates to an application technology in a ZigBee network, and in particular, to a method, system and device for implementing a chat in a ZigBee network. Background technique
ZigBee 是一种新兴的短距离、 低速率的无线网络技术, 主要用 于近距离无线连接。 ZigBee有自己的协议标准, 在数万个微小的节 点之间相互协调实现通信。 这些节点只需要很少的能量, 以接力的方 式通过无线电波将数据从一个节点传到另一个节点。 ZigBee 网络能 够由 64k个节点组成, 节点间的典型通信距离为 75米, 但是节点间 的通信距离也可以扩展至几百米。  ZigBee is an emerging short-range, low-rate wireless networking technology that is primarily used for short-range wireless connectivity. ZigBee has its own protocol standard, which coordinates communication among tens of thousands of tiny nodes. These nodes require very little energy to relay data from one node to another in a relay manner. The ZigBee network can consist of 64k nodes, and the typical communication distance between nodes is 75 meters, but the communication distance between nodes can also be extended to several hundred meters.
聊天实际上就是在不同网络实体之间传输即时消息的过程,例如 釆用开放移动联盟(OMA, Open Mobile Alliance ) -即时消息 ( IM, Instant Messaging )技术进行聊天。  Chat is actually the process of transmitting instant messages between different network entities, such as using the Open Mobile Alliance (OMA) - Instant Messaging (IM) technology for chatting.
因此, 申请人发现目前在 ZigBee网络中的节点间无法实现聊天。 发明内容  Therefore, the applicant found that chat is currently not possible between nodes in the ZigBee network. Summary of the invention
本发明实施例提供一种实现聊天的方法, 该方法能够在 ZigBee 网络中实现聊天功能。  Embodiments of the present invention provide a method for implementing a chat, which can implement a chat function in a ZigBee network.
本发明实施例还提供一种实现聊天的系统,该系统能够在 ZigBee 网络中实现聊天。  Embodiments of the present invention also provide a system for implementing chat, which is capable of implementing chat in a ZigBee network.
本发明实施例还提供一种实现聊天的装置,该装置能够在 ZigBee 网络中实现聊天。 根据上述目的, 本发明实施例的技术方案是这样实现的: 一种实现聊天的方法, 该方法包括: The embodiment of the invention further provides a device for implementing chat, which can implement chat in a ZigBee network. According to the above objective, the technical solution of the embodiment of the present invention is implemented as follows: A method for implementing a chat, the method includes:
加入 ZigBee网络中的节点支持聊天簇;  Join nodes in the ZigBee network to support chat clusters;
所述节点根据支持的聊天簇获取 ZigBee 网络中的聊天会话信 息, 根据获取的聊天会话信息进行聊天会话。  The node acquires chat session information in the ZigBee network according to the supported chat cluster, and performs a chat session according to the obtained chat session information.
一种实现聊天的系统,包括支持聊天簇的服务器和一个以上的节 点, 其中,  A system for implementing a chat, including a server supporting a chat cluster and one or more nodes, wherein
服务器, 用于根据节点的请求建立聊天会话, 或使节点加入聊天 会话; 维护聊天会话;  a server, configured to establish a chat session according to a request of the node, or join the node to the chat session; maintain the chat session;
节点, 用于请求服务器建立聊天会话或加入聊天会话, 在聊天过 程中, 和所述同一聊天会话中的其他节点之间传送即时消息。  The node is configured to request the server to establish a chat session or join a chat session, and send an instant message between the other nodes in the same chat session during the chat.
一种实现聊天的装置, 所述装置支持聊天簇, 包括收发模块和维 护模块, 其中,  An apparatus for implementing a chat, the device supporting a chat cluster, including a transceiver module and a maintenance module, wherein
收发模块, 用于接收节点发送的加入聊天会话请求, 发送给维护 模块;  a transceiver module, configured to receive a chat session request sent by the node, and send the request to the maintenance module;
维护模块,用于根据从收发模块接收的加入聊天会话请求使节点 加入维护的聊天会话。  And a maintenance module, configured to join the node to the maintained chat session according to the join chat session request received from the transceiver module.
一种实现聊天的节点, 该装置支持聊天簇, 包括请求模块和聊天 模块, 其中,  A node for implementing a chat, the device supports a chat cluster, including a request module and a chat module, wherein
所述请求模块, 用于请求建立聊天会话或加入聊天会话; 所述聊天模块, 用于请求建立聊天会话或加入聊天会话成功后, 在聊天过程中, 和所述同一聊天会话中的其他节点之间传送即时消 息。  The requesting module is configured to request to establish a chat session or join a chat session; the chat module is configured to request to establish a chat session or join the chat session successfully, during the chat process, and other nodes in the same chat session Send instant messages between.
从上述方案可以看出, 本发明实施例在 ZigBee网络的电信应用 中定义了用于聊天的命令以及消息, 组成了聊天簇, 使 ZigBee网络 中的节点支持聊天簇,通过聊天簇釆用集中服务器模式或 Ad-Hoc(点 对点)模式的通信, 实现这些节点之间的聊天。 因此, 本发明实施例 提供的方法、 系统以及装置可以在 ZigBee网络中实现聊天。 附图说明 As can be seen from the above solution, the embodiment of the present invention defines commands and messages for chat in the telecommunication application of the ZigBee network, and forms a chat cluster, so that nodes in the ZigBee network support chat clusters, and use centralized clusters through chat clusters. Mode or Ad-Hoc (peer-to-peer) mode communication, enabling chat between these nodes. Therefore, the method, system and device provided by the embodiments of the present invention can implement chat in a ZigBee network. DRAWINGS
图 1为本发明实施例 ZigBee网络的层结构示意图;  1 is a schematic structural diagram of a layer of a ZigBee network according to an embodiment of the present invention;
图 2 为本发明实施例釆用集中服务器模式实现支持聊天簇的节 点之间的聊天的网络结构示意图;  2 is a schematic diagram of a network structure for implementing chat between nodes supporting a chat cluster in a centralized server mode according to an embodiment of the present invention;
图 3为本发明实施例服务器的结构示意图;  3 is a schematic structural diagram of a server according to an embodiment of the present invention;
图 4为本发明实施例釆用 Ad-Hoc模式实现支持聊天簇的节点之 间的聊天的网络结构示意图;  4 is a schematic diagram of a network structure for implementing a chat between nodes supporting a chat cluster in an Ad-Hoc mode according to an embodiment of the present invention;
图 5为本发明实施例主席节点的结构示意图;  FIG. 5 is a schematic structural diagram of a chair node according to an embodiment of the present invention; FIG.
图 6为本发明实施例建立的聊天簇的结构示意图;  6 is a schematic structural diagram of a chat cluster established according to an embodiment of the present invention;
图 7 为本发明实施例节点釆用集中服务模式建立聊天会话的方 法流程图;  7 is a flowchart of a method for establishing a chat session by a node using a centralized service mode according to an embodiment of the present invention;
图 8 为本发明实施例釆用集中服务模式加入聊天会话的方法流 程图;  FIG. 8 is a flowchart of a method for joining a chat session by using a centralized service mode according to an embodiment of the present invention; FIG.
图 9 为本发明实施例釆用集中服务模式退出聊天会话的方法流 程图;  FIG. 9 is a flow chart of a method for exiting a chat session by using a centralized service mode according to an embodiment of the present invention; FIG.
图 10为本发明实施例釆用集中服务模式进行聊天会话的方法流 程图  FIG. 10 is a flow chart of a method for performing a chat session using a centralized service mode according to an embodiment of the present invention;
图 11为本发明实施例在 Ad-Hoc模式下切换主席节点的方法流程 图;  11 is a flow chart of a method for switching a chairman node in an Ad-Hoc mode according to an embodiment of the present invention;
图 12为本发明实施例在 ZigBee网络中釆用集中服务器模式实现 聊天的系统示意图;  12 is a schematic diagram of a system for implementing chat in a centralized server mode in a ZigBee network according to an embodiment of the present invention;
图 13为本发明实施例在 ZigBee网络中釆用 Ad-Hoc模式实现聊 天的系统示意图;  13 is a schematic diagram of a system for implementing a chat in an Ad-Hoc mode in a ZigBee network according to an embodiment of the present invention;
图 14为本发明实施例在 ZigBee网络中实现聊天的装置示意图; 图 15为本发明实施例在 ZigBee网络中实现聊天的节点示意图。 具体实施方式  FIG. 14 is a schematic diagram of an apparatus for implementing chat in a ZigBee network according to an embodiment of the present invention; FIG. 15 is a schematic diagram of a node for implementing chat in a ZigBee network according to an embodiment of the present invention. detailed description
为使本发明的目的、技术方案和优点更加清楚, 下面结合附图对 本发明实施例作进一步的详细描述。 对于 ZigBee网络来说, 其网络的层结构如图 1所示, 从底层到 高层,依次包括基于 IEEE 802.15.4的物理层和 MAC层、以及 ZigBee 联盟定义的网络层、 安全层和应用程序接口。 其中, 网络层主要实现 ZigBee 网络中的节点加入或离开网络、 接收或抛弃其他节点、 路由 查找及传送数据等功能, 支持星形、 树形以及网格等多种拓朴结构; 安全层主要实现密钥管理以及存取等功能;应用程序接口用于向节点 上层提供应用程序的接口, 包括应用子层支持 ( APS , Application Support Sub-layer ), ZigBee设备对象( ZDO , ZigBee Device Object ) 和应用程序规范 (Application Profile ) 的接口, 实现上层对节点的管 理, 应用程序规范中定义了一些设备描述, 以及这些设备之间传递的 命令以及属性(消息)。 The embodiments of the present invention will be further described in detail below with reference to the accompanying drawings. For the ZigBee network, the layer structure of the network is as shown in Figure 1. From the bottom layer to the upper layer, it includes the IEEE 802.15.4-based physical layer and MAC layer, and the ZigBee Alliance defined network layer, security layer and application program interface. . Among them, the network layer mainly implements functions such as nodes joining or leaving the network in the ZigBee network, receiving or discarding other nodes, routing and transmitting data, and supporting various topologies such as a star, a tree, and a grid; Key management and access functions; the application interface is used to provide the application's interface to the upper layer of the node, including application sub-layer support (APS, Application Support Sub-layer), ZigBee device object (ZDO, ZigBee Device Object) and application. The interface of the Application Profile implements upper-level node management. The application specification defines some device descriptions, as well as commands and attributes (messages) passed between these devices.
为了在 ZigBee网络中实现聊天,本发明实施例在 ZigBee网络的 电信应用中定义了用于聊天的命令以及消息, 组成了聊天簇, 使 ZigBee 网络中的节点支持聊天簇, 通过聊天簇实现这些节点之间的 聊天。  In order to implement chat in a ZigBee network, the embodiment of the present invention defines commands and messages for chat in a telecommunication application of a ZigBee network, and forms a chat cluster, so that nodes in the ZigBee network support chat clusters, and these nodes are implemented through chat clusters. Chat between.
在本发明实施例中, 在 ZigBee网络中的支持聊天簇的节点可以 釆用两种模式进行通信, 即釆用集中服务器模式或 Ad-Hoc模式进行 通信, 实现聊天。 以下分别对这两种方式进行介绍。  In the embodiment of the present invention, the node supporting the chat cluster in the ZigBee network can communicate in two modes, that is, using the centralized server mode or the Ad-Hoc mode for communication, and implementing chat. The following two methods are introduced separately.
釆用集中服务器模式实现支持聊天簇的节点之间的聊天介绍如 下:  The chat between the nodes supporting chat clusters in the centralized server mode is as follows:
在这种模式下, 服务器将提供聊天会话的管理, 即服务器能够维 护不同聊天主题的聊天会话, 当支持聊天簇的节点加入 ZigBee网络 后,该节点就可以从服务器上查找并获取目前正在进行的聊天会话信 息,从中选择一个聊天会话加入。多个节点可以加入相同的聊天会话, 并进行聊天。  In this mode, the server will provide management of the chat session, that is, the server can maintain the chat session of different chat topics. When the node supporting the chat cluster joins the ZigBee network, the node can find and obtain the ongoing progress from the server. Chat session information, choose a chat session to join. Multiple nodes can join the same chat session and chat.
图 2 为本发明实施例釆用集中服务器模式实现支持聊天簇的节 点之间的聊天的网络结构示意图, 包括服务器和多个节点。 其中, 该 服务器为商场中的服务器, 这个服务器和一个 ZigBee网络的接入点 相连,这个接入点与运营商的网络相连。在聊天过程中或聊天结束后, 服务器可以向接入点提供信息以便运营商通过运营商的网络进行管 理, 比如, 当聊天结束后服务器通过接入点向运营商的网络发送计费 信息等。 在图 2中, 位于 ZigBee网络中心的节点为服务器, 可以建 立并维护聊天会话, ZigBee 网络中的节点向该服务器查找并获取聊 天会话的信息, 加入聊天会话。 接入点用三角表示。 虚线圓圈表示了 一个聊天会话组, 该聊天会话组包括的节点。 FIG. 2 is a schematic diagram of a network structure for implementing chat between nodes supporting a chat cluster in a centralized server mode according to an embodiment of the present invention, including a server and a plurality of nodes. The server is a server in the mall, and the server is connected to an access point of a ZigBee network, and the access point is connected to the network of the operator. During the chat or after the chat, The server can provide information to the access point for the operator to manage through the operator's network. For example, after the chat ends, the server sends the charging information to the operator's network through the access point. In FIG. 2, the node located in the center of the ZigBee network is a server, and a chat session can be established and maintained. The node in the ZigBee network searches for and acquires the information of the chat session to join the chat session. The access point is represented by a triangle. The dotted circle represents a chat session group that is included in the chat session group.
为了实现聊天, 服务器包括聊天会话管理模块、 用户列表管理模 块以及 ZigBee程序模块, 如图 3所示, 其中,  In order to implement chat, the server includes a chat session management module, a user list management module, and a ZigBee program module, as shown in FIG. 3, where
聊天会话管理模块 301 , 用于对当前聊天会话进行管理, 向 ZigBee程序模块 303发送对聊天会话的管理信息;  The chat session management module 301 is configured to manage the current chat session, and send the management information of the chat session to the ZigBee program module 303.
用户列表管理模块 302, 用于对参与当前聊天会话的节点进行管 理, 向 ZigBee程序模块 303发送参与节点的管理信息;  The user list management module 302 is configured to manage the node participating in the current chat session, and send the management information of the participating node to the ZigBee program module 303.
ZigBee程序模块 303 ,用于根据从聊天会话管理模块 301接收到 的对聊天会话的管理信息以及从用户列表管理模块 302 接收到的对 参与节点的管理信息, 构造 ZigBee程序后, 通过应用程序接口发送 给底层, 指示底层网络在 ZigBee网络中对节点进行控制, 完成对聊 天会话的管理以及对参与节点的管理。  The ZigBee program module 303 is configured to send, according to the management information of the chat session received from the chat session management module 301 and the management information of the participating nodes received from the user list management module 302, the ZigBee program, and then send through the application program interface. To the bottom layer, the underlying network is instructed to control the nodes in the ZigBee network, and the management of the chat session and the management of the participating nodes are completed.
釆用 Ad-Hoc模式实现支持聊天簇的节点之间的聊天介绍如下: 在这种模式下, ZigBee 网络中的任何节点 (支持聊天簇)都可 以发起并维护一个聊天会话。 当发起一个聊天会话时, 发起节点必须 要为该聊天会话选择一个主题和会话标识,并保证会话标识在整个网 络中的唯一' 1"生。  The use of Ad-Hoc mode to implement chat between nodes supporting chat clusters is as follows: In this mode, any node in the ZigBee network (supporting chat clusters) can initiate and maintain a chat session. When initiating a chat session, the originating node must select a subject and session ID for the chat session and ensure that the session ID is unique '1' in the entire network.
图 4为本发明实施例釆用 Ad-Hoc模式实现支持聊天簇的节点之 间的聊天的网络结构示意图, 包括多个节点, 其中, 大的实心园点表 示 ZigBee网络中的协调节点, 大的空心园点表示维护聊天会话的节 点(这里称之为主席节点), 小的空心园点表示参与聊天会话的节点, 小的实心园点表示未参与聊天会话的节点,实线表示节点间的通信链 路, 虚线围成的范围为不同的聊天会话范围。  4 is a schematic diagram of a network structure for implementing chat between nodes supporting a chat cluster by using an Ad-Hoc mode according to an embodiment of the present invention, including multiple nodes, wherein a large solid dot represents a coordination node in a ZigBee network, and a large The hollow circle point represents the node that maintains the chat session (herein referred to as the chairman node), the small hollow circle point represents the node participating in the chat session, the small solid circle point represents the node that does not participate in the chat session, and the solid line represents the communication between the nodes. The range of links and dashed lines is different for different chat sessions.
图 5为本发明实施例主席节点的结构示意图,包括聊天信息模块 501 , 聊天会话管理模块 502、 用户列表管理模块 503以及 ZigBee程 序模块 504, 其中, FIG. 5 is a schematic structural diagram of a chair node according to an embodiment of the present invention, including a chat information module 501, a chat session management module 502, a user list management module 503, and a ZigBee program module 504, where
聊天信息模块 501 , 用于存储建立的聊天会话的聊天信息; 聊天会话管理模块 502, 用于建立聊天会话并将聊天会话的聊天 信息存储在聊天信息模块 501中, 对已经建立的聊天会话进行管理, 获取聊天信息模块 501 中的聊天信息, 根据聊天信息向 ZigBee程序 模块 504发送对聊天会话的管理信息;  The chat information module 501 is configured to store the chat information of the established chat session. The chat session management module 502 is configured to establish a chat session and store the chat information of the chat session in the chat information module 501, and manage the established chat session. Obtaining the chat information in the chat information module 501, and sending the management information of the chat session to the ZigBee program module 504 according to the chat information;
用户列表管理模块 503 , 用于对参与当前聊天会话的节点进行管 理, 向 ZigBee程序模块 504发送参与节点的管理信息;  a user list management module 503, configured to manage nodes participating in the current chat session, and send management information of the participating nodes to the ZigBee program module 504;
ZigBee程序模块 504,用于根据从聊天会话管理模块 502接收到 的对聊天会话的管理信息以及从用户列表管理模块 503 接收到的对 参与节点的管理信息, 构造 ZigBee程序后, 通过应用程序接口发送 给底层, 指示底层网络在 ZigBee网络中对节点控制, 完成对聊天会 话的管理以及对参与节点的管理。  The ZigBee program module 504 is configured to send, according to the management information of the chat session received from the chat session management module 502 and the management information of the participating nodes received from the user list management module 503, the ZigBee program, and then send through the application program interface. To the bottom layer, the underlying network is instructed to control the nodes in the ZigBee network, and the management of the chat session and the management of the participating nodes are completed.
在本发明实施例中, 需要在 ZigBee网络中建立一个聊天簇, 这 里也可以称之为消息簇( Messaging Cluster ), 并且使需要实现聊天的 节点都支持聊天簇,即在节点上设置可以生成或识别聊天簇中的消息 或命令能力。 以下对这个聊天簇进行详细的介绍。  In the embodiment of the present invention, a chat cluster needs to be established in the ZigBee network, which may also be referred to as a messaging cluster, and the nodes that need to implement the chat support the chat cluster, that is, the node can be generated or generated on the node. Identify the message or command capabilities in the chat cluster. The chat cluster is described in detail below.
图 6为本发明实施例建立的聊天簇的结构示意图,该结构需要在 实现聊天的主席节点或服务器上构造, 包括:  FIG. 6 is a schematic structural diagram of a chat cluster established according to an embodiment of the present invention. The structure needs to be constructed on a chair node or a server that implements a chat, and includes:
U— ID: 在聊天会话过程中节点使用的具有唯一性的用户标识, 这个用户标识与节点加入 ZigBee网络时所分配的地址相同。  U-ID: The unique user ID used by the node during the chat session. This user ID is the same as the address assigned when the node joins the ZigBee network.
Nickname: 用户在聊天会话中使用的昵称;  Nickname: the nickname used by the user in the chat session;
C— ID: 聊天会话标识, 在同一聊天会话中的所有节点都属于同 一个会话; C— ID在集中服务器模式中由服务器指定; 在 Ad-Hoc模 式中由主席节点指定, 并确保其唯一性;  C-ID: The chat session ID, all nodes in the same chat session belong to the same session; C-ID is specified by the server in the centralized server mode; specified by the chairman node in Ad-Hoc mode, and its uniqueness is ensured ;
Name: 聊天会话主题, 比如"足球爱好者,,等;  Name: The topic of the chat session, such as "soccer fans," etc.
Message: 聊天会话过程中发送的聊天消息;  Message: The chat message sent during the chat session;
UserList: 是一个结构类型的数据, 其中包含 U— ID和 Nickname 等信息,是服务器或主席节点用来通知新加入者已参与聊天会话节点 的列表; UserList: is a structure type of data that contains U-ID and Nickname Information such as a list used by the server or the chairman node to notify the new entrant that the entrant has participated in the chat session node;
ChatroomList: 是一个结构类型的数据,其中包含有 C— ID, Name 等。 这是服务器或主席节点响应其他节点查找聊天主题的。  ChatroomList: is a structure type of data that contains C-ID, Name, and so on. This is where the server or chairman node responds to other nodes to find the subject of the chat.
在本发明实施例中, 还需要对聊天簇中釆用的消息进行定义, 根 据所使用的目的不同, 可以分为客户端消息和服务器端消息, 以下分 别进行介绍。  In the embodiment of the present invention, the messages used in the chat cluster need to be defined. According to different purposes, the messages may be classified into client messages and server messages, which are described below.
客户端消息包括:  Client messages include:
Join— Chat— Request, —般携带 U— ID、 Nickname和 C— ID, 为节点 向服务器或主席节点发送的请求加入聊天会话的消息。  Join—Chat—Request, which carries the U-ID, Nickname, and C-ID, is the message that the node sends a request to the server or the chairman node to join the chat session.
Leave— Chat— Request, —般携带 U— ID, 为节点向服务器或是主席 节点发送的退出聊天会话的消息。  Leave—Chat—Request, generally carries the U-ID, which is the message sent by the node to the server or the chairman node to log out of the chat session.
Search— Chat— Request, 为在加入聊天之前, 节点在网络中搜索聊 天会话和主题, 当收到返回的聊天会话主题列表后, 能选择其中一个 加入。  Search—Chat—Request, in order to search for chat conversations and topics on the network before joining the chat, after receiving the returned chat session topic list, you can select one of them to join.
Switch— Chairman— Request, 为在 Ad-Hoc模式下, 当一个主席节 点想要离开, 其将利用此条消息来选择一个新的主席节点。  Switch— Chairman—Request, in Ad-Hoc mode, when a chairman node wants to leave, it will use this message to select a new chairman node.
Start— Chat— Request, —般携带 Name和 U— ID, 节点向服务器发 送创建聊天会话的请求。  Start—Chat—Request, generally carries the Name and U—ID, and the node sends a request to the server to create a chat session.
服务器端消息包括:  Server-side messages include:
Join— Chat— Session— Response, —般携带 UserList, 由月良务器或主 席节点发出, 作为 Join— Chat— Session— Request的响应。 消息返回参数 包含了一个结构数据(nickname, U— ID等), 将已经参加的人员列表 打包发送给请求节点。  Join—Chat—Session—Response, which carries the UserList, sent by the server or the chair node as a response to the Join-Chat-Session-Request. The message return parameter contains a structure data (nickname, U-ID, etc.), and the list of people who have participated in is packaged and sent to the requesting node.
User— left , —般携带 U— ID和 Nickname , 为向聊天会话中的其他 节点通告某一节点退出聊天会话消息。  User—left, generally carries U-ID and Nickname, to advertise a node to a chat session message to other nodes in the chat session.
User— Joined,—般携带 U— ID和 Nickname ,为向聊天会话中的其 他节点通告新节点加入聊天会话消息。  User—Joined, generally carries the U-ID and Nickname to announce the new node to the chat session message to other nodes in the chat session.
GMessage, 一般携带 C— ID、 Nickname和 Message , 向同一聊天 会话中的所有节点发送的多播消息, 多播方法由 ZigBee联盟定义的 协议规定。 GMessage, generally carrying C-ID, Nickname and Message, to the same chat Multicast messages sent by all nodes in the session, the multicast method is specified by the protocol defined by the ZigBee Alliance.
Search— Chat— Response , —般携带 ChatroomList, 月良务器或主席 节点发送的作为 Search— Chat— Request的响应, 其数据结构中包含了 当前所有的聊天主题。  Search— Chat— Response, generally carries the ChatroomList, the response sent by the server or the chairman node as a Search-Chat-Request, whose data structure contains all current chat themes.
Start— Chat— Response, —般携带 C— ID, 作为 Start— Chat— Request 的响应, 表明建立并维护了聊天会话。  Start—Chat—Response, generally carries the C-ID, as a response to the Start-Chat-Request, indicating that the chat session was established and maintained.
Switch— Chairman— Response , 节点对主席节点的切换主席命令的 口向应。  Switch— Chairman— Response, the node's switch to the chairman node.
Switch— Chairman— Confirm, —般携带 U— ID, 主席节点通知其他 节点主席切换结果。  Switch— Chairman— Confirm, generally carries the U-ID, and the chairman node notifies the other node to switch the result.
以下就对釆用上述聊天簇中定义的消息在两种模式下 ZigBee网 络中的节点实现聊天的方法进行详细的说明。  The following is a detailed description of the method for implementing chat in the ZigBee network in the two modes by using the message defined in the above chat cluster.
节点釆用集中服务模式实现聊天会话的具体实施例如下: 在以下的具体实施例中, 将客户 (Client )定义为一个 ZigBee网 络中的节点, 该节点可以是具有 ZigBee网络中通信能力的移动终端 或个人数字助理( Personal Digital Assistant, PDA );将服务器( Server ) 定义为 ZigBee网络中的协调者,也就是服务器,负责维护整个 ZigBee 网络并对聊天会话进行管理; 将聊天会话定义为 Chat Session, 包括 一个或多个 Client。  The specific implementation of the node using the centralized service mode to implement the chat session is as follows: In the following specific embodiments, the client (Client) is defined as a node in a ZigBee network, and the node may be a mobile terminal having communication capability in a ZigBee network. Or Personal Digital Assistant (PDA); define the server (Server) as the coordinator in the ZigBee network, that is, the server, responsible for maintaining the entire ZigBee network and managing the chat session; defining the chat session as Chat Session, Includes one or more Clients.
图 7 为本发明实施例节点釆用集中服务模式建立聊天会话的方 法流程图, 其具体步骤为:  FIG. 7 is a flowchart of a method for establishing a chat session by a node in a centralized service mode according to an embodiment of the present invention, and the specific steps are as follows:
步骤 701 , Client 接入 ZigBee 网络后, 向 Server 发送 Start— Chat— Request消息, 携带 Name, 用于指示要建立一个聊天会话 并指示该聊天会话的主题。  Step 701: After the client accesses the ZigBee network, the server sends a Start_Chat-Request message to the server, and carries a Name, which is used to indicate that a chat session is to be established and indicates the subject of the chat session.
步骤 702 , Server接收到该消息后, 建立主题为该消息携带的 Name 的聊天会话, 即维护该聊天会话并为该聊天会话建立 UserList 和分配 ZigBee网络中唯一的 C— ID。  Step 702: After receiving the message, the server establishes a chat session whose subject is the Name carried by the message, that is, maintains the chat session and establishes a UserList for the chat session and allocates a unique C-ID in the ZigBee network.
步骤 703 , Server向 Client返回 Start— Chat— Response消息, 携带 为该聊天会话分配的 CJD。 Step 703, the server returns a Start_Chat_Response message to the Client, carrying The CJD assigned to this chat session.
在该步骤后, Server就可以接受其他节点发送的加入该聊天会话 的消息, 并将 Client的信息发送给其他节点, 将其他节点的信息发送 给该 Client。这时,该聊天会话中的其他节点已经得知 Client的信息, 就可以将携带该 Client的 Nickname,该聊天会话的 C— ID以及信息的 GMessag发送给 Client, Client也可以将携带其他节点的 Nickname、 该聊天会话的 CJD以及信息的 GMessag发送给对应的在该聊天会话 中的其他节点, 其他节点和 Client就可以在该聊天会话中进行聊天 了。  After this step, the server can accept the message sent by other nodes to join the chat session, and send the information of the client to other nodes, and send the information of other nodes to the client. At this time, the other nodes in the chat session have already learned the information of the client, and can send the Nickname carrying the client, the C-ID of the chat session, and the GMessag of the information to the client, and the client can also carry the Nickname of other nodes. The CJD of the chat session and the GMessag of the information are sent to the corresponding other nodes in the chat session, and the other nodes and the client can chat in the chat session.
图 8 为本发明实施例釆用集中服务模式加入聊天会话的方法流 程图, 其具体步骤为:  FIG. 8 is a flow chart of a method for joining a chat session by using a centralized service mode according to an embodiment of the present invention, and the specific steps are as follows:
步骤 801 , Client 接入 ZigBee 网络后, 向 Server 发送 Search— Chat— Request消息, 请求 Server已经建立的聊天会话信息。  Step 801: After the client accesses the ZigBee network, send a Search-Call-Request message to the server, requesting the chat session information that the server has established.
步骤 802, Server接收到该消息后,将已经建立的聊天会话列表, 即 Chatroomlist携带在 Search— Chat— Response消息中发送给 Client。  Step 802: After receiving the message, the server sends the established chat session list, that is, the Chatroomlist, to the Client in the Search_Chat_Response message.
步骤 803 , Client根据 Chatroomlist选择自身希望加入的聊天会话, 将希望加入的聊天会话的 C— ID、自身加入聊天会话的 Nickname以及 使用的 U— ID携带在 Join— Chat— Request消息中发送给 Server。  Step 803: The client selects the chat session that the user wants to join according to the Chatroomlist, and sends the C-ID of the chat session that he/she wants to join, the Nickname that is added to the chat session, and the used U-ID in the Join_Chat-Request message to the server.
步骤 804 , Server根据接收到的消息携带的 Nickname和 U— ID更 新该 C— ID对应的聊天会话的用户列表,将该用户列表设置在 UserList 中, 携带在 Join— Chat一 Response消息发送给 Client。  Step 804: The server updates the user list of the chat session corresponding to the C-ID according to the Nickname and the U-ID carried in the received message, and sets the user list in the UserList, and sends the Response_Chat Response message to the Client.
相应地, Server也将新加入该 C— ID对应的聊天会话的用户列表 的 Client的 Nickname和 U— ID发送给该用户列表中的其他节点 , 以 便告知其他节点有新的节点加入并且确定新加入节点的信息, 以便新 加入节点和该用户列表中的其他节点进行聊天。  Correspondingly, the server also sends the Nickname and U_ID of the client newly added to the user list of the chat session corresponding to the C-ID to other nodes in the user list, so as to inform other nodes that a new node joins and determines to join the new node. The information of the node so that the newly joined node can chat with other nodes in the user list.
在该步骤后, 该聊天会话中的其他节点已经得知 Client的信息, 就可以将携带该 Client的 Nickname、该聊天会话的 C— ID以及信息的 GMessag发送给 Client, Client也可以将携带其他节点的 Nickname、 该聊天会话的 C— ID以及信息的 GMessag发送给对应的在该聊天会话 中的其他节点, 其他节点和 Client就可以在该聊天会话中进行聊天 了。 After the step, the other nodes in the chat session have already learned the information of the client, and can send the Nickname carrying the client, the C-ID of the chat session, and the GMessag of the information to the client, and the client can also carry other nodes. Nickname, the C-ID of the chat session, and the GMessag of the message sent to the corresponding chat session The other nodes in the network, other nodes and the client can chat in the chat session.
图 9 为本发明实施例釆用集中服务模式退出聊天会话的方法流 程图, 其具体步骤为:  FIG. 9 is a flow chart of a method for exiting a chat session by using a centralized service mode according to an embodiment of the present invention, and the specific steps are as follows:
步骤 901 , 已经加入聊天会话的 Client 向 Server 发送 Leave— Chat— Request消息, 携带所加入聊天会话的 C— ID, 用于离开 已经加入的聊天会话。  Step 901: The client that has joined the chat session sends a Leave-Call-Request message to the server, and carries the C-ID of the joined chat session, and is used to leave the already-joined chat session.
步骤 902 , Server根据接收到的消息携带的 C— ID确定对应的聊 天会话的用户列表, 更新该用户列表, 即删除该 Client的信息(包括 Nick— Name以及 U— ID )。  Step 902: The server determines, according to the C-ID carried in the received message, the user list of the corresponding chat session, and updates the user list, that is, deletes the information of the client (including Nick_Name and U-ID).
在本步骤中,该 Client的信息可以是 Leave— Chat— Request消息携 带的, 也可以是 Server釆用其他方式获取的。  In this step, the information of the client may be carried by the Leave-Call-Request message, or may be obtained by the Server in other manners.
步骤 903 , Server向 Client发送 Leave— Chat— Response消息, 确 定 Client已经离开该聊天会话。  Step 903: The server sends a Leave-Call-Response message to the client, and determines that the client has left the chat session.
相应地, Server也将在该 C— ID对应的聊天会话的用户列表中删 除的 Client的 Nickname和 U— ID发送给该用户列表中的其他节点, 以便告知其他节点有离开的节点并确定离开节点的信息。  Correspondingly, the server also sends the Nickname and U_ID of the Client deleted in the user list of the chat session corresponding to the C-ID to other nodes in the user list, so as to inform other nodes that there are leaving nodes and determine to leave the node. Information.
节点釆用 Ad-Hoc模式实现聊天会话的具体实施例如下: 在以下的具体实施例中, 将 node定义为 ZigBee网络中的节点, 可以是具有 ZigBee通信能力的移动终端或 PDA, chairman定义为主 席节点, 是 ZigBee网络中的任意节点, 负责建立和维护聊天会话; Chat Session为一个聊天会话, 至少包括 chairman, 以及一个或多个 riods。  The specific implementation of the node using the Ad-Hoc mode to implement the chat session is as follows: In the following specific embodiments, the node is defined as a node in the ZigBee network, which may be a mobile terminal or PDA with ZigBee communication capability, and the chairman is defined as the chairman. A node, which is any node in the ZigBee network, is responsible for establishing and maintaining a chat session; a Chat Session is a chat session, including at least a chairman, and one or more riods.
在该具体实施例中,一般由 chairman创建对应 C— ID的聊天会话, 且维护该聊天会话的用户列表以及记录该聊天会话的信息。  In this particular embodiment, a chat session corresponding to a C-ID is typically created by the chairman, and a list of users of the chat session is maintained and information of the chat session is recorded.
图 10为本发明实施例釆用集中服务模式进行聊天会话的方法流 程图, 其具体步骤为:  FIG. 10 is a flow chart of a method for performing a chat session in a centralized service mode according to an embodiment of the present invention, and the specific steps are:
步骤 1001 , node在 ZigBee网络中组播 Serach— Chat— Request消 息, 用于查找网络中已经建立的聊天会话。 在该步骤中, node可以为一个或一个以上。 Step 1001: The node multicasts a Serach_Chat-Request message in the ZigBee network, and is used to search for a chat session that has been established in the network. In this step, the node can be one or more.
步骤 1002, 接收到该消息的 chairman将自身维护的聊天会话列 表, 即 Chatroomlist携带在 Serach— Chat— Response消息中发送给请求 聊天会话的 node。  Step 1002: The chairman that receives the message sends the list of chat sessions maintained by itself, that is, the Chatroomlist, to the node requesting the chat session in the Serach_Chat_Response message.
这里, chairman可以为一个或一个以上。  Here, the chairman may be one or more.
步骤 1003 , node接收到该消息后,根据携带的 Chatroomlist选择 希望加入的聊天会话。  Step 1003: After receiving the message, the node selects a chat session that is desired to join according to the carried Chatroomlist.
步骤 1004 , node将希望加入的聊天会话的 C— ID, 自身加入聊天 会话的 Nickname以及使用的 U— ID携带在 Join— Chat— Request消息中 发送给维护该聊天会话的 chairman。  Step 1004: The node sends the C-ID of the chat session that you want to join, the Nickname that is added to the chat session, and the U-ID that is used to be carried in the Join_Chat-Request message to the chairman that maintains the chat session.
步骤 1005 , 维护该聊天会话的 chairman根据接收到的消息携带 的 Nickname和 U— ID更新该 C— ID对应的聊天会话的用户列表,将该 用户列表设置在 UserList中, 携带在 Join— Chat— Response消息发送给 riods。  Step 1005: The chairman that maintains the chat session updates the user list of the chat session corresponding to the C-ID according to the Nickname and U-ID carried in the received message, and sets the user list in the UserList, and carries it in the Join_Chat_ The message is sent to riods.
相应地,维护该聊天会话的 chairman也将新加入该 C— ID对应的 聊天会话的用户列表的 Client的 Nickname和 U— ID发送给该用户列 表中的其他节点,以便告知其他节点有新的节点加入并且确定新加入 节点的信息, 以便新加入节点和该用户列表中的其他节点进行聊天。  Correspondingly, the chairman who maintains the chat session also sends the Nickname and U_ID of the client newly added to the user list of the chat session corresponding to the C-ID to other nodes in the user list, so as to inform other nodes that there are new nodes. Join and determine the information of the newly joined node so that the newly joined node can chat with other nodes in the user list.
步骤 1006 , 该聊天会话中的其他节点已经得知 Client的信息, 将携带该 Client 的 Nickname , 该聊天会话的 C— ID 以及信息的 GMessag发送给 Client, Client将携带其他节点的 Nickname, 该聊天 会话的 C— ID以及信息的 GMessag发送给对应的在聊天会话中的其他 节点, 其他节点和 Client就可以在该聊天会话中进行聊天了。  Step 1006, the other nodes in the chat session have learned the information of the client, and will carry the Nickname of the client, the C-ID of the chat session and the GMessag of the information are sent to the client, and the client will carry the Nickname of the other node, the chat session The C-ID and the GMessag of the information are sent to the corresponding other nodes in the chat session, and the other nodes and the client can chat in the chat session.
这个步骤可以继续执行, 并持续一段时间。  This step can continue and last for a while.
步骤 1007 , node 向维护该聊天会话的 chairman 发送 Step 1007, the node sends to the chairman who maintains the chat session
Leave— Chat— Request消息, 携带所加入聊天会话的 U— ID, 用于离开 已经加入的聊天会话。 The Leave-Chat-Request message carries the U-ID of the joined chat session and is used to leave the chat session that has been joined.
步骤 1008, 维护该聊天会话的 chairman根据接收到的消息携带 的 U— ID确定对应的聊天会话的用户列表, 更新该用户列表, 即删除 node的信息 (包括 Nick— Name以及 U— ID )。 Step 1008: The chairman that maintains the chat session determines a user list of the corresponding chat session according to the U-ID carried in the received message, and updates the user list, that is, deletes Node information (including Nick_Name and U-ID).
步骤 1009 , 维护该聊天会话的 chairman 向 node 发送 Leave— Chat— Response消息, 确定 node已经离开该聊天会话。  Step 1009: Maintain the chairman of the chat session to send a Leave-Chat-Response message to the node, and determine that the node has left the chat session.
相应地,维护该聊天会话的 chairman也将在该 C— ID对应的聊天 会话的用户列表中删除的 Client的 Nickname和 U— ID发送给该用户 列表中的其他节点,以便告知其他节点有离开的节点并确定离开节点 的信息。  Correspondingly, the chairman who maintains the chat session also sends the Nickname and U_ID of the Client deleted in the user list of the chat session corresponding to the C-ID to other nodes in the user list, so as to inform other nodes that they have left. The node also determines the information leaving the node.
在 Ad-Hoc模式下, 切换 chairman是非常必要的, 当 chairman 想要离开所维护的聊天会话时, 其应该指定一个节点作为 chairman, 以便对所要离开的聊天会话进行维护, 其具体方法如图 11所示, 图 11为本发明实施例在 Ad-Hoc模式下切换主席节点的方法流程图,其 具体步骤为:  In Ad-Hoc mode, it is necessary to switch the chairman. When the chairman wants to leave the maintained chat session, it should specify a node as the chairman to maintain the chat session to be left. The specific method is shown in Figure 11. 11 is a flowchart of a method for switching a chair node in an Ad-Hoc mode according to an embodiment of the present invention. The specific steps are as follows:
步骤 1101 ,要离开所维护的聊天会话的 chairman在 ZigBee网络 中组播 Switch— Chairman— Request消息, 该消息可以携带要离开聊天 会话的 Chatroomlist或携带 C— ID, 用于查询替代其维护聊天会话的 节点。  Step 1101: The chairman who wants to leave the maintained chat session multicasts a Switch-Authority-Request message in the ZigBee network, and the message may carry a Chatroomlist to leave the chat session or carry a C-ID for querying instead of maintaining the chat session. node.
步骤 1102, ZigBee 网络中的一个 node对该消息做出响应, 向 cChairman发送 Switch— Chairman— Response消息 , 携带 U ID , 表示 希望可以替代 chairman维护聊天会话。  Step 1102: A node in the ZigBee network responds to the message, and sends a Switch- Chairman_Response message to the cChairman, carrying the U ID, indicating that it is desirable to maintain the chat session instead of the chairman.
在该步骤中, 发送该消息可以为一个或多个 node, 这一个或多 个 node分另 ll向 chairman发送该消息。  In this step, the message may be sent to one or more nodes, and the one or more nodes separately send the message to the chairman.
步骤 1103 , chairman在设定的时间内接收到至少一个消息后,按 照设置的规则选择一个 node替代自己。  Step 1103: After the chairman receives at least one message within the set time, select a node to replace himself according to the set rule.
在本步骤中,设定的时间可以根据用户需要或网络状况设置, 设 置的规则根据需要设置, 这里不限制。  In this step, the set time can be set according to user needs or network conditions. The set rules are set as required, and are not limited here.
步骤 1104 , chairman将所选择的 node 的信息携带在 Switch— Chairman— Confirm消息中发送给该聊天会话组内的所有节点。  Step 1104: The chairman carries the information of the selected node in the Switch_National-Confirm message to all nodes in the chat session group.
在本步骤中, chairman釆用组播的方式发送该消息。  In this step, chairman sends the message in multicast mode.
步骤 1105 , 所选择的 node接收到该消息后, 替代 chairman维护 聊天会话, 将在所要维护的聊天会话组内单播携带 Switch— Chairman— Confirm消息给原来的 chairman„ Step 1105, after the selected node receives the message, instead of chairman maintenance The chat session will unicast the Switch- Chairman- Confirm message to the original chairman in the chat session group to be maintained.
步骤 1106, chairman接收到该消息后, 向所选择的 node发起退 出该聊天会话的过程, 该过程可以参考步骤 1007 ~ 1009, 这里不再 累述。  Step 1106: After receiving the message, the chairman initiates a process of exiting the chat session to the selected node. The process may refer to steps 1007 to 1009, and is not described here.
在该实施例中的步骤 1103中, 如果 chairman在设定的时间内没 有接收到任一 node 返回的 Switch— Chairman— Response 消息, 则 chairman 可以按照预先设定的指定规则在该聊天会话组中指定一个 节点作为替代主席节点, 向其单播发起请求, 等待其同意后指定该节 点为主席节点, 或者为了快速切换 chairman, chairman直接指定一个 节点作为替代主席节点且直接指示切换,由指定的节点替代维护聊天 会话。  In step 1103 in this embodiment, if the chairman does not receive the Switch_Authent_Response message returned by any node within the set time, the chairman may specify in the chat session group according to a preset specified rule. A node acts as an alternate chairman node, initiates a request to its unicast, waits for its consent to designate the node as the chairman node, or in order to quickly switch the chairman, the chairman directly designates a node as the alternate chairman node and directly indicates the handover, replacing the designated node. Maintain a chat session.
本发明实施例还提供了在 ZigBee网络中实现聊天的系统, 如图 12所示, 图 12为本发明实施例在 ZigBee网络中釆用集中服务器模 式实现聊天的系统示意图: 包括支持聊天簇的服务器 1201和一个以 上的节点 1202, 其中,  The embodiment of the present invention further provides a system for implementing chat in a ZigBee network. As shown in FIG. 12, FIG. 12 is a schematic diagram of a system for implementing chat in a centralized server mode in a ZigBee network according to an embodiment of the present invention: a server supporting a chat cluster is included. 1201 and one or more nodes 1202, wherein
服务器 1201 , 用于根据节点 1202的请求建立聊天会话, 或使节 点 1202加入聊天会话; 维护聊天会话;  The server 1201 is configured to establish a chat session according to the request of the node 1202, or join the node 1202 to the chat session; and maintain the chat session;
节点 1202,用于请求服务器 1201建立聊天会话或加入聊天会话, 在聊天过程中, 和所述同一聊天会话中的其他节点之间传送即时消 息。  The node 1202 is configured to request the server 1201 to establish a chat session or join a chat session, and during the chat, an instant message is transmitted between the other nodes in the same chat session.
在该实施例中, 所述服务器 1201 , 还用于接收节点 1202发送的 聊天会话的其他节点;  In this embodiment, the server 1201 is further configured to receive other nodes of the chat session sent by the node 1202.
所述节点 1202, 还用于向服务器 1201发送离开聊天会话请求。 在该实施例中,服务器 1201还进一步用于接收节点 1202的获取 进行聊天会话的 Endpoint号的请求, 将匹配聊天会话的 Endpoint号 发送给节点 1202;  The node 1202 is further configured to send a leave chat session request to the server 1201. In this embodiment, the server 1201 is further configured to receive a request for the node 1202 to obtain an Endpoint number of the chat session, and send an Endpoint number matching the chat session to the node 1202;
节点 1202 , 进一步用于向服务器 1201发送获取进行聊天会话的 Endpoint号的请求,接收服务器 1201发送的匹配聊天会话的 Endpoint 号, 釆用该 Endpoint号与服务器 1201通信进行聊天会话。 The node 1202 is further configured to send the acquisition to the server 1201 to perform a chat session. The request of the Endpoint number receives the Endpoint number of the matching chat session sent by the server 1201, and uses the Endpoint number to communicate with the server 1201 to perform a chat session.
图 13为本发明实施例在 ZigBee网络中釆用 Ad-Hoc模式实现聊 天的系统示意图, 包括一个以上的支持聊天簇的节点, 包括作为主席 节点的节点 1301 (称为主席节点)和参与聊天会话的节点 1302 (称 为节点), 其中,  13 is a schematic diagram of a system for implementing chat in an Ad-Hoc mode in a ZigBee network according to an embodiment of the present invention, including more than one node supporting a chat cluster, including a node 1301 (referred to as a chairman node) as a chairman node, and a participating chat session. Node 1302 (called a node), where
所述主席节点 1301 , 用于建立并维护聊天会话, 4艮据节点 1302 的请求使节点 1302加入聊天会话;  The chairman node 1301 is configured to establish and maintain a chat session, and the node 1302 joins the chat session according to the request of the node 1302;
所述节点 1302, 用于请求所述主席节点 1301加入聊天会话, 在 聊天过程中, 和所述同一聊天会话中的其他节点或主席节点 1301之 间传送即时消息。  The node 1302 is configured to request the chairman node 1301 to join a chat session, and transmit an instant message between the other nodes in the same chat session or the chairman node 1301 during the chat.
在该实施例中, 所述主席节点 1301 , 还用于接收节点 1302发送 该聊天会话的其他节点;  In this embodiment, the chairman node 1301 is further configured to receive, by the node 1302, another node that sends the chat session;
所述节点 1302 ,还用于向主席节点 1301发送离开聊天会话请求。 在该实施例中,所述主席节点 1301进一步用于向节点 1302发送 替代维护聊天会话的请求,接收所述参与聊天会话的节点返回的替代 维护聊天会话的响应后 ,从发送响应的参与聊天会话的节点中选择一 个节点替代维护聊天会话。  The node 1302 is further configured to send a leave chat session request to the chairman node 1301. In this embodiment, the chairman node 1301 is further configured to send a request to the node 1302 to replace the maintenance chat session, and after receiving the response of the node that participates in the chat session to replace the maintenance of the chat session, send a response to the participating chat session. Select one of the nodes to replace the maintenance chat session.
本发明实施例还提供一种实现聊天的装置,该装置可以为服务器 或主席节点, 图 14为本发明实施例在 ZigBee网络中实现聊天的装置 示意图,所述装置支持聊天簇, 包括收发模块 1401和维护模块 1402, 其中,  The embodiment of the present invention further provides a device for implementing a chat, which may be a server or a chair node. FIG. 14 is a schematic diagram of a device for implementing a chat in a ZigBee network according to an embodiment of the present invention. The device supports a chat cluster, and includes a transceiver module 1401. And maintenance module 1402, wherein
收发模块 1401 , 用于接收节点发送的加入聊天会话请求, 发送 给维护模块 1402;  The transceiver module 1401 is configured to receive a join chat session request sent by the node, and send the request to the maintenance module 1402.
维护模块 1402, 用于根据从收发模块 1401接收的加入聊天会话 请求使节点加入维护的聊天会话。  The maintenance module 1402 is configured to join the node to the maintained chat session according to the join chat session request received from the transceiver module 1401.
在该实施例中, 所述收发模块 1401还包括第一收发子模块, 所 述维护模块 1402还包括第一维护子模块, 其中, 当该装置为服务器 时, 所述第一收发子模块, 用于接收节点发送的建立聊天会话请求, 发送给第一维护子模块; 所述第一维护子模块, 用于根据从第一收发 子模块发送的建立聊天会话请求建立并维护聊天会话;或者当该装置 为主席节点时,所述第一维护子模块,用于主动建立或维护聊天会话。 In this embodiment, the transceiver module 1401 further includes a first transceiver submodule, and the maintenance module 1402 further includes a first maintenance submodule, where the device is a server The first transceiver module is configured to receive a chat session request sent by the node, and send the request to the first maintenance sub-module, where the first maintenance sub-module is configured to establish a chat according to the sending from the first transceiver sub-module. The session request establishes and maintains a chat session; or when the device is a chair node, the first maintenance sub-module is configured to actively establish or maintain a chat session.
在该实施例中, 所述收发模块 1401还包括第二收发子模块, 所 述维护模块 1402还包括第二维护子模块, 其中,  In this embodiment, the transceiver module 1401 further includes a second transceiver submodule, and the maintenance module 1402 further includes a second maintenance submodule, where
所述第二收发子模块, 用于接收节点发送的离开聊天会话请求, 并发送给第二维护子模块; 所述第二维护子模块, 用于对维护的聊天 会话的用户列表进行更新且通过所述第二收发子模块通知该聊天会 话的其他节点。  The second transceiver sub-module is configured to receive a leave session request sent by the node, and send the request to the second maintenance sub-module, where the second maintenance sub-module is configured to update the user list of the maintained chat session and pass the The second transceiver submodule notifies other nodes of the chat session.
在该实施例中, 当所述装置为主席节点时, 所述收发模块 1401 还包括第三收发子模块,所述维护模块 1402还包括第三维护子模块, 其中, 第三收发子模块, 用于向节点发送替代维护聊天会话的请求, 接收所述参与聊天会话的节点返回的替代维护聊天会话的响应后,发 送给第三维护子模块, 第三维护子模块, 用于从发送响应的参与聊天 会话的节点中选择一个节点替代维护聊天会话。  In this embodiment, when the device is a chair node, the transceiver module 1401 further includes a third transceiver submodule, and the maintenance module 1402 further includes a third maintenance submodule, wherein the third transceiver submodule is used by Sending a request to replace the maintenance of the chat session with the node, and receiving the response of the substitute maintenance chat session returned by the node participating in the chat session, and sending the response to the third maintenance sub-module, the third maintenance sub-module, for participating in the response from the sending Select a node in the node of the chat session instead of maintaining the chat session.
本发明实施例还提供一种实现聊天的节点, 图 15为本发明实施 例在 ZigBee网络中实现聊天的节点示意图, 该装置支持聊天簇, 包 括请求模块 1501和聊天模块 1502 , 其中,  The embodiment of the present invention further provides a node for implementing a chat. FIG. 15 is a schematic diagram of a node for implementing a chat in a ZigBee network according to an embodiment of the present invention. The device supports a chat cluster, and includes a request module 1501 and a chat module 1502.
所述请求模块 1501 , 用于请求建立聊天会话或加入聊天会话; 所述聊天模块 1502 , 用于在聊天过程中, 和所述同一聊天会话 中的其他节点之间传送即时消息。  The requesting module 1501 is configured to request to establish a chat session or join a chat session. The chat module 1502 is configured to transmit an instant message between the other nodes in the same chat session during the chat process.
在该实施例中, 所述请求模块 1501还进一步包括第一请求子模 块, 用于发送离开聊天会话请求;  In this embodiment, the requesting module 1501 further includes a first requesting submodule, configured to send a leave chat session request;
或 /和所述节点还包括接收模块, 用于接收聊天会话的用户列表 的更新通知。  Or / and the node further includes a receiving module for receiving an update notification of the user list of the chat session.
在该实施例中, 所述接收模块还包括接收子模块, 用于接收替代 维护聊天会话的请求, 返回替代维护聊天会话的响应。  In this embodiment, the receiving module further includes a receiving submodule for receiving a request to replace the maintenance chat session, and returning a response instead of maintaining the chat session.
在 ZigBee网络中实现聊天可以应用在以下场景中: 1 )商场购物, 将商场范围内构造 ZigBee网络, 商场购物的消费 者使用移动终端进行通信, 移动终端作为 ZigBee网络中的节点。 在 商场购物的消费者能利用 ZigBee网络釆用集中服务器模式的聊天, 在商场中的服务器能向消费者提供不同主题的聊天会话,并管理这些 聊天会话, 这些聊天会话可以向消费者提供的便利有: 大量购买, 消 费者能够通过聊天会话找到一些兴趣相同或相似的其他消费者共同 购买商品, 以获得更高的折扣; 信息收集, 消费者能通过聊天会话得 到其他消费者的建议和反馈, 以帮助选择到心仪的商品; 约会, 消费 者通过聊天会话找到约会对象。 Implementing chat in a ZigBee network can be applied in the following scenarios: 1) Shopping in the mall, the ZigBee network is constructed within the mall, and the consumers shopping in the mall use the mobile terminal for communication, and the mobile terminal acts as a node in the ZigBee network. Consumers shopping at the mall can use the ZigBee network to use centralized server mode chat, servers in the mall can provide consumers with different themes of chat sessions, and manage these chat sessions, these chat sessions can provide convenience to consumers There are: a large number of purchases, consumers can find other consumers with the same or similar interests through the chat session to buy goods together to obtain higher discounts; information collection, consumers can get suggestions and feedback from other consumers through chat sessions, To help choose the goods you want to meet; Dating, consumers find dating objects through chat sessions.
2 )旅游, 在旅行途中, 同一旅途建立 ZigBee网络, 旅客釆用移 动终端进行通信, 移动终端作为 ZigBee网络中的节点, 建立 Ad-Hoc 模式的聊天会话, 其中, 建立的聊天会话提供的便利有: 信息收集, 同一旅途中的游客建立聊天会话, 进行有用旅游信息的收集; 消磨时 间,旅途中的游客建立聊天会话,进行聊天或游戏,消磨旅行的时间。  2) Tourism, during the travel, the ZigBee network is established on the same journey, the passenger uses the mobile terminal to communicate, and the mobile terminal acts as a node in the ZigBee network to establish an Ad-Hoc mode chat session, wherein the established chat session provides convenience : Information gathering, visitors on the same journey establish chat sessions, collect useful travel information; kill time, travel visitors establish chat sessions, chat or play, and travel time.
以上是对本发明具体实施例的说明 ,在具体的实施过程中可对本 发明的方法进行适当的改进, 以适应具体情况的具体需要。 因此可以 理解, 根据本发明的具体实施方式只是起示范作用, 并不用以限制本 发明的保护范围。  The above is a description of specific embodiments of the present invention, and the method of the present invention can be appropriately modified in a specific implementation process to suit the specific needs of a specific situation. Therefore, it is to be understood that the specific embodiments of the present invention are not intended to limit the scope of the invention.

Claims

权利要求 Rights request
1、 一种实现聊天的方法, 其特征在于, 该方法包括: A method for implementing a chat, the method comprising:
加入 ZigBee网络中的节点支持聊天簇;  Join nodes in the ZigBee network to support chat clusters;
所述节点根据支持的聊天簇获取 ZigBee 网络中的聊天会话信 息, 根据获取的聊天会话信息进行聊天会话。  The node acquires chat session information in the ZigBee network according to the supported chat cluster, and performs a chat session according to the obtained chat session information.
2、 如权利要求 1所述的方法, 其特征在于, 所述获取 ZigBee网 络的聊天会话信息, 过程为:  2. The method according to claim 1, wherein the obtaining the chat session information of the ZigBee network is:
所述节点发送查找聊天会话信息的查询请求 ,接收携带有聊天会 话列表的查询响应, 该列表至少包括聊天会话的标识和主题;  The node sends a query request for searching for chat session information, and receives a query response carrying a chat session list, where the list includes at least an identifier and a subject of the chat session;
所述节点根据聊天会话列表选择要加入的聊天会话,发送携带聊 天会话标识、 自身昵称以及自身标识的加入请求后,接收携带聊天会 话的用户列表的响应,所述用户列表携带该聊天会话中的每个节点的 昵称和标识。  The node selects a chat session to join according to the chat session list, and sends a response to the user list carrying the chat session after receiving the join request carrying the chat session identifier, the nickname and the self identity, and the user list carries the chat session. Nickname and identity of each node.
3、 如权利要求 2所述的方法, 其特征在于, 所述获取 ZigBee网 络的聊天会话信息为:  3. The method according to claim 2, wherein the obtaining the chat session information of the ZigBee network is:
所述节点向服务器发送携带聊天会话主题、 自身标识和昵称的建 立聊天会话请求 ,接收服务器发送的携带为该聊天会话分配的标识的 建立聊天会话响应。  The node sends a setup chat session request carrying the chat session topic, its own identity and a nickname to the server, and the receiving session sends a chat session response carrying the identifier assigned to the chat session.
4、 如权利要求 2或 3所述的方法, 其特征在于, 所述进行聊天 的过程为:所述节点接收该聊天会话中的其他节点发送的携带该节点 的昵称和信息的该聊天会话的即时消息, 或 /和发送携带该聊天会话 中的其他节点的昵称和信息的该聊天会话的即时消息给该聊天会话 中的其他节点。  The method according to claim 2 or 3, wherein the process of performing a chat is: the node receives the chat session sent by other nodes in the chat session and carrying the nickname and information of the node An instant message, or/and an instant message of the chat session carrying the nickname and information of other nodes in the chat session to other nodes in the chat session.
5、 如权利要求 4所述的方法, 其特征在于, 该方法进一步包括 所述节点退出聊天会话的过程:  5. The method of claim 4, wherein the method further comprises the step of the node exiting the chat session:
所述节点发送携带节点标识的离开聊天会话请求后,接收离开聊 天会话响应, 所述该聊天会话的用户列表被更新, 将该聊天会话的用 户列表中的所述节点的标识和昵称在用户列表中删除。 After the node sends the leave session request with the node identifier, the user receives the leave chat session response, and the user list of the chat session is updated, and the identifier and nickname of the node in the user list of the chat session are in the user list. Deleted.
6、 如权利要求 5所述的方法, 其特征在于, 在进行所述该聊天 会话过程之前或退出聊天会话过程之后, 该方法还包括: The method according to claim 5, wherein, before performing the chat session process or after exiting the chat session process, the method further includes:
聊天会话中的其他节点接收更新用户列表的消息,该消息携带所 更新的该聊天会话中的节点标识和昵称。  The other nodes in the chat session receive a message updating the user list that carries the updated node identification and nickname in the chat session.
7、如权利要求 2所述的方法,其特征在于,所述节点获取 ZigBee 网络中的聊天会话信息为: 所述节点通过服务器获取 ZigBee网络中 的聊天会话信息; 或所述节点通过主席节点获取 ZigBee网络中的聊 天会话信息。  The method of claim 2, wherein the node obtains the chat session information in the ZigBee network: the node acquires chat session information in the ZigBee network through the server; or the node obtains through the chairman node Chat session information in the ZigBee network.
8、 如权利要求 7所述的方法, 其特征在于, 所述主席节点建立 和维护聊天会话, 在进行该聊天会话的过程中, 该方法还包括  8. The method according to claim 7, wherein the chairman node establishes and maintains a chat session, and in the process of performing the chat session, the method further includes
所述主席节点组播切换主席节点请求 ,从发送切换主席节点响应 的节点中选择一个节点, 向该节点发送切换主席节点确认消息, 该节 点维护该聊天会话,向该聊天会话的参与节点发送携带自身标识的切 换主席节点确认消息。  The chair node multicasts the switch chairman node request, selects a node from the node that sends the switch chairman node response, and sends a switch chair node acknowledge message to the node, the node maintains the chat session, and sends the bearer to the participating node of the chat session. The switch chairman node confirmation message of its own identity.
9、 一种实现聊天的系统, 其特征在于, 包括实现聊天的装置和 一个以上的节点, 其中,  9. A system for implementing a chat, comprising: means for implementing a chat and more than one node, wherein
所述实现聊天的装置, 用于根据所述节点的请求建立聊天会话, 或使所述节点加入聊天会话;  The device for implementing a chat, configured to establish a chat session according to the request of the node, or join the node to a chat session;
所述节点,用于请求所述实现聊天的装置建立聊天会话或加入聊 天会话, 在聊天过程中, 和所述同一聊天会话中的其他节点之间传送 即时消息。  The node is configured to request the device that implements the chat to establish a chat session or join a chat session, and during the chat, transmit an instant message with other nodes in the same chat session.
10、 如权利要求 9所述的系统, 其特征在于, 所述实现聊天的装 置, 还用于接收所述节点发送的离开聊天会话请求, 对维护的聊天会 话的用户列表进行更新且通知该聊天会话的其他节点;  The system of claim 9, wherein the means for implementing a chat is further configured to receive a leave chat session request sent by the node, update a user list of the maintained chat session, and notify the chat Other nodes of the session;
所述节点, 还用于向所述实现聊天的装置发送离开聊天会话请 求。  The node is further configured to send a request to leave the chat session to the device that implements the chat.
11、 如权利要求 9所述的系统, 其特征在于, 所述实现聊天的装 置进一步用于向所述节点发送替代维护聊天会话的请求,接收所述参 与聊天会话的节点返回的替代维护聊天会话的响应后,从发送响应的 参与聊天会话的节点中选择一个节点替代维护聊天会话。 The system according to claim 9, wherein the means for implementing a chat is further configured to send a request to the node to replace a maintenance chat session, and receive an alternative maintenance chat session returned by the node participating in the chat session. After responding from sending a response Select one node in the node participating in the chat session instead of maintaining the chat session.
12、 一种实现聊天的装置, 其特征在于, 所述装置支持聊天簇, 包括收发模块和维护模块, 其中,  12. A device for implementing a chat, wherein the device supports a chat cluster, and includes a transceiver module and a maintenance module, where
收发模块, 用于接收节点发送的加入聊天会话请求, 发送给维护 模块;  a transceiver module, configured to receive a chat session request sent by the node, and send the request to the maintenance module;
维护模块,用于根据从收发模块接收的加入聊天会话请求使节点 加入维护的聊天会话。  And a maintenance module, configured to join the node to the maintained chat session according to the join chat session request received from the transceiver module.
13、 如权利要求 12所述的装置, 其特征在于, 所述收发模块还 包括第一收发子模块, 所述维护模块还包括第一维护子模块,  The device according to claim 12, wherein the transceiver module further includes a first transceiver submodule, and the maintenance module further includes a first maintenance submodule.
其中, 所述第一收发子模块, 用于接收节点发送的建立聊天会话 请求, 发送给第一维护子模块;  The first transceiver sub-module is configured to receive a chat session request sent by the receiving node, and send the request to the first maintenance sub-module;
所述第一维护子模块,用于根据从第一收发子模块发送的建立聊 天会话请求建立并维护聊天会话;  The first maintenance submodule is configured to establish and maintain a chat session according to the setup chat session request sent from the first transceiver submodule;
或者  Or
所述第一维护子模块, 用于主动建立或维护聊天会话。  The first maintenance submodule is configured to actively establish or maintain a chat session.
14、 如权利要求 12所述的装置, 其特征在于, 所述收发模块还 包括第二收发子模块, 所述维护模块还包括第二维护子模块, 其中, 所述第二收发子模块, 用于接收节点发送的离开聊天会话请求, 并发送给第二维护子模块;  The device according to claim 12, wherein the transceiver module further includes a second transceiver submodule, the maintenance module further includes a second maintenance submodule, wherein the second transceiver submodule is used Sending a chat session request sent by the receiving node, and sending the request to the second maintenance sub-module;
所述第二维护子模块,用于对维护的聊天会话的用户列表进行更 新且通过所述第二收发子模块通知该聊天会话的其他节点。  The second maintenance sub-module is configured to update a user list of the maintained chat session and notify other nodes of the chat session by using the second transceiver sub-module.
15、 如权利要求 12所述的装置, 其特征在于, 所述收发模块还 包括第三收发子模块, 所述维护模块还包括第三维护子模块, 其中, 第三收发子模块, 用于向节点发送替代维护聊天会话的请求,接 收所述参与聊天会话的节点返回的替代维护聊天会话的响应后,发送 给第三维护子模块;  The device of claim 12, wherein the transceiver module further includes a third transceiver submodule, the maintenance module further includes a third maintenance submodule, wherein the third transceiver submodule is configured to The node sends a request to replace the maintenance of the chat session, and receives the response of the node that participates in the chat session to replace the maintenance of the chat session, and then sends the response to the third maintenance sub-module;
第三维护子模块,用于从发送响应的参与聊天会话的节点中选择 一个节点替代维护聊天会话。  And a third maintenance submodule, configured to select a node from the node that sends the response to participate in the chat session instead of maintaining the chat session.
16、 一种实现聊天的节点, 其特征在于, 该装置支持聊天簇, 包 括请求模块和聊天模块, 其中, 16. A node for implementing chat, characterized in that the device supports a chat cluster, a package a request module and a chat module, wherein
所述请求模块, 用于请求建立聊天会话或加入聊天会话; 所述聊天模块, 用于请求建立聊天会话或加入聊天会话成功后, 在聊天过程中, 和所述同一聊天会话中的其他节点之间传送即时消 息。  The requesting module is configured to request to establish a chat session or join a chat session; the chat module is configured to request to establish a chat session or join the chat session successfully, during the chat process, and other nodes in the same chat session Send instant messages between.
17、 如权利要求 16所述的节点, 其特征在于, 所述请求模块还 进一步包括第一请求子模块, 用于发送离开聊天会话请求;  The node according to claim 16, wherein the requesting module further comprises a first request sub-module, configured to send a leave chat session request;
或 /和  Or / and
所述节点还包括接收模块,用于接收聊天会话的用户列表的更新 通知。  The node also includes a receiving module for receiving an update notification of a list of users of the chat session.
18、 如权利要求 16所述的节点, 其特征在于, 所述接收模块还 包括接收子模块, 用于接收替代维护聊天会话的请求, 返回替代维护 聊天会话的响应。  The node according to claim 16, wherein the receiving module further comprises a receiving submodule, configured to receive a request to replace the maintenance chat session, and return a response instead of maintaining the chat session.
PCT/CN2008/072874 2007-10-30 2008-10-29 A method, system and device for implementing chat WO2009059542A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CNA2007101643554A CN101425982A (en) 2007-10-30 2007-10-30 Method, system and apparatus for chat implementation
CN200710164355.4 2007-10-30

Publications (1)

Publication Number Publication Date
WO2009059542A1 true WO2009059542A1 (en) 2009-05-14

Family

ID=40616325

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2008/072874 WO2009059542A1 (en) 2007-10-30 2008-10-29 A method, system and device for implementing chat

Country Status (2)

Country Link
CN (1) CN101425982A (en)
WO (1) WO2009059542A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102752753A (en) * 2012-06-21 2012-10-24 中兴通讯股份有限公司 Method for controlling ZigBee network and wireless mobile terminal

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102469139B (en) * 2010-11-17 2016-05-25 中兴通讯股份有限公司 A kind of ending chatting conversation and the method and system of obtaining chat sessions information
CN102469136B (en) * 2010-11-17 2016-04-13 中兴通讯股份有限公司 A kind of chat sessions increases participant and obtains the method and system of participant list
CN102469147B (en) * 2010-11-19 2015-10-21 中兴通讯股份有限公司 Chat sessions obtains input message and deletes the method and system of input message
CN102469041B (en) * 2010-11-19 2016-01-20 中兴通讯股份有限公司 Chat sessions starts and obtains the method and system of session list

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1481136A (en) * 2002-09-04 2004-03-10 英华达(上海)电子有限公司 Method for chatting through mobile phone system
CN1823492A (en) * 2003-05-27 2006-08-23 诺基亚公司 System and method for services provision in a peer-to-peer environment
CN1992616A (en) * 2005-12-28 2007-07-04 腾讯科技(深圳)有限公司 Method, system and apparatus of instant communication

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1481136A (en) * 2002-09-04 2004-03-10 英华达(上海)电子有限公司 Method for chatting through mobile phone system
CN1823492A (en) * 2003-05-27 2006-08-23 诺基亚公司 System and method for services provision in a peer-to-peer environment
CN1992616A (en) * 2005-12-28 2007-07-04 腾讯科技(深圳)有限公司 Method, system and apparatus of instant communication

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102752753A (en) * 2012-06-21 2012-10-24 中兴通讯股份有限公司 Method for controlling ZigBee network and wireless mobile terminal
CN102752753B (en) * 2012-06-21 2018-07-31 中兴通讯股份有限公司 A kind of method and mobile radio terminal of control ZigBee-network

Also Published As

Publication number Publication date
CN101425982A (en) 2009-05-06

Similar Documents

Publication Publication Date Title
JP6328811B2 (en) P2P group formation method and apparatus for direct communication system
US9043395B2 (en) Method and system for delegating group ownership in a Wi-Fi peer to peer network
CN104770021B (en) Search service or the method and device thereof that service is announced in direct communication system
US8825767B2 (en) Scalable secure wireless interaction enabling methods, system and framework
US20040190468A1 (en) Group communication in a communication network
US8909710B2 (en) Method for discovering and discriminating devices on local collaborative networks to facilitate collaboration among users
KR102070246B1 (en) Method and apparatus for generating p2p group for wi-fi direct service
KR101403625B1 (en) Method and device for dynamic setting up and control of temporary communications groups with secure transmission
KR20170129771A (en) Schedule selection and connection setup between devices participating in NAN data link
TW201409978A (en) Context-aware peer-to-peer communication
KR20050114556A (en) Apparatus and method of setting up talk session in ptt service providing system
Casetti et al. Data connectivity and smart group formation in Wi-Fi direct multi-group networks
CN104009998B (en) Server and data transmission method
JP6443549B2 (en) Fast connection mechanism in wireless peer-to-peer networks
KR20120076444A (en) System for chatting service using embms and control method for user equipment, ebm-sc and service provider server of the system for chatting service using embms
WO2009059542A1 (en) A method, system and device for implementing chat
Khan et al. Group owner election in Wi-Fi direct
WO2006114059A1 (en) A method and system for determining the central controlling server
US7953041B2 (en) Method for optimizing a wireless distribution system
JP2005072834A (en) Mobile ad hoc network system, mobile ad hoc network control method, and program
WO2014206273A1 (en) Code matching method and apparatus
Yan et al. Novel branching-router-based multicast routing protocol with mobility support
KR100848289B1 (en) Methods and System for P2P-Based Scalable Real-Time Mobile Group Communication Service Management in Wireless Networks
JP3991001B2 (en) Data relay apparatus, distribution path management apparatus, distribution path management system, and distribution path management method
WO2013091499A1 (en) Policy and charging rules function module selection method, system, and apparatus

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

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

Country of ref document: EP

Kind code of ref document: A1