[go: up one dir, main page]

HK1177086A1 - Method, system and mobile terminal for implementing instant communication - Google Patents

Method, system and mobile terminal for implementing instant communication Download PDF

Info

Publication number
HK1177086A1
HK1177086A1 HK13104401.0A HK13104401A HK1177086A1 HK 1177086 A1 HK1177086 A1 HK 1177086A1 HK 13104401 A HK13104401 A HK 13104401A HK 1177086 A1 HK1177086 A1 HK 1177086A1
Authority
HK
Hong Kong
Prior art keywords
mobile terminal
account
server
information
sending
Prior art date
Application number
HK13104401.0A
Other languages
Chinese (zh)
Other versions
HK1177086B (en
Inventor
黎昀
符小寶
符小宝
王作書
王作书
楊瀟
杨潇
安勇
王敏
張春暉
张春晖
Original Assignee
阿里巴巴集團控股有限公司 號郵箱
阿里巴巴集团控股有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 阿里巴巴集團控股有限公司 號郵箱, 阿里巴巴集团控股有限公司 filed Critical 阿里巴巴集團控股有限公司 號郵箱
Publication of HK1177086A1 publication Critical patent/HK1177086A1/en
Publication of HK1177086B publication Critical patent/HK1177086B/en

Links

Landscapes

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

Abstract

The invention provides a method, a system and mobile terminals for realizing instant messaging. The method includes that a first mobile terminal receives a command for sending information, by the aid of a corresponding relation provided by an IM (instant messaging) server, the first mobile terminal and a second mobile terminal are judged to both have corresponding IM accounts, and the first mobile terminal judges that when the IM accounts are online, the IM server constitutes an IM message and sends the IM message to a corresponding IM account of the second mobile terminal, the IM account enables corresponding mobile terminals to establish a network connection with the IM server, by the aid of the connection, a registration request with a self identification is sent to the IM server, the corresponding relation of the mobile terminals determined by the IM server is the corresponding relation of the mobile terminal identifications and the IM accounts stored in the IM server. By the aid of the method, the system and the mobile terminals, a user does not need to log in an independent client-side, and also does not need to store an independent IM contact person list, and accordingly operation steps are reduced, and device resource is saved.

Description

Method, system and mobile terminal for realizing instant messaging
Technical Field
The present application relates to the field of communications technologies, and in particular, to a method, a system, and a mobile terminal for implementing instant messaging.
Background
With the development of computers and networks, Instant Messenger (IM) has become a communication tool frequently used in daily life. Moreover, with the development of handheld terminal computing, instant messaging has not only been limited to computer applications, but also widely used in mobile phone terminals and tablet personal computer (PAD).
At present, commonly used IM software includes QQ, wang, feign, and the like, and the application process of any software client is basically the same, and is roughly as follows:
firstly, logging in an IM client and entering an IM interface; e.g., enter QQ interface or Feixin interface;
then, opening a friend list, and selecting a friend needing communication, namely a called party, from the friend list;
and finally, carrying out IM communication with the selected friend.
Therefore, in the existing method for realizing instant messaging, a corresponding client must be logged in, and a friend is selected from a friend list maintained by the client, so that the client can communicate with the selected friend. Because IM communication can be carried out only after logging in a corresponding IM client, the operation is complicated; moreover, each IM client uses its own contact list, such as a buddy list, and there is no relationship between the lists used by each IM client, so that the lists supported by each IM client need to be maintained separately, which occupies resources and is inconvenient to apply.
Disclosure of Invention
The technical problem to be solved by the application is to provide a retrieval method, so as to solve the problems that in the prior art, an IM client needs to be logged in, the operation is complex, a communication list needs to be maintained independently, and the equipment resources are occupied.
The application also provides a system and a mobile terminal for realizing instant messaging, which are used for ensuring the realization and application of the method in practice.
In order to solve the above problem, the present application discloses a method for implementing instant messaging, where the method includes:
after receiving the information sending instruction, the first mobile terminal judges whether a first IM account corresponding to the first mobile terminal exists or not by using the corresponding relation provided by the IM server, extracts a second mobile terminal identifier from the information to be sent, judges whether a second IM account corresponding to the second mobile terminal exists or not, and judges whether the first IM account and the second IM account are in an online state or not;
if so, the first mobile terminal extracts information content from the information to be sent, sends the information content and the information of the first IM account and the second IM account to an IM server through a network, constructs an IM message comprising the information content by the IM server, and sends the IM message to a second IM account corresponding to the second mobile terminal;
the IM account is formed by establishing network connection between a mobile terminal and an IM server, sending a registration request carrying an identification of the mobile terminal to the IM server by using the network connection, and determining the mobile terminal by the IM server, wherein the corresponding relation is the corresponding relation between the identification of the mobile terminal and the IM account stored by the IM server.
On the other hand, the application discloses a system for realizing instant messaging, which comprises an IM server and at least two mobile terminals: a first mobile terminal and a second mobile terminal, wherein,
the IM server is used for determining an IM account corresponding to the mobile terminal after receiving a registration request carrying a self identifier of the mobile terminal, and storing the corresponding relation between the mobile terminal identifier and the IM account and the registration information of the IM account state; after receiving information which is sent by a first mobile terminal and comprises information content and information of a first IM account and a second IM account, constructing an IM message comprising the information content, and sending the IM message to the second IM account corresponding to the second mobile terminal;
the mobile terminal is used for establishing network connection with the IM server and sending a registration request carrying the identification of the mobile terminal to the IM server by using the connection;
the first mobile terminal is used for receiving an information sending instruction, judging that a first IM account corresponding to the first mobile terminal exists by utilizing a corresponding relation provided by an IM server, extracting a second mobile terminal identification from information to be sent, judging that a second IM account corresponding to the second mobile terminal exists, extracting information content from the information to be sent when the first IM account and the second IM account are both in an online state, and sending the information content and the information of the first IM account and the second IM account to the IM server through a network.
In another aspect, the present application further provides a mobile terminal, including:
a registration request sending unit, configured to establish a network connection with an IM server, and send a registration request carrying a self identifier to the IM server by using the network connection, where the registration request is used to instruct the IM server to determine an IM account corresponding to the mobile terminal for the mobile terminal, and store a corresponding relationship between the mobile terminal identifier and the IM account;
an account judging unit, configured to judge whether there is a first IM account corresponding to the account judging unit by using the correspondence provided by the IM server, extract a second mobile terminal identifier from the information to be sent, judge whether there is a second IM account corresponding to the second mobile terminal, and judge whether the first IM account and the second IM account are in an online state;
and the information sending unit is used for extracting information content from the information to be sent, sending the information content and the information of the first IM account and the second IM account to the IM server through the network, constructing an IM message comprising the information content by the IM server, and sending the IM message to the second IM account.
Compared with the prior art, the method has the following advantages:
in the application, the mobile terminal registers and acquires the corresponding IM account through the network connection with the IM server, the IM server stores the corresponding relationship between the mobile terminal identification and the IM account, when the first mobile terminal receives the information sending instruction, the first mobile terminal utilizes the corresponding relationship provided by the IM server to judge that the first mobile terminal and the second mobile terminal both correspond to the IM account, and when the IM account is judged to be online, the IM server constructs an IM message comprising the information content in an IM sending mode, the IM message is sent to the IM account corresponding to the second mobile terminal through the network connection, the second mobile terminal can read the information content from the corresponding IM account, the method for realizing instant communication does not need to log in a client terminal which is separately arranged, and does not need to store a separate IM contact list through the binding of the mobile terminal identification and the IM account, thereby reducing the operation steps and saving the equipment resources.
Of course, it is not necessary for any product to achieve all of the above-described advantages at the same time for the practice of the present application.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive labor.
Fig. 1 is a flowchart of a first embodiment of a method for implementing instant messaging according to the present application;
fig. 2 is a flowchart of a second embodiment of a method for implementing instant messaging according to the present application;
fig. 3 is a schematic structural diagram of a system for implementing instant messaging according to the present application;
fig. 4 is a schematic structural diagram of a first embodiment of a mobile terminal according to the present application;
fig. 5 is a schematic structural diagram of a second embodiment of a mobile terminal according to the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments that can be derived from the embodiments given herein by a person of ordinary skill in the art are intended to be within the scope of the present disclosure.
The application is operational with numerous general purpose or special purpose computing device environments or configurations. For example: personal computers, server computers, hand-held or portable devices, tablet-type devices, multi-processor apparatus, distributed computing environments that include any of the above devices or equipment, and the like.
The application may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. The application may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
One of the main ideas of the present application may include that when a first mobile terminal sends information to a second mobile terminal, the first mobile terminal determines whether there is a first IM account corresponding to itself by using the correspondence provided by an IM (Instant Messaging) server, extracts a second mobile terminal identifier from information to be sent, determines whether there is a second IM account corresponding to the second mobile terminal, and determines whether both the first IM account and the second IM account are in an online state; the IM account is formed by establishing network connection between a mobile terminal and an IM server, sending a registration request carrying a self identifier to the IM server by using the network connection, and determining the mobile terminal by the IM server, wherein the corresponding relation is the corresponding relation between the mobile terminal identifier and the IM account stored in the IM server. If the judgment result is yes, the first mobile terminal extracts the information content from the information to be sent, and sends the information content and the information of the first IM account and the second IM account to the IM server through the network, the IM server constructs an IM message comprising the information content, and sends the IM message to a second IM account corresponding to the second mobile terminal, so that the second mobile terminal can extract the IM message from the second IM account corresponding to the second mobile terminal, and acquire the information content in the IM message. According to the embodiment of the application, the IM client which is independently arranged in the mobile terminal does not need to be logged in, and the IM account corresponds to the mobile terminal identification, so that the IM contact list does not need to be independently maintained, the operation is simple, the equipment resources are saved, the information is sent in an IM sending mode, and the communication cost can be saved.
Embodiments of the present application are described in detail below with reference to specific examples.
Referring to fig. 1, which shows a flowchart of a first embodiment of a method for implementing instant messaging according to the present application, the method may include the following steps:
step 101: the mobile terminal establishes network connection with an Instant Messaging (IM) server, and sends a registration request carrying a self identifier to the IM server by using the connection.
In the embodiment of the present application, in order to implement instant messaging, a mobile terminal needs to establish a network connection with an IM server first, and send a registration request to the IM server, where the registration request needs to carry a mobile terminal identifier, and the mobile terminal identifier is unique, and the identifier may be a communication number of the mobile terminal, for example, when the mobile terminal is a mobile phone, the identifier is a mobile phone number.
Step 102: and the IM server determines an IM account corresponding to the mobile terminal for the mobile terminal, and stores the corresponding relation between the mobile terminal identification and the IM account.
When the IM server receives the registration request of the mobile terminal, an IM account is determined for the mobile terminal, the corresponding relation between the mobile terminal identification and the IM account is determined, each mobile terminal identification corresponds to one IM account, the IM server stores the corresponding relation between the mobile terminal identification and the IM account, and when the mobile terminal logs in or logs out of the IM server through the IM account, the IM server can also record the state information of the mobile terminal, such as offline or online and the like. The correspondence stored by the IM server may be specifically stored in a list or a database.
It should be noted that the operations in step 101 and step 102 are not executed every time, and after the IM account is registered by the mobile terminal, the mobile terminal may automatically log in to the IM server when the mobile terminal is powered on, or may log in to the IM server when a login request of a user is received.
Step 103: when the first mobile terminal receives the information sending instruction, the corresponding relation provided by the IM server is used for judging whether a first IM account corresponding to the first mobile terminal exists or not, a second mobile terminal identification is extracted from the information to be sent, whether a second IM account corresponding to the second mobile terminal exists or not is judged, and if yes, the step 104 is carried out.
In this embodiment, the mobile terminal applied by the user is set as the first mobile terminal, and when receiving an information sending instruction of the user and sending information to the receiving user, in this embodiment, the mobile terminal applied by the receiving user is set as the second mobile terminal, and the first mobile terminal can extract the identifier of the second mobile terminal from the information to be sent.
The content of the information to be transmitted can be character information, image information, sound information or video information and the like.
In this embodiment, the IM account corresponding to the first mobile terminal is set as a first IM account, and the IM account corresponding to the second mobile terminal is set as a second IM account.
The corresponding relationship provided by the IM server may be pushed to the first mobile terminal by the IM server, or when the first mobile terminal sends a corresponding relationship request to the IM server, the IM server sends the corresponding relationship to the mobile terminal.
The IM server pushes the corresponding relationship to the mobile terminal, which may be triggered at regular time or pushed when the stored corresponding relationship changes. The first mobile terminal can search whether the second mobile terminal has a corresponding first IM account according to the corresponding relation and the IM account state information pushed by the IM server and the mobile terminal identification of the first mobile terminal, and search whether the second mobile terminal has a second IM account according to the second mobile terminal identification.
The first mobile terminal sends the corresponding relation request to the IM server, where the request may be sent each time the first mobile terminal completes startup, or the request may be sent at regular time, or the request may be sent before sending the information to be sent. The IM server can send the corresponding relation to the first mobile terminal after receiving the request.
In addition, the sent correspondence request may further include a plurality of mobile terminal identifiers, where the plurality of mobile terminal identifiers may include an identifier of the first mobile terminal and a plurality of other mobile terminal identifiers stored in the first mobile terminal, for example, all mobile phone numbers stored in an address list of the mobile phone; or may simply include the identities of the first and second mobile terminals, e.g., the cell phone numbers of the sender and receiver. The IM server searches whether the corresponding IM accounts exist in the mobile terminal identifications sent by the first mobile terminal according to the stored corresponding relation, and feeds back the corresponding relation corresponding to the mobile terminal identifications or the information that the corresponding relation fails to obtain to the first mobile terminal, so that the first mobile terminal can know whether the first mobile terminal and the second mobile terminal have the corresponding IM accounts.
As another embodiment, the first mobile terminal may determine, by using the correspondence provided by the IM server in advance, which mobile terminals stored in the first mobile terminal have IM accounts, and then set an IM flag to a mobile terminal identifier corresponding to the IM account, and the first mobile terminal determines whether there is a second IM account corresponding to the second mobile terminal, which may specifically be determine whether the identifier of the second mobile terminal has the IM flag.
The determination operations performed in step 103 on the first mobile terminal and the second mobile terminal may be performed simultaneously or separately. If a result in the judging process is negative, if the first mobile terminal does not have a corresponding IM account, or the second mobile terminal does not have a corresponding IM account, the judgment can be finished.
Step 104: and judging whether the first IM account and the second IM account are in an online state, if so, entering a step 105.
After the first mobile terminal is judged to have a first IM account and the second mobile terminal has a second IM account, the first mobile terminal needs to judge whether the first IM account and the second IM account are both in an online state.
Judging whether the first IM account and the second IM account are in an online state or not, wherein the first IM account and the second IM account can be judged by the first mobile terminal inquiring the account state information from an IM server and responding according to the state information of the IM server; or the corresponding relationship provided by the IM server may carry the status information of the account, and the first mobile terminal may directly use the status information for determination.
Step 105: the first mobile terminal extracts information content from the information to be sent and sends the information content and the information of the first IM account and the second IM account to the IM server through the network.
And when the first mobile terminal and the second mobile terminal are judged to be corresponding to the IM accounts and the corresponding first IM account and the second IM account are online, the first mobile terminal can be connected with the IM server through the network to send the IM message. Specifically, the first mobile terminal extracts information content from the information to be sent, and then sends the information content and the information of the first IM account and the second IM account to the IM server through the network.
Step 106: and the IM server constructs an IM message comprising the information content and sends the IM message to a second IM account corresponding to the second mobile terminal.
Optionally, the IM server may further add a confirmation step, that is, determine that the account of the sender of the IM message is the first IM account, and the account of the receiver is the second IM account.
And the IM server packages the information content to form an IM message, and determines that the account of the sender of the IM message is a first IM account and the account of the receiver of the IM message is a second IM account, namely the IM message can be sent to the second IM account corresponding to the second mobile terminal.
Therefore, the second mobile terminal can extract the IM message from the corresponding second IM account through the network connection with the IM server, and acquire the information content in the IM message.
The instant messaging method in the embodiment of the application can adopt a cloud computing-based method, the IM server is a cloud server, and the mobile terminal is cloud equipment. The mobile terminal can realize network connection with the IM server without independently setting and maintaining the IM client.
In this embodiment, the mobile terminal registers and acquires an IM account corresponding to the mobile terminal through a network connection with the IM server, the IM server stores a corresponding relationship between the mobile terminal identifier and the IM account, when the first mobile terminal sends information to the second mobile terminal, the first mobile terminal and the second mobile terminal are determined to have corresponding IM accounts by using the corresponding relationship provided by the IM server, and when the IM accounts are determined to be online, the IM server constructs an IM message including information content in an IM sending manner, and sends the IM message to the IM account corresponding to the second mobile terminal through the network connection, so that the second mobile terminal can read the information content from the corresponding IM account, thereby implementing instant messaging. And a separate IM contact list does not need to be saved, thereby saving the equipment resources.
Referring to fig. 2, a flowchart of a second embodiment of a method for implementing instant messaging according to the present application is shown, where the method may include:
step 201: the mobile terminal establishes network connection with the IM server, and sends a registration request carrying the identification of the mobile terminal to the IM server by using the connection.
Step 202: and the IM server determines an IM account corresponding to the mobile terminal for the mobile terminal, and stores the corresponding relation between the mobile terminal identification and the IM account state information.
The operations of step 201 and step 202 are the same as those of the first embodiment of the method, and are not described herein again.
Step 203: when receiving the information sending instruction, the first mobile terminal judges whether a first IM account corresponding to the first mobile terminal exists by using the corresponding relation provided by the IM server, if so, the step 204 is executed, and if not, the step 209 is executed.
The corresponding relation may be that the IM server triggers and pushes to the first mobile terminal at regular time, or pushes to the first mobile terminal when the stored corresponding relation changes; it may also be that the IM server sends the stored correspondence to the first mobile terminal when receiving the correspondence request sent by the first mobile terminal. The correspondence request may be sent when the first mobile terminal is started up and started up, or may be sent at a fixed time, or sent before the information to be sent is sent.
In addition, the corresponding relationship may also carry status information of the IM account, including online or offline status information.
Step 204: extracting the identifier of the second mobile terminal from the information to be sent, determining whether the second mobile terminal has a corresponding second IM account by using the corresponding relationship provided by the IM server, if so, entering step 205, and if not, entering step 209.
It should be noted that the operations of step 203 and step 204 are not limited to the order described in the embodiment of the present application, and the operation of step 204 may be executed first, and the operation of step 203 may be executed, or may be executed simultaneously.
In addition, the determination process of the second mobile terminal is not limited to that when the first mobile terminal sends information to the second mobile terminal, it may also perform determination in advance, and when the second mobile terminal has an IM account, set a corresponding IM flag for the second mobile terminal identifier and store the IM flag in the first mobile terminal, and when the first mobile terminal extracts the second mobile terminal identifier, directly determine whether the second mobile terminal identifier has the IM flag, if so, directly execute the operation of step 205.
Step 205: and judging whether the first IM account and the second IM account are in an online state, if so, entering a step 206, and if not, entering a step 209.
Step 206: the first mobile terminal extracts information content from the information to be sent and sends the information content and the information of the first IM account and the second IM account to the IM server through the network.
Step 207: and the IM server constructs an IM message comprising the information content, determines that the account of the sender of the IM message is a first IM account and the account of the receiver of the IM message is a second IM account, and sends the IM message to the second IM account corresponding to the second mobile terminal.
Step 208: and the second mobile terminal extracts the IM message from the corresponding IM account and acquires the information content in the IM message.
Step 209: and the first mobile terminal sends the information content to be sent to the second mobile terminal according to the second mobile terminal identification.
And if the information to be sent is a short message and the mobile terminal identification is a mobile phone communication number, sending the short message to a second mobile terminal according to a short message sending mode.
The content of the short message may be text information, picture information, sound information or video information, and the short message is sent to a second mobile terminal applied by an information receiver in the short message sending mode, specifically, through a short message service center.
Or, if the information to be sent is an email and the mobile terminal identifier is an email box, sending the email to the second mobile terminal according to the email sending mode.
The mail sending mode is to send the e-mail to the second mobile terminal which the receiver should have through the mail server.
In the embodiment of the application, when the first mobile terminal and the second mobile terminal both meet the condition that the corresponding IM account is available and the account is online, the information content can be sent to the account corresponding to the second mobile terminal through the network connection with the IM server in an IM sending mode, the second mobile terminal can obtain the information content, and when at least one of the first mobile terminal and the second mobile terminal does not meet the condition, the information content can still be sent to the second mobile terminal in a conventional sending mode. Through the IM sending mode, only network flow needs to be consumed, so the embodiment of the application can save communication cost, particularly when the mobile terminal is a mobile phone, and when a user sends a short message, the mobile phone operates according to the short message sending mode, and can automatically judge whether the information content can be transmitted to a receiver in the IM sending mode, so the communication cost of the short message can be saved.
In this embodiment, the mobile terminal registers and acquires a corresponding IM account through a network connection with the IM server, the IM server stores a corresponding relationship between the mobile terminal identifier and the IM account and status information of the IM account, when the first mobile terminal sends information to the second mobile terminal, the first mobile terminal and the second mobile terminal are determined to both correspond to the IM account by using the corresponding relationship provided by the IM server and the status information of the IM account, and when the IM accounts are online, the IM server constructs an IM message including information content by an IM sending method, and sends the IM message to the IM account corresponding to the second mobile terminal through the network connection, and the second mobile terminal can read the information content from the corresponding IM account, thereby implementing instant messaging, the instant messaging method of this embodiment does not need to log in a client separately set and binds the mobile terminal identifier and the IM account, and a separate IM contact list does not need to be saved, so that the equipment resources are saved, and the communication cost is saved by realizing the information transmission in an IM sending mode. When the instant messaging can not be realized, the information can be sent in a conventional mode, and the accurate transmission of the information is ensured.
The present application further provides a system for implementing instant messaging, referring to fig. 3, which shows a schematic structural diagram of the system, and the system includes an IM server 301 and at least two mobile terminals: a first mobile terminal 302 and a second mobile terminal 303.
The IM server 301: the mobile terminal IM account management system comprises a mobile terminal IM server and a mobile terminal IM account management server, wherein the mobile terminal IM account management server is used for determining an IM account corresponding to the mobile terminal after receiving a registration request of the mobile terminal, and storing registration information comprising a corresponding relation between a mobile terminal identification and the IM account and an IM account state; receiving a first mobile terminal: after the information including the information content and the information of the first IM account and the second IM account is sent by 302, an IM message including the information content is constructed, and the message is sent to a second IM account corresponding to the second mobile terminal.
The mobile terminal is used for establishing network connection with the IM server 301, and sending a registration request carrying the identification of the mobile terminal to the IM server 301 by using the network connection;
the first mobile terminal 302 is configured to receive an information sending instruction, determine that a first IM account corresponding to the first mobile terminal 302 exists by using a corresponding relationship provided by the IM server 302, extract a second mobile terminal identifier from information to be sent, determine that a second IM account corresponding to the second mobile terminal 303 exists, extract information content from the information to be sent when it is determined that the first IM account and the second IM account are both in an online state, and send the information content and information of the first IM account and the second IM account to the IM server through a network.
The second mobile terminal 303 may extract the IM message from the corresponding second IM account, and obtain the information content in the IM message.
The corresponding relationship provided by the IM server may be pushed to the first mobile terminal by the IM server, or when the first mobile terminal sends a corresponding relationship request to the IM server, the IM server sends the corresponding relationship to the first mobile terminal.
The IM server pushes the corresponding relation to the mobile terminal, and the pushing may be triggered at regular time or pushed when the saved corresponding relation and the IM account status information change. The first mobile terminal can search whether the corresponding IM account exists according to the mobile terminal identification of the first mobile terminal according to the corresponding relation pushed by the IM server, and search whether the IM account exists in the second mobile terminal according to the second mobile terminal identification.
The first mobile terminal sends the corresponding relation request to the IM server, where the request may be sent each time the first mobile terminal is powered on, or the request may be sent at regular time, or the request may be sent before the information to be sent is sent. The IM server can send the stored corresponding relation to the first mobile terminal after receiving the request.
In addition, the sent correspondence request may further include a plurality of mobile terminal identifiers, where the plurality of mobile terminal identifiers may include an identifier of the first mobile terminal and a plurality of other mobile terminal identifiers stored in the first mobile terminal, for example, all mobile phone numbers stored in an address list of the mobile phone; or may simply include the identities of the first and second mobile terminals, e.g., the cell phone numbers of the sender and receiver. The IM server searches whether the corresponding IM accounts exist in the mobile terminal identifications sent by the first mobile terminal according to the stored corresponding relation, and feeds back the corresponding relation corresponding to the mobile terminal identifications or the information that the corresponding relation fails to obtain to the first mobile terminal, so that the first mobile terminal can know whether the first mobile terminal and the second mobile terminal have the corresponding IM accounts.
The determining, by the first mobile terminal 302, whether there is an IM account corresponding to the second mobile terminal 303 may specifically be: and judging whether the second mobile terminal identifier is provided with an IM mark, wherein the IM mark is set for the second mobile terminal identifier when the first mobile terminal 302 judges that the second mobile terminal 303 has a corresponding second IM account by utilizing the corresponding relation provided by the IM server 301 in advance.
The system for implementing instant messaging provided by the embodiment can be a system based on cloud computing, the IM server is a cloud server, and the mobile terminal is a cloud device. The mobile terminal can realize network connection with the IM server without arranging an independent IM client, so that instant messaging is realized, and equipment resources are saved.
In addition, when the first mobile terminal 302 determines that its own identifier does not have a corresponding first IM account, or the second mobile terminal 303 does not have a corresponding second IM account, or the first IM account is not online, or the second IM account is not online, the first mobile terminal 302 is further configured to send the information content to be sent to the second mobile terminal 303 according to the second mobile terminal identifier.
And if the information to be sent is a short message and the mobile terminal identification is a mobile phone communication number, sending the information to be sent to a second mobile terminal according to a short message sending mode.
The content of the short message may be text information, picture information, sound information or video information, and the short message is sent to a second mobile terminal applied by an information receiver in the short message sending mode, specifically, through a short message service center.
Or, if the information to be sent is an email and the mobile terminal identifier is an email box, sending the email to the second mobile terminal according to the email sending mode.
The mail sending mode is to send the e-mail to the second mobile terminal which the receiver should have through the mail server.
It should be noted that, in the embodiment, at least two mobile terminals are described with a first mobile terminal as a sending terminal and a second mobile terminal as a receiving terminal, but the first mobile terminal and the second mobile terminal are not limited thereto, the first mobile terminal may also be a receiving terminal, the second mobile terminal may also be a sending terminal, and the system may further include other mobile terminals having functions of the first mobile terminal or the second mobile terminal to implement multi-party sending of information.
In this embodiment, the first mobile terminal and the second mobile terminal may respectively establish a network connection with an IM server, the IM server determines a first IM account and a second IM account corresponding to the first mobile terminal and the second mobile terminal, and stores a corresponding relationship between the mobile terminal identifier and the IM account, when the first mobile terminal sends information to the second mobile terminal, the second mobile terminal identifier is extracted from the sent information, and when the corresponding relationship provided by the IM server is used to determine that the first mobile terminal and the second mobile terminal both correspond to the IM account and the accounts are online, the first mobile terminal sends information content to the IM account of the second mobile terminal in an IM sending manner, and the second mobile terminal may extract information content from the IM account and display the information content to a recipient, so that the first mobile terminal does not need to set a separate IM client, instant messaging can be realized without maintaining separate IM contacts, so that equipment resources are saved, and communication cost in information transmission is saved.
The present application further provides a mobile terminal, referring to fig. 4, which shows a schematic structural diagram of a first embodiment of the mobile terminal, and the mobile terminal may include:
a registration request sending unit 402, configured to establish a network connection with an IM server, and send a registration request carrying a self identifier to the IM server by using the network connection, where the registration request is used to instruct the IM server to determine an IM account corresponding to the mobile terminal for the mobile terminal, and store a corresponding relationship between the mobile terminal identifier and the IM account.
An account determining unit 403, configured to determine, when receiving an information sending instruction, whether there is a first IM account corresponding to the first IM account using the correspondence provided by the IM server, extract a second mobile terminal identifier from the information to be sent, determine whether there is a second IM account corresponding to the second mobile terminal, and determine whether the first IM account and the second IM account are in an online state. .
An information sending unit 403, configured to extract information content from the information to be sent, send the information content and the information of the first IM account and the second IM account to an IM server through a network, construct, by the IM server, an IM message that includes the information content, and send the IM message to a second IM account corresponding to the second mobile terminal.
The second mobile terminal can extract the IM message from the corresponding IM account and acquire the information content in the IM message.
As another embodiment, referring to fig. 5, which is a schematic structural diagram of a second embodiment of the mobile terminal in the present application, when the determination result of the account determining unit 403 is negative, the mobile terminal further includes:
transmission section 404: and the information content to be sent is sent to the second mobile terminal according to the second mobile terminal identifier.
The judgment result of the account judgment unit 403 is no, that is, the second mobile terminal does not have a corresponding IM account, or the corresponding IM account is not online, or the second mobile terminal does not have a corresponding IM account, or the IM account of the second mobile terminal is not online.
In addition, the mobile terminal may further include:
a flag setting unit 405, configured to determine, by using the correspondence provided by the IM server, an IM flag set for the second mobile terminal identifier when the second mobile terminal identifier has a corresponding IM account.
The account determining unit 403 determines whether there is an IM account corresponding to the second mobile terminal identifier, specifically, whether an IM flag is set in the second mobile terminal identifier.
When the mobile terminal is a receiving terminal, it may further include:
and an information obtaining unit 406, configured to extract an IM message from the corresponding IM account, and obtain information content in the IM message.
The mobile terminal provided by the application can transmit the information to the receiver in an IM sending mode through network connection and interaction with the IM server, an independent IM client does not need to be arranged in the mobile terminal, and meanwhile, because the IM account corresponds to the mobile terminal identification, an IM contact person list does not need to be maintained independently, so that equipment resources are saved, the information is sent in the IM sending mode, and the communication cost is saved.
In the embodiment, the mobile terminal is taken as a mobile phone, the mobile terminal identifier is taken as a mobile phone number, and the short message sending request is taken as an example, the mobile phone number corresponding to the mobile terminal identifier is HA, the mobile phone number corresponding to the user application mobile phone a is HB, and the mobile phone number corresponding to the user application mobile phone B is HB. The mobile phone A stores an address book and stores a plurality of mobile phone numbers, including a mobile phone number HB corresponding to the mobile phone B. In practical application, the user may also set a corresponding user name for each mobile phone number. The method comprises the steps that a mobile phone A and a mobile phone B can be connected with an IM server through a network, and the IM server determines corresponding IM accounts for the mobile phone A and the mobile phone B respectively, namely an account IMA and an account IMB. The IM server stores the corresponding relation between the mobile phone number and the IM account and records the state information of the account.
When a user sends a short message to a user applying a mobile phone B through a mobile phone A, the mobile phone A receives a short message sending instruction, extracts a mobile phone number HB from the short message, judges whether an account IMA exists or not and whether the account IMB exists or not and whether the IMB exists or not according to the corresponding relation between the mobile phone number and the IM account provided by the IM server and the state information of the IM account, if so, the mobile phone A extracts the content of the short message and sends the content of the short message and the information of the account IMA and the account IMB to the IM server. The IM server can construct an IM message, determine that the account of the sender is an account IMA and the account of the receiver is an account IMB, send the IM message to the account IMB, and the mobile phone B can extract the content of the short message from the corresponding account IMB to display the content of the short message to the user.
In the practical application, the operation mode of the user is not changed, the user only needs to operate according to the conventional short message sending mode, the mobile phone judges, the content information can be sent to the receiving user through the IM sending mode, and the user does not need to log in an IM client side which is set independently.
It should be noted that, in the present specification, the embodiments are all described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments may be referred to each other. For the device-like embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
For convenience of description, the above devices are described as being divided into various units by function, and are described separately. Of course, the functionality of the units may be implemented in one or more software and/or hardware when implementing the present application.
From the above description of the embodiments, it is clear to those skilled in the art that the present application can be implemented by software plus necessary general hardware platform. Based on such understanding, the technical solutions of the present application may be essentially or partially implemented in the form of a software product, which may be stored in a storage medium, such as a ROM/RAM, a magnetic disk, an optical disk, etc., and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method according to the embodiments or some parts of the embodiments of the present application.
The above detailed description is provided for a retrieval method, apparatus and system provided by the present application, and the principle and implementation of the present application are explained by applying specific examples, and the description of the above embodiments is only used to help understanding the method and core ideas of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (13)

1. A method for implementing instant messaging, comprising:
after receiving the information sending instruction, the first mobile terminal judges whether a first IM account corresponding to the first mobile terminal exists or not by using a corresponding relation provided by an IM server, extracts a second mobile terminal identifier from the information to be sent, judges whether a second IM account corresponding to the second mobile terminal exists or not, and judges whether the first IM account and the second IM account are in an online state or not;
if so, the first mobile terminal extracts information content from the information to be sent, sends the information content and the information of the first IM account and the second IM account to an IM server through a network, constructs an IM message comprising the information content by the IM server, and sends the IM message to a second IM account corresponding to the second mobile terminal;
the IM account is formed by establishing network connection between a mobile terminal and an IM server, sending a registration request carrying an identification of the mobile terminal to the IM server by using the network connection, and determining the mobile terminal by the IM server, wherein the corresponding relation is the corresponding relation between the identification of the mobile terminal and the IM account stored by the IM server.
2. The method of claim 1, wherein when the first mobile terminal does not have a corresponding first IM account, or the second mobile terminal does not have a corresponding second IM account, or the first IM account is not online, or the second IM account is not online, the method further comprises:
and the first mobile terminal sends the information content to the second mobile terminal according to the second mobile terminal identification.
3. The method according to claim 2, wherein the information to be sent is a short message, and the mobile terminal identifier is a mobile phone communication number, then sending the information content to the second mobile terminal is specifically sending the information content to the second mobile terminal in a short message sending manner; alternatively, the first and second electrodes may be,
and if the information to be sent is an email and the mobile terminal identifier is an email box, sending the information content to the second mobile terminal, specifically, sending the information content to the second mobile terminal according to a mail sending mode.
4. The method of claim 1, wherein the correspondence is pushed by the IM server periodically or when the stored correspondence changes.
5. The method of claim 1, wherein the correspondence is provided to the first mobile terminal by an IM server when the first mobile terminal sends a correspondence request to the IM server.
6. The method according to claim 5, wherein the request for correspondence is initiated when the first mobile terminal completes starting, or initiated at a fixed time, or initiated before sending the information to be sent.
7. The method according to claim 1, wherein the determining whether there is an IM account corresponding to the second mobile terminal specifically includes:
and judging whether the second mobile terminal identification is provided with an IM mark, wherein the IM mark is set when the first mobile terminal judges that the second mobile terminal has a corresponding second IM account by utilizing the corresponding relation provided by the IM server in advance.
8. A system for realizing instant messaging is characterized by comprising an IM server and at least two mobile terminals: a first mobile terminal and a second mobile terminal, wherein,
the IM server is used for determining an IM account corresponding to the mobile terminal after receiving a registration request carrying a self identifier of the mobile terminal, and storing a corresponding relation comprising the mobile terminal identifier and the IM account; after receiving information content sent by a first mobile terminal and information of a first IM account and a second IM account, constructing an IM message comprising the information content, and sending the IM message to a second IM account corresponding to a second mobile terminal;
the mobile terminal is used for establishing network connection with the IM server and sending a registration request carrying the identification of the mobile terminal to the IM server by using the connection;
the first mobile terminal is used for receiving an information sending instruction, judging that a first IM account corresponding to the first mobile terminal exists by utilizing a corresponding relation provided by an IM server, extracting a second mobile terminal identification from information to be sent, judging that a second IM account corresponding to the second mobile terminal exists, extracting information content from the information to be sent when the first IM account and the second IM account are both in an online state, and sending the information content and the information of the first IM account and the second IM account to the IM server through a network.
9. The system according to claim 8, wherein when the first mobile terminal determines that the first mobile terminal does not have a corresponding first IM account, or the second mobile terminal does not have a corresponding second IM account, or the first IM account is not online, or the second IM account is not online, the first mobile terminal is further configured to send the information content to be sent to the second mobile terminal according to the identifier of the second mobile terminal in a conventional sending manner.
10. The system according to claim 8, wherein the determining, by the first mobile terminal, whether there is a second IM account corresponding to the second mobile terminal specifically includes:
and the first mobile terminal judges whether the second mobile terminal identification is provided with an IM mark, wherein the IM mark is set for the second mobile terminal identification when the first mobile terminal judges that the second mobile terminal has a corresponding second IM account by utilizing the corresponding relation provided by the IM server in advance.
11. A mobile terminal, characterized in that the mobile terminal comprises:
a registration request sending unit, configured to establish a network connection with an IM server, and send a registration request carrying a self identifier to the IM server by using the network connection, where the registration request is used to instruct the IM server to determine an IM account corresponding to the mobile terminal for the mobile terminal, and instruct the IM server to store a corresponding relationship between the mobile terminal identifier and the IM account;
the account judging unit is used for judging whether a first IM account corresponding to the account exists or not by utilizing the corresponding relation provided by the IM server after receiving the information sending instruction, extracting a second mobile terminal identification from the information to be sent, judging whether a second IM account corresponding to the second mobile terminal exists or not, and judging whether the first IM account and the second IM account are in an online state or not;
and the information sending unit is used for extracting information content from the information to be sent, sending the information content and the information of the first IM account and the second IM account to the IM server through the network, constructing an IM message comprising the information content by the IM server, and sending the IM message to the second IM account corresponding to the second mobile terminal.
12. The mobile terminal of claim 11, wherein the mobile terminal further comprises:
and the sending unit is used for sending the information content to be sent to the second mobile terminal according to the second mobile terminal identifier.
13. The mobile terminal of claim 11, wherein the mobile terminal further comprises:
the mark setting unit is used for setting an IM mark for the second mobile terminal mark when the corresponding relation provided by the IM server is used for judging that the second mobile terminal mark has a corresponding IM account;
the account determining unit determines whether there is an IM account corresponding to the second mobile terminal identifier, specifically, whether the second mobile terminal identifier has an IM flag.
HK13104401.0A 2013-04-11 Method, system and mobile terminal for implementing instant communication HK1177086B (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110248524.9A CN102958008B (en) 2011-08-26 2011-08-26 Method, system and mobile terminals for realizing instant messaging

Publications (2)

Publication Number Publication Date
HK1177086A1 true HK1177086A1 (en) 2013-08-09
HK1177086B HK1177086B (en) 2015-11-20

Family

ID=

Also Published As

Publication number Publication date
CN102958008A (en) 2013-03-06
CN102958008B (en) 2015-05-27

Similar Documents

Publication Publication Date Title
CN102958008B (en) Method, system and mobile terminals for realizing instant messaging
CN103069755B (en) Use the method and system that the instant message of multiple client instance transmits
EP3075177B1 (en) Method, apparatus and device for exchanging name card
US10530895B2 (en) Method, system and server for pushing information
US20060194596A1 (en) System and method for direct peer to peer mobile messaging
JP5891559B2 (en) Instant messaging method, terminal, server and system
US9065788B2 (en) Method, device and system for voice communication
WO2014029276A1 (en) Communication method and device
CN107483320B (en) Group creation method and server
CN103457828B (en) The instant communication method and system of a kind of inter-network
CN104539511A (en) Method and system for displaying own group when entering client
CN102368780B (en) An application-based information interaction method and system
EP2974159B1 (en) Method, device and system for voice communication
CN110224924A (en) State updating method and device, storage medium and electronic device
CN110620672B (en) Multi-person session data processing method and device, computer equipment and storage medium
CN102469039B (en) Intelligent network communication system and method
CN101860821B (en) Method and system for acquiring instant messages
CN105681262A (en) Interaction message allocating method and system
CN103532832A (en) Method for transmitting telephone number
CN103167424A (en) Method of adding contact persons and device
CN102790830B (en) Method and device for expanding functions of mobile communication terminal
HK1177086B (en) Method, system and mobile terminal for implementing instant communication
CN106549854A (en) A kind of communications records synchronous method, system and user terminal
CN105392198A (en) Network communication method and device
CN106331270B (en) Method and device for managing numbers of contact persons

Legal Events

Date Code Title Description
PC Patent ceased (i.e. patent has lapsed due to the failure to pay the renewal fee)

Effective date: 20210826