CN107465603A - Transmit the terminal and Related product of message - Google Patents
Transmit the terminal and Related product of message Download PDFInfo
- Publication number
- CN107465603A CN107465603A CN201710732569.0A CN201710732569A CN107465603A CN 107465603 A CN107465603 A CN 107465603A CN 201710732569 A CN201710732569 A CN 201710732569A CN 107465603 A CN107465603 A CN 107465603A
- Authority
- CN
- China
- Prior art keywords
- message
- mode
- terminal
- online
- message receiver
- 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.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L51/00—User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
- H04L51/04—Real-time or near real-time messaging, e.g. instant messaging [IM]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L51/00—User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
- H04L51/06—Message adaptation to terminal or network requirements
- H04L51/063—Content adaptation, e.g. replacement of unsuitable content
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L51/00—User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
- H04L51/56—Unified messaging, e.g. interactions between e-mail, instant messaging or converged IP messaging [CPM]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/12—Messaging; Mailboxes; Announcements
- H04W4/14—Short messaging services, e.g. short message services [SMS] or unstructured supplementary service data [USSD]
Abstract
The invention provides a kind of terminal, its processor included is used for:Obtain the message content and message receiver information of user's input;Message mode is selected according to the message receiver information, the message mode includes short message mode or instant communication mode;According to the message mode of the selection message content is sent to the message receiver.Using the present invention, it can automatically be selected in two kinds of exchange ways of short message and instant communication message, save the exchange cost of user.
Description
Technical field
The present invention relates to terminal technology, and in particular to a kind of terminal and Related product for transmitting message.
Background technology
With the popularization of mobile phone, short message (SMS:Short Message Service) service be also widely used.
Short message is caused a kind of telecommunication service with digital mobile communication system, passes through the signaling channel and letter of GSM
Net is made, word or numeric messaging breath is transmitted, belongs to a kind of non real-time, non-voice data communication service.Short message can be by moving
Mobile communication terminal (mobile phone) originates, and can also be originated by the SMS platform server of Mobile Network Operator, can also be by being transported with mobile
The network provider SP of battalion's business's SMS platform interconnection is originated (including ICP, ISP etc.).
Because short message is the data communication service that Mobile Network Operator provides, the use in Mobile Network Operator is merely able to
It is transmitted between family.As long as advantage be user in the mobile network of Mobile Network Operator, short message can is sent to;But
Shortcoming is no more than 160 English or numerical character, or 70 Chinese characters, i.e., it is also obvious that be exactly the message length of short message all the time
Relativity of information is less, and Mobile Network Operator is usually to carry out charging one by one to short message.
And with the popularization of internet, instant messaging (IM:Instant Message) business also obtained hair at full speed
Exhibition.Instant messaging service is the business for referring to send and receive internet message etc. immediately.The provider of instant messaging service
Mobile Network Operator is independently of, the transmission of instant communication message is also merely able to send out between the user of instant messaging service
Send.Advantage is that message-length is unlimited, and relativity of information is more;And shortcoming is to need both sides to access internet, and must be all
Instant communication client is opened, message can not allow known to other side in time if a side is not online.
With the development of mobile Internet, the carrier of short message and instant messaging has all been arrived above mobile phone, that is to say, that user
Both the interaction of short message can have been carried out with mobile phone, the interaction of instant messaging can be also carried out by instant communication client.But user needs
To be operated by two clients, it is neither user-friendly, it can also be handed in user by instant messaging
Exchanged during stream by short message, improve the exchange cost of user.
The content of the invention
, can be automatically in short message and instant messaging the embodiments of the invention provide the terminal and Related product of transmission message
Selected in two kinds of exchange ways of message, save the exchange cost of user.
The purpose of the embodiment of the present invention is achieved through the following technical solutions:
First aspect present invention provides a kind of message method, including:
Obtain the message content and message receiver information of user's input;
According to the message receiver information select message mode, the message mode include short message mode or
Instant communication mode;
According to the message mode of the selection message content is sent to the message receiver.
Optionally, it is described to select message mode to include according to the message receiver information:
Judging the message receiver according to the message receiver information, whether instant messaging is online;
If it is online to be communicated when the message receiver is, instant communication mode is selected;
If communication is not online when the message receiver is, short message mode is selected.
Optionally, according to the message receiver information judge the message receiver whether instant messaging it is online before, institute
Stating method also includes:
Judge whether the terminal is arranged to preferentially send instant communication message;
If the terminal is arranged to preferentially send instant communication message, institute is just judged according to the message receiver information
Stating message receiver, whether instant messaging is online;
If the terminal is not configured to preferentially send instant communication message, short message mode is selected.
Optionally, before selecting short message mode, methods described also includes:
Judge whether the terminal is arranged to allow to send short message;
If the terminal is arranged to allow to send short message, short message mode is just selected;
If the terminal is not configured to allow to send short message, instant communication mode is selected.
Optionally, the message receiver is judged according to the message receiver information whether instant messaging is online:
Query messages are sent to instant communication server, the query messages include the message receiver information;
The response message that the instant communication server is sent is received, the response message is including the message receiver
The information that Shi Tongxin is online or instant messaging is not online.
Another aspect of the present invention provides a kind of terminal, including:
Acquiring unit, for obtaining the message content and message receiver information of user's input;
Selecting unit, the message receiver information for being obtained according to the acquiring unit select message mode, institute
Stating message mode includes short message mode or instant communication mode;
Transmitting element, for sending institute to the message receiver according to the message mode that the selecting unit selects
State message content.
Optionally, the selecting unit is specifically used for:
Judging the message receiver according to the message receiver information, whether instant messaging is online;
If it is online to be communicated when the message receiver is, instant communication mode is selected;
If communication is not online when the message receiver is, short message mode is selected.
Optionally, in addition to:
Judging unit, for judging whether the terminal is arranged to preferentially send instant communication message;
The selecting unit, for judging that the terminal is arranged to preferentially send instant communication message in the judging unit
When, just judging the message receiver according to the message receiver information, whether instant messaging is online;In the judging unit
When judging that the terminal is not configured to preferentially send instant communication message, short message mode is selected.
Optionally, in addition to:
Judging unit, for judging whether the terminal is arranged to allow to send short message;
The selecting unit, for when the judging unit judges that the terminal is arranged to allow to send short message, just selecting
Select short message mode;When the terminal is not configured to allow to send short message, instant communication mode is selected.
Optionally, the selecting unit is judging whether the message receiver is instant according to the message receiver information
It is specifically used for when communicating online:
Query messages are sent to instant communication server, the query messages include the message receiver information;
The response message that the instant communication server is sent is received, the response message is including the message receiver
The information that Shi Tongxin is online or instant messaging is not online.
Another aspect of the present invention provides a kind of computer-readable recording medium, the computer-readable recording medium storage
Program code, the instruction that described program code includes are used to perform following steps:
Obtain the message content and message receiver information of user's input;
According to the message receiver information select message mode, the message mode include short message mode or
Instant communication mode;
According to the message mode of the selection message content is sent to the message receiver.
Optionally, it is described to select message mode to include according to the message receiver information:
Judging the message receiver according to the message receiver information, whether instant messaging is online;
If it is online to be communicated when the message receiver is, instant communication mode is selected;
If communication is not online when the message receiver is, short message mode is selected.
Optionally, according to the message receiver information judge the message receiver whether instant messaging it is online before, institute
The instruction that stating program code includes is additionally operable to include:
Judge whether the terminal is arranged to preferentially send instant communication message;
If the terminal is arranged to preferentially send instant communication message, institute is just judged according to the message receiver information
Stating message receiver, whether instant messaging is online;
If the terminal is not configured to preferentially send instant communication message, short message mode is selected.
Optionally, before selecting short message mode, the instruction that described program code includes is additionally operable to include:
Judge whether the terminal is arranged to allow to send short message;
If the terminal is arranged to allow to send short message, short message mode is just selected;
If the terminal is not configured to allow to send short message, instant communication mode is selected.
Optionally, the message receiver is judged according to the message receiver information whether instant messaging is online, including:
Query messages are sent to instant communication server, the query messages include the message receiver information;Receive described instant
The response message that the communication server is sent, the response message include that the message receiver instant messaging is online or instant messaging
Not online information.
Another aspect of the present invention provides a kind of terminal, including:The processor and memory to intercouple;The processor is used
In execution following steps:Obtain the message content and message receiver information of user's input;According to the message receiver of acquisition
Information selects message mode, and the message mode includes short message mode or instant communication mode;According to disappearing for selection
Cease sending method and send the message content to the message receiver.
Optionally, the processor selects message mode according to the message receiver information of acquisition, including:According to institute
Message receiver information is stated to judge the message receiver whether instant messaging is online;If the message receiver communicates when being
Online, then instant communication mode is selected;If communication is not online when the message receiver is, short message mode is selected.
Optionally, the processor is additionally operable to:Judge whether the terminal is arranged to preferentially send instant communication message;
When judging that the terminal is arranged to preferentially send instant communication message, the message is just judged according to the message receiver information
Whether instant messaging is online by recipient;When judging that the terminal is not configured to preferentially send instant communication message, select short
Letter mode.
Optionally, the processor is additionally operable to:Judge whether the terminal is arranged to allow to send short message;Described in judgement
When terminal is arranged to allow to send short message, short message mode is just selected;When the terminal is not configured to allow to send short message, choosing
Select instant communication mode.
Optionally, the processor according to the message receiver information judge the message receiver whether IMU
Letter is online, including:Query messages are sent to instant communication server, the query messages include the message receiver information;
The response message that the instant communication server is sent is received, the response message exists including the message receiver instant messaging
Line or the not online information of instant messaging.
It is can be seen that from above technical scheme provided in an embodiment of the present invention because terminal can obtain in the embodiment of the present invention
The message content and message receiver information of family input are taken, short message mode is then selected according to the message receiver information
Or instant communication mode, the message content is sent to the message receiver according still further to the message mode of the selection,
So as to automatically select message mode, when instant communication message can be passed through just by instant messaging sender
Formula, improve the relativity of information of message exchange reduces the exchange cost of user simultaneously.
Brief description of the drawings
In order to illustrate the technical solution of the embodiments of the present invention more clearly, required use in being described below to embodiment
Accompanying drawing be briefly described, it should be apparent that, drawings in the following description are only some embodiments of the present invention, for this
For the those of ordinary skill of field, without having to pay creative labor, other can also be obtained according to these accompanying drawings
Accompanying drawing.
Fig. 1 is the flow chart for the terminal operation method that one embodiment of the invention provides;
Fig. 2 is the flow chart for the terminal operation method that another embodiment of the present invention provides;
Fig. 3 is the structure chart for the terminal that one embodiment of the invention provides;
Fig. 4 is the structure chart for the terminal that another embodiment of the present invention provides
Fig. 5 is the structure chart for the terminal that another embodiment of the present invention provides.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, rather than whole embodiments.It is based on
Embodiment in the present invention, those of ordinary skill in the art are obtained every other under the premise of creative work is not made
Embodiment, belong to the scope of protection of the invention.
Video call method provided in an embodiment of the present invention is first introduced, Fig. 1 describes one embodiment of the invention offer
The flow of message method, the embodiment describe the handling process of terminal, and the terminal can be intelligent terminal or flat board
Computer etc..As shown in figure 1, the embodiment includes:
101st, the message content and message receiver information of user's input are obtained.
Message content can be inputted by user by the physical keyboard of intelligent terminal, or pass through the virtual key on touch-screen
Disk inputs.
Message receiver information can be the phone number of recipient, and the phone number also has note in instantaneous communication system
Volume.Or can also be other marks of recipient, as long as this mark was both registered in the mobile communication network, also in IMU
Registered in letter system.
102nd, message mode is selected according to message receiver information;Wherein, message mode includes short message mode
Or instant communication mode.
Specifically, terminal can determine message receiver currently in instantaneous communication system according to message receiver information
Whether state, i.e. message receiver currently reach the standard grade in instantaneous communication system;If message receiver is currently in instant messaging
Reached the standard grade in system, then it represents that message receiver can receive instant communication message immediately, therefore can select instant messaging side
Formula;, whereas if message receiver is not reached the standard grade in instantaneous communication system, then it represents that message receiver can not receive immediately
Instant communication message, therefore short message mode can be selected.
103rd, the message content is sent to the message receiver according to the message mode of the selection.
Wherein, selection message mode for instant communication mode when, by the message content according to instant messaging
The form of system requirements is packaged, and then sends the instant communication message after encapsulation to instant communication message server, by
Instant communication message server is transmitted to message receiver.
In some instantaneous communication systems, message sender can be exchanged directly with message sender, then this
When the form that the message content requires according to instantaneous communication system can be packaged after, be sent directly to message sink
Side, without the forwarding by instant communication message server, it is possible to increase the transmission speed of message.
Selection message mode for short message mode when, by the message content according to short message protocol requirement carry out
Encapsulation, then short message, is transmitted to by the sms center by the short message sending after encapsulation to mobile network service business by sms center
Message receiver.
It can be seen that terminal can obtain the message content and message receiver information of user's input in the present embodiment, then
Short message mode or instant communication mode are selected according to the message receiver information, according still further to the message mode of the selection
The message content is sent to the message receiver, so as to automatically select message mode, can be by i.e.
When communication information when just by instant messaging sending method, improve the relativity of information of message exchange reduces the exchange of user simultaneously
Cost.
In one embodiment of the invention, the above-mentioned mistake that message mode is selected according to the message receiver information
Journey can include:
Judging the message receiver according to the message receiver information, whether instant messaging is online;
If it is online to be communicated when the message receiver is, instant communication mode is selected;
If communication is not online when the message receiver is, short message mode is selected.
In another embodiment of the present invention, judging that the message receiver is according to the message receiver information
Before no instant messaging is online, methods described can also include:
Judge whether the terminal is arranged to preferentially send instant communication message;
If the terminal is arranged to preferentially send instant communication message, institute is just judged according to the message receiver information
Stating message receiver, whether instant messaging is online;
If the terminal is not configured to preferentially send instant communication message, short message mode is selected.
In another embodiment of the present invention, before short message mode is selected, methods described can also include:
Judge whether the terminal is arranged to allow to send short message;
If the terminal is arranged to allow to send short message, short message mode is just selected;
If the terminal is not configured to allow to send short message, instant communication mode is selected.
In another embodiment of the present invention, whether the message receiver is judged according to the message receiver information
Instant messaging is online:
Query messages are sent to instant communication server, the query messages include the message receiver information;
The response message that the instant communication server is sent is received, the response message is including the message receiver
The information that Shi Tongxin is online or instant messaging is not online.
Fig. 2 describes the flow of the message method of another embodiment of the present invention offer, as shown in Fig. 2 the implementation
Example includes:
201st, the message content and message receiver information of user's input are obtained.
Message content can be inputted by user by the physical keyboard of intelligent terminal, or pass through the virtual key on touch-screen
Disk inputs.
Message receiver information can be the phone number of recipient, and the phone number also has note in instantaneous communication system
Volume.Or can also be other marks of recipient, as long as this mark was both registered in the mobile communication network, also in IMU
Registered in letter system.
202nd, judge whether the terminal is arranged to preferentially send instant communication message;If it is, into step 203;Such as
Fruit is no, into step 207.
The switch for whether preferentially sending instant communication message can be preset, user can be with the setting menu of terminal
Chosen whether to open this switch according to the needs of oneself.
For example, user does not mind exchange cost, it is desirable alternatively to which message content can timely be sent to message sink very much
Side, then it is contemplated that closing this switch;If user closes this switch, terminal is it is known that user wishes primary logical
Short message mode is crossed to send message content.
Conversely, user relatively lies in exchange cost, then it is contemplated that opening this switch;If user opens this and opened
Close, terminal is it is known that user wishes primarily to send message content by instant communication mode.
203rd, query messages are sent to instant communication server;The query messages include the message receiver information.
The query messages are used for query messages recipient, and currently whether instantaneous communication system is online;Because user is logging in
, it is necessary to message be sent with instant communication server, so as to which the timely communication server can record each use during instantaneous communication system
The presence at family.
204th, the response message that the instant communication server is sent is received.
Instant communication server can be believed after query messages are received according to the message receiver included by query messages
Cease the presence of query messages recipient;If message receiver is online, message receiver is carried in the response message and is existed
The information of line, whereas if message receiver is not online, then the not online information of message receiver is carried in the response message.
In certain embodiments, presence flag can be provided with the response message, and the flag can take
One bit, such as represent that message receiver is online when the bit value is 1, on the contrary the table when the bit value is 0
Show that message receiver is not online.It is of course also possible to represent that message receiver is online when the bit value is 0, otherwise at this
Represent that message receiver is not online when bit value is 1.Specifically 0 is taken still to take 1 expression message receiver online can be advance
Agreement, the embodiment of the present invention do not limit.
205th, the message receiver is judged according to the response message whether instant messaging is online;If it is, enter step
Rapid 206;If not, into step 207.
Terminal can specifically be determined according to the value of the presence flag in response message message receiver whether
Line, such as in one bit of mark bit occupancy, judge the current IMU of message receiver if the bit value is 1
Letter is online;It is 0, whereas if the bit is value and judges that the current instant messaging of message receiver is not online.
206th, instant messaging sending method is selected;Into step 209.
207th, judge whether the terminal is arranged to allow to send short message;If it is, into step 208;If not, into
Step 206.
The switch for whether preferentially allowing to send short message can be preset, user can basis in the setting menu of terminal
The needs of oneself choose whether to open this switch.
For example, user lies in exchange cost very much, do not allow to send short message in any case, then user, which can contemplate, beats
Drive this switch;If user opens this switch, terminal is it is known that user is not intended to send by short message mode
Message content.
208th, short message mode is selected.
209th, the message content is sent to the message receiver according to the message mode of the selection.
Wherein, selection message mode for instant communication mode when, by the message content according to instant messaging
The form of system requirements is packaged, and then sends the instant communication message after encapsulation to instant communication message server, by
Instant communication message server is transmitted to message receiver.
In some instantaneous communication systems, message sender can be exchanged directly with message sender, then this
When the form that the message content requires according to instantaneous communication system can be packaged after, be sent directly to message sink
Side, without the forwarding by instant communication message server, it is possible to increase the transmission speed of message.
Selection message mode for short message mode when, by the message content according to short message protocol requirement carry out
Encapsulation, then short message, is transmitted to by the sms center by the short message sending after encapsulation to mobile network service business by sms center
Message receiver.
It can be seen that terminal can obtain the message content and message receiver information of user's input in the present embodiment, then
Short message mode or instant communication mode are selected according to the message receiver information, according still further to the message mode of the selection
The message content is sent to the message receiver, so as to automatically select message mode, can be by i.e.
When communication information when just by instant messaging sending method, improve the relativity of information of message exchange reduces the exchange of user simultaneously
Cost.Some settings can also be preset in the terminal simultaneously, allow user can be according to the ability to bear of oneself, hobby etc. is set
The alternative condition of some message modes, so that the message mode of selection meets the requirement of user, improve user
Usage experience.
Fig. 3 describes the structure of the terminal of one embodiment of the invention offer, as shown in figure 3, the terminal includes:
Acquiring unit 301, for obtaining the message content and message receiver information of user's input;
Message content can be inputted by user by the physical keyboard of intelligent terminal, or pass through the virtual key on touch-screen
Disk inputs.Therefore, acquiring unit 301 can be the physical keyboard of intelligent terminal, or touch-screen etc..
Message receiver information can be the phone number of recipient, and the phone number also has note in instantaneous communication system
Volume.Or can also be other marks of recipient, as long as this mark was both registered in the mobile communication network, also in IMU
Registered in letter system.
Selecting unit 302, the message receiver information for being obtained according to the acquiring unit 302 select message sender
Formula, the message mode include short message mode or instant communication mode;
Specifically, terminal can determine message receiver currently in instantaneous communication system according to message receiver information
Whether state, i.e. message receiver currently reach the standard grade in instantaneous communication system;If message receiver is currently in instant messaging
Reached the standard grade in system, then it represents that message receiver can receive instant communication message immediately, therefore can select instant messaging side
Formula;, whereas if message receiver is not reached the standard grade in instantaneous communication system, then it represents that message receiver can not receive immediately
Instant communication message, therefore short message mode can be selected.
Transmitting element 303, for according to the message mode that the selecting unit 302 selects to the message receiver
Send the message content.
Wherein, selection message mode for instant communication mode when, by the message content according to instant messaging
The form of system requirements is packaged, and then sends the instant communication message after encapsulation to instant communication message server, by
Instant communication message server is transmitted to message receiver.
In some instantaneous communication systems, message sender can be exchanged directly with message sender, then this
When the form that the message content requires according to instantaneous communication system can be packaged after, be sent directly to message sink
Side, without the forwarding by instant communication message server, it is possible to increase the transmission speed of message.
Selection message mode for short message mode when, by the message content according to short message protocol requirement carry out
Encapsulation, then short message, is transmitted to by the sms center by the short message sending after encapsulation to mobile network service business by sms center
Message receiver.
It can be seen that terminal can obtain the message content and message receiver information of user's input in the present embodiment, then
Short message mode or instant communication mode are selected according to the message receiver information, according still further to the message mode of the selection
The message content is sent to the message receiver, so as to automatically select message mode, can be by i.e.
When communication information when just by instant messaging sending method, improve the relativity of information of message exchange reduces the exchange of user simultaneously
Cost.
In one embodiment of the invention, described selecting unit 302 can be specifically used for:
Judging the message receiver according to the message receiver information, whether instant messaging is online;
If it is online to be communicated when the message receiver is, instant communication mode is selected;
If communication is not online when the message receiver is, short message mode is selected.
As shown in figure 3, in certain embodiments of the present invention, terminal can also include judging unit 304 (in such as Fig. 3
Shown in dotted line), for judging whether the terminal is arranged to preferentially send instant communication message;
The selecting unit 302, for judging that the terminal is arranged to preferentially send IMU in the judging unit 304
When believing message, just judging the message receiver according to the message receiver information, whether instant messaging is online;Sentence described
When disconnected unit 304 judges that the terminal is not configured to preferentially send instant communication message, short message mode is selected.
In another embodiment of the present invention, judging unit 304, can be used for judging whether the terminal is arranged to permit
Perhaps short message is sent;
The selecting unit 303, for judging that the terminal is arranged to allow to send short message in the judging unit 304
When, just select short message mode;When the terminal is not configured to allow to send short message, instant communication mode is selected.
In another embodiment of the present invention, the selecting unit 302 judges according to the message receiver information
The message receiver can be specifically used for when whether instant messaging is online:
Query messages are sent to instant communication server, the query messages include the message receiver information;
The response message that the instant communication server is sent is received, the response message is including the message receiver
The information that Shi Tongxin is online or instant messaging is not online.
It can be seen that terminal can obtain the message content and message receiver information of user's input in the present embodiment, then
Short message mode or instant communication mode are selected according to the message receiver information, according still further to the message mode of the selection
The message content is sent to the message receiver, so as to automatically select message mode, can be by i.e.
When communication information when just by instant messaging sending method, improve the relativity of information of message exchange reduces the exchange of user simultaneously
Cost.Some settings can also be preset in the terminal simultaneously, allow user can be according to the ability to bear of oneself, hobby etc. is set
The alternative condition of some message modes, so that the message mode of selection meets the requirement of user, improve user
Usage experience.
The contents such as the information exchange between each module, implementation procedure in said apparatus and system, due to side of the present invention
Method embodiment is based on same design, and particular content can be found in the narration in the inventive method embodiment, and here is omitted.
Another aspect of the present invention provides a kind of computer-readable recording medium, the computer-readable recording medium storage
Program code, the instruction that described program code includes are used to perform following steps:
Obtain the message content and message receiver information of user's input;
According to the message receiver information select message mode, the message mode include short message mode or
Instant communication mode;
According to the message mode of the selection message content is sent to the message receiver.
Optionally, it is described to select message mode to include according to the message receiver information:
Judging the message receiver according to the message receiver information, whether instant messaging is online;
If it is online to be communicated when the message receiver is, instant communication mode is selected;
If communication is not online when the message receiver is, short message mode is selected.
Optionally, according to the message receiver information judge the message receiver whether instant messaging it is online before, institute
The instruction that stating program code includes is additionally operable to include:
Judge whether the terminal is arranged to preferentially send instant communication message;
If the terminal is arranged to preferentially send instant communication message, institute is just judged according to the message receiver information
Stating message receiver, whether instant messaging is online;
If the terminal is not configured to preferentially send instant communication message, short message mode is selected.
Optionally, before selecting short message mode, the instruction that described program code includes is additionally operable to include:
Judge whether the terminal is arranged to allow to send short message;
If the terminal is arranged to allow to send short message, short message mode is just selected;
If the terminal is not configured to allow to send short message, instant communication mode is selected.
Optionally, the message receiver is judged according to the message receiver information whether instant messaging is online, including:
Query messages are sent to instant communication server, the query messages include the message receiver information;Receive described instant
The response message that the communication server is sent, the response message include that the message receiver instant messaging is online or instant messaging
Not online information.
Referring to Fig. 4, another aspect of the present invention provides a kind of terminal, including:The processor 510 and memory to intercouple
520;The processor 510 is used to perform following steps:Obtain the message content and message receiver information of user's input;Root
Message mode is selected according to the message receiver information of acquisition, the message mode includes short message mode or instant messaging
Mode;According to the message mode of selection the message content is sent to the message receiver.
Optionally, the processor selects message mode according to the message receiver information of acquisition, including:According to institute
Message receiver information is stated to judge the message receiver whether instant messaging is online;If the message receiver communicates when being
Online, then instant communication mode is selected;If communication is not online when the message receiver is, short message mode is selected.
Optionally, the processor is additionally operable to:Judge whether the terminal is arranged to preferentially send instant communication message;
When judging that the terminal is arranged to preferentially send instant communication message, the message is just judged according to the message receiver information
Whether instant messaging is online by recipient;When judging that the terminal is not configured to preferentially send instant communication message, select short
Letter mode.
Optionally, the processor is additionally operable to:Judge whether the terminal is arranged to allow to send short message;Described in judgement
When terminal is arranged to allow to send short message, short message mode is just selected;When the terminal is not configured to allow to send short message, choosing
Select instant communication mode.
Optionally, the processor according to the message receiver information judge the message receiver whether IMU
Letter is online, including:Query messages are sent to instant communication server, the query messages include the message receiver information;
The response message that the instant communication server is sent is received, the response message exists including the message receiver instant messaging
Line or the not online information of instant messaging.
The embodiment of the present invention additionally provides another mobile terminal, as shown in figure 5, for convenience of description, illustrate only and this
The related part of inventive embodiments, particular technique details do not disclose, refer to present invention method part.The movement is whole
End can be to include mobile phone, tablet personal computer, PDA (Personal Digital Assistant, personal digital assistant), POS
Any terminal device such as (Point of Sales, point-of-sale terminal), vehicle-mounted computer, so that mobile terminal is mobile phone as an example:
Fig. 5 is illustrated that the block diagram of the part-structure of the mobile phone related to mobile terminal provided in an embodiment of the present invention.Ginseng
Fig. 5 is examined, mobile phone includes:Radio frequency (Radio Frequency, RF) circuit 910, memory 920, input block 930, sensor
950th, voicefrequency circuit 960, Wireless Fidelity (Wireless Fidelity, WiFi) module 970, processor 980 and power supply 990
Deng part.It will be understood by those skilled in the art that the handset structure shown in Fig. 5 does not form the restriction to mobile phone, can wrap
Include than illustrating more or less parts, either combine some parts or different parts arrangement.
Each component parts of mobile phone is specifically introduced with reference to Fig. 5:
Input block 930 can be used for the numeral or character information for receiving input, and produce with the user of mobile phone set with
And the key signals input that function control is relevant.Specifically, input block 930 may include touching display screen 933, biological identification device
931 and other input equipments 932.Biological identification device 931 can be fingerprint identification device, or, face identification device, or
Person, iris identification device etc..Input block 930 can also include other input equipments 932.Specifically, other input equipments
932 can include but is not limited to physical button, function key (such as volume control button, switch key etc.), trace ball, mouse,
One or more in action bars etc..Wherein, the processor 980 is used to obtain pending image, the pending image
Target area is used to add watermark recovery;Determine the first colouring information of the first image corresponding to the target area;Determine institute
State the absolute value of the colour-difference between the first colouring information and the second colouring information of the watermark recovery;It is small in the absolute value
When predetermined threshold value, color adjustment, and second face after adjustment are carried out to described first image and/or the watermark recovery
Colour-difference between color information and first colouring information is in preset range;By the pending image after adjustment and institute
State watermark recovery to be synthesized, obtain output image.
Processor 980 is the control centre of mobile phone, using various interfaces and the various pieces of connection whole mobile phone, is led to
Cross operation or perform the software program and/or module being stored in memory 920, and call and be stored in memory 920
Data, the various functions and processing data of mobile phone are performed, so as to carry out integral monitoring to mobile phone.Optionally, processor 980 can wrap
Include one or more processing units;Optionally, processor 980 can integrated processor and modem processor, wherein, processor
Main processing operating system, user interface and application program etc., modem processor mainly handles radio communication.It is appreciated that
, above-mentioned modem processor can not also be integrated into processor 980.
In addition, memory 920 can include high-speed random access memory, nonvolatile memory, example can also be included
Such as at least one disk memory, flush memory device or other volatile solid-state parts.
RF circuits 910 can be used for the reception and transmission of information.Generally, RF circuits 910 include but is not limited to antenna, at least one
Individual amplifier, transceiver, coupler, low-noise amplifier (Low Noise Amplifier, LNA), duplexer etc..In addition,
RF circuits 910 can also be communicated by radio communication with network and other equipment.Above-mentioned radio communication can use any communication
Standard or agreement, including but not limited to global system for mobile communications (Global System of Mobile
Communication, GSM), general packet radio service (General Packet Radio Service, GPRS), code division it is more
Location (Code Division Multiple Access, CDMA), WCDMA (Wideband Code Division
Multiple Access, WCDMA), Long Term Evolution (Long Term Evolution, LTE), Email, Short Message Service
(Short Messaging Service, SMS) etc..
Mobile phone may also include at least one sensor 950, such as optical sensor, motion sensor and other sensors.
Specifically, optical sensor may include ambient light sensor and proximity transducer, wherein, ambient light sensor can be according to ambient light
Light and shade adjust the brightness of touching display screen, proximity transducer can when mobile phone is moved in one's ear, close touching display screen and/
Or backlight.As one kind of motion sensor, accelerometer sensor can detect in all directions (generally three axles) acceleration
Size, size and the direction of gravity are can detect that when static, available for identification mobile phone posture application (such as horizontal/vertical screen switching,
Dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap) etc.;It can also configure as mobile phone
Gyroscope, barometer, hygrometer, thermometer, the other sensors such as infrared ray sensor, will not be repeated here.
Wherein, voicefrequency circuit 960, loudspeaker 961, microphone 962 can provide the COBBAIF between user and mobile phone.Sound
Electric signal after the voice data received conversion can be transferred to loudspeaker 961, is converted to by loudspeaker 961 by frequency circuit 960
Voice signal plays;On the other hand, the voice signal of collection is converted to electric signal by microphone 962, is received by voicefrequency circuit 960
After be converted to voice data, it is such as another to be sent to through RF circuits 910 then after voice data playback process device 980 is handled
Mobile phone, or voice data is played to memory 920 further to handle.
WiFi belongs to short range wireless transmission technology, and mobile phone can help user's transceiver electronicses postal by WiFi module 970
Part, browse webpage and access streaming video etc., it has provided the user wireless broadband internet and accessed.Although Fig. 5 is shown
WiFi module 970, but it is understood that, it is simultaneously not belonging to must be configured into for mobile phone, can not change as needed completely
Become in the essential scope of invention and omit.
Mobile phone also includes the power supply 990 (such as battery) to all parts power supply, and optionally, power supply can pass through power supply pipe
Reason system and processor 980 are logically contiguous, so as to realize management charging, electric discharge and power managed by power-supply management system
Etc. function.
Although being not shown, mobile phone can also include camera, bluetooth module etc., will not be repeated here.
In embodiment shown in earlier figures 1-2, each step method flow can based on the mobile phone structure realize.
In embodiment shown in 3~Fig. 4 of earlier figures, each unit function can based on the mobile phone structure realize.
The embodiment of the present invention also provides a kind of computer program product, and the computer program product includes storing calculating
The non-transient computer-readable recording medium of machine program, the computer program are operable to make mobile terminal perform as described above
The part or all of step of any method described in embodiment of the method.
One of ordinary skill in the art will appreciate that realize all or part of flow in above-described embodiment method, being can be with
The hardware of correlation is instructed to complete by computer program, above-mentioned program can be stored in a computer read/write memory medium
In, the program is upon execution, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, above-mentioned storage medium can be magnetic
Dish, CD, read-only memory (ROM:Read-Only Memory) or random access memory (RAM:Random
Access Memory) etc..
Specific case used herein is set forth to the principle and embodiment of the present invention, and above example is said
It is bright to be only intended to help the method and its thought for understanding the present invention;Meanwhile for those of ordinary skill in the art, according to this hair
Bright thought, there will be changes in specific embodiments and applications, in summary, this specification content should not manage
Solve as limitation of the present invention.
Claims (10)
- A kind of 1. computer-readable recording medium, it is characterised in that computer-readable recording medium storage program code, The instruction that described program code includes is used to perform following steps:Obtain the message content and message receiver information of user's input;Message mode is selected according to the message receiver information, the message mode includes short message mode or instant Communication mode;According to the message mode of the selection message content is sent to the message receiver.
- 2. medium as claimed in claim 1, it is characterised in that described to select message to send according to the message receiver information Mode includes:Judging the message receiver according to the message receiver information, whether instant messaging is online;If it is online to be communicated when the message receiver is, instant communication mode is selected;If communication is not online when the message receiver is, short message mode is selected.
- 3. medium as claimed in claim 2, it is characterised in that the message sink is judged according to the message receiver information Side whether instant messaging it is online before, the instruction that described program code includes is additionally operable to include:Judge whether the terminal is arranged to preferentially send instant communication message;If the terminal is arranged to preferentially send instant communication message, just disappear according to judging the message receiver information Ceasing recipient, whether instant messaging is online;If the terminal is not configured to preferentially send instant communication message, short message mode is selected.
- 4. medium as claimed in claim 2, it is characterised in that before selection short message mode, instruction that described program code includes It is additionally operable to include:Judge whether the terminal is arranged to allow to send short message;If the terminal is arranged to allow to send short message, short message mode is just selected;If the terminal is not configured to allow to send short message, instant communication mode is selected.
- 5. according to any described medium of claim 2 to 4, it is characterised in that judge institute according to the message receiver information Stating message receiver, whether instant messaging is online, including:Query messages, the query messages bag are sent to instant communication server Include the message receiver information;The response message that the instant communication server is sent is received, the response message includes institute State the information that message receiver instant messaging is online or instant messaging is not online.
- A kind of 6. terminal, it is characterised in that including:The processor and memory to intercouple;The processor is used to perform such as Lower step:Obtain the message content and message receiver information of user's input;Selected according to the message receiver information of acquisition Message mode, the message mode include short message mode or instant communication mode;According to the message sender of selection Formula sends the message content to the message receiver.
- 7. terminal as claimed in claim 6, it is characterised in that the processor selects according to the message receiver information of acquisition Message mode, including:Judging the message receiver according to the message receiver information, whether instant messaging is online;Such as Communicated when message receiver described in fruit is online, then select instant communication mode;If communication is not when the message receiver is Online, then short message mode is selected.
- 8. terminal as claimed in claim 7, it is characterised in that the processor is additionally operable to:Judge whether the terminal is set Instant communication message is sent into preferential;When judging that the terminal is arranged to preferentially send instant communication message, just according to Message receiver information judges the message receiver, and whether instant messaging is online;Judging that the terminal is not configured to preferentially When sending instant communication message, short message mode is selected.
- 9. terminal as claimed in claim 7, it is characterised in thatThe processor is additionally operable to:Judge whether the terminal is arranged to allow to send short message;Judging that the terminal is arranged to When allowing to send short message, short message mode is just selected;When the terminal is not configured to allow to send short message, instant messaging is selected Mode.
- 10. according to any described terminal of claim 6 to 9, it is characterised in that the processor is according to the message sink Square information judges the message receiver, and whether instant messaging is online, including:Query messages, institute are sent to instant communication server Stating query messages includes the message receiver information;Receive the response message that the instant communication server is sent, the sound Message is answered to include the information that the message receiver instant messaging is online or instant messaging is not online.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710732569.0A CN107465603A (en) | 2017-08-24 | 2017-08-24 | Transmit the terminal and Related product of message |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710732569.0A CN107465603A (en) | 2017-08-24 | 2017-08-24 | Transmit the terminal and Related product of message |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107465603A true CN107465603A (en) | 2017-12-12 |
Family
ID=60550361
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710732569.0A Pending CN107465603A (en) | 2017-08-24 | 2017-08-24 | Transmit the terminal and Related product of message |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107465603A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109040981A (en) * | 2018-11-01 | 2018-12-18 | Oppo广东移动通信有限公司 | Message method, device, storage medium and mobile terminal |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102271097A (en) * | 2011-09-07 | 2011-12-07 | 南京云恒瑞通网络科技有限责任公司 | Method for integrally sending message containing online instant message and offline short message |
CN103856391A (en) * | 2012-12-06 | 2014-06-11 | 中国电信股份有限公司 | Information communication method and system, and server |
CN105376136A (en) * | 2014-08-27 | 2016-03-02 | 中国电信股份有限公司 | Instant communication method, server andsxja system |
CN105813033A (en) * | 2014-12-30 | 2016-07-27 | 中国移动通信集团公司 | Method, device and system for communication between instant message and short message |
US20170005957A1 (en) * | 2014-09-06 | 2017-01-05 | Gang Han | Methods and systems for virtual collaboration |
-
2017
- 2017-08-24 CN CN201710732569.0A patent/CN107465603A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102271097A (en) * | 2011-09-07 | 2011-12-07 | 南京云恒瑞通网络科技有限责任公司 | Method for integrally sending message containing online instant message and offline short message |
CN103856391A (en) * | 2012-12-06 | 2014-06-11 | 中国电信股份有限公司 | Information communication method and system, and server |
CN105376136A (en) * | 2014-08-27 | 2016-03-02 | 中国电信股份有限公司 | Instant communication method, server andsxja system |
US20170005957A1 (en) * | 2014-09-06 | 2017-01-05 | Gang Han | Methods and systems for virtual collaboration |
CN105813033A (en) * | 2014-12-30 | 2016-07-27 | 中国移动通信集团公司 | Method, device and system for communication between instant message and short message |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109040981A (en) * | 2018-11-01 | 2018-12-18 | Oppo广东移动通信有限公司 | Message method, device, storage medium and mobile terminal |
CN109040981B (en) * | 2018-11-01 | 2022-02-08 | Oppo广东移动通信有限公司 | Message sending method, device, storage medium and mobile terminal |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107027114A (en) | A kind of SIM card switching method, equipment and computer-readable recording medium | |
CN106961706A (en) | Method, mobile terminal and the computer-readable recording medium of communication pattern switching | |
CN107219974A (en) | A kind of method, mobile terminal and storage medium for showing application software | |
CN106507482B (en) | A kind of network locating method and terminal device | |
CN108021316A (en) | A kind of method and device of message display | |
CN107343083A (en) | One kind lifting game experiencing method, apparatus and computer-readable recording medium | |
CN107707450A (en) | A kind of method, apparatus and computer-readable recording medium for transmitting file | |
CN107635266A (en) | A kind of method for switching network, terminal and computer-readable recording medium | |
CN107182097A (en) | A kind of method for switching network, terminal and computer-readable recording medium | |
CN106973330A (en) | A kind of screen live broadcasting method, device and system | |
CN107193664A (en) | A kind of display methods of message, device and mobile terminal | |
CN109697008A (en) | A kind of content share method, terminal and computer readable storage medium | |
CN106506321A (en) | One population message treatment method and terminal device | |
CN107801201A (en) | Network recovery method and device | |
CN110177177A (en) | Message back method, mobile terminal and computer readable storage medium | |
CN108540297A (en) | A kind of chat management method, mobile terminal and computer readable storage medium | |
CN107871235A (en) | A kind of terminal fee payment method, mobile terminal, network center and storage medium | |
CN108307529A (en) | A kind of hotspot connection method and its mobile terminal | |
CN107734586A (en) | The switching method and mobile terminal of antenna | |
CN107621915A (en) | A kind of message prompt method, equipment and computer-readable storage medium | |
CN104426747B (en) | Instant communicating method, terminal and system | |
CN107105097A (en) | Information management method, mobile terminal, GSM and storage medium | |
CN107045418A (en) | A kind of method, device, computer installation and the storage medium of information input | |
CN110140366B (en) | Long short message sending method and terminal | |
CN108777734A (en) | A kind of application invitation method, terminal and computer readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20171212 |
|
WD01 | Invention patent application deemed withdrawn after publication |