New! View global litigation for patent families

CN101488926A - Network message communication method based on XMPP protocol and SMS - Google Patents

Network message communication method based on XMPP protocol and SMS Download PDF

Info

Publication number
CN101488926A
CN101488926A CN 200910014483 CN200910014483A CN101488926A CN 101488926 A CN101488926 A CN 101488926A CN 200910014483 CN200910014483 CN 200910014483 CN 200910014483 A CN200910014483 A CN 200910014483A CN 101488926 A CN101488926 A CN 101488926A
Authority
CN
Grant status
Application
Patent type
Prior art keywords
xmpp
message
communication
service
system
Prior art date
Application number
CN 200910014483
Other languages
Chinese (zh)
Inventor
斌 李
田尚杰
Original Assignee
浪潮集团山东通用软件有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date

Links

Abstract

The invention provides a network message communication method based on XMPP protocol and SMS service. The method uses eXtensible Messaging and Presence Protocol (XMPP) to realize Internet/Internat instant message communication under .NET environment, and uses Short Message Service (SMS) of mobile phones to successfully extend the function to the platforms of mobile phones. The method and system provide the complete realization of XMPP protocol and instant messaging server end and client under .NET environment, and the system realizes an XMPP: GSM gateway and realizes interconversion and interaction of the two protocols; simultaneously, the system further provides a series of interfaces and methods for realizing and using instant message communication service for other heterogeneous systems. Real-time bidirectional communication between a PC and a PC as well as between a PC and a mobile phone can be realized by the system, thereby providing convenient and high-efficient instant messaging service for users.

Description

一种基于XMPP协议和SMS服务的网络消息通讯方法 XMPP protocol based network messages and SMS services communication method

技术领域 FIELD

本发明涉及一种一种基于XMPP协议和SMS服务的网络消息通讯方法,具体地说是种。 The present invention relates to a method of network communication message based on XMPP protocol and SMS services, particularly species. 本发明涉及计算机与计算机,计算机与移动电话间的实时双向通讯,特别涉及一种在Microsoft .NET环境下使用可扩展消息处理现场协议(XMPP)和移动电话短信息服务(SMS)来实现即时消息通讯与信息查询的方法和系统。 The present invention relates to real-time two-way communication between computer and computer, computer and mobile phone, in particular, to a be implemented using Extensible Messaging and Presence Protocol (XMPP) and mobile phone short message service (SMS) in the Microsoft .NET environment Instant Messaging the method of communication and information and query system. 背景技术 Background technique

即时消息通讯是一种互联网环境下的实时交流方式,如腾讯的QQ,微软的MSN,雅虎的雅虎通等等,是继电子邮件和万维网之后的又互联网应用。 Instant messaging communication is the way real-time communication in an Internet environment, such as Tencent QQ, Microsoft's MSN, Yahoo Messenger, and so on, it is the second e-mail and the World Wide Web and Internet applications. 作为一种快捷、方便的应用,即时消息服务主要用于人们之间的日常沟通和联系。 As a quick and easy application, an instant messaging service is mainly used for daily communication and contact between people. 近年来,还被广泛的用于办公自动化等系统,由应用系统把个人任务消息提醒实时发布到用户桌面,以提高办事效率。 In recent years, also widely used in office automation systems, application systems by the personal task reminder messages posted to the user's desktop in real time, in order to improve efficiency.

可扩展消息处理现场协议(Extensible Messaging and Presence Protocol, XMPP)是目前主流四种即时消息协议(其他三种分别是即时信息和空间协议IMPP、空间和即时信息协议PRIM、针对即时通讯和空间平衡扩充的进程开始协议SIP)中最为灵活的一种协议,它使用可扩展标记语言XML (Extensible Makeup Language)来定义和格式化协议中的命令和数据,这使得该协议在功能上具有强大的扩展性,并可以方便的与其他系统互通。 Extensible Messaging and Presence Protocol (Extensible Messaging and Presence Protocol, XMPP) is the mainstream four kinds of instant messaging protocol (the other three are instant messaging and space agreement IMPP, space and instant messaging protocol PRIM, instant messaging and space for Ping Heng expansion the process began protocol SIP) in one of the most flexible protocol that uses extensible Markup language XML (extensible Makeup language) to define the format and protocol commands and data, which makes the agreement has powerful scalability in functionality and can easily communicate with other systems. 目前,XMPP目前被IETF国际标准组织完成了标准化工作。 Currently, XMPP is currently IETF ISO standardization work completed. 标准化的核心结果分为两部分:核心的XML流传输协议和基于XML流传输的即时通讯扩展应用。 Standardized core results are divided into two parts: the core XML streaming protocols and streaming XML-based instant messaging application extensions. XMPP协议由一系列RFC 基础协议和XEP扩展协议组成,其中RFC 3920是其核心协议,RFC3921是3920 的基本扩展,这两部分是实现即时通讯的基本协议,其他协议都依赖这两个协议制定。 XMPP protocol consists of a series of basic protocols and RFC XEP extended protocol, of which the RFC 3920 is the core protocol, RFC3921 is the basic extension 3920, these two parts is the basic protocol instant messaging, and other protocols rely on these two agreements to develop.

手机短信息服务(SMS)是近年随着移动电话的普及以及移动增值服务的扩展而高度发展的一种通讯模式。 Mobile phone short message service (SMS) is a communications mode in recent years with the popularity of mobile value-added services as well as the expansion of mobile phones and highly developed. SMS是一种存储和转发服务。 SMS is a store and forward service. 也就是说,短消息并不是直接从发送人发送到接收人,而始终通过SMS中心进行转发。 In other words, the short message is not sent directly from sender to recipient, but always forwarded through the SMS center. 如果接收人处于未连接状态(可能电话已关闭),则消息将在接收人再次连接时发送。 If the recipient is in an unconnected state (possible telephone is turned off), then the message will be sent when the recipient is connected again.

SMS具有消息发送确认的功能。 SMS message transmission having a functional acknowledgment. 这意味着SMS与寻呼不同,用户不是简单地发出短消息然后相信消息已发送成功;而是短消息发送人可以收到返回消息, 通知他们短消息是否已发送成功。 This means that different paging and SMS, users are not simply send out a short message and believe the message has been sent successfully; but people can receive short message sending a return message informing them whether the short message has been sent successfully.

基于网络的计算机通讯成本非常低廉,但由于在国内目前计算机网络远不 Computer-based communication network cost is very low, but because of the current computer network in the country far

4如移动通讯网络覆盖广泛,且计算机远不如移动电话方便携带。 4 as extensive mobile communication network coverage, mobile phone and computer is far less easy to carry. 因此,这两种通讯模式的互通变成了一种有效的互补手段,在方便的时候使用计算机通讯,在不方便的时候使用移动电话作为终端获取必要信息,这正是本发明的初衷。 Therefore, the exchange of these two modes of communication become an effective complementary means of communication using a computer at a convenient time, to obtain the necessary information using a mobile phone at an inconvenient time as the terminal, which is the original intention of the present invention.

发明内容 SUMMARY

本发明的目的是提供一种即时通讯工具,或提供一种解决企业内部员工的 The purpose of the invention is to provide an instant messaging tool, or to provide a solution to internal staff

交流、信息系统提醒消息的发送与接收、个人事务的査询的基于XMPP协议和SMS 服务的网络消息通讯方法。 Communication, information system alert messages sent and received, the network communication based on XMPP protocol messages and SMS services to individuals transaction queries.

本发明的基于XMPP和SMS的即时通讯方法是按以下方式实现的,包含如下步骤: The present invention is based on XMPP instant messaging and SMS method is implemented in the following manner, comprising the steps of:

1) 客户端把登录请求格式化为XMPP协议规定的XML流,并把该请求发送到服务器端,服务器端接收改XML流并解析其内容,然后对用户身份进行验证, 并把验证结果以XMPP及其他信息以标准XMPP XML流的方式发送到发起请求的客户端; 1) The client logon request is XML stream formatter predetermined XMPP protocol, and transmits the request to the server, the server receives and parses XML stream to change its contents, then the user identity verification, and the verification result to XMPP and other information sent to the client that initiated the request in the standard manner XMPP XML stream;

2) 客户端请求验证通过,则服务器端把组织结构、用户未接收的消息以标准XMPP XML流的形式发送给客户端;客户端收到信息后进行解析,并以树形目录的形式按照部门优先级和人员优先级显示在客户端主窗口中;再接收服务端发来的消息后,格式化为用户端可认知的信息并提示用户査看信息; 2) verified by client requests, the server side to the organizational structure, the user does not receive the message transmitted in the form of a standard XMPP XML stream to the client; parsing the client receives the message, and according to the department in the form of a directory tree priority and priority person displayed in the client main window; after a further message sent by the receiving side service, the UE may be formatted as awareness information and prompts the user to view the information;

3) 客户端与其他客户端进行会话、进行群聊或者在客户端进行其他设置, 包括; 3) client sessions with other clients, or for a group chat client provided at the other, comprising;

a) 客户端接收来自其他应用系统的信息; a) The client application receives information from other systems;

b) 客户端在通过单点登录技术査看和操作其他应用系统; b) a single sign-client technology view and operate in other applications;

c) 其他应用系统调用服务器端提供的接口,把其他应用系统的信息发送到客户端或者用户手机上。 c) Other application system call interface provided by the server, send the information to other applications to the client or on the user's mobile phone.

客户端和服务器端都采用标准的XMPP协议实现,客户端和服务器端对XML 的操作均以对象的形式进行。 The client and server are using the standard XMPP protocol, client and server-side operations are in the form of XML objects were.

当目标客户端未登录时,所有信息都以实体的形式保存在服务器端,当该客户端登录时,服务器端在发送组织架构之后立即将这些信息发送到该客户端。 When the target client is not logged in, all information is stored in the form of an entity in the server when the client logs on, the server immediately sends this information to the client after sending organization.

当不同的客户端进行会话时,所发出的信息首先到达服务器,服务器根据其中的目标用户ID,获取到该用户登录时使用的IP地址和客户端端口,然后再把这个信息发送到该IP和端口标示的网络终端,客户端发出的信息中包括目标用户的ID、发送者的ID、信息内容和信息类别。 When different client session, the information sent arrives first server, wherein the target server according to the user ID, obtains the IP address and port used by the client to log the user, and then sends this information to the IP and ports designated network terminal, the client sends the information included in the target user ID, transmission's ID, category information and content information.

客户端和服务器端使用Socket端口进行通讯,服务器端使用的端口号是5222、 5223或者10000;客户端可以使用服务器端的IP地址、机器名或者域名对服务器进行解析,以获取真正的通讯地址。 The client and the server using the Socket port port number communication, the server using the 5222, 5223 or 10000; Clients can use the IP address of the server machine name or domain name of the server for resolution, to get the real mailing address. 客户端对集成在内的应用系统使用单点登录技术,从而使得用户直接在客户端即可查看相关应用系统的信息,并进行必要的操作,而不必登录到具体的应用系统。 Clients use of integrated applications including single sign-on technology, which enables users to view information directly related to the client application system, and carry out the necessary operations, without having to log on to specific applications.

应用系统调用服务器端提供的接口,把要发送的信息发往服务器端;服务 System call interface application server provided the information to be sent to the server-side; Service

器端对信息经过XMPP标准XML的转换后在发送到相应的客户端,服务器通过COM口或者USB连接短信设备,并通过短信设备进行短信息的收发,并对接收到的短信息进行解析,并响应其中的请求。 After the end of the information XMPP standard XML conversion sent to the corresponding client, the server COM port or USB connection messaging devices, and send and receive SMS messages through the device, and the received short message parsing, and wherein the response to the request.

还包括步骤:用户随时随地通过手机短信的方式向服务器端查询所需信息; 査询方式通过发送特定编码指令的形式进行,服务器端通过XMPP/GSM网关来实现信息的相互转换和交互。 Further comprising the step of: whenever and wherever a user via SMS inquiry manner desired information to the server; query by sending a specific form of coded instructions, the server side to achieve conversion information and interaction through XMPP / GSM gateway.

服务器端使用AT指令操作短信设备。 AT commands using the server message device.

服务器端接收到短信并解码后,根据短信中包含的特定指令到应用系统中获取相关数据,然后经过XMPP/GSM网关编码,并操纵短信设备向用户发送信息。 After the server receives and decodes the message, the application-related data acquisition system in accordance with the message contains a particular instruction, and then through XMPP / GSM gateway coding, manipulating and transmitting message information to the user device.

本发明的有益效果是以上所有客户端与服务器端的交互均使用XMPP协议认可的XML流进行,通过使用该发明的方法可以有效解决以下问题: The beneficial effect of the invention is that all of the above client interaction with the server are using the XMPP protocol approved XML stream, can effectively solve the problem by using the method of the invention:

1) 有效的解决企业内部员工的相互交流,提高沟通效果,提高工作效率。 1) effectively solve the mutual exchange of internal staff, improve communication effectiveness, improve work efficiency. 并有效地降低了传统的电话、传真等费用。 And effectively reduces the traditional telephone, fax and other expenses. 特别是对一些因内网与外网无法连接而无法使用QQ、 MSN等公众聊天软件的单位。 Especially because some units within the network can not connect to the external network can not be used QQ, MSN and other public chat software.

2) 可以把用户的沟通对象限制在单位组织架构内部,杜绝和外部人员闲聊, 有效地保证工作效率。 2) can limit the user's communication objects within the organizational unit, and to prevent outsiders chat, effectively ensure efficiency.

3) 可以把其他应用系统的事务提醒实时通知到用户,使用户可以随时随地了解自己的待办事务,从而提高工作效率。 3) the transaction may be other applications of real-time notification to remind the user, so that users can understand their need to do, anytime, anywhere, to improve work efficiency.

4) 用户可以随时随地通过手机来査询自己的需办事项,而不必拘束于计算机或者计算机网络。 4) The user can at any time to check their need-do by phone, rather than binding to a computer or computer network.

5) 通过单点登录技术,用户可以不必登录到各个应用系统,而直接通过客户端处理自己的事务,节省了大量宝贵的时间和精力。 5) sign-on technology by a single point, users do not have to log in to each application, directly by the client to handle their own affairs, saving valuable time and effort.

附图说明 BRIEF DESCRIPTION

图l是本发明的应用架构图。 Figure l is a schematic diagram of the present invention is applied.

图2是通讯时序图,它详细展示了客户端1登陆服务器的过程,以及和客户端2通讯的过程。 Figure 2 is a timing diagram of communications, it details the process of landing a client server, and the client 2 and the communication process. 具体实施方式 detailed description

参照附图对本发明的方法作以下详细的说明: Referring to the drawings for the method of the present invention is described in detail below:

1)实现了XMPP协议的服务器端应用程序,该服务器端程序主要实现如下内容: 1) implements server-side application XMPP protocol, the server side the following main procedures:

a)组织架构的初始化与维护:包括创建和维护部门信息、创建和维护用户 Initialization and maintenance a) organizational structure include: creating and maintaining departmental information, create and maintain user

6信息。 6 information. 其中,部门信息包括部门名称、部门ID,上级部门,用户信息包括用户ID、姓名、性别、年龄、部门、头像、电话、移动电话、电子邮件等内容。 Among them, the information sector, including department name, department ID, the higher authorities, the user information including user ID, name, sex, age, department head, telephone, mobile phone, e-mail and other content.

b) 用户验证:对来自客户端的登陆请求进行验证,如果客户端发来的用户 b) User authentication: The log-in request from the client to verify, if the client sent by the user

ID和密码已经在a)中实现的组织架构中注册,则允许客户端登陆及使用服务器端的所有可用资源,否则拒绝用户登录。 Organization ID and password that has been achieved in a) is registered, the client is allowed to log in and use all available resources on the server side, or refuse a user login.

c) 给客户端提供所需资源:响应客户端的请求,获取、组织相应的资源并 c) provide the necessary resources to the client: client's response to a request, obtain, and the corresponding resource organization

发送到客户端。 Sent to the client.

d) 消息路由:接收、缓存、转发不同客户端之间的信息,并形成消息记录, d) routing message: receiving, cache, forwarding information between different client, and recording a message form,

对客户端未能接收的消息进行保存,在改客户端可以接收时再进行转发。 The client failed to receive the message will be saved and then forwarded when changing client can receive.

e) XMPP/SMS网关:把来自XMPP的信息转换成SMS信息格式,并操纵与服务器相连接的短信设备(短信猫池、工业手机等)发送出去;实时读取短信设备接收到的信息并转化成XMPP格式,再根据消息内容进行进一步处理。 e) XMPP / SMS gateway: converting the information into SMS messages from XMPP format, and manipulate SMS devices (SMS cat cell, cell phone industry, etc.) sent to the server is connected; real-time information reading device messages received and converted as XMPP format, then further processing according to the message content.

f) 消息服务提供者:提供一组接口,供异构应用系统调用,使得应用系统的信息可以发送到相关客户端,或者通过e)提供的网关发送到用户的手机上。 f) Message Service Provider: providing a set of interfaces for heterogeneous application system call, the application system so that the information can be sent to the relevant client, or) provided by the gateway is sent to the user's mobile phone via e. 或者接收e)中转化成XMPP的SMS短信息,分析其中用户的需求,到相应的应用程序中获取相关数据后,再发送到用户的移动电话上,使得用户可以随时随地查询自己所要获知的信息。 After receiving the or e) transfer into SMS text messages XMPP analyzed where the user needs access to relevant data to the corresponding application, and then transmitted to the user's mobile phone, so that the user can query the information they need to be acquired anytime .

2)实现了XMPP协议的客户端应用程序。 2) implements the protocol XMPP client application. 改客户端程序主要实现以下功能: Change the client program to achieve the following functions:

a) 对用户身份进行验证:把用户的用户ID、密码发往服务器端验证用户是否可以合法使用该系统提供的资源。 a) the user identity authentication: the user's user ID, password sent to the server to verify that users can legally use the resources provided by the system.

b) 提供一组界面,供用户获取和使用该系统提供的资源。 b) providing a set of interface for users to access and use of resources provided by the system.

c) 提供一组界面,供用户和其他已经登录系统的用户(客户端)进行文字、 图片、语音或视频聊天,或者进行点对点的文件传送。 c) provides a set of interfaces for users and other users (clients) have been logged into the system for text, images, voice or video chat, file transfer, or point to point.

d) 提供一组界面,供多个用户进行群组聊天。 d) providing a set of interface for a plurality of users to a group chat.

e) 提供一组界面,满足用户对个人状态、个人信息、软件界面等个性化需求的设置工作。 e) provides a set of interfaces, set to work to meet the individual needs of users of personal status, personal information, software interface.

使用以上服务器端和客户端的功能,主要包括如下步骤: Above using the function server and client, including the steps of:

1) 把短信设备(短信猫池、工业手机等)与服务器通过COM 口连接; 1) The SMS equipment (SMS cat pool, industrial mobile phones) connected to the server through the COM port;

2) 首先启动服务器端,并在服务器端初始化组织结构; 2) First, to start the server, and initializes the organizational structure of the server;

3) 运行客户端,在登陆界面输入个人的ID、密码进行登录;客户端把该登陆操作形成登录请求发送到服务器端,服务器端接收到该请求后,到组织结构中检索该用户ID,如果检索到用户存在,则生成随机验证票,并把该验证票发往客户端;客户端接到验证票后,把用户输入的密码和该验证票进行HASH计算, 然后把计算结果Hl发往服务器端,服务器端接收到客户端发来的HASH值HI后, 对从数据库中获取到的密码和验证票进行HASH计算,得到值H2,然后对比H1 3) Run the client, enter the login screen of the personal ID, password login; client login to the login request is sent to the forming operation of the server, the server receives the request, retrieves the organizational structure of the user ID, if to retrieve the user exists, generating the verification ticket, and the authentication ticket sent to the client; authentication ticket to the client, the user enters the password and the authentication ticket for HASH calculation and the results sent to the server Hl side, the server receives the client to the HASH value of the HI, to obtain from the database to verify the password and votes for HASH calculation, the value H2, then compared H1

7是否和H2相等,如果相等,则向客户端发送登陆成功消息,并把服务器端的组 7 whether and H2 are equal, if they are equal, then the client sends a login success message, and the server group

织架构、和登录用户相关的未转发信息等发往客户端。 Organizational structure, not forward information related to user login and sent to the client. 如果前面服务器端未检 If the server is not in front of the subject

索到用户ID或者H1和H2不相等,则向客户端发送登陆失败消息。 Cable or the user ID to H1 and H2 are not equal, a failure message is sent to the client login.

4) 客户端如果接收到登陆失败信息,向用户提示用户名或密码错误,并允许用户继续输入正确的用户名和密码进行登陆。 4) If the client receives a login failure message that prompts a user name or password error to the user and allows the user to continue to input the correct user name and password to login.

5) 如果客户端接收到登陆成功消息,首先接收服务器端发来的组织结构, 并把该组织架构按照部门、人员的优先级以树形目录的方式显示在客户端主窗口中;接下来,如果接收到服务器端转发来的消息,则分析该消息是来自其他用户,还是某个应用系统,并显示相应的界面向用户进行消息内容的展示。 5) If the client receives a successful landing news organization received first sent to the server, and the organizational structure in accordance with the priority sectors, who are displayed in the main window of the client by way of the directory tree; the next, If the received message is forwarded by the server, it analyzes the message from the other user or an application system interface and display the corresponding display message content to the user. . .

6) 用户在成功登陆后,可以在客户端双击某一用户和该用户进行交流,或者给该用户留言。 6) after the user successfully logged in, you can double-click on the client a user and the user to communicate, or to the user a message. 交流或留言的内容可以是文字、图片,如果对方用户在线, 还可以进行文件传送,或语音、视频聊天。 AC or content of the message can be text, pictures, if the other user is online, you can also file transfer, voice or video chat.

7) 用户在成功登陆后,还可以在客户端进行个性化设置,维护个人信息, 或者建立会议室和其他多个用户进行群聊,或者査看其他用户的信息。 7) the user after a successful landing, also can be in the client personalization, maintain personal information, or to establish a conference room and a number of other users group chat, or view information of other users.

8) 用户可以在不方便使用计算机的情况下,使用移动电话向服务器短信设发送特定的请求信息,比如发送001请求办公自动化系统里面待办任务的数量。 8) In the case where the user can not convenient to use a computer, using a mobile telephone set to send specific information to the server a request message, such as sending system 001 which requests the number of office automation tasks to be run. 服务器端在读取到短信设备接收到的短信息后,首先根据发送信息的号码对数据库进行检索,如果发现改手机号未登记,则不予理睬;如果已登记,则分析短信内容,并到相应的应用系统获取、组织数据,然后通过短信网关转换成SMS 编码后,通过短信设备回复到用户的移动电话上(如通过检索手机号码发现, 来信手机号码是张三的,然后进一步分析短信内容是001,则调用办公自动化应用程序接口,获取到该张三的待办任务数量是3,则组织信息"在办公自动化系统中,您有3个待办任务。",然后使用XMPP/SMS短信网关将该内容转换成SMS 认可的编码,最后通过C0M 口向短信设备发送AT指令,把该信息发送出去)。 After reading the server device to the short message information is received, the database is first transmitted according to the number of information retrieval, if it is found to change the phone number is not registered, then ignored; If it is registered, the message content analysis, and to corresponding application system acquisition, organizational data, and then converts the SMS into a SMS gateway by encoding, on return the device to the user's mobile phone via SMS (e.g., phone number found by the search, the letter is Joe Smith's phone number, message content is then further analyzed 001, call the office automation application program interface, to obtain the number of the seating of the to-do task is 3, the organization of information "office automation system, you have three to-do.", and then use the XMPP / SMS text messages SMS gateway converts the content to a recognized code, and finally send AT commands to the device via SMS C0M port to send out the message).

9) 由于客户端可以实现单点登录功能,用户可以在客户端使用不同的选项卡来实时查看和办理自己各个应用系统中的详细事务信息,而不必登陆各个应用系统,节省了时间。 9) Since the client can achieve single sign-on feature, users can use the different tabs on the client to view and handle detailed transaction information of all its applications in real-time, without having to log in each application system, saving time.

10) 当应用系统有新的提醒要发送给用户时,可以直接调用服务器端程序提供的接口向用户发送消息,当用户客户端已经登录时,该消息直接发送到用户客户端程序;当用户没有登录时,该消息发送到用户手机上。 10) When the application system has a new reminder to be sent to the user, you can call the interface to the user to send messages on the server side program provides direct, when a user client has logged in, the message is sent directly to the user client; when the user does not when logging in, the message is sent to the user's mobile phone. 也可以在应用程序中指明发送到客户端软件还是手机。 You can also indicate to the client software or mobile phone in your application.

实施例 Example

附图1所示本发明的架构图,其中,中间的服务器上装有本发明的服务器端软件,该服务器通过网络与不同地域的客户端进行连接,客户端可以使PC、 移动电脑或者PDA。 BRIEF architecture shown in FIG. 1 according to the present invention, wherein the server-side software of the present invention with the middle of a server connected through a network with a different geographical client, the client can make PC, a mobile computer or PDA. 同时,服务器通过串口或者USB接口与短信设备(短信猫池、 Meanwhile, the server via serial or USB interface device with SMS (SMS cat pool,

8工业手机)连接。 8 Industrial phone) connection. 这样,不同的客户端便可以通过服务器进行通讯;或者用户使用手机,通过短信设备向服务器端查询所需信息。 In this way, different clients will be able to communicate through the server; the user or use the phone, look up needed information to the server via SMS device.

图2是通讯时序图,它详细展示了客户端1登陆服务器的过程,以及和客户端2通讯的过程。 Figure 2 is a timing diagram of communications, it details the process of landing a client server, and the client 2 and the communication process.

本发明的实现涉及到即时通讯服务器、客户端、短信设备和计算机网络。 Implementation of the invention relates to the instant messaging server, client, messaging devices and computer networks. 具体实施步骤如下: DETAILED DESCRIPTION steps:

1、 检査网络连通情况。 1, network connectivity check. 主要检査两方面: 一是计算机网络,即客户端是否可以通过各种方式连入以太网,并能访问到服务器。 Check the two main aspects: First, computer networks, namely whether the client may be connected to the Ethernet through a variety of ways, and access to the server. 其中客户端可以使甩各种有线或无线方式连通到以太网。 Wherein the client can make various rejection wired or wireless Ethernet communication. 客户端和服务器端可以分布在同一个局域网内,也以分布在广域网内,只要保证客户端可以访问到服务器即可。 The client and server can be distributed in the same local area network, also distributed in a wide area network, as long as the client has access to the server.

2、 如果上述步骤l已经满足,则开始配置应用服务器。 2, l If the above steps have been met, the application server configuration is started. 见议采用的服务器CPU在双核3G以上,内存2G以上,并且按照每增加100各用户相应增加1G 内存累加,硬盘空间在20G以上,服务器操作系统采用WIND0WS2003 SERVER。 See are recommended for use in a dual-core CPU server over 3G, 2G or more of memory, and 100 for each user in accordance with each additional 1G corresponding increase in the accumulation memory, hard disk space than 20G, the server operating system uses WIND0WS2003 SERVER.

3、 如果上述条件2得到满足,则开始安装服务器端程序。 3, if the above condition 2 is satisfied, then the server-side program to start the installation. 按照服务器端安装说明把服务程序安装到服务器。 Installation according to the service server program installed in the server.

4、 如果要使用短信功能,则把短信设备通过串口或者USB 口连接。 4, to use the SMS function, SMS put the device through the serial port or a USB port.

5、 启动服务器端,按照说明进行设置,主要设置短信设备的相关参数。 5, the server starts, follow the instructions set, set parameters mainly SMS device.

6、 在服务器端初始化组织结构,主要是各部门名称及上下级关系,各部门人员的ID、初始密码、姓名、部门、手机号码等信息。 6, the server initialization organizational structure, mainly each department name and superior-subordinate relationship, ID department staff, the initial password, name, department, phone number and other information.

7、 在客户端计算机上安装客户端软件。 7, install the client software on the client computer. 安装完毕后首先设置服务器的IP 地址或机器名或者域名,然后使用服务器端设置好的ID和密码登录服务器。 First set up the server after installation or machine name or IP address of the domain name, and then use server-side set a good ID and password server.

8、 客户端登陆成功后就可以和其他已登录用户进行会话或者其他操作了。 8, after the successful landing client session or other operations can be carried out and the other logged-in users.

9、 如果其他应用系统要使用本即时通讯服务,则可以在程序中调用服务器端提供的接口来实现消息的发送。 9, if other applications to use the instant messaging service, you can call interface provided by the server in the program is implemented to send a message.

10、 如果由步骤9,此时已可以通过客户端或者手机接收到来自应用系统 10, if the 9, this time by step or by a client application is received from the mobile phone

的信息。 Information.

9 9

Claims (10)

1. 一种基于XMPP协议和SMS服务的网络消息通讯方法,其特征在于包含如下步骤:1)客户端把登录请求格式化为XMPP协议规定的XML流,并把该请求发送到服务器端,服务器端接收改XML流并解析其内容,然后对用户身份进行验证,并把验证结果以XMPP及其他信息以标准XMPP XML流的方式发送到发起请求的客户端;2)客户端请求验证通过,则服务器端把组织结构、用户未接收的消息以标准XMPP XML流的形式发送给客户端;客户端收到信息后进行解析,并以树形目录的形式按照部门优先级和人员优先级显示在客户端主窗口中;再接收服务端发来的消息后,格式化为用户端可认知的信息并提示用户查看信息;3)客户端与其他客户端进行会话、进行群聊或者在客户端进行其他设置,包括;a)客户端接收来自其他应用系统的信息;b)客户端在通过单点登录技术查看和操作其他 A network communication method based on XMPP protocol message and SMS service, characterized by comprising the steps of: 1) the client logon request is XML stream formatter predetermined XMPP protocol, and transmits the request to the server, the server terminal receives change XML stream and parses its content, then the user identity authentication, and the authentication result sent to the client that initiated the request in a manner XMPP and other information in a standard XMPP XML stream; 2) client requests verified, the organizational structure of the server, the user transmits a message is not received in the form of a standard XMPP XML stream to the client; parsing the client receives information and displays the form of a directory tree of the client according to priority and personnel department priority end of the main window; then after receiving the message sent by the server, the client information can be formatted as cognitive and prompt the user to view the information; 3) client sessions with other clients, or in a group chat client other settings, including; a) receives information from other client application; b) a client viewing and operation by a single sign-on technologies other 用系统;c)其他应用系统调用服务器端提供的接口,把其他应用系统的信息发送到客户端或者用户手机上。 With the system; c) other application server system call interfaces provided by other applications to send information to the client or on the user's mobile phone.
2、 根据权利要求1所述的方法,其特征在于客户端和服务器端都采用标准的XMPP协议实现,客户端和服务器端对XML的操作均以对象的形式进行。 2. The method according to claim 1, characterized in that the client and server side using standard XMPP protocol, the client and server-side objects are in the form of XML operation is performed.
3、 根据权利要求1所述的方法,其特征在于当目标客户端未登录时,所有信息都以实体的形式保存在服务器端,当该客户端登录时,服务器端在发送组织架构之后立即将这些信息发送到该客户端。 3. The method according to claim 1, wherein when the target client is not logged, all information is stored on the server side in the form of an entity, when the client logs in, the server immediately after sending organization this information is sent to the client.
4、 根据权利要求3所述的方法,其特征在于当不同的客户端进行会话时,所发出的信息首先到达服务器,服务器根据其中的目标用户ID,获取到该用户登录时使用的IP地址和客户端端口,然后再把这个信息发送到该IP和端口标示的网络终端,客户端发出的信息中包括目标用户的ID、发送者的ID、信息内容和信息类别。 4. The method of claim 3, wherein when a different client session, the information sent arrives first server, wherein the target server according to the user ID, obtains the IP address used to log the user and client port, and then sends this information to the IP and port indicated network terminal, the client sends the information included in the target user ID, transmission's ID, category information and content information.
5、 根据权利要求3所述的方法,其特征在于客户端和服务器端使用Socket端口进行通讯,服务器端使用的端口号是5222、 5223或者10000;客户端可以使用服务器端的IP地址、机器名或者域名对服务器进行解析,以获取真正的通讯地址。 5. The method of claim 3, wherein the client and the server using the Socket port the port number for communicating the server side using a 5222, 5223 or 10000; client can use the IP address of the server machine name or domain name server is parsed to obtain real mailing address.
6、 根据权利要求1所述的方法,其特征在于客户端对集成在内的应用系统使用单点登录技术,从而使得用户直接在客户端即可查看相关应用系统的信息,并进行必要的操作,而不必登录到具体的应用系统。 6. The method of claim 1, wherein the client application to the integration, the single sign-on systems technology, so that the user can directly view the information related to the client application, and make the necessary operations without having to log on to specific applications.
7、 根据权利要求1所述的方法,其特征在于应用系统调用服务器端提供的接口,把要发送的信息发往服务器端;服务器端对信息经过XMPP标准XML的转换后在发送到相应的客户端,服务器通过C0M 口或者USB连接短信设备,并通过短信设备进行短信息的收发,并对接收到的短信息进行解析,并响应其中的请求。 7. The method of claim 1, wherein the application interface to the system calls provided by the server, the information to be transmitted to the server side; the information server after the XMPP Standards XML conversion sent to the respective client end server through C0M port or a USB device connection message, and send and receive SMS messages through the device, and the received short message is parsed and in response to those requests.
8、 根据权利要求1所述的方法,其特征在于还包括步骤:用户随时随地通过手机短信的方式向服务器端查询所需信息;查询方式通过发送特定编码指令的形式进行,服务器端通过XMPP/GSM网关来实现信息的相互转换和交互。 8. A method according to claim 1, characterized by further comprising the step of: whenever and wherever a user via SMS inquiry manner desired information to the server; query by sending a specific form of coded instructions, the server through XMPP / GSM gateway to realize the transformation of information and interaction.
9、 根据权利要求8所述的方法,其特征在于服务器端使用AT指令操作短信设备。 9. The method of claim 8, wherein the server apparatus using the AT commands SMS.
10.根据权利要求8所述的方法,其特征在于服务器端接收到短信并解码后,根据短信中包含的特定指令到应用系统中获取相关数据,然后经过XMPP/GSM网关编码,并操纵短信设备向用户发送信息。 10. The method according to claim 8, wherein the server receives and decodes the message, according to the particular application system acquisition instruction message included in the relevant data, and then through XMPP / GSM Gateway encoding device and manipulate SMS send information to the user.
CN 200910014483 2009-02-27 2009-02-27 Network message communication method based on XMPP protocol and SMS CN101488926A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200910014483 CN101488926A (en) 2009-02-27 2009-02-27 Network message communication method based on XMPP protocol and SMS

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200910014483 CN101488926A (en) 2009-02-27 2009-02-27 Network message communication method based on XMPP protocol and SMS

Publications (1)

Publication Number Publication Date
CN101488926A true true CN101488926A (en) 2009-07-22

Family

ID=40891608

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200910014483 CN101488926A (en) 2009-02-27 2009-02-27 Network message communication method based on XMPP protocol and SMS

Country Status (1)

Country Link
CN (1) CN101488926A (en)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102325162A (en) * 2011-07-18 2012-01-18 迈奔灵动科技(北京)有限公司 Method and system for remotely connecting mobile phone
CN102594845A (en) * 2012-03-29 2012-07-18 东南大学 Instant message transmission method based on XMPP
CN103413240A (en) * 2013-08-29 2013-11-27 广州龙媒计算机科技有限公司 Communication method, communication equipment and communication system based on supplier database user interaction system
CN103684983A (en) * 2012-09-24 2014-03-26 华为技术有限公司 Message processing method and device
CN103731549A (en) * 2013-12-16 2014-04-16 南京国通智能科技有限公司 Method for managing messages of smartphone terminals
CN103986639A (en) * 2014-03-07 2014-08-13 杭州易和互联软件技术有限公司 Algorithm for realizing message interconnection and interworking among a plurality of independently-deployed instant message systems
CN104067256A (en) * 2011-11-11 2014-09-24 寇尔摩根公司 Systems and methods for supporting two different protocols on a same physical connection
CN104079467A (en) * 2013-03-25 2014-10-01 联想(北京)有限公司 Information processing method, sending end equipment and receiving end equipment
CN104320765A (en) * 2014-10-29 2015-01-28 东莞宇龙通信科技有限公司 Group information display method, group information sending method and terminal
CN105338085A (en) * 2015-11-02 2016-02-17 广西财经学院 Smart city mobile cloud service platform based on XMPP protocol
CN103595703B (en) * 2013-03-08 2017-02-22 重庆城市管理职业学院 OpenSSL is based on Linux system and method for secure file transfer
US9667798B2 (en) 2010-12-17 2017-05-30 Telefonaktiebolaget L M Ericsson (Publ) Enabling a communication server to use MSC-S related functions

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9667798B2 (en) 2010-12-17 2017-05-30 Telefonaktiebolaget L M Ericsson (Publ) Enabling a communication server to use MSC-S related functions
CN102325162B (en) 2011-07-18 2014-02-05 迈奔灵动科技(北京)有限公司 Method and system for remotely connecting mobile phone
CN102325162A (en) * 2011-07-18 2012-01-18 迈奔灵动科技(北京)有限公司 Method and system for remotely connecting mobile phone
US9634863B2 (en) 2011-11-11 2017-04-25 Kollmorgen Corporation Systems and methods for supporting two different protocols on a same physical connection
CN104067256A (en) * 2011-11-11 2014-09-24 寇尔摩根公司 Systems and methods for supporting two different protocols on a same physical connection
CN102594845B (en) * 2012-03-29 2014-12-10 东南大学 Instant message transmission method based on XMPP
CN102594845A (en) * 2012-03-29 2012-07-18 东南大学 Instant message transmission method based on XMPP
CN103684983A (en) * 2012-09-24 2014-03-26 华为技术有限公司 Message processing method and device
CN103595703B (en) * 2013-03-08 2017-02-22 重庆城市管理职业学院 OpenSSL is based on Linux system and method for secure file transfer
CN104079467A (en) * 2013-03-25 2014-10-01 联想(北京)有限公司 Information processing method, sending end equipment and receiving end equipment
CN103413240A (en) * 2013-08-29 2013-11-27 广州龙媒计算机科技有限公司 Communication method, communication equipment and communication system based on supplier database user interaction system
CN103731549A (en) * 2013-12-16 2014-04-16 南京国通智能科技有限公司 Method for managing messages of smartphone terminals
CN103986639A (en) * 2014-03-07 2014-08-13 杭州易和互联软件技术有限公司 Algorithm for realizing message interconnection and interworking among a plurality of independently-deployed instant message systems
CN104320765A (en) * 2014-10-29 2015-01-28 东莞宇龙通信科技有限公司 Group information display method, group information sending method and terminal
CN105338085A (en) * 2015-11-02 2016-02-17 广西财经学院 Smart city mobile cloud service platform based on XMPP protocol

Similar Documents

Publication Publication Date Title
US7149208B2 (en) Method and apparatus for providing caller identification based responses in a computer telephony environment
US6857006B1 (en) Multimedia direct communication system linked with HTTP protocol
US20100100952A1 (en) Network aggregator
US20030054810A1 (en) Enterprise mobile server platform
US20060036679A1 (en) Pub/sub message invoking a subscribers client application program
US6185184B1 (en) Directory server for providing dynamically assigned network protocol addresses
US20050071434A1 (en) System and method for sending a message to one or more destinations
US20010027474A1 (en) Method for clientless real time messaging between internet users, receipt of pushed content and transacting of secure e-commerce on the same web page
US20030018721A1 (en) Unified messaging with separate media component storage
US6564249B2 (en) Method and system for creating and sending handwritten or handdrawn messages
US7317788B2 (en) Method and system for providing a voice mail message
US20060173959A1 (en) Agent based application using data synchronization
US20110047229A1 (en) Social network virtual private network
US6226678B1 (en) Method and apparatus for dynamically defining data communication utilities
US20090106376A1 (en) Persistent group-based instant messaging
US7287057B2 (en) Accessing information using an instant messaging system
US20050210135A1 (en) System for ubiquitous network presence and access without cookies
WO2002077840A1 (en) Instant messaging system and method
US20050288044A1 (en) System and method for using soap to invoke web services on handheld devices
US20050171999A1 (en) Methods and apparatus for utilizing user software to communicate with network-resident services
WO1998003923A1 (en) World wide web bar code access system
CN101217554A (en) An instant communication method realized on website
US20080005119A1 (en) Remotely updating a user status on a presence server
CN1360782A (en) Distributed system to intelligenly establish sessions between anonymous users over various networks
CN102202102A (en) Network service polymerization system and polymerization method thereof based on cloud computing configuration

Legal Events

Date Code Title Description
C06 Publication
C10 Request of examination as to substance
C02 Deemed withdrawal of patent application after publication (patent law 2001)