[go: up one dir, main page]

CN105704686B - A kind of instant messaging method, device and system based on short message - Google Patents

A kind of instant messaging method, device and system based on short message Download PDF

Info

Publication number
CN105704686B
CN105704686B CN201410705320.7A CN201410705320A CN105704686B CN 105704686 B CN105704686 B CN 105704686B CN 201410705320 A CN201410705320 A CN 201410705320A CN 105704686 B CN105704686 B CN 105704686B
Authority
CN
China
Prior art keywords
user
session
short message
terminal
name
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
CN201410705320.7A
Other languages
Chinese (zh)
Other versions
CN105704686A (en
Inventor
武帅
魏静
吴杰
孟详粤
姚勇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Mobile Group Beijing Co Ltd
Original Assignee
China Mobile Group Beijing 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 China Mobile Group Beijing Co Ltd filed Critical China Mobile Group Beijing Co Ltd
Priority to CN201410705320.7A priority Critical patent/CN105704686B/en
Publication of CN105704686A publication Critical patent/CN105704686A/en
Application granted granted Critical
Publication of CN105704686B publication Critical patent/CN105704686B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Mobile Radio Communication Systems (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a kind of instant communication methods based on short message, apparatus and system, comprising: network side receives the short message of the transmission of first terminal belonging to registered first user;Judge session id code whether is carried in short message;If carrying session id code in short message, identified according to the corresponding second user of session id code, short message is sent to second terminal belonging to second user, session id code characterizes unique session identification between the first user identifier and second user mark;If not carrying session id code in the short message, according to the session content in short message, the name information of the second user of first terminal queued session is determined;The session id code of the first user and second user is generated, and the session id code of generation is fed back into first terminal, sends short message to second terminal using session id code for first terminal.Using scheme provided in an embodiment of the present invention, the real-time of instant communication information transmission is improved.

Description

A kind of instant communication method based on short message, apparatus and system
Technical field
The present invention relates to field of communication technology more particularly to a kind of instant communication methods based on short message, apparatus and system.
Background technique
Instant messaging is one of Internet application with fastest developing speed in recent years, such as: wechat, MSN, QQ, Fetion.It is this kind of Instant messaging application operate normally need to satisfy two conditions:: first is that have data communication network, second is that needing in terminal device Upper installation instant message applications.
In above-mentioned existing this instant messaging mode, due to being limited by network bandwidth is different, receiving signal can be generated Delay, reduces the real-time of instant communication information transmission, and communication quality can be influenced by data network.Using instant messaging function Need to switch to corresponding instant messaging application when energy, switching time depends on terminal device processor performance and instant messaging The design level of software, switching is time-consuming, the same real-time for reducing instant message transmission.And the peace of above-mentioned instant message applications Dress is limited by terminal device, and certain terminal devices may not support the installation of this kind of instant message applications.
Summary of the invention
The embodiment of the present invention provides a kind of instant communication method based on short message, apparatus and system, to solve existing skill When present in art using data communication network transmission instant communication information, due to being limited by network bandwidth difference so that signal prolongs When caused by instant communication information transmit real-time difference problem.
The embodiment of the present invention provides a kind of instant communication method based on short message, comprising:
Network side receives the short message of the transmission of first terminal belonging to registered first user;
Judge session id code whether is carried in the short message;
If carrying session id code in the short message, identified according to the corresponding second user of session id code, it will The short message is sent to second terminal belonging to second user;The session id code characterizes the first user identifier and second and uses Unique session identification between the mark of family;
If not carrying session id code in the short message, according to the session content in the short message, institute is determined State the name information of the second user of first terminal queued session;
According to the first user identifier for being carried in the short message and corresponding with the name information of determining second user Second user mark, generates the session id code of first user and the second user, and by the session id code of generation First terminal is fed back to, sends short message to the second terminal using the session id code for the first terminal.
Using the above method provided in an embodiment of the present invention, due to being transmitted i.e. using the instant messaging mode based on short message When message, do not limited by network bandwidth, will not occur signal delay, improve instant communication information transmission real-time.
Further, according to the session content in the short message, determine that the second of the first terminal queued session is used The name information at family, specifically includes:
The keyword for indicating user's name is extracted in the session content;
The keyword extracted is matched with good friend's name list of first user, first user's is good Friendly name list be found from the user's good friend's name list prestored with the first user identifier pair in the short message The good friend's name list answered;
The good friend's title obtained with the Keywords matching extracted is determined as the second of the first terminal queued session The name information of user.
Further, the good friend's title obtained with the Keywords matching extracted is determined as the first terminal and requests meeting The name information of the second user of words, specifically includes:
When the good friend's title and the keyword that matching obtains are exact matchings, by what is exactly matched with the keyword Good friend's title is determined as the name information of the second user of the first terminal queued session.
Further, the good friend's title obtained with the Keywords matching extracted is determined as the first terminal and requests meeting The name information of the second user of words, specifically includes:
It, will be matched with described the Keywords section when good friend's title that matching obtains is that part matches with the keyword Good friend's title is sent to the first terminal;
Receive good friend's title selection information that the first terminal returns;
It selects good friend's title in information to be determined as the second of the first terminal queued session good friend's title to use The name information at family.
Further, it is identified according to the corresponding second user of session id code, the short message is sent to second user Affiliated second terminal, specifically includes:
According to the corresponding second user mark of session id code, the current state information of the second user is obtained;
When the current state of the second user is online, saves and send first terminal belonging to first user It is sent to the short message of second terminal belonging to second user;
When the current state of the second user is offline, it is to be sent to save first terminal described in first user To the short message of second terminal belonging to second user;When the current state for determining the second user is offline, to described Offline message prompting message is checked in second terminal transmission;Offline message solicited message is checked what the reception second terminal returned Afterwards, the short message of preservation is sent to the second terminal.
Further, the first user is registered, is specifically included:
The registration request of the transmission of first terminal belonging to the first user is received, described first is carried in the registration request and is used The user information at family;
Save the user information of first user;
Create user identifier corresponding with the user information of first user.
Further, the above method, further includes:
The modification to good friend's name list for receiving the transmission of first terminal belonging to first user is requested;
According to the modification type in the modification request, good friend's name list of first user is repaired accordingly Change;
Modified good friend's name list is sent to the first terminal.
The embodiment of the invention also provides a kind of instant communication methods based on short message, comprising:
Session id code whether is carried in the short message that natural language processing device judgement receives;The short message is What first terminal belonging to the first user of registration was sent;The session id code characterizes the first user identifier and second user mark Unique session identification between knowledge;
If carrying session id code in the short message, institute is obtained according to the corresponding second user mark of session id code The current state information of second user is stated, and sends the short message for carrying the current state information of the second user;
If not carrying session id code in the short message, according to the session content in the short message, institute is determined State the name information of second user;And it sends and carries second user mark corresponding with the name information of the second user and obtain The short message of the current state information of the second user taken.
Using the above method provided in an embodiment of the present invention, due to being transmitted i.e. using the instant messaging mode based on short message When message, do not limited by network bandwidth, will not occur signal delay, improve instant communication information transmission real-time.
Further, according to the session content in the short message, the name information of the second user is determined, it is specific to wrap It includes:
The keyword for indicating user's name is extracted in the session content;
The keyword extracted is matched with good friend's name list of first user, first user's is good Friendly name list be found from the user's good friend's name list prestored with the first user identifier pair in the short message The good friend's name list answered;
The good friend's title obtained with the Keywords matching extracted is determined as the second of the first terminal queued session The name information of user.
Further, the good friend's title obtained with the Keywords matching extracted is determined as the first terminal and requests meeting The name information of the second user of words, specifically includes:
When the good friend's title and the keyword that matching obtains are exact matchings, by what is exactly matched with the keyword Good friend's title is determined as the name information of the second user of the first terminal queued session.
Further, the good friend's title obtained with the Keywords matching extracted is determined as the first terminal and requests meeting The name information of the second user of words, specifically includes:
It, will be matched with described the Keywords section when good friend's title that matching obtains is that part matches with the keyword Good friend's title is sent to the first terminal;
Receive good friend's title selection information that the first terminal returns;
It selects good friend's title in information to be determined as the second of the first terminal queued session good friend's title to use The name information at family.
The embodiment of the invention also provides a kind of instant communication methods based on short message, comprising:
Session control device determines in the short message received whether carry session id code;The short message is registered The first user belonging to first terminal send;The session id code characterizes the first user identifier and second user identifies it Between unique session identification;
When carrying the session id code in the determining short message received, according to being carried in the short message The current state information of second user sends the short message;
When determine do not carry the session id code in the short message that receives when, according to the carried in the short message One user identifier and second user mark generate the session id code of first user and the second user, and will generate Session id code feed back to the first terminal.
Using the above method provided in an embodiment of the present invention, due to being transmitted i.e. using the instant messaging mode based on short message When message, do not limited by network bandwidth, will not occur signal delay, improve instant communication information transmission real-time.
Further, it according to the current state information of the second user carried in the short message, sends described short Message specifically includes:
When the current state of the second user is offline, saves and send the short message;
When the current state for determining the second user is offline, the short message is saved, and receiving described the After what two terminals were sent checks offline message solicited message, the short message of preservation is sent to the second terminal.
The embodiment of the invention provides a kind of instant communication devices based on short message, comprising:
First receiving unit, for receiving the short message of the transmission of first terminal belonging to registered first user;
Judging unit, for judging whether carry session id code in the short message;
First transmission unit, if for carrying session id code in the short message, it is corresponding according to session id code Second user mark, the short message is sent to second terminal belonging to second user;Session id code characterization the Unique session identification between one user identifier and second user mark;
Determination unit, if for not carrying session id code in the short message, according to the meeting in the short message Content is talked about, determines the name information of the second user of the first terminal queued session;
Generation unit, for according to the first user identifier carried in the short message and the name with determining second user Claim information corresponding second user mark, generates the session id code of first user and the second user, and will generate Session id code feed back to first terminal, sent out to the second terminal for the first terminal using the session id code Send short message.
Using above-mentioned apparatus provided in an embodiment of the present invention, due to being transmitted i.e. using the instant messaging mode based on short message When message, do not limited by network bandwidth, will not occur signal delay, improve instant communication information transmission real-time.
Further, the determination unit indicates the key of user's name specifically for extracting in the session content Word;The keyword extracted is matched with good friend's name list of first user, good friend's name of first user List be referred to as found from the user's good friend's name list prestored it is corresponding with the first user identifier in the short message Good friend's name list;The good friend's title obtained with the Keywords matching extracted is determined as the first terminal queued session The name information of second user.
Further, the determination unit is complete specifically for the good friend's title and the keyword obtained when matching When matching, the good friend's title exactly matched with the keyword is determined as the second user of the first terminal queued session Information.
Further, the determination unit is part specifically for the good friend's title and the keyword obtained when matching When matching, the first terminal will be sent to the matched good friend's title of described the Keywords section;The first terminal is received to return The good friend's title returned selects information;Good friend's title in information is selected to be determined as the first terminal request good friend's title The information of the second user of session.
Further, first transmission unit is specifically used for being identified according to the corresponding second user of session id code, obtain Take the current state information of the second user;When the current state of the second user is online, saves and send described First terminal belonging to first user is sent to the short message of second terminal belonging to second user;When the second user When current state is offline, saves first terminal described in first user and be sent to second terminal belonging to second user Short message;When the current state for determining the second user is changed to online, checked to second terminal transmission offline Prompting message information;After checking offline message solicited message receive that the second terminal returns, the short message of preservation is sent out Give the second terminal.
Further, first receiving unit, the note sent specifically for receiving first terminal belonging to the first user Volume is requested, and the user information of first user is carried in the registration request;Save the user information of first user;Wound Build user identifier corresponding with the user information of first user.
Further, above-mentioned apparatus, further includes:
Second receiving unit, for receive first terminal belonging to first user transmission to good friend's name list Modification request;
Unit is modified, for the modification type in requesting according to the modification, to good friend's name column of first user Table is modified accordingly;
Second transmission unit, for modified good friend's name list to be sent to the first terminal.
The embodiment of the invention also provides a kind of instant communication devices based on short message, comprising:
Judging unit, for judging whether carry session id code in the short message received;The short message is to have infused What first terminal belonging to the first user of volume was sent;The session id code characterizes the first user identifier and second user mark Between unique session identification;
First transmission unit, if for carrying session id code in the short message, it is corresponding according to session id code Second user mark obtains the current state information of the second user, and sends the current state letter for carrying the second user The short message of breath;
Second transmission unit, if for not carrying session id code in the short message, according in the short message Session content, determine the name information of the second user;And it is corresponding with the name information of the second user to send carrying Second user mark and obtain the second user current state information short message.
Using above-mentioned apparatus provided in an embodiment of the present invention, due to being transmitted i.e. using the instant messaging mode based on short message When message, do not limited by network bandwidth, will not occur signal delay, improve instant communication information transmission real-time.
Further, second transmission unit indicates user's name specifically for extracting in the session content Keyword;The keyword extracted is matched with good friend's name list of first user, first user's is good Friendly name list be found from the user's good friend's name list prestored with the first user identifier pair in the short message The good friend's name list answered;The good friend's title obtained with the Keywords matching extracted is determined as the first terminal request meeting The name information of the second user of words.
Further, second transmission unit, specifically for being with the keyword when the obtained good friend's title of matching When exact matching, second that the good friend's title exactly matched with the keyword is determined as the first terminal queued session is used The name information at family.
Further, second transmission unit, specifically for being with the keyword when the obtained good friend's title of matching When part matches, the first terminal will be sent to the matched good friend's title of described the Keywords section;Receive described first eventually Good friend's title that end returns selects information;Good friend's title in information is selected to be determined as the first terminal good friend's title The name information of the second user of queued session.
The embodiment of the invention also provides a kind of instant communication devices based on short message, comprising:
Determination unit, for determining in the short message received whether carry session id code;The short message is to have infused What first terminal belonging to the first user of volume was sent;The session id code characterizes the first user identifier and second user mark Between unique session identification;
Transmission unit, for when determine carry the session id code in the short message that receives when, short disappeared according to described The current state information of the second user carried in breath sends the short message;
Generation unit, for when determine do not carry the session id code in the short message that receives when, according to described short The first user identifier and the second user mark carried in message, generates the session id of first user and the second user Code, and the session id code of generation is fed back into the first terminal.
Using above-mentioned apparatus provided in an embodiment of the present invention, due to being transmitted i.e. using the instant messaging mode based on short message When message, do not limited by network bandwidth, will not occur signal delay, improve instant communication information transmission real-time.
Further, the transmission unit, specifically for saving simultaneously when the current state of the second user is offline Send the short message;When the current state for determining the second user is offline, the short message is saved, and receiving After what the second terminal was sent checks offline message solicited message, the short message of preservation is sent to the second terminal.
The embodiment of the invention provides a kind of instant communicating systems based on short message, comprising: short message transceiving module, natural language Say processing module and session control module, in which:
The short message transceiving module, for receiving the short message of the transmission of first terminal belonging to registered first user; Give the short message to the natural language processing module;According to the session control module send session id code to Second terminal belonging to the second user sends the short message;
The natural language processing module, for judging whether carry session id code in the short message;If described Session id code is carried in short message, and the second user is obtained according to the corresponding second user mark of the session id code Current state information, and the short message for carrying the current state information of the second user is sent to the session control mould Block;If not carrying session id code in the short message, according to the session content in the short message, determine that described first is whole Hold the name information of the second user of queued session;The current state information of the second user is searched from user status table; The short message for carrying second user mark corresponding with the name information of the second user and current state information is given The session control module;
The session control module, for when determine carry the session id code in the short message that receives when, according to The short message is sent to the short message receiving-transmitting mould by the current state information of the second user carried in the short message Block;When not carrying the session id code in the determining short message received, used according to first carried in the short message Family mark and second user mark, generate the session id code of first user and the second user;And according to described short The short message for carrying the session id code is sent to by the current state information of the second user carried in message The short message transceiving module.
Using above system provided in an embodiment of the present invention, due to being transmitted i.e. using the instant messaging mode based on short message When message, do not limited by network bandwidth, will not occur signal delay, improve instant communication information transmission real-time.
Further, above system, further includes: address list management module, in which:
The address list management module, for saving the corresponding relationship between the user identifier of each user and good friend's title;
The natural language processing module indicates the key of user's name specifically for extracting in the session content Word;From good friend's name list of each user saved in the address list management module, search and the in the short message The corresponding good friend's name list of one user identifier;By good friend's name list of the keyword extracted and first user into Row matching;Second that the good friend's title obtained with the Keywords matching extracted is determined as the first terminal queued session is used The name information at family.
Further, the session control module, specifically for protecting when the current state of the second user is online Deposit and send the short message that first terminal described in first user is sent to second terminal belonging to second user;
When the current state of the second user is offline, it is to be sent to save first terminal described in first user To the short message of second terminal belonging to second user;Offline message request letter is checked receive that the second terminal sends After breath, the short message of preservation is sent to the second terminal.
Further, the natural language processing module, specifically for receiving described in the short message transceiving module forwarding The modification to good friend's name list that first terminal belonging to first user is sent is requested;According to the modification in the modification request Type modifies good friend's name list of first user in the address list module accordingly;It will be modified Good friend's name list is sent to the first terminal by the short message transceiving module.
Other features and advantage will illustrate in the following description, also, partly become from specification It obtains it is clear that being understood and implementing the application.The purpose of the application and other advantages can be by written explanations Specifically noted structure is achieved and obtained in book, claims and attached drawing.
Detailed description of the invention
Attached drawing is used to provide further understanding of the present invention, and constitutes part of specification, is implemented with the present invention Example is used to explain the present invention together, is not construed as limiting the invention.In the accompanying drawings:
Fig. 1 is one of the flow chart of instant communication method provided in an embodiment of the present invention based on short message;
Fig. 2 is the two of the flow chart of the instant communication method provided in an embodiment of the present invention based on short message;
Fig. 3 is the three of the flow chart of the instant communication method provided in an embodiment of the present invention based on short message;
Fig. 4 is the structural schematic diagram for the instant communicating system based on short message that the embodiment of the present invention 1 provides;
Fig. 5 is the flow chart for the instant communication method based on short message that the embodiment of the present invention 2 provides;
Fig. 6 is the structural schematic diagram for the instant communication device based on short message that the embodiment of the present invention 3 provides;
Fig. 7 is the structural schematic diagram for the instant communication device based on short message that the embodiment of the present invention 4 provides;
Fig. 8 is the structural schematic diagram for the instant communication device based on short message that the embodiment of the present invention 5 provides.
Specific embodiment
In order to provide the implementation for the real-time for improving instant communication information transmission, the embodiment of the invention provides one kind Instant communication method, apparatus and system based on short message carry out the preferred embodiment of the present invention below in conjunction with Figure of description Explanation, it should be understood that preferred embodiments described herein are only used to illustrate and explain the present invention, is not used to limit this hair It is bright.And in the absence of conflict, the features in the embodiments and the embodiments of the present application can be combined with each other.
The embodiment of the present invention provides a kind of instant communication method based on short message, as shown in Figure 1, comprising:
Step 101, network side receive the short message of the transmission of first terminal belonging to registered first user.
Step 102 judges session id code whether is carried in the short message.
If session id code is carried in step 103, the short message, according to the corresponding second user mark of session id code Know, which is sent to second terminal belonging to second user;The session id code characterizes the first user identifier and second Unique session identification between user identifier.
If not carrying session id code in step 104, the short message, according to the session content in the short message, really The name information of the second user of the fixed first terminal queued session.
Step 105 is believed according to the first user identifier carried in the short message and with the title of determining second user Corresponding second user mark is ceased, generates the session id code of the first user and second user, and by the session id code of generation First terminal is fed back to, sends short message to second terminal using the session id code for first terminal.
In the embodiment of the present invention, when first terminal sends short message, the short message code sent to immediate communication platform is XXXXX, wherein X is any number of 0-9, and digit can be arranged according to the actual situation.Session id code is for first terminal The second user of first user and second terminal conversates unique coding of creation.
Correspondingly, the embodiment of the invention also provides a kind of instant communication method based on short message, flow chart such as Fig. 2 institute Show, comprising:
Session id code whether is carried in the short message that step 201, natural language processing device judgement receive;This is short to disappear Breath is what first terminal belonging to registered first user was sent;The session id code characterizes the first user identifier and second and uses Unique session identification between the mark of family.
If carrying session id code in step 202, the short message, identified according to the corresponding second user of session id code The current state information of second user is obtained, and sends the short message for carrying the current state information of second user.
If not carrying session id code in step 203, the short message, according to the session content in the short message, really Determine the name information of second user;And send what carrying second user corresponding with the name information of second user was identified and obtained The short message of the current state information of second user.
Correspondingly, the embodiment of the invention also provides a kind of instant communication method based on short message, flow chart such as Fig. 3 institute Show, comprising:
Step 301, session control device determine in the short message received whether carry session id code;Short message is What first terminal belonging to the first user of registration was sent;Session id code characterizes the first user identifier and second user identifies it Between unique session identification.
Step 302, when determine carry session id code in the short message that receives when, according to the carried in the short message The current state information of two users sends the short message.
Step 303, when determine do not carry session id code in the short message that receives when, according to what is carried in the short message First user identifier and second user mark, generate the session id code of the first user and second user, and by the session of generation ID code feeds back to first terminal.
With reference to the accompanying drawing, method and device provided by the invention and corresponding system are retouched in detail with specific embodiment It states.
Embodiment 1:
Fig. 4 is the structural schematic diagram of the instant communicating system provided in an embodiment of the present invention based on short message, comprising: short message is received Send out module 401, natural language processing module 402 and session control module 403, in which:
Short message transceiving module 401, for receiving the short message of the transmission of first terminal belonging to registered first user, institute It states and carries first user identifier and session content in short message;Give the short message to the natural language processing mould Block;The session id code sent according to the session control module is described short to the transmission of first terminal belonging to first user Message;
Natural language processing module 402, for judging whether carry session id code in the short message;If described short Session id code is carried in message, and working as the second user is obtained according to the corresponding second user mark of the session id code Preceding status information, and the short message for carrying the current state information of the second user is sent to the session control module; If not carrying session id code in the short message, according to the session content in the short message, the first terminal is determined The name information of the second user of queued session;The current state information of the second user is searched from user status table;It will The short message of second user mark corresponding with the name information of the second user and current state information is carried to institute State session control module;
Session control module 403, for when determine carry the session id code in the short message that receives when, according to institute The short message is sent to the short message receiving-transmitting mould by the current state information for stating the second user carried in short message Block;When not carrying the session id code in the determining short message received, used according to first carried in the short message Family mark and second user mark, generate the session id code of first user and the second user;And according to described short The short message for carrying the session id code is sent to by the current state information of the second user carried in message The short message transceiving module.
Further, above system, further includes: address list management module 404, in which:
Address list management module 404, for saving the corresponding relationship between the user identifier of each user and good friend's title;
Natural language processing module 402 indicates the keyword of user's name specifically for extracting in the session content; From good friend's name list of each user saved in the address list management module, searches and used with first in the short message Family identifies corresponding good friend's name list;By the progress of good friend's name list of the keyword extracted and first user Match;The good friend's title obtained with the Keywords matching extracted is determined as the second user of the first terminal queued session Name information.
Further, session control module 403, specifically for protecting when the current state of the second user is online Deposit and send the short message that first terminal described in first user is sent to second terminal belonging to second user;
When the current state of the second user is offline, it is to be sent to save first terminal described in first user To the short message of second terminal belonging to second user;Offline message request letter is checked receive that the second terminal sends After breath, the short message of preservation is sent to the second terminal.
Further, natural language processing module 402, specifically for receiving described the of short message transceiving module forwarding The modification to good friend's name list that first terminal belonging to one user is sent is requested;According to the modification class in the modification request Type modifies good friend's name list of first user in the address list module accordingly;It will be modified good Friendly name list is sent to the first terminal by the short message transceiving module.
The system provided through the embodiment of the present invention, due to transmitting instant message using the instant messaging based on short message, According to good friend's name list in address list management module, short message anonymity instant messaging can be realized, not by the limit of network bandwidth System will not occur signal delay, improve the real-time of instant communication information transmission.
Embodiment 2:
Based on the same inventive concept, the instant communicating system based on short message provided according to that above embodiment of the present invention, phase Ying Di, another embodiment of the present invention 2 additionally provide a kind of instant communication method based on short message, in conjunction with each mould in the system Block, the flow chart of this method that the embodiment of the present invention 2 provides is as shown in figure 5, specifically include:
Step 501, short message transceiving module receive the short message of the transmission of first terminal belonging to registered first user.
Before the first user initiates a session request, the first user first has to register.First user uses first Terminal by short message code to short message transceiving module send registration request, such as: a user can be used mobile phone terminal to number Code 100xxx (i.e. short message code) sends registration request short message, and short message transceiving module can receive the registration request short message.The note The first user information is carried in volume request, comprising: the pet name, gender, age, place city, short message transceiving module ask the registration It asks and session control module is sent to by natural language processing module, session control module is according to the first user in registration request Information registers the first user, creates first User ID.User ID is to distinguish the unique identification of each user, Mei Geyong Family, which can choose, binds User ID and phone number.
The short message is sent to natural language processing module by step 502, short message transceiving module.
Step 503, natural language processing module determine session id code whether is carried in the short message, if not, into Step 504, if so, entering step 513.
Wherein, session id code is unique session identification between the first user identifier of characterization and second user mark.Such as Session id code is carried in the fruit short message, illustrates to have created session between the first user and second user;Disappear if this is short Session id code is not carried in breath, illustrates not create session also between the first user and second user.
Step 504, natural language processing module extract the keyword for indicating user's name in session content.
Step 505, natural language processing module are prestored according to the first User ID in short message from address list management module User's good friend's name list in, search corresponding with first User ID good friend's name list data.
Wherein, which can be the pet name of good friend.
Step 506, natural language processing module carry out good friend's name list of the keyword extracted and the first user Matching, and the obtained good friend's title of matching is determined as to the name information of the second user of first terminal queued session.
In this step, natural language processing module carries out good friend's name list of the keyword extracted and the first user When matching, matching result may be there are two types of situation: the first situation, the good friend's title matched and the keyword are complete Match;Second situation, the good friend's title matched are that part matches with the keyword.For both of these case, carry out respectively Following processing:
The first situation: when keyword is matched with good friend's name list of the first user, if the keyword and first Some good friend's title in good friend's name list of user is identical, as exactly matches.At this point, will be exactly matched with the keyword Good friend's title be determined as first terminal queued session second user name information.
Second situation: when keyword is matched with good friend's name list of the first user, if the keyword and first Any good friend's title in good friend's name list of user is all not exactly the same, but identical as good friend's name portion therein, i.e., Partially to match, such as: assuming that keyword includes character string ABCD, good friend's title in good friend's name list includes character String is EFCD, then the entitled part matching of the key words good friend.At this point, natural language conversation module will be with keyword portion Divide matched good friend's title to be sent to first terminal by short message transceiving device, is supplied to the first user and selects requested session Good friend's title.After first user selects good friend's title, good friend's title is returned to by first terminal, information is selected to give short message receiving-transmitting mould The good friend's title received selection information is transmitted to natural language processing module, natural language processing by block, short message transceiving module Good friend's title in good friend's title selection information is determined as the name information of the second user of first terminal queued session by module.
Step 507, natural language processing module determine the second user according to the name information of determining second user Current state.
In the embodiment of the present invention, the title of each user corresponds to unique user identifier.The title of user and the state of user Information can be corresponded to and is stored in state table.The current state of user is divided into presence and off-line state.User can pass through To short message transceiving module send modification status information session, such as: user can by transmission " be arranged I state be The session of line " or " it is offline that my state, which is arranged, ".The received session is transmitted to natural language processing by short message transceiving module Module after the session of natural language processing module analysis, updates user's current state.
Step 508, natural language processing module will carry the short message and second of the first user identifier, second user mark The current state of user is sent to session control module.
Step 509, session control module are identified according to the first user identifier and second user received, are generated first and are used The session id code at family and second user, and the session id code of generation is fed back into first terminal.
After first terminal receives the session id code, the session id code is can be used in the first user of first terminal Short message is sent to the second user of second terminal, specifically, the first user can be by taking when first terminal editor's short message With the session id code.
It is short to send this to short message transceiving module according to the current state information of second user for step 510, session control module Message.
Specifically, session control module saves the belonging to the first user when the current state of second user is online One terminal is sent to the short message of second terminal belonging to second user, and the short message is sent to short message transceiving module.
When the current state of second user is offline, session control module saves first terminal belonging to the first user and waits for It is sent to the short message of second terminal belonging to second user, i.e. offline message.When second user is wanted to check offline message, Offline message can be sent to short message transceiving module check request.The offline message is checked that request passes through certainly by short message transceiving module Right language processing module is transmitted to session control module, and session control module can will pass through the quantity of good friend and offline message Short message transceiving module is sent to second terminal.Specifically, second user can pass through the information with each module of instant communicating system After interaction checks that information off-line, information off-line are checked, the offline message is arranged the session control module of instant communicating system For read states.Further, user can also by checking historical information with the information exchange of each module of instant communicating system, User can be checked by short message transceiving module transmission history message or removal request, for example, user's using terminal is received to short message It sends out module and sends removal request, it is desirable to delete the history message of specified range, removal request can be that " please delete good friend's A history Message 1099-2043 ".
The short message is sent to second terminal by step 511, short message transceiving module.
Step 513, when natural language processing module determine in the short message carry session id code when, natural language processing Module determines the current state information of second user corresponding with the session id code.
The current state information of the short message and second user is sent to session by step 514, natural language processing module Control module.
Step 515, session control module according to the current state information of session id code and second user, received to short message Hair module sends the short message.
In this step, forwards the specific processing mode of session identical as the mode in above-mentioned steps 510, no longer carry out herein Detailed description.
Step 516, short message transceiving module are identified according to the corresponding second user of session id code, which is sent to Second terminal belonging to second user.
Further, in the embodiment of the present invention, when the first user after registration, can be by being sent to short message transceiving module Natural language realizes address list management, can modify to good friend's name list, including add, delete good friend.When the first use When addition good friend is wanted at family, using terminal sends addition good friend's request to short message transceiving module, includes in addition good friend request Good friend's pet name to be added, such as: first user's using terminal sends " I will add pet name B as good friend ".Short message transceiving module Addition good friend is requested to give session control module by natural language processing module forwards, session control module is in communication management mould The relevant information of pet name B is searched in block, comprising: the information such as ID, age, gender, city are registered, if it exists multiple pet names of the same name, Send the relevant information of multiple pet names of the same name to the terminal that the first user uses by short message transceiving module, prompt user's selection to Add good friend.After user's confirmation, confirmation addition is sent to good friend B to be added by short message transceiving module from session control module Good friend's message, such as: " XX wishes plus you are as good friend, if agrees to ", if B replys affirmative answer, B is built with the first user Vertical friend relation.The processing mode that user deletes good friend is identical as the addition mode of good friend, is no longer described in detail herein.
The above method provided through the embodiment of the present invention, due to being transmitted i.e. using the instant messaging mode based on short message When message can be realized short message anonymity instant messaging according to good friend's name list, do not limited by network bandwidth, will not be occurred Signal delay, improves the real-time of instant communication information transmission.
Embodiment 3:
Based on the same inventive concept, the instant communication method based on short message provided according to that above embodiment of the present invention, phase Ying Di, another embodiment of the present invention 3 additionally provide a kind of instant communication device based on short message, structural schematic diagram such as Fig. 6 institute Show, specifically include:
First receiving unit 601, for receiving the short message of the transmission of first terminal belonging to registered first user;
Judging unit 602, for judging whether carry session id code in the short message;
First transmission unit 603, if for carrying session id code in the short message, according to session id code pair The second user mark answered, is sent to second terminal belonging to second user for the short message;The session id code characterization Unique session identification between first user identifier and second user mark;
Determination unit 604, if for not carrying session id code in the short message, according in the short message Session content determines the name information of the second user of the first terminal queued session;
Generation unit 605, for according to the first user identifier carried in the short message and with determining second user Name information corresponding second user mark, generate the session id code of first user and the second user, and will The session id code of generation feeds back to first terminal, whole to described second using the session id code for the first terminal End sends short message.
Further, determination unit 604 indicate the key of user's name specifically for extracting in the session content Word;The keyword extracted is matched with good friend's name list of first user, good friend's name of first user List be referred to as found from the user's good friend's name list prestored it is corresponding with the first user identifier in the short message Good friend's name list;The good friend's title obtained with the Keywords matching extracted is determined as the first terminal queued session The name information of second user.
Further, determination unit 604 are complete specifically for the good friend's title and the keyword obtained when matching The good friend's title exactly matched with the keyword is determined as the letter of the second user of the first terminal queued session by timing Breath.
Further, determination unit 604 are parts specifically for the good friend's title and the keyword obtained when matching Timing will be sent to the first terminal with the matched good friend's title of described the Keywords section;The first terminal is received to return Good friend's title select information;Good friend's title in information is selected to be determined as the first terminal request meeting good friend's title The name information of the second user of words.
Further, the first transmission unit 603 is specifically used for being identified according to the corresponding second user of session id code, obtain Take the current state information of the second user;When the current state of the second user is online, saves and send described First terminal belonging to first user is sent to the short message of second terminal belonging to second user;When the second user When current state is offline, saves first terminal described in first user and be sent to second terminal belonging to second user Short message;When the current state for determining the second user is changed to online, checked to second terminal transmission offline Prompting message information;After checking offline message solicited message receive that the second terminal returns, the short message of preservation is sent out Give the second terminal.
Further, the first receiving unit 601, the registration sent specifically for receiving first terminal belonging to the first user It requests, the user information of first user is carried in the registration request;Save the user information of first user;Creation User identifier corresponding with the user information of first user.
Further, above-mentioned apparatus, further includes:
Second receiving unit 606, for receive first terminal belonging to first user transmission to good friend's name column The modification of table is requested;
Unit 607 is modified, for the modification type in requesting according to the modification, to good friend's title of first user List is modified accordingly;
Second transmission unit 608, for modified good friend's name list to be sent to the first terminal.
The function of above-mentioned each unit can correspond to the respective handling step in process shown in Fig. 1, Fig. 2, Fig. 3 and Fig. 5, herein It repeats no more.
Embodiment 4:
Based on the same inventive concept, the instant communication method based on short message provided according to that above embodiment of the present invention, phase Ying Di, another embodiment of the present invention 4 additionally provide a kind of instant communication device based on short message, structural schematic diagram such as Fig. 7 institute Show, specifically include:
Judging unit 701, for judging whether carry session id code in the short message received;The short message is What first terminal belonging to the first user of registration was sent;The session id code characterizes the first user identifier and second user mark Unique session identification between knowledge;
First transmission unit 702, if for carrying session id code in the short message, it is corresponding according to session id code Second user mark obtain the current state information of the second user, and send the current state for carrying the second user The short message of information;
Second transmission unit 703, if for not carrying session id code in the short message, according to the short message In session content, determine the name information of the second user;And send the name information pair carried with the second user The short message of the current state information of the second user mark and the second user obtained answered.
Further, the second transmission unit 703 indicates the pass of user's name specifically for extracting in the session content Keyword;The keyword extracted is matched with good friend's name list of first user, the good friend of first user Name list is corresponding with the first user identifier in the short message to find from the user's good friend's name list prestored Good friend's name list;The good friend's title obtained with the Keywords matching extracted is determined as the first terminal queued session Second user name information.
Further, the second transmission unit 703, specifically for being with the keyword when the obtained good friend's title of matching When full matching, the good friend's title exactly matched with the keyword is determined as to the second user of the first terminal queued session Name information.
Further, the second transmission unit 703 is portion specifically for the good friend's title and the keyword obtained when matching When dividing matching, the first terminal will be sent to the matched good friend's title of described the Keywords section;Receive the first terminal Good friend's title of return selects information;It selects good friend's title in information to be determined as the first terminal good friend's title to ask Seek the name information of the second user of session.
The function of above-mentioned each unit can correspond to the respective handling step in process shown in Fig. 2, Fig. 5, and details are not described herein.
Embodiment 5:
Based on the same inventive concept, the instant communication method based on short message provided according to that above embodiment of the present invention, phase Ying Di, another embodiment of the present invention 5 additionally provide a kind of instant communication device based on short message, structural schematic diagram such as Fig. 8 institute Show, specifically include:
Determination unit 801, for determining in the short message received whether carry session id code;The short message is What first terminal belonging to the first user of registration was sent;The session id code characterizes the first user identifier and second user mark Unique session identification between knowledge;
Transmission unit 802, for when determine carry the session id code in the short message that receives when, according to described short The current state information of the second user carried in message sends the short message;
Generation unit 803, for when determine do not carry the session id code in the short message that receives when, according to described The first user identifier and the second user mark carried in short message, generates the session of first user and the second user ID code, and the session id code of generation is fed back into the first terminal.
Further, transmission unit 802, specifically for saving simultaneously when the current state of the second user is offline Send the short message;When the current state for determining the second user is offline, the short message is saved, and receiving After what the second terminal was sent checks offline message solicited message, the short message of preservation is sent to the second terminal.
The function of above-mentioned each unit can correspond to the respective handling step in process shown in Fig. 3, Fig. 5, and details are not described herein.
In conclusion scheme provided in an embodiment of the present invention, comprising: network side receives belonging to registered first user The short message that first terminal is sent;Judge session id code whether is carried in the short message;If carrying session id in short message Code is then identified according to the corresponding second user of session id code, which is sent to the second end belonging to second user End, the session id code characterize unique session identification between the first user identifier and second user mark;If the short message In do not carry session id code, then according to the session content in short message, determine the second user of first terminal queued session Name information;The session id code of the first user and second user is generated, and the session id code of generation is fed back to first eventually End sends short message to second terminal using session id code for first terminal.Using scheme provided in an embodiment of the present invention, Short message anonymity instant messaging is realized, is not limited by network bandwidth, signal delay will not occur, improve instant communication information The real-time of transmission.
Instant communicating system and device provided by embodiments herein based on short message can pass through computer program reality It is existing.Those skilled in the art it should be appreciated that above-mentioned module division mode is only one of numerous module division modes, If being divided into other modules or non-division module, as long as instant communicating system and device based on short message have above-mentioned function, All it should be within the scope of protection of this application.
The application is referring to method, the process of equipment (system) and computer program product according to the embodiment of the present application Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates, Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one The step of function of being specified in a box or multiple boxes.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art Mind and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologies Within, then the present invention is also intended to include these modifications and variations.

Claims (28)

1.一种基于短信的即时通讯方法,其特征在于,包括:1. an instant messaging method based on short message, is characterized in that, comprises: 网络侧接收已注册的第一用户所属的第一终端发送的短消息;The network side receives the short message sent by the first terminal to which the registered first user belongs; 判断所述短消息中是否携带会话ID代码;Judge whether the session ID code is carried in the short message; 如果所述短消息中携带会话ID代码,则根据会话ID代码对应的第二用户标识,将所述短消息发送给第二用户所属的第二终端;所述会话ID代码表征第一用户标识和第二用户标识之间唯一的会话标识;If the short message carries a session ID code, the short message is sent to the second terminal to which the second user belongs according to the second user identification corresponding to the session ID code; the session ID code represents the first user identification and the A unique session identifier between the second user identifiers; 如果所述短消息中未携带会话ID代码,则根据所述短消息中的会话内容,确定所述第一终端请求会话的第二用户的名称信息;If the short message does not carry the session ID code, then according to the session content in the short message, determine the name information of the second user who requests the session from the first terminal; 根据所述短消息中携带的第一用户标识和与确定的第二用户的名称信息对应的第二用户标识,生成所述第一用户和所述第二用户的会话ID代码,并将生成的会话ID代码反馈给第一终端,用于所述第一终端使用所述会话ID代码向所述第二终端发送短消息。According to the first user identifier carried in the short message and the second user identifier corresponding to the determined name information of the second user, the session ID codes of the first user and the second user are generated, and the generated session ID codes are generated. The session ID code is fed back to the first terminal, so that the first terminal uses the session ID code to send a short message to the second terminal. 2.如权利要求1所述的方法,其特征在于,根据所述短消息中的会话内容,确定所述第一终端请求会话的第二用户的名称信息,具体包括:2. The method according to claim 1, wherein, according to the session content in the short message, determining the name information of the second user who requests the session by the first terminal, specifically comprising: 在所述会话内容中提取表示用户名称的关键词;Extracting keywords representing user names from the session content; 将提取到的关键词与所述第一用户的好友名称列表进行匹配,所述第一用户的好友名称列表为从预存的用户好友名称列表中查找到的与所述短消息中的第一用户标识对应的好友名称列表;Matching the extracted keywords with the first user's friend name list, the first user's friend name list is the first user in the short message found from the pre-stored user friend name list Identifies the corresponding friend name list; 将与提取到的关键词匹配得到的好友名称确定为所述第一终端请求会话的第二用户的名称信息。The friend name obtained by matching with the extracted keyword is determined as the name information of the second user who requests the session from the first terminal. 3.如权利要求2所述的方法,其特征在于,将与提取到的关键词匹配得到的好友名称确定为所述第一终端请求会话的第二用户的名称信息,具体包括:3. The method according to claim 2, wherein determining the friend name obtained by matching the extracted keyword as the name information of the second user of the first terminal requesting the session, specifically comprising: 当匹配得到的好友名称与所述关键词是完全匹配时,将与所述关键词完全匹配的好友名称确定为所述第一终端请求会话的第二用户的名称信息。When the buddy name obtained by matching completely matches the keyword, the buddy name that exactly matches the keyword is determined as the name information of the second user who requests the session from the first terminal. 4.如权利要求2所述的方法,其特征在于,将与提取到的关键词匹配得到的好友名称确定为所述第一终端请求会话的第二用户的名称信息,具体包括:4. The method according to claim 2, wherein the friend name obtained by matching with the extracted keyword is determined as the name information of the second user of the first terminal requesting the session, specifically comprising: 当匹配得到的好友名称与所述关键词是部分匹配时,将与所述关键词部分匹配的好友名称发送给所述第一终端;When the name of the friend obtained by matching partially matches the keyword, sending the name of the friend that partially matches the keyword to the first terminal; 接收所述第一终端返回的好友名称选择信息;receiving the friend name selection information returned by the first terminal; 将所述好友名称选择信息中的好友名称确定为所述第一终端请求会话的第二用户的名称信息。The friend name in the friend name selection information is determined as the name information of the second user who requests the session from the first terminal. 5.如权利要求1所述的方法,其特征在于,根据会话ID代码对应的第二用户标识,将所述短消息发送给第二用户所属的第二终端,具体包括:5. The method according to claim 1, wherein, according to the second user identification corresponding to the session ID code, the short message is sent to the second terminal to which the second user belongs, specifically comprising: 根据会话ID代码对应的第二用户标识,获取所述第二用户的当前状态信息;Obtain the current state information of the second user according to the second user identifier corresponding to the session ID code; 当所述第二用户的当前状态为在线时,保存并发送所述第一用户所属的第一终端待发送给第二用户所属的第二终端的短消息;When the current state of the second user is online, save and send a short message to be sent by the first terminal to which the first user belongs to the second terminal to which the second user belongs; 当所述第二用户的当前状态为离线时,保存所述第一用户所述的第一终端待发送给第二用户所属的第二终端的短消息;当确定所述第二用户的当前状态为离线时,向所述第二终端发送查看离线消息提醒信息;在接收所述第二终端返回的查看离线消息请求信息后,将保存的短消息发送给所述第二终端。When the current state of the second user is offline, save the short message to be sent by the first terminal of the first user to the second terminal to which the second user belongs; when determining the current state of the second user When it is offline, send the offline message viewing reminder information to the second terminal; after receiving the offline message viewing request information returned by the second terminal, send the saved short message to the second terminal. 6.如权利要求1所述的方法,其特征在于,对第一用户进行注册,具体包括:6. The method of claim 1, wherein registering the first user specifically comprises: 接收第一用户所属的第一终端发送的注册请求,所述注册请求中携带所述第一用户的用户信息;receiving a registration request sent by a first terminal to which the first user belongs, where the registration request carries user information of the first user; 保存所述第一用户的用户信息;saving the user information of the first user; 创建与所述第一用户的用户信息对应的用户标识。Create a user identity corresponding to the user information of the first user. 7.如权利要求1所述的方法,其特征在于,还包括:7. The method of claim 1, further comprising: 接收所述第一用户所属的第一终端发送的对好友名称列表的修改请求;receiving a request for modifying the friend name list sent by the first terminal to which the first user belongs; 根据所述修改请求中的修改类型,对所述第一用户的好友名称列表进行相应的修改;According to the modification type in the modification request, modify the friend name list of the first user accordingly; 将修改后的好友名称列表发送给所述第一终端。Send the modified friend name list to the first terminal. 8.一种基于短信的即时通讯方法,其特征在于,包括:8. An instant messaging method based on short messages, comprising: 自然语言处理装置判断接收到的短消息中是否携带会话ID代码;所述短消息为已注册的第一用户所属的第一终端发送的;所述会话ID代码表征第一用户标识和第二用户标识之间唯一的会话标识;The natural language processing device judges whether the received short message carries a session ID code; the short message is sent by the first terminal to which the registered first user belongs; the session ID code represents the first user identifier and the second user Unique session ID between IDs; 如果所述短消息中携带会话ID代码,根据会话ID代码对应的第二用户标识获取所述第二用户的当前状态信息,并发送携带所述第二用户的当前状态信息的短消息;If the short message carries the session ID code, obtain the current status information of the second user according to the second user identifier corresponding to the session ID code, and send a short message carrying the current status information of the second user; 如果所述短消息中未携带会话ID代码,则根据所述短消息中的会话内容,确定所述第二用户的名称信息;并发送携带与所述第二用户的名称信息对应的第二用户标识和获取的所述第二用户的当前状态信息的短消息。If the short message does not carry the session ID code, determine the name information of the second user according to the session content in the short message; and send the second user carrying the name information corresponding to the second user A short message that identifies and acquires the current state information of the second user. 9.如权利要求8所述的方法,其特征在于,根据所述短消息中的会话内容,确定所述第二用户的名称信息,具体包括:9. The method of claim 8, wherein determining the name information of the second user according to the conversation content in the short message, specifically comprising: 在所述会话内容中提取表示用户名称的关键词;Extracting keywords representing user names from the session content; 将提取到的关键词与所述第一用户的好友名称列表进行匹配,所述第一用户的好友名称列表为从预存的用户好友名称列表中查找到的与所述短消息中的第一用户标识对应的好友名称列表;Matching the extracted keywords with the first user's friend name list, the first user's friend name list is the first user in the short message found from the pre-stored user friend name list Identifies the corresponding friend name list; 将与提取到的关键词匹配得到的好友名称确定为所述第一终端请求会话的第二用户的名称信息。The friend name obtained by matching with the extracted keyword is determined as the name information of the second user who requests the session from the first terminal. 10.如权利要求9所述的方法,其特征在于,将与提取到的关键词匹配得到的好友名称确定为所述第一终端请求会话的第二用户的名称信息,具体包括:10. The method of claim 9, wherein determining the friend name obtained by matching the extracted keyword as the name information of the second user of the first terminal requesting the session, specifically comprising: 当匹配得到的好友名称与所述关键词是完全匹配时,将与所述关键词完全匹配的好友名称确定为所述第一终端请求会话的第二用户的名称信息。When the buddy name obtained by matching completely matches the keyword, the buddy name that exactly matches the keyword is determined as the name information of the second user who requests the session from the first terminal. 11.如权利要求9所述的方法,其特征在于,将与提取到的关键词匹配得到的好友名称确定为所述第一终端请求会话的第二用户的名称信息,具体包括:11. The method of claim 9, wherein determining the friend name obtained by matching the extracted keyword as the name information of the second user of the first terminal requesting the session, specifically comprising: 当匹配得到的好友名称与所述关键词是部分匹配时,将与所述关键词部分匹配的好友名称发送给所述第一终端;When the name of the friend obtained by matching partially matches the keyword, sending the name of the friend that partially matches the keyword to the first terminal; 接收所述第一终端返回的好友名称选择信息;receiving the friend name selection information returned by the first terminal; 将所述好友名称选择信息中的好友名称确定为所述第一终端请求会话的第二用户的名称信息。The friend name in the friend name selection information is determined as the name information of the second user who requests the session from the first terminal. 12.一种基于短信的即时通讯方法,其特征在于,包括:12. An instant messaging method based on short messages, comprising: 会话控制装置确定接收到的短消息中是否携带会话ID代码;所述短消息为已注册的第一用户所属的第一终端发送的;所述会话ID代码表征第一用户标识和第二用户标识之间唯一的会话标识;The session control device determines whether the received short message carries a session ID code; the short message is sent by the first terminal to which the registered first user belongs; the session ID code represents the first user identification and the second user identification unique session identifier between 当确定接收到的短消息中携带所述会话ID代码时,根据所述短消息中携带的所述第二用户的当前状态信息,发送所述短消息;When it is determined that the received short message carries the session ID code, sending the short message according to the current state information of the second user carried in the short message; 当确定接收到的短消息中未携带所述会话ID代码时,根据所述短消息中携带的第一用户标识和第二用户标识,生成所述第一用户和所述第二用户的会话ID代码,并将生成的会话ID代码反馈给所述第一终端。When it is determined that the received short message does not carry the session ID code, the session IDs of the first user and the second user are generated according to the first user ID and the second user ID carried in the short message code, and feed back the generated session ID code to the first terminal. 13.如权利要求12所述的方法,其特征在于,根据所述短消息中携带的所述第二用户的当前状态信息,发送所述短消息,具体包括:13. The method according to claim 12, wherein sending the short message according to the current state information of the second user carried in the short message specifically comprises: 当所述第二用户的当前状态为在线时,保存并发送所述短消息;When the current state of the second user is online, save and send the short message; 当确定所述第二用户的当前状态为离线时,保存所述短消息,并在接收到所述第二终端发送的查看离线消息请求信息后,将保存的短消息发送给所述第二终端。When it is determined that the current state of the second user is offline, the short message is saved, and after receiving the request information for viewing offline messages sent by the second terminal, the saved short message is sent to the second terminal . 14.一种基于短信的即时通讯装置,其特征在于,包括:14. An instant messaging device based on short messages, comprising: 第一接收单元,用于接收已注册的第一用户所属的第一终端发送的短消息;a first receiving unit, configured to receive a short message sent by the first terminal to which the registered first user belongs; 判断单元,用于判断所述短消息中是否携带会话ID代码;Judging unit, for judging whether the session ID code is carried in the short message; 第一发送单元,用于如果所述短消息中携带会话ID代码,则根据会话ID代码对应的第二用户标识,将所述短消息发送给第二用户所属的第二终端;所述会话ID代码表征第一用户标识和第二用户标识之间唯一的会话标识;a first sending unit, configured to send the short message to the second terminal to which the second user belongs according to the second user identifier corresponding to the session ID code if the short message carries the session ID code; the session ID The code represents the unique session identifier between the first user identifier and the second user identifier; 确定单元,用于如果所述短消息中未携带会话ID代码,则根据所述短消息中的会话内容,确定所述第一终端请求会话的第二用户的名称信息;a determining unit, configured to, if the short message does not carry the session ID code, determine the name information of the second user whose session is requested by the first terminal according to the session content in the short message; 生成单元,用于根据所述短消息中携带的第一用户标识和与确定的第二用户的名称信息对应的第二用户标识,生成所述第一用户和所述第二用户的会话ID代码,并将生成的会话ID代码反馈给第一终端,用于所述第一终端使用所述会话ID代码向所述第二终端发送短消息。A generating unit, configured to generate session ID codes of the first user and the second user according to the first user identifier carried in the short message and the second user identifier corresponding to the determined name information of the second user , and feed back the generated session ID code to the first terminal, so that the first terminal uses the session ID code to send a short message to the second terminal. 15.如权利要求14所述的装置,其特征在于,所述确定单元,具体用于在所述会话内容中提取表示用户名称的关键词;将提取到的关键词与所述第一用户的好友名称列表进行匹配,所述第一用户的好友名称列表为从预存的用户好友名称列表中查找到的与所述短消息中的第一用户标识对应的好友名称列表;将与提取到的关键词匹配得到的好友名称确定为所述第一终端请求会话的第二用户的名称信息。15. The apparatus according to claim 14, wherein the determining unit is specifically configured to extract keywords representing the user's name in the conversation content; compare the extracted keywords with the first user's The friend name list of the first user is matched, and the friend name list of the first user is the friend name list corresponding to the first user ID in the short message found from the pre-stored user friend name list; The friend name obtained by the word matching is determined as the name information of the second user who requests the session from the first terminal. 16.如权利要15所述的装置,其特征在于,所述确定单元,具体用于当匹配得到的好友名称与所述关键词是完全匹配时,将与所述关键词完全匹配的好友名称确定为所述第一终端请求会话的第二用户的信息。16. The apparatus according to claim 15, wherein the determining unit is specifically configured to, when the name of the friend obtained by matching completely matches the keyword, the name of the friend that completely matches the keyword. The information of the second user who requests the session for the first terminal is determined. 17.如权利要求14所述的装置,其特征在于,所述确定单元,具体用于当匹配得到的好友名称与所述关键词是部分匹配时,将与所述关键词部分匹配的好友名称发送给所述第一终端;接收所述第一终端返回的好友名称选择信息;将所述好友名称选择信息中的好友名称确定为所述第一终端请求会话的第二用户的信息。17. The apparatus according to claim 14, wherein the determining unit is specifically configured to, when the buddy name obtained by matching partially matches the keyword, select the buddy name that partially matches the keyword sending the information to the first terminal; receiving the friend name selection information returned by the first terminal; and determining the friend name in the friend name selection information as the information of the second user requesting the session by the first terminal. 18.如权利要求14所述的装置,其特征在于,所述第一发送单元,具体用于根据会话ID代码对应的第二用户标识,获取所述第二用户的当前状态信息;当所述第二用户的当前状态为在线时,保存并发送所述第一用户所属的第一终端待发送给第二用户所属的第二终端的短消息;当所述第二用户的当前状态为离线时,保存所述第一用户所述的第一终端待发送给第二用户所属的第二终端的短消息;当确定所述第二用户的当前状态更改为在线时,向所述第二终端发送查看离线消息提醒信息;在接收所述第二终端返回的查看离线消息请求信息后,将保存的短消息发送给所述第二终端。18. The apparatus according to claim 14, wherein the first sending unit is specifically configured to acquire the current state information of the second user according to the second user identifier corresponding to the session ID code; When the current state of the second user is online, save and send the short message to be sent by the first terminal to which the first user belongs to the second terminal to which the second user belongs; when the current state of the second user is offline , save the short message to be sent by the first terminal of the first user to the second terminal to which the second user belongs; when it is determined that the current status of the second user is changed to online, send the short message to the second terminal View offline message reminder information; after receiving the offline message viewing request information returned by the second terminal, send the saved short message to the second terminal. 19.如权利要求14所述的装置,其特征在于,所述第一接收单元,具体用于接收第一用户所属的第一终端发送的注册请求,所述注册请求中携带所述第一用户的用户信息;保存所述第一用户的用户信息;创建与所述第一用户的用户信息对应的用户标识。19. The apparatus according to claim 14, wherein the first receiving unit is specifically configured to receive a registration request sent by a first terminal to which the first user belongs, wherein the registration request carries the first user user information of the first user; save the user information of the first user; create a user ID corresponding to the user information of the first user. 20.如权利要求14所述的装置,其特征在于,还包括:20. The apparatus of claim 14, further comprising: 第二接收单元,用于接收所述第一用户所属的第一终端发送的对好友名称列表的修改请求;a second receiving unit, configured to receive a request for modifying the friend name list sent by the first terminal to which the first user belongs; 修改单元,用于根据所述修改请求中的修改类型,对所述第一用户的好友名称列表进行相应的修改;a modification unit, configured to modify the friend name list of the first user accordingly according to the modification type in the modification request; 第二发送单元,用于将修改后的好友名称列表发送给所述第一终端。The second sending unit is configured to send the modified friend name list to the first terminal. 21.一种基于短信的即时通讯装置,其特征在于,包括:21. An instant messaging device based on short messages, comprising: 判断单元,用于判断接收到的短消息中是否携带会话ID代码;所述短消息为已注册的第一用户所属的第一终端发送的;所述会话ID代码表征第一用户标识和第二用户标识之间唯一的会话标识;Judging unit, for judging whether the received short message carries a session ID code; the short message is sent by the first terminal to which the registered first user belongs; the session ID code represents the first user identifier and the second Unique session ID between user IDs; 第一发送单元,用于如果所述短消息中携带会话ID代码,根据会话ID代码对应的第二用户标识获取所述第二用户的当前状态信息,并发送携带所述第二用户的当前状态信息的短消息;A first sending unit, configured to obtain the current state information of the second user according to the second user identifier corresponding to the session ID code if the short message carries the session ID code, and send the current state information carrying the second user short messages of information; 第二发送单元,用于如果所述短消息中未携带会话ID代码,则根据所述短消息中的会话内容,确定所述第二用户的名称信息;并发送携带与所述第二用户的名称信息对应的第二用户标识和获取的所述第二用户的当前状态信息的短消息。a second sending unit, configured to determine the name information of the second user according to the session content in the short message if the session ID code is not carried in the short message; The second user identifier corresponding to the name information and the acquired short message of the current state information of the second user. 22.如权利要求21所述的装置,其特征在于,所述第二发送单元,具体用于在所述会话内容中提取表示用户名称的关键词;将提取到的关键词与所述第一用户的好友名称列表进行匹配,所述第一用户的好友名称列表为从预存的用户好友名称列表中查找到的与所述短消息中的第一用户标识对应的好友名称列表;将与提取到的关键词匹配得到的好友名称确定为所述第一终端请求会话的第二用户的名称信息。22. The apparatus according to claim 21, wherein the second sending unit is specifically configured to extract a keyword representing a user name in the conversation content; and compare the extracted keyword with the first The user's friend name list is matched, and the first user's friend name list is the friend name list corresponding to the first user ID in the short message found from the pre-stored user friend name list; The buddy name obtained by matching the keywords of , is determined as the name information of the second user who requests the session from the first terminal. 23.如权利要求22所述的装置,其特征在于,所述第二发送单元,具体用于当匹配得到的好友名称与所述关键词是完全匹配时,将与所述关键词完全匹配的好友名称确定为所述第一终端请求会话的第二用户的名称信息。23. The apparatus according to claim 22, wherein the second sending unit is specifically configured to, when the friend name obtained by matching completely matches the keyword, send the information that completely matches the keyword. The friend name is determined as the name information of the second user who requests the session from the first terminal. 24.如权利要求22所述的装置,其特征在于,所述第二发送单元,具体用于当匹配得到的好友名称与所述关键词是部分匹配时,将与所述关键词部分匹配的好友名称发送给所述第一终端;接收所述第一终端返回的好友名称选择信息;将所述好友名称选择信息中的好友名称确定为所述第一终端请求会话的第二用户的名称信息。24. The apparatus according to claim 22, wherein the second sending unit is specifically configured to, when the friend name obtained by matching partially matches the keyword, send the information that partially matches the keyword. sending the friend name to the first terminal; receiving the friend name selection information returned by the first terminal; determining the friend name in the friend name selection information as the name information of the second user requesting the session by the first terminal . 25.一种基于短信的即时通讯系统,其特征在于,包括:短信收发模块、自然语言处理模块和会话控制模块,其中:25. An instant messaging system based on short messages, comprising: a short message sending and receiving module, a natural language processing module and a session control module, wherein: 所述短信收发模块,用于接收已注册的第一用户所属的第一终端发送的短消息;将所述短消息转发给所述自然语言处理模块;根据所述会话控制模块发送的会话ID代码向所述第二用户所属的第二终端发送所述短消息;The short message sending and receiving module is used for receiving short messages sent by the first terminal to which the registered first user belongs; forwarding the short messages to the natural language processing module; according to the session ID code sent by the session control module sending the short message to the second terminal to which the second user belongs; 所述自然语言处理模块,用于判断所述短消息中是否携带会话ID代码;如果所述短消息中携带会话ID代码,根据所述会话ID代码对应的第二用户标识获取所述第二用户的当前状态信息,并将携带所述第二用户的当前状态信息的短消息发送给所述会话控制模块;如果所述短消息中未携带会话ID代码,根据所述短消息中的会话内容,确定所述第一终端请求会话的第二用户的名称信息;从用户状态表中查找所述第二用户的当前状态信息;将携带与所述第二用户的名称信息对应的第二用户标识和当前状态信息的短消息转发给所述会话控制模块;The natural language processing module is used to judge whether the short message carries the session ID code; if the short message carries the session ID code, obtain the second user according to the second user identifier corresponding to the session ID code current state information of the second user, and send a short message carrying the current state information of the second user to the session control module; if the short message does not carry the session ID code, according to the session content in the short message, Determine the name information of the second user who requests the session by the first terminal; look up the current state information of the second user from the user state table; carry the second user identifier and the name information corresponding to the second user. The short message of the current state information is forwarded to the session control module; 所述会话控制模块,用于当确定接收到的短消息中携带所述会话ID代码时,根据所述短消息中携带的所述第二用户的当前状态信息,将所述短消息发送给所述短信收发模块;当确定接收到的短消息中未携带所述会话ID代码时,根据所述短消息中携带的第一用户标识和第二用户标识,生成所述第一用户和所述第二用户的会话ID代码;并根据所述短消息中携带的所述第二用户的当前状态信息,将携带所述所述会话ID代码的短消息发送给所述短信收发模块。The session control module is configured to, when it is determined that the received short message carries the session ID code, send the short message to the user according to the current state information of the second user carried in the short message. The short message sending and receiving module; when it is determined that the session ID code is not carried in the received short message, generate the first user and the second user ID according to the first user identification and the second user identification carried in the short message. The session ID code of the second user; and according to the current state information of the second user carried in the short message, the short message carrying the session ID code is sent to the short message sending and receiving module. 26.如权利要求25所述的系统,其特征在于,还包括:通讯录管理模块,其中:26. The system of claim 25, further comprising: an address book management module, wherein: 所述通讯录管理模块,用于保存各用户的用户标识和好友名称之间的对应关系;The address book management module is used to save the corresponding relationship between the user ID of each user and the friend name; 所述自然语言处理模块,具体用于在所述会话内容中提取表示用户名称的关键词;从所述通讯录管理模块中保存的各用户的好友名称列表中,查找与所述短消息中的第一用户标识对应的的好友名称列表;将提取到的关键词与所述第一用户的好友名称列表进行匹配;将与提取到的关键词匹配得到的好友名称确定为所述第一终端请求会话的第二用户的名称信息。The natural language processing module is specifically configured to extract keywords representing user names in the conversation content; from the list of friends' names of each user saved in the address book management module, search for a keyword related to the short message. A list of friend names corresponding to the first user identifier; matching the extracted keywords with the list of friend names of the first user; determining a friend name obtained by matching the extracted keywords as the first terminal request Name information for the second user of the session. 27.如权利要求25所述的系统,其特征在于,所述会话控制模块,具体用于当所述第二用户的当前状态为在线时,保存并发送所述第一用户所述的第一终端待发送给第二用户所属的第二终端的短消息;27. The system according to claim 25, wherein the session control module is specifically configured to save and send the first user's first information when the second user's current status is online. A short message to be sent by the terminal to the second terminal to which the second user belongs; 当所述第二用户的当前状态为离线时,保存所述第一用户所述的第一终端待发送给第二用户所属的第二终端的短消息;在接收到所述第二终端发送的查看离线消息请求信息后,将保存的短消息发送给所述第二终端。When the current status of the second user is offline, save the short message to be sent by the first terminal of the first user to the second terminal to which the second user belongs; after receiving the short message sent by the second terminal After viewing the offline message request information, send the saved short message to the second terminal. 28.如权利要求25所述的系统,其特征在于,所述自然语言处理模块,具体用于接收所述短信收发模块转发的所述第一用户所属的第一终端发送的对好友名称列表的修改请求;根据所述修改请求中的修改类型,对所述通讯录模块中的所述第一用户的好友名称列表进行相应的修改;将修改后的好友名称列表通过所述短信收发模块发送给所述第一终端。28. The system according to claim 25, wherein the natural language processing module is specifically configured to receive a message on the friend name list sent by the first terminal to which the first user belongs and forwarded by the short message sending and receiving module. modification request; according to the modification type in the modification request, make corresponding modification to the friend name list of the first user in the address book module; send the modified friend name list to the SMS sending and receiving module to the first terminal.
CN201410705320.7A 2014-11-27 2014-11-27 A kind of instant messaging method, device and system based on short message Active CN105704686B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410705320.7A CN105704686B (en) 2014-11-27 2014-11-27 A kind of instant messaging method, device and system based on short message

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410705320.7A CN105704686B (en) 2014-11-27 2014-11-27 A kind of instant messaging method, device and system based on short message

Publications (2)

Publication Number Publication Date
CN105704686A CN105704686A (en) 2016-06-22
CN105704686B true CN105704686B (en) 2019-02-19

Family

ID=56230289

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410705320.7A Active CN105704686B (en) 2014-11-27 2014-11-27 A kind of instant messaging method, device and system based on short message

Country Status (1)

Country Link
CN (1) CN105704686B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113259862B (en) * 2021-06-23 2021-11-09 易纳购科技(北京)有限公司 Short message centralized forwarding system and method
CN117135258A (en) * 2022-05-20 2023-11-28 华为技术有限公司 Method and terminal for displaying short message

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101039284A (en) * 2006-03-16 2007-09-19 腾讯科技(深圳)有限公司 Method for transmitting instant message to group
CN101202717A (en) * 2007-12-11 2008-06-18 腾讯科技(深圳)有限公司 Method for searching instant communication user and instant communication server
CN101611398A (en) * 2007-02-16 2009-12-23 微软公司 The context-sensitive searches and the function that are used for instant messaging applications
CN101753476A (en) * 2008-12-04 2010-06-23 中兴通讯股份有限公司 System and method for rapidly positioning contact in instant communication
CN102238495A (en) * 2010-04-20 2011-11-09 上海博路信息技术有限公司 System for intercommunicating short messages and instant messages (IM)
CN103078781A (en) * 2011-10-25 2013-05-01 国际商业机器公司 Method for instant messaging system and instant messaging system
CN103425649A (en) * 2012-05-15 2013-12-04 腾讯科技(深圳)有限公司 Method and device for adding friend information
CN103684988A (en) * 2013-11-22 2014-03-26 深圳市迈桥科技有限公司 Cross-mobile-terminal message pushing method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8943147B2 (en) * 2010-12-15 2015-01-27 International Business Machines Corporation Sending a chat context to a recipient

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101039284A (en) * 2006-03-16 2007-09-19 腾讯科技(深圳)有限公司 Method for transmitting instant message to group
CN101611398A (en) * 2007-02-16 2009-12-23 微软公司 The context-sensitive searches and the function that are used for instant messaging applications
CN101202717A (en) * 2007-12-11 2008-06-18 腾讯科技(深圳)有限公司 Method for searching instant communication user and instant communication server
CN101753476A (en) * 2008-12-04 2010-06-23 中兴通讯股份有限公司 System and method for rapidly positioning contact in instant communication
CN102238495A (en) * 2010-04-20 2011-11-09 上海博路信息技术有限公司 System for intercommunicating short messages and instant messages (IM)
CN103078781A (en) * 2011-10-25 2013-05-01 国际商业机器公司 Method for instant messaging system and instant messaging system
CN103425649A (en) * 2012-05-15 2013-12-04 腾讯科技(深圳)有限公司 Method and device for adding friend information
CN103684988A (en) * 2013-11-22 2014-03-26 深圳市迈桥科技有限公司 Cross-mobile-terminal message pushing method and device

Also Published As

Publication number Publication date
CN105704686A (en) 2016-06-22

Similar Documents

Publication Publication Date Title
US7016307B2 (en) Method and system for finding related nodes in a social network
KR101723961B1 (en) Methods and apparatuses, program and recording medium for building tag library and searching for user
KR101667946B1 (en) Determining additional information associated with geographic location information
CN105391622B (en) Share the method and system of resource in instant messaging or social networking application
KR101577920B1 (en) Location-based group generation method, apparatus and system
CN108452526B (en) Game fault reason query method and device, storage medium and electronic device
CN103973461A (en) Notification message pushing method and message server
CN103326929B (en) Method and device for transmitting messages
CN105530175A (en) Message processing method, device and system
WO2015085917A1 (en) Method, apparatus and system for processing information
CN110912805B (en) Synchronization method, terminal, server and system for message reading status
WO2014194647A1 (en) Data exchange method, device, and system for group communication
CN104750718A (en) Data information search method and data information search device
CN105704686B (en) A kind of instant messaging method, device and system based on short message
CN113285994A (en) Message sending method, device, server and storage medium
CN105656769B (en) Business data processing method, device and system
KR101545663B1 (en) Device, system and method for changing multi-user relationship chain
CN109525629A (en) Information-pushing method, device and storage medium
US9742776B2 (en) Contact identification validation via social invitation
KR100845327B1 (en) Communication terminal for creating a buddy group, a buddy group management device and a method thereof
CN104639422A (en) Network game activating method and device based on instant messaging system
CN104158728A (en) Group adding method for social network site, group adding system and server
CN105471593B (en) Group conversation method, device and system
CN103745009B (en) Information processing method and messaging device
WO2020124444A1 (en) Information processing method and related apparatus

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant