WO2019037000A1 - 传输消息的终端和相关产品 - Google Patents

传输消息的终端和相关产品 Download PDF

Info

Publication number
WO2019037000A1
WO2019037000A1 PCT/CN2017/098762 CN2017098762W WO2019037000A1 WO 2019037000 A1 WO2019037000 A1 WO 2019037000A1 CN 2017098762 W CN2017098762 W CN 2017098762W WO 2019037000 A1 WO2019037000 A1 WO 2019037000A1
Authority
WO
WIPO (PCT)
Prior art keywords
message
terminal
mode
sending
online
Prior art date
Application number
PCT/CN2017/098762
Other languages
English (en)
French (fr)
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 深圳双创科技发展有限公司
Priority to PCT/CN2017/098762 priority Critical patent/WO2019037000A1/zh
Publication of WO2019037000A1 publication Critical patent/WO2019037000A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/12Messaging; Mailboxes; Announcements
    • H04W4/14Short messaging services, e.g. short message services [SMS] or unstructured supplementary service data [USSD]

Definitions

  • the present invention relates to terminal technologies, and in particular, to a terminal for transmitting a message and related products.
  • Short message is a kind of telecommunication service generated by the digital mobile communication system. It transmits text or digital short information through the signaling channel and signaling network of the mobile communication system, and belongs to a non-real-time, non-voice data communication service.
  • the short message may be originated by the mobile communication terminal (mobile phone), or may be originated by the mobile network operator's short message platform server, or may be originated by the network service provider SP (including ICP, ISP, etc.) interconnected with the mobile operator's short message platform.
  • the network service provider SP including ICP, ISP, etc.
  • the short message is a data communication service provided by the mobile network operator, it can only be transmitted between users of the mobile network operator.
  • the advantage is that as long as the user is within the mobile network of the mobile network operator, the short message can be delivered; but the disadvantage is also obvious, that is, the message length of the short message is always no more than 160 English or numeric characters, or 70 Chinese characters, that is, information
  • the amount of bearers is small, and mobile network operators generally charge text messages one by one.
  • the instant messaging service refers to a service capable of instantly transmitting and receiving Internet messages and the like.
  • the provider of instant messaging service is independent of the mobile network operator, and the transmission of instant messaging messages can only be sent between users of the instant messaging service.
  • the advantage is that the message length is not limited, and the information bears more; the disadvantage is that both parties need to access the Internet, and both must open the instant messaging client, if the party is not online, the message cannot be known to the other party in time.
  • the carriers of short messages and instant messaging are all on the mobile phone, which means that the user will use the mobile phone to carry on the interaction of the short message, and also the instant communication communication through the instant communication client.
  • the user needs to operate through two clients, which is not convenient for the user to use, and also communicates through the short message when the user can communicate through instant communication, thereby improving the communication cost of the user.
  • the embodiment of the invention provides a terminal for transmitting a message and a related product, which can automatically select between two communication modes, namely, a short message and an instant communication message, thereby saving the communication cost of the user.
  • a first aspect of the present invention provides a message sending method, including:
  • the message content is sent to the message recipient according to the selected message sending manner.
  • the sending manner of the message according to the message receiver information selection includes:
  • the instant communication mode is selected
  • the message mode is selected.
  • the method further includes: determining, according to the message receiver information, whether the message receiver is in the instant of communication, the method further includes:
  • the method further includes:
  • the short message mode is selected
  • the instant messaging mode is selected.
  • determining, according to the message receiver information, whether the message receiver is instant communication online :
  • Another aspect of the present invention provides a terminal, including:
  • An obtaining unit configured to acquire a message content input by a user and message receiving party information
  • a selecting unit configured to select a message sending manner according to the message receiver information acquired by the acquiring unit, where the message sending manner includes a short message mode or an instant communication mode;
  • a sending unit configured to send the message content to the message recipient according to a message sending manner selected by the selecting unit.
  • the selecting unit is specifically configured to:
  • the instant communication mode is selected
  • the message mode is selected.
  • it also includes:
  • a determining unit configured to determine whether the terminal is set to preferentially send an instant messaging message
  • the selecting unit is configured to: when the determining unit determines that the terminal is configured to preferentially send an instant communication message, determine, according to the message receiver information, whether the message receiver is in real time communication; determining in the determining unit When the terminal is not set to preferentially send an instant messaging message, the short message mode is selected.
  • it also includes:
  • a determining unit configured to determine whether the terminal is configured to allow sending a short message
  • the selecting unit is configured to select a short message mode when the determining unit determines that the terminal is configured to allow sending a short message; and select an instant communication mode when the terminal is not configured to allow a short message to be sent.
  • the selecting unit is specifically configured to: when determining, according to the message receiver information, whether the message receiver is in real time communication:
  • Another aspect of the present invention provides a computer readable storage medium storing program code, the program code including instructions for performing the following steps:
  • the message content is sent to the message recipient according to the selected message sending manner.
  • the sending manner of the message according to the message receiver information selection includes:
  • the instant communication mode is selected
  • the message mode is selected.
  • the program code includes instructions for:
  • the program code includes instructions for:
  • the short message mode is selected
  • the instant messaging mode is selected.
  • determining, according to the message receiver information, whether the message receiver is online including: sending an inquiry message to the instant communication server, where the query message includes the message receiver information; and receiving the instant communication server The response message sent, the response message includes information that the message recipient is instant online or that the instant communication is offline.
  • a terminal including: a processor and a memory coupled to each other; the processor is configured to: acquire a message content input by a user and message receiver information; and select a message according to the acquired message receiver information
  • the message sending manner includes a short message mode or an instant communication mode; and the message content is sent to the message receiving party according to the selected message sending manner.
  • the processor selects a message sending manner according to the obtained message receiver information, including: determining, according to the message receiver information, whether the message receiver is instant communication online; if the message receiver is time communication online , the instant messaging mode is selected; if the message recipient is not online, the short message mode is selected.
  • the processor is further configured to: determine whether the terminal is configured to preferentially send an instant communication message; and determine, according to the message receiver information, that the terminal is configured to preferentially send an instant communication message Whether the message receiver is instant communication online; when it is determined that the terminal is not set to preferentially send an instant communication message, the short message mode is selected.
  • the processor is further configured to: determine whether the terminal is configured to allow sending a short message; and select a short message mode when determining that the terminal is configured to allow sending a short message; and the terminal is not configured to allow sending a short message. When you choose instant messaging.
  • the determining, by the processor according to the message receiver information, whether the message receiver is in real time communication comprising: sending an inquiry message to the instant communication server, where the query message includes the message receiver information; The response message sent by the instant messaging server, the response message includes information that the message receiver is instant online or that the instant communication is offline.
  • the terminal can obtain the message content input by the user and the message receiver information, and then select the short message mode or the instant communication mode according to the message receiver information. And sending the message content to the message receiving party according to the selected message sending manner, so that the message sending mode can be automatically selected, and the information carrying of the message exchange is improved by the instant communication sending mode when the instant messaging message can be passed.
  • the quantity also reduces the communication cost of the user.
  • FIG. 1 is a flowchart of a method for operating a terminal according to an embodiment of the present invention
  • FIG. 2 is a flowchart of a method for operating a terminal according to another embodiment of the present invention.
  • FIG. 3 is a structural diagram of a terminal according to an embodiment of the present invention.
  • FIG. 4 is a structural diagram of a terminal according to another embodiment of the present invention.
  • FIG. 5 is a structural diagram of a terminal according to another embodiment of the present invention.
  • FIG. 1 is a flowchart of a method for sending a message according to an embodiment of the present invention.
  • the embodiment describes a process flow of the terminal, and the terminal may be a smart terminal or a tablet computer. .
  • this embodiment includes:
  • the message content can be input by the user through the physical keyboard of the smart terminal or through a virtual keyboard on the touch screen.
  • the message recipient information may be the recipient's mobile phone number, which is also registered in the instant messaging system. Or it may be other identifiers of the recipient, as long as the identifier is registered both in the mobile communication network and in the instant messaging system.
  • the terminal may determine, according to the message receiver information, the current state of the message receiver in the instant messaging system, that is, whether the message receiver is currently online in the instant messaging system; if the message receiver is currently online in the instant messaging system, It indicates that the message receiver can receive the instant communication message immediately, so the instant communication mode can be selected; otherwise, if the message receiver is not online in the instant messaging system, it means that the message receiver cannot receive the instant communication message immediately, so the message can be selected. the way.
  • the message content is encapsulated according to a format required by the instant messaging system, and then the encapsulated instant messaging message is sent to the instant messaging server, and is forwarded by the instant messaging server. Give the message recipient.
  • the sender of the message can communicate directly with the sender of the message.
  • the content of the message can be encapsulated in the format required by the instant messaging system and sent directly to the recipient of the message instead of The forwarding of the instant messaging server is required, and the sending speed of the message can be improved.
  • the selected message sending mode is the short message mode
  • the content of the message is encapsulated according to the requirements of the short message protocol, and then the encapsulated short message is sent to the short message center of the mobile network service provider, and the short message center forwards the short message to the message receiving party.
  • the terminal can obtain the message content input by the user and the message receiver information, and then select a short message mode or an instant communication mode according to the message receiver information, and then receive the message according to the selected message sending manner.
  • the party sends the content of the message, so that the message sending mode can be automatically selected, and the instant messaging mode can be used to improve the information carrying capacity of the message exchange while reducing the communication cost of the user.
  • the process of selecting a message sending manner according to the message receiver information may include:
  • the instant communication mode is selected
  • the message mode is selected.
  • the method may further include: before determining, according to the message receiver information, whether the message receiver is in real time, the method further includes:
  • the method may further include:
  • the short message mode is selected
  • the instant messaging mode is selected.
  • determining, according to the message recipient information, whether the message recipient is immediately communicating online determining, according to the message recipient information, whether the message recipient is immediately communicating online:
  • FIG. 2 is a flowchart of a method for sending a message according to another embodiment of the present invention. As shown in FIG. 2, the embodiment includes:
  • the message content can be input by the user through the physical keyboard of the smart terminal or through a virtual keyboard on the touch screen.
  • the message recipient information may be the recipient's mobile phone number, which is also registered in the instant messaging system. Or it may be other identifiers of the recipient, as long as the identifier is registered both in the mobile communication network and in the instant messaging system.
  • step 202 Determine whether the terminal is set to preferentially send an instant messaging message; if yes, go to step 203; if no, go to step 207.
  • a switch for preferentially sending an instant communication message can be preset, and the user can select whether to open the switch according to his own needs.
  • the switch can be considered to be turned off; if the user turns off the switch, the terminal can know that the user wants to send the message content by means of the short message. .
  • the query message includes the message receiver information.
  • the query message is used to query whether the message receiving party is currently online. If the user logs in to the instant messaging system, the user needs to send a message with the instant messaging server, so that the timely communication server can record the online status of each user.
  • the instant messaging server may query the online status of the message receiver according to the message receiver information included in the query message; if the message receiver is online, the response message carries the online information of the message receiver, and vice versa. If the message receiver is not online, the response message carries information that the message recipient is not online.
  • an online status flag may be set in the response message, and the flag may be To occupy one bit, for example, when the bit value is 1, the message receiver is online, and when the bit value is 0, the message receiver is not online. Of course, when the value of the bit is 0, the message receiver is online, and when the bit is 1, the message receiver is not online. Whether the value is 0 or 1 indicates that the message receiver can be pre-arranged in advance, which is not limited in the embodiment of the present invention.
  • step 205 Determine, according to the response message, whether the message receiver is instant communication online; if yes, go to step 206; if no, go to step 207.
  • the terminal may specifically determine, according to the value of the online status identifier bit in the response message, whether the message receiver is online, for example, when the identifier bit occupies one bit, if the bit value is 1, it is determined that the message receiver is currently communicating in real time; On the other hand, if the bit is 0, it is determined that the current recipient of the message is not online.
  • step 207 Determine whether the terminal is configured to allow sending a short message; if yes, go to step 208; if no, go to step 206.
  • a switch for preferentially allowing the sending of the short message can be preset, and the user can select whether to open the switch according to his own needs.
  • the user is very concerned about the cost of communication, and in any case, it is not allowed to send a text message, the user may consider opening the switch; if the user turns on the switch, the terminal can know that the user does not want to send the message content through the short message.
  • the message content is encapsulated according to a format required by the instant messaging system, and then the encapsulated instant messaging message is sent to the instant messaging server, and is forwarded by the instant messaging server. Give the message recipient.
  • the sender of the message can communicate directly with the sender of the message.
  • the content of the message can be encapsulated in the format required by the instant messaging system and sent directly to the recipient of the message instead of The forwarding of the instant messaging server is required, and the sending speed of the message can be improved.
  • the selected message sending mode is the short message mode
  • the content of the message is encapsulated according to the requirements of the short message protocol, and then the encapsulated short message is sent to the short message center of the mobile network service provider, and the short message center forwards the short message to the message receiving party.
  • the terminal can obtain the message content input by the user and the message receiver information, and then select a short message mode or an instant communication mode according to the message receiver information, and then receive the message according to the selected message sending manner.
  • the party sends the content of the message, so that the message sending mode can be automatically selected, and the instant messaging mode can be used to improve the information carrying capacity of the message exchange while reducing the communication cost of the user.
  • some settings can be preset in the terminal, so that the user can set some selection conditions of the message sending mode according to their own affordability, preferences, etc., so that the selected message sending mode meets the user's requirements and improves the user's use experience.
  • FIG. 3 illustrates a structure of a terminal according to an embodiment of the present invention. As shown in FIG. 3, the terminal includes:
  • the obtaining unit 301 is configured to acquire message content input by the user and message receiver information;
  • the message content can be input by the user through the physical keyboard of the smart terminal or through a virtual keyboard on the touch screen. Therefore, the acquisition unit 301 can be a physical keyboard of the smart terminal, or a touch screen or the like.
  • the message recipient information may be the recipient's mobile phone number, which is also registered in the instant messaging system. Or it may be other identifiers of the recipient, as long as the identifier is registered both in the mobile communication network and in the instant messaging system.
  • the selecting unit 302 is configured to select a message sending manner according to the message receiver information acquired by the acquiring unit 302, where the message sending manner includes a short message mode or an instant communication mode;
  • the terminal may determine, according to the message receiver information, the current state of the message receiver in the instant messaging system, that is, whether the message receiver is currently online in the instant messaging system; if the message receiver is currently online in the instant messaging system, It indicates that the message receiver can receive the instant communication message immediately, so the instant communication mode can be selected; otherwise, if the message receiver is not online in the instant messaging system, it means that the message receiver cannot receive the instant communication message immediately, so the message can be selected. the way.
  • the sending unit 303 is configured to send the message content to the message recipient according to a message sending manner selected by the selecting unit 302.
  • the message content is encapsulated according to a format required by the instant messaging system, and then the encapsulated instant messaging message is sent to the instant messaging server, and is forwarded by the instant messaging server. Give the message recipient.
  • the sender of the message can communicate directly with the sender of the message. Then, the content of the message can be encapsulated according to the format required by the instant messaging system, and then directly sent to the message receiver without the forwarding of the instant messaging server, which can improve the sending speed of the message.
  • the selected message sending mode is the short message mode
  • the content of the message is encapsulated according to the requirements of the short message protocol, and then the encapsulated short message is sent to the short message center of the mobile network service provider, and the short message center forwards the short message to the message receiving party.
  • the terminal can obtain the message content input by the user and the message receiver information, and then select a short message mode or an instant communication mode according to the message receiver information, and then receive the message according to the selected message sending manner.
  • the party sends the content of the message, so that the message sending mode can be automatically selected, and the instant messaging mode can be used to improve the information carrying capacity of the message exchange while reducing the communication cost of the user.
  • the selecting unit 302 may be specifically configured to:
  • the instant communication mode is selected
  • the message mode is selected.
  • the terminal may further include a determining unit 304 (shown by a broken line in FIG. 3), configured to determine whether the terminal is configured to preferentially send an instant messaging message;
  • the selecting unit 302 is configured to determine, according to the message receiver information, whether the message receiver is in real time communication when the determining unit 304 determines that the terminal is configured to preferentially send an instant messaging message; The unit 304 determines that the short message mode is selected when the terminal is not set to preferentially send an instant messaging message.
  • the determining unit 304 may be configured to determine whether the terminal is configured to allow sending a short message
  • the selecting unit 303 is configured to select a short message mode when the determining unit 304 determines that the terminal is configured to allow a short message to be sent, and select an instant communication mode when the terminal is not configured to allow a short message to be sent.
  • the selecting unit 302 may be specifically configured to: when determining whether the message receiver is online in time according to the message receiver information:
  • the terminal can obtain the message content input by the user and the message receiver information, and then select a short message mode or an instant communication mode according to the message receiver information, and then receive the message according to the selected message sending manner.
  • the party sends the content of the message, so that the message sending mode can be automatically selected, and the instant messaging mode can be used to improve the information carrying capacity of the message exchange while reducing the communication cost of the user.
  • some settings can be preset in the terminal, so that the user can set some selection conditions of the message sending mode according to their own affordability, preferences, etc., so that the selected message sending mode meets the user's requirements and improves the user's use experience.
  • the content is based on the same concept as the method embodiment of the present invention.
  • the description in the method embodiment of the present invention and details are not described herein again.
  • Another aspect of the present invention provides a computer readable storage medium storing program code, the program code including instructions for performing the following steps:
  • the message content is sent to the message recipient according to the selected message sending manner.
  • the sending manner of the message according to the message receiver information selection includes:
  • the instant communication mode is selected
  • the message mode is selected.
  • the program code includes instructions for:
  • the program code includes instructions for:
  • the short message mode is selected
  • the instant messaging mode is selected.
  • determining, according to the message receiver information, whether the message receiver is online including: sending an inquiry message to the instant communication server, where the query message includes the message receiver information; and receiving the instant communication server The response message sent, the response message includes information that the message recipient is instant online or that the instant communication is offline.
  • another aspect of the present invention provides a terminal, including: a processor 510 and a memory 520 coupled to each other; the processor 510 is configured to: obtain a message content input by a user and message receiver information; The obtained message receiving party information selection message sending manner includes the short message mode or the instant communication mode; and the message content is sent to the message receiving party according to the selected message sending manner.
  • the processor selects a message sending manner according to the obtained message receiver information, including: determining, according to the message receiver information, whether the message receiver is instant communication online; if the message receiver is time communication online , the instant messaging mode is selected; if the message recipient is not online, the short message mode is selected.
  • the processor is further configured to: determine whether the terminal is configured to preferentially send an instant communication message; and determine, according to the message receiver information, that the terminal is configured to preferentially send an instant communication message Whether the message receiver is instant communication online; when it is determined that the terminal is not set to preferentially send an instant communication message, the short message mode is selected.
  • the processor is further configured to: determine whether the terminal is configured to allow sending a short message; and select a short message mode when determining that the terminal is configured to allow sending a short message; and the terminal is not configured to allow sending a short message. When you choose instant messaging.
  • the determining, by the processor according to the message receiver information, whether the message receiver is in real time communication comprising: sending an inquiry message to the instant communication server, where the query message includes the message receiver information; The response message sent by the instant messaging server, the response message includes information that the message receiver is instant online or that the instant communication is offline.
  • the embodiment of the present invention further provides another mobile terminal.
  • the mobile terminal can be any terminal device including a mobile phone, a tablet computer, a PDA (Personal Digital Assistant), a POS (Point of Sales), an in-vehicle computer, and the mobile terminal is used as a mobile phone as an example:
  • FIG. 5 is a block diagram showing a partial structure of a mobile phone related to a mobile terminal provided by an embodiment of the present invention.
  • the mobile phone includes: a radio frequency (RF) circuit 910, a memory 920, an input unit 930, a sensor 950, an audio circuit 960, a Wireless Fidelity (WiFi) module 970, a processor 980, and a power supply 990.
  • RF radio frequency
  • the structure of the handset shown in FIG. 5 does not constitute a limitation to the handset, and may include more or less components than those illustrated, or some components may be combined, or different components may be arranged.
  • the input unit 930 can be configured to receive input numeric or character information and to generate key signal inputs related to user settings and function controls of the handset.
  • the input unit 930 can include a touch display screen 933, a biometric device 931, and other input devices 932.
  • the biometric device 931 can be a fingerprint recognition device, or a face recognition device, or an iris recognition device or the like.
  • the input unit 930 can also include other input devices 932.
  • other input devices 932 may include, but are not limited to, one or more of physical buttons, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, joysticks, and the like.
  • the processor 980 is configured to acquire an image to be processed, the target area of the image to be processed is used to add a watermark pattern, determine first color information of the first image corresponding to the target area, and determine the first color.
  • the processor 980 is the control center of the handset, which connects various portions of the entire handset using various interfaces and lines, by executing or executing software programs and/or modules stored in the memory 920, and invoking data stored in the memory 920, executing The phone's various functions and processing data, so that the overall monitoring of the phone.
  • the processor 980 may include one or more processing units; optionally, the processor 980 may integrate a processor and a modem processor, where the processor mainly processes an operating system, a user interface, an application, and the like.
  • the modem processor primarily handles wireless communications. It will be appreciated that the above described modem processor may also not be integrated into the processor 980.
  • memory 920 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
  • the RF circuit 910 can be used for receiving and transmitting information.
  • RF circuit 910 includes, but is not limited to, Antenna, at least one amplifier, transceiver, coupler, Low Noise Amplifier (LNA), duplexer, etc.
  • RF circuitry 910 can also communicate with the network and other devices via wireless communication.
  • the above wireless communication may use any communication standard or protocol, including but not limited to Global System of Mobile communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (Code Division). Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), E-mail, Short Messaging Service (SMS), and the like.
  • GSM Global System of Mobile communication
  • GPRS General Packet Radio Service
  • CDMA Code Division Multiple Access
  • WCDMA Wideband Code Division Multiple Access
  • LTE Long Term Evolution
  • E-mail Short Messaging Service
  • the handset may also include at least one type of sensor 950, such as a light sensor, motion sensor, and other sensors.
  • the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor can adjust the brightness of the touch display screen according to the brightness of the ambient light, and the proximity sensor can turn off the touch display when the mobile phone moves to the ear. And / or backlight.
  • the accelerometer sensor can detect the magnitude of acceleration in all directions (usually three axes). When it is stationary, it can detect the magnitude and direction of gravity.
  • the mobile phone can be used to identify the gesture of the mobile phone (such as horizontal and vertical screen switching, related Game, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for the mobile phone can also be configured with gyroscopes, barometers, hygrometers, thermometers, infrared sensors and other sensors, no longer Narration.
  • the gesture of the mobile phone such as horizontal and vertical screen switching, related Game, magnetometer attitude calibration
  • vibration recognition related functions such as pedometer, tapping
  • the mobile phone can also be configured with gyroscopes, barometers, hygrometers, thermometers, infrared sensors and other sensors, no longer Narration.
  • the audio circuit 960, the speaker 961, and the microphone 962 can provide an audio interface between the user and the mobile phone.
  • the audio circuit 960 can transmit the converted electrical data of the received audio data to the speaker 961 for conversion to the sound signal by the speaker 961; on the other hand, the microphone 962 converts the collected sound signal into an electrical signal by the audio circuit 960. After receiving, it is converted into audio data, and then processed by the audio data playback processor 980, sent to the other mobile phone via the RF circuit 910, or played back to the memory 920 for further processing.
  • WiFi is a short-range wireless transmission technology
  • the mobile phone can help users to send and receive emails, browse web pages, and access streaming media through the WiFi module 970, which provides users with wireless broadband Internet access.
  • FIG. 5 shows the WiFi module 970, it can be understood that it does not belong to the essential configuration of the mobile phone, and may be omitted as needed within the scope of not changing the essence of the invention.
  • the handset also includes a power supply 990 (such as a battery) that supplies power to the various components.
  • a power supply 990 (such as a battery) that supplies power to the various components.
  • the power supply can be logically coupled to the processor 980 via a power management system to manage charging, discharging, and power management functions through the power management system.
  • the mobile phone may further include a camera, a Bluetooth module, and the like, and details are not described herein again.
  • each step method flow may be implemented based on the structure of the mobile phone.
  • each unit function can be implemented based on the structure of the mobile phone.
  • Embodiments of the present invention also provide a computer program product comprising a non-transitory computer readable storage medium storing a computer program, the computer program being operative to cause a mobile terminal to perform the method as described in the above method embodiment Part or all of the steps of any one of the methods.
  • the storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

一种终端,其包括的处理器用于:获取用户输入的消息内容以及消息接收方信息;根据所述消息接收方信息选择消息发送方式,所述消息发送方式包括短信方式或即时通信方式;按照所述选择的消息发送方式向所述消息接收方发送所述消息内容。使用本发明,能够自动地在短信和即时通信消息两种交流方式中进行选择,节省用户的交流成本。

Description

传输消息的终端和相关产品 技术领域
本发明涉及终端技术,具体涉及一种传输消息的终端和相关产品。
背景技术
随着手机的普及,短信(SMS:Short Message Service)服务也得到了广泛的应用。短信是伴随数字移动通信系统而产生的一种电信业务,通过移动通信系统的信令信道和信令网,传送文字或数字短信息,属于一种非实时的、非语音的数据通信业务。短信可以由移动通信终端(手机)始发,也可由移动网络运营商的短信平台服务器始发,还可由与移动运营商短信平台互联的网络业务提供商SP(包括ICP、ISP等)始发。
由于短信是移动网络运营商提供的数据通信业务,只能够在移动网络运营商的用户之间进行发送。优点是只要用户在移动网络运营商的移动网络内,短信就可以送达;但是缺点也很明显,就是短信的信息长度,始终是不超过160个英文或数字字符,或70个汉字,即信息承载量较少,并且移动网络运营商一般是对短信进行逐条计费的。
而随着互联网的普及,即时通信(IM:Instant Message)业务也得到了飞速的发展。即时通信业务是指能够即时发送和接收互联网消息等的业务。即时通信业务的提供商是独立于移动网络运营商的,即时通信消息的发送也只能够在即时通信业务的用户之间发送。优点是消息长度不限,信息承载量较多;而缺点是需要双方均接入互联网,并且必须都打开即时通信客户端,如果一方不在线则消息不能及时让对方所知。
随着移动互联网的发展,短信和即时通信的载体都到了手机上面,也就是说用户既会用手机进行短信的交互,也会通过即时通信客户端进行即时通信的交互。但是用户需要通过两个客户端进行操作,既不方便用户的使用,也会在用户可以通过即时通信进行交流时通过短信进行了交流,提高了用户的交流成本。
发明内容
本发明实施例提供了传输消息的终端和相关产品,能够自动地在短信和即时通信消息两种交流方式中进行选择,节省用户的交流成本。
本发明实施例的目的是通过以下技术方案实现的:
本发明第一方面提供了一种消息发送方法,包括:
获取用户输入的消息内容以及消息接收方信息;
根据所述消息接收方信息选择消息发送方式,所述消息发送方式包括短信方式或即时通信方式;
按照所述选择的消息发送方式向所述消息接收方发送所述消息内容。
可选的,所述根据所述消息接收方信息选择消息发送方式包括:
根据所述消息接收方信息判断所述消息接收方是否即时通信在线;
如果所述消息接收方是时通信在线,则选择即时通信方式;
如果所述消息接收方是时通信不在线,则选择短信方式。
可选的,根据所述消息接收方信息判断所述消息接收方是否即时通信在线前,所述方法还包括:
判断所述终端是否设置成优先发送即时通信消息;
如果所述终端设置成优先发送即时通信消息,才根据所述消息接收方信息判断所述消息接收方是否即时通信在线;
如果所述终端没有设置成优先发送即时通信消息,选择短信方式。
可选的,选择短信方式前,所述方法还包括:
判断所述终端是否设置成允许发送短信;
如果所述终端设置成允许发送短信,才选择短信方式;
如果所述终端没有设置成允许发送短信,选择即时通信方式。
可选的,根据所述消息接收方信息判断所述消息接收方是否即时通信在线:
向即时通信服务器发送查询消息,所述查询消息包括所述消息接收方信息;
接收所述即时通信服务器发送的响应消息,所述响应消息包括所述消息接收方即时通信在线或即时通信不在线的信息。
本发明另一方面提供了一种终端,包括:
获取单元,用于获取用户输入的消息内容以及消息接收方信息;
选择单元,用于根据所述获取单元获取的消息接收方信息选择消息发送方式,所述消息发送方式包括短信方式或即时通信方式;
发送单元,用于按照所述选择单元选择的消息发送方式向所述消息接收方发送所述消息内容。
可选的,所述选择单元具体用于:
根据所述消息接收方信息判断所述消息接收方是否即时通信在线;
如果所述消息接收方是时通信在线,则选择即时通信方式;
如果所述消息接收方是时通信不在线,则选择短信方式。
可选的,还包括:
判断单元,用于判断所述终端是否设置成优先发送即时通信消息;
所述选择单元,用于在所述判断单元判断所述终端设置成优先发送即时通信消息时,才根据所述消息接收方信息判断所述消息接收方是否即时通信在线;在所述判断单元判断所述终端没有设置成优先发送即时通信消息时,选择短信方式。
可选的,还包括:
判断单元,用于判断所述终端是否设置成允许发送短信;
所述选择单元,用于在所述判断单元判断所述终端设置成允许发送短信时,才选择短信方式;在所述终端没有设置成允许发送短信时,选择即时通信方式。
可选的,所述选择单元在根据所述消息接收方信息判断所述消息接收方是否即时通信在线时具体用于:
向即时通信服务器发送查询消息,所述查询消息包括所述消息接收方信息;
接收所述即时通信服务器发送的响应消息,所述响应消息包括所述消息接收方即时通信在线或即时通信不在线的信息。
本发明另一方面提供一种计算机可读存储介质,所述计算机可读存储介质存储了程序代码,所述程序代码包括的指令用于执行如下步骤:
获取用户输入的消息内容以及消息接收方信息;
根据所述消息接收方信息选择消息发送方式,所述消息发送方式包括短信方式或即时通信方式;
按照所述选择的消息发送方式向所述消息接收方发送所述消息内容。
可选的,所述根据所述消息接收方信息选择消息发送方式包括:
根据所述消息接收方信息判断所述消息接收方是否即时通信在线;
如果所述消息接收方是时通信在线,则选择即时通信方式;
如果所述消息接收方是时通信不在线,则选择短信方式。
可选的,根据所述消息接收方信息判断所述消息接收方是否即时通信在线前,所述程序代码包括的指令还用于包括:
判断所述终端是否设置成优先发送即时通信消息;
如果所述终端设置成优先发送即时通信消息,才根据所述消息接收方信息判断所述消息接收方是否即时通信在线;
如果所述终端没有设置成优先发送即时通信消息,选择短信方式。
可选的,选择短信方式前,所述程序代码包括的指令还用于包括:
判断所述终端是否设置成允许发送短信;
如果所述终端设置成允许发送短信,才选择短信方式;
如果所述终端没有设置成允许发送短信,选择即时通信方式。
可选的,根据所述消息接收方信息判断所述消息接收方是否即时通信在线,包括:向即时通信服务器发送查询消息,所述查询消息包括所述消息接收方信息;接收所述即时通信服务器发送的响应消息,所述响应消息包括所述消息接收方即时通信在线或即时通信不在线的信息。
本发明另一方面提供一种终端,包括:相互耦合的处理器和存储器;所述处理器用于执行如下步骤:获取用户输入的消息内容以及消息接收方信息;根据获取的消息接收方信息选择消息发送方式,所述消息发送方式包括短信方式或即时通信方式;按照选择的消息发送方式向所述消息接收方发送所述消息内容。
可选的,所述处理器根据获取的消息接收方信息选择消息发送方式,包括:根据所述消息接收方信息判断所述消息接收方是否即时通信在线;如果所述消息接收方是时通信在线,则选择即时通信方式;如果所述消息接收方是时通信不在线,则选择短信方式。
可选的,所述处理器还用于:判断所述终端是否设置成优先发送即时通信消息;在判断所述终端设置成优先发送即时通信消息时,才根据所述消息接收方信息判断所述消息接收方是否即时通信在线;在判断所述终端没有设置成优先发送即时通信消息时,选择短信方式。
可选的,所述处理器还用于:判断所述终端是否设置成允许发送短信;在判断所述终端设置成允许发送短信时,才选择短信方式;在所述终端没有设置成允许发送短信时,选择即时通信方式。
可选的,所述处理器在根据所述消息接收方信息判断所述消息接收方是否即时通信在线,包括:向即时通信服务器发送查询消息,所述查询消息包括所述消息接收方信息;接收所述即时通信服务器发送的响应消息,所述响应消息包括所述消息接收方即时通信在线或即时通信不在线的信息。
从本发明实施例提供的以上技术方案可以看出,由于本发明实施例中终端可以获取用户输入的消息内容以及消息接收方信息,然后根据所述消息接收方信息选择短信方式或即时通信方式,再按照所述选择的消息发送方式向所述消息接收方发送所述消息内容,从而可以自动地选择消息发送方式,在能够通过即时通信消息时就通过即时通信发送方式,提高消息交流的信息承载量同时降低用户的交流成本。
附图说明
为了更清楚地说明本发明实施例的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。
图1为本发明一个实施例提供的终端操作方法的流程图;
图2为本发明另一个实施例提供的终端操作方法的流程图;
图3为本发明一个实施例提供的终端的结构图;
图4为本发明另一个实施例提供的终端的结构图
图5为本发明另一个实施例提供的终端的结构图。
具体实施方式
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
先介绍本发明实施例提供的视频通话方法,图1描述了本发明一个实施例提供的消息发送方法的流程,该实施例描述的是终端的处理流程,该终端可以是智能终端或平板电脑等。如图1所示,该实施例包括:
101、获取用户输入的消息内容以及消息接收方信息。
消息内容可以由用户通过智能终端的物理键盘输入,或者通过触摸屏上的虚拟键盘输入。
消息接收方信息可以是接收方的手机号码,该手机号码也在即时通信系统中有注册。或者也可以是接收方的其他标识,只要这个标识既在移动通信网络中注册,也在即时通信系统中注册即可。
102、根据消息接收方信息选择消息发送方式;其中,消息发送方式包括短信方式或即时通信方式。
具体地,终端可以根据消息接收方信息确定消息接收方当前在即时通信系统中的状态,即消息接收方当前是否在即时通信系统中上线了;如果消息接收方当前在即时通信系统中上线,则表示消息接收方可以即时接收到即时通信消息,因此可以选择即时通信方式;反之,如果消息接收方没有在即时通信系统中上线,则表示消息接收方不能即时接收到即时通信消息,因此可以选择短信方式。
103、按照所述选择的消息发送方式向所述消息接收方发送所述消息内容。
其中,在选择的消息发送方式为即时通信方式时,将所述消息内容按照即时通信系统要求的格式进行封装,然后将封装后的即时通信消息发送至即时通信消息服务器,由即时通信消息服务器转发给消息接收方。
在一些即时通信系统中,消息发送方是可以直接与消息发送方进行交流的,则此时可以将所述消息内容按照即时通信系统要求的格式进行封装后,直接发送至消息接收方,而不需要通过即时通信消息服务器的转发,能够提高消息的发送速度。
在选择的消息发送方式为短信方式时,将所述消息内容按照短信协议的要求进行封装,然后将封装后的短信发送至移动网络服务商的短信中心,由短信中心将短信转发给消息接收方。
可见,本实施例中终端可以获取用户输入的消息内容以及消息接收方信息,然后根据所述消息接收方信息选择短信方式或即时通信方式,再按照所述选择的消息发送方式向所述消息接收方发送所述消息内容,从而可以自动地选择消息发送方式,在能够通过即时通信消息时就通过即时通信发送方式,提高消息交流的信息承载量同时降低用户的交流成本。
在本发明的一个实施例中,上述根据所述消息接收方信息选择消息发送方式的过程可以包括:
根据所述消息接收方信息判断所述消息接收方是否即时通信在线;
如果所述消息接收方是时通信在线,则选择即时通信方式;
如果所述消息接收方是时通信不在线,则选择短信方式。
在本发明的另一个实施例中,在根据所述消息接收方信息判断所述消息接收方是否即时通信在线前,所述方法还可以包括:
判断所述终端是否设置成优先发送即时通信消息;
如果所述终端设置成优先发送即时通信消息,才根据所述消息接收方信息判断所述消息接收方是否即时通信在线;
如果所述终端没有设置成优先发送即时通信消息,选择短信方式。
在本发明的另一个实施例中,在选择短信方式前,所述方法还可以包括:
判断所述终端是否设置成允许发送短信;
如果所述终端设置成允许发送短信,才选择短信方式;
如果所述终端没有设置成允许发送短信,选择即时通信方式。
在本发明的另一个实施例中,根据所述消息接收方信息判断所述消息接收方是否即时通信在线:
向即时通信服务器发送查询消息,所述查询消息包括所述消息接收方信息;
接收所述即时通信服务器发送的响应消息,所述响应消息包括所述消息接收方即时通信在线或即时通信不在线的信息。
图2描述了本发明另一个实施例提供的消息发送方法的流程,如图2所示,该实施例包括:
201、获取用户输入的消息内容以及消息接收方信息。
消息内容可以由用户通过智能终端的物理键盘输入,或者通过触摸屏上的虚拟键盘输入。
消息接收方信息可以是接收方的手机号码,该手机号码也在即时通信系统中有注册。或者也可以是接收方的其他标识,只要这个标识既在移动通信网络中注册,也在即时通信系统中注册即可。
202、判断所述终端是否设置成优先发送即时通信消息;如果是,进入步骤203;如果否,进入步骤207。
可以在终端的设置菜单中,预置有是否优先发送即时通信消息的开关,用户可以根据自己的需要选择是否打开这个开关。
例如,用户不在乎交流成本,或者希望消息内容都能够很及时的传送至消息接收方,则可以考虑关闭这个开关;如果用户关闭了这个开关,终端就可以知道用户希望首要通过短信方式来发送消息内容。
反之,用户比较在乎交流成本,则可以考虑打开这个开关;如果用户打开了这个开关,终端就可以知道用户希望首要通过即时通信方式来发送消息内容。
203、向即时通信服务器发送查询消息;所述查询消息包括所述消息接收方信息。
该查询消息用于查询消息接收方当前是否即时通信系统在线;由于用户在登录了即时通信系统时,需要与即时通信服务器发送消息,从而及时通信服务器可以记录每个用户的在线状态。
204、接收所述即时通信服务器发送的响应消息。
即时通信服务器在接收到查询消息后,可以根据查询消息所包括的消息接收方信息查询消息接收方的在线状态;如果消息接收方在线,则在响应消息中携带消息接收方在线的信息,反之,如果消息接收方不在线,则在响应消息中携带消息接收方不在线的信息。
在一些实施例中,可以在响应消息中设置有在线状态标识位,该标识位可 以占用一个比特,例如在该比特位取值为1时表示消息接收方在线,反之在该比特位取值为0时表示消息接收方不在线。当然,也可以在该比特位取值为0时表示消息接收方在线,反之在该比特位取值为1时表示消息接收方不在线。具体取0还是取1表示消息接收方在线可以预先约定,本发明实施例不做限定。
205、根据所述响应消息判断所述消息接收方是否即时通信在线;如果是,进入步骤206;如果否,进入步骤207。
终端具体可以根据响应消息中的在线状态标识位的取值确定消息接收方是否在线,例如在该标识位占用一个比特时,如果该比特位取值为1则判断消息接收方当前即时通信在线;反之,如果该比特为取值为0则判断消息接收方当前即时通信不在线。
206、选择即时通信发送方式;进入步骤209。
207、判断所述终端是否设置成允许发送短信;如果是,进入步骤208;如果否,进入步骤206。
可以在终端的设置菜单中,预置有是否优先允许发送短信的开关,用户可以根据自己的需要选择是否打开这个开关。
例如,用户非常在乎交流成本,任何情况下都不允许发送短信,则用户可以考虑打开这个开关;如果用户打开了这个开关,终端就可以知道用户不希望通过短信方式来发送消息内容。
208、选择短信方式。
209、按照所述选择的消息发送方式向所述消息接收方发送所述消息内容。
其中,在选择的消息发送方式为即时通信方式时,将所述消息内容按照即时通信系统要求的格式进行封装,然后将封装后的即时通信消息发送至即时通信消息服务器,由即时通信消息服务器转发给消息接收方。
在一些即时通信系统中,消息发送方是可以直接与消息发送方进行交流的,则此时可以将所述消息内容按照即时通信系统要求的格式进行封装后,直接发送至消息接收方,而不需要通过即时通信消息服务器的转发,能够提高消息的发送速度。
在选择的消息发送方式为短信方式时,将所述消息内容按照短信协议的要求进行封装,然后将封装后的短信发送至移动网络服务商的短信中心,由短信中心将短信转发给消息接收方。
可见,本实施例中终端可以获取用户输入的消息内容以及消息接收方信息,然后根据所述消息接收方信息选择短信方式或即时通信方式,再按照所述选择的消息发送方式向所述消息接收方发送所述消息内容,从而可以自动地选择消息发送方式,在能够通过即时通信消息时就通过即时通信发送方式,提高消息交流的信息承载量同时降低用户的交流成本。同时也可以在终端中预设一些设置,让用户可以根据自己的承受能力,喜好等等设置一些消息发送方式的选择条件,从而使得选择的消息发送方式符合用户的要求,提高用户的使用体验。
图3描述了本发明一个实施例提供的终端的结构,如图3所示,该终端包括:
获取单元301,用于获取用户输入的消息内容以及消息接收方信息;
消息内容可以由用户通过智能终端的物理键盘输入,或者通过触摸屏上的虚拟键盘输入。因此,获取单元301可以是智能终端的物理键盘,或者触摸屏等等。
消息接收方信息可以是接收方的手机号码,该手机号码也在即时通信系统中有注册。或者也可以是接收方的其他标识,只要这个标识既在移动通信网络中注册,也在即时通信系统中注册即可。
选择单元302,用于根据所述获取单元302获取的消息接收方信息选择消息发送方式,所述消息发送方式包括短信方式或即时通信方式;
具体地,终端可以根据消息接收方信息确定消息接收方当前在即时通信系统中的状态,即消息接收方当前是否在即时通信系统中上线了;如果消息接收方当前在即时通信系统中上线,则表示消息接收方可以即时接收到即时通信消息,因此可以选择即时通信方式;反之,如果消息接收方没有在即时通信系统中上线,则表示消息接收方不能即时接收到即时通信消息,因此可以选择短信方式。
发送单元303,用于按照所述选择单元302选择的消息发送方式向所述消息接收方发送所述消息内容。
其中,在选择的消息发送方式为即时通信方式时,将所述消息内容按照即时通信系统要求的格式进行封装,然后将封装后的即时通信消息发送至即时通信消息服务器,由即时通信消息服务器转发给消息接收方。
在一些即时通信系统中,消息发送方是可以直接与消息发送方进行交流的, 则此时可以将所述消息内容按照即时通信系统要求的格式进行封装后,直接发送至消息接收方,而不需要通过即时通信消息服务器的转发,能够提高消息的发送速度。
在选择的消息发送方式为短信方式时,将所述消息内容按照短信协议的要求进行封装,然后将封装后的短信发送至移动网络服务商的短信中心,由短信中心将短信转发给消息接收方。
可见,本实施例中终端可以获取用户输入的消息内容以及消息接收方信息,然后根据所述消息接收方信息选择短信方式或即时通信方式,再按照所述选择的消息发送方式向所述消息接收方发送所述消息内容,从而可以自动地选择消息发送方式,在能够通过即时通信消息时就通过即时通信发送方式,提高消息交流的信息承载量同时降低用户的交流成本。
在本发明的一个实施例中,所述的选择单元302可以具体用于:
根据所述消息接收方信息判断所述消息接收方是否即时通信在线;
如果所述消息接收方是时通信在线,则选择即时通信方式;
如果所述消息接收方是时通信不在线,则选择短信方式。
如图3所示,在本发明的一些实施方式中,终端还可以包括判断单元304(如图3中虚线所示),用于判断所述终端是否设置成优先发送即时通信消息;
所述选择单元302,用于在所述判断单元304判断所述终端设置成优先发送即时通信消息时,才根据所述消息接收方信息判断所述消息接收方是否即时通信在线;在所述判断单元304判断所述终端没有设置成优先发送即时通信消息时,选择短信方式。
在本发明的另一个实施例中,判断单元304,可以用于判断所述终端是否设置成允许发送短信;
所述选择单元303,用于在所述判断单元304判断所述终端设置成允许发送短信时,才选择短信方式;在所述终端没有设置成允许发送短信时,选择即时通信方式。
在本发明的另一个实施例中,所述选择单元302在根据所述消息接收方信息判断所述消息接收方是否即时通信在线时可以具体用于:
向即时通信服务器发送查询消息,所述查询消息包括所述消息接收方信息;
接收所述即时通信服务器发送的响应消息,所述响应消息包括所述消息接 收方即时通信在线或即时通信不在线的信息。
可见,本实施例中终端可以获取用户输入的消息内容以及消息接收方信息,然后根据所述消息接收方信息选择短信方式或即时通信方式,再按照所述选择的消息发送方式向所述消息接收方发送所述消息内容,从而可以自动地选择消息发送方式,在能够通过即时通信消息时就通过即时通信发送方式,提高消息交流的信息承载量同时降低用户的交流成本。同时也可以在终端中预设一些设置,让用户可以根据自己的承受能力,喜好等等设置一些消息发送方式的选择条件,从而使得选择的消息发送方式符合用户的要求,提高用户的使用体验。
上述装置和系统内的各模块之间的信息交互、执行过程等内容,由于与本发明方法实施例基于同一构思,具体内容可参见本发明方法实施例中的叙述,此处不再赘述。
本发明另一方面提供一种计算机可读存储介质,所述计算机可读存储介质存储了程序代码,所述程序代码包括的指令用于执行如下步骤:
获取用户输入的消息内容以及消息接收方信息;
根据所述消息接收方信息选择消息发送方式,所述消息发送方式包括短信方式或即时通信方式;
按照所述选择的消息发送方式向所述消息接收方发送所述消息内容。
可选的,所述根据所述消息接收方信息选择消息发送方式包括:
根据所述消息接收方信息判断所述消息接收方是否即时通信在线;
如果所述消息接收方是时通信在线,则选择即时通信方式;
如果所述消息接收方是时通信不在线,则选择短信方式。
可选的,根据所述消息接收方信息判断所述消息接收方是否即时通信在线前,所述程序代码包括的指令还用于包括:
判断所述终端是否设置成优先发送即时通信消息;
如果所述终端设置成优先发送即时通信消息,才根据所述消息接收方信息判断所述消息接收方是否即时通信在线;
如果所述终端没有设置成优先发送即时通信消息,选择短信方式。
可选的,选择短信方式前,所述程序代码包括的指令还用于包括:
判断所述终端是否设置成允许发送短信;
如果所述终端设置成允许发送短信,才选择短信方式;
如果所述终端没有设置成允许发送短信,选择即时通信方式。
可选的,根据所述消息接收方信息判断所述消息接收方是否即时通信在线,包括:向即时通信服务器发送查询消息,所述查询消息包括所述消息接收方信息;接收所述即时通信服务器发送的响应消息,所述响应消息包括所述消息接收方即时通信在线或即时通信不在线的信息。
参见图4,本发明另一方面提供一种终端,包括:相互耦合的处理器510和存储器520;所述处理器510用于执行如下步骤:获取用户输入的消息内容以及消息接收方信息;根据获取的消息接收方信息选择消息发送方式,所述消息发送方式包括短信方式或即时通信方式;按照选择的消息发送方式向所述消息接收方发送所述消息内容。
可选的,所述处理器根据获取的消息接收方信息选择消息发送方式,包括:根据所述消息接收方信息判断所述消息接收方是否即时通信在线;如果所述消息接收方是时通信在线,则选择即时通信方式;如果所述消息接收方是时通信不在线,则选择短信方式。
可选的,所述处理器还用于:判断所述终端是否设置成优先发送即时通信消息;在判断所述终端设置成优先发送即时通信消息时,才根据所述消息接收方信息判断所述消息接收方是否即时通信在线;在判断所述终端没有设置成优先发送即时通信消息时,选择短信方式。
可选的,所述处理器还用于:判断所述终端是否设置成允许发送短信;在判断所述终端设置成允许发送短信时,才选择短信方式;在所述终端没有设置成允许发送短信时,选择即时通信方式。
可选的,所述处理器在根据所述消息接收方信息判断所述消息接收方是否即时通信在线,包括:向即时通信服务器发送查询消息,所述查询消息包括所述消息接收方信息;接收所述即时通信服务器发送的响应消息,所述响应消息包括所述消息接收方即时通信在线或即时通信不在线的信息。
本发明实施例还提供了另一移动终端,如图5所示,为了便于说明,仅示出了与本发明实施例相关的部分,具体技术细节未揭示的,请参照本发明实施例方法部分。该移动终端可以为包括手机、平板电脑、PDA(Personal Digital Assistant,个人数字助理)、POS(Point of Sales,销售终端)、车载电脑等任意终端设备,以移动终端为手机为例:
图5示出的是与本发明实施例提供的移动终端相关的手机的部分结构的框图。参考图5,手机包括:射频(Radio Frequency,RF)电路910、存储器920、输入单元930、传感器950、音频电路960、无线保真(Wireless Fidelity,WiFi)模块970、处理器980、以及电源990等部件。本领域技术人员可以理解,图5中示出的手机结构并不构成对手机的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。
下面结合图5对手机的各个构成部件进行具体的介绍:
输入单元930可用于接收输入的数字或字符信息,以及产生与手机的用户设置以及功能控制有关的键信号输入。具体地,输入单元930可包括触控显示屏933、生物识别装置931以及其他输入设备932。生物识别装置931可为指纹识别装置,或者,人脸识别装置,或者,虹膜识别装置等等。输入单元930还可以包括其他输入设备932。具体地,其他输入设备932可以包括但不限于物理按键、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。其中,所述处理器980用于获取待处理图像,所述待处理图像的目标区域用于添加水印图案;确定所述目标区域对应的第一图像的第一颜色信息;确定所述第一颜色信息与所述水印图案的第二颜色信息之间的颜色差的绝对值;在所述绝对值小于预设阈值时,对所述第一图像和/或所述水印图案进行颜色调整,且调整后的所述第二颜色信息与所述第一颜色信息之间的颜色差处于预设范围;将调整后的所述待处理图像和所述水印图案进行合成,得到输出图像。
处理器980是手机的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器920内的软件程序和/或模块,以及调用存储在存储器920内的数据,执行手机的各种功能和处理数据,从而对手机进行整体监控。可选的,处理器980可包括一个或多个处理单元;可选的,处理器980可集成处理器和调制解调处理器,其中,处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器980中。
此外,存储器920可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。
RF电路910可用于信息的接收和发送。通常,RF电路910包括但不限于 天线、至少一个放大器、收发信机、耦合器、低噪声放大器(Low Noise Amplifier,LNA)、双工器等。此外,RF电路910还可以通过无线通信与网络和其他设备通信。上述无线通信可以使用任一通信标准或协议,包括但不限于全球移动通讯系统(Global System of Mobile communication,GSM)、通用分组无线服务(General Packet Radio Service,GPRS)、码分多址(Code Division Multiple Access,CDMA)、宽带码分多址(Wideband Code Division Multiple Access,WCDMA)、长期演进(Long Term Evolution,LTE)、电子邮件、短消息服务(Short Messaging Service,SMS)等。
手机还可包括至少一种传感器950,比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节触控显示屏的亮度,接近传感器可在手机移动到耳边时,关闭触控显示屏和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;至于手机还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。
其中,音频电路960、扬声器961,传声器962可提供用户与手机之间的音频接口。音频电路960可将接收到的音频数据转换后的电信号,传输到扬声器961,由扬声器961转换为声音信号播放;另一方面,传声器962将收集的声音信号转换为电信号,由音频电路960接收后转换为音频数据,再将音频数据播放处理器980处理后,经RF电路910以发送给比如另一手机,或者将音频数据播放至存储器920以便进一步处理。
WiFi属于短距离无线传输技术,手机通过WiFi模块970可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图5示出了WiFi模块970,但是可以理解的是,其并不属于手机的必须构成,完全可以根据需要在不改变发明的本质的范围内而省略。
手机还包括给各个部件供电的电源990(比如电池),可选的,电源可以通过电源管理系统与处理器980逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。
尽管未示出,手机还可以包括摄像头、蓝牙模块等,在此不再赘述。
前述图1-2所示的实施例中,各步骤方法流程可以基于该手机的结构实现。
前述图3~图4所示的实施例中,各单元功能可以基于该手机的结构实现。
本发明实施例还提供一种计算机程序产品,所述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,所述计算机程序可操作来使移动终端执行如上述方法实施例中记载的任何一种方法的部分或全部步骤。
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,上述的程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,上述的存储介质可为磁碟、光盘、只读存储记忆体(ROM:Read-Only Memory)或随机存储记忆体(RAM:Random Access Memory)等。
本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其思想;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。

Claims (10)

  1. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质存储了程序代码,所述程序代码包括的指令用于执行如下步骤:
    获取用户输入的消息内容以及消息接收方信息;
    根据所述消息接收方信息选择消息发送方式,所述消息发送方式包括短信方式或即时通信方式;
    按照所述选择的消息发送方式向所述消息接收方发送所述消息内容。
  2. 如权利要求1所述的介质,其特征在于,所述根据所述消息接收方信息选择消息发送方式包括:
    根据所述消息接收方信息判断所述消息接收方是否即时通信在线;
    如果所述消息接收方是时通信在线,则选择即时通信方式;
    如果所述消息接收方是时通信不在线,则选择短信方式。
  3. 如权利要求2所述的介质,其特征在于,根据所述消息接收方信息判断所述消息接收方是否即时通信在线前,所述程序代码包括的指令还用于包括:
    判断所述终端是否设置成优先发送即时通信消息;
    如果所述终端设置成优先发送即时通信消息,才根据所述消息接收方信息判断所述消息接收方是否即时通信在线;
    如果所述终端没有设置成优先发送即时通信消息,选择短信方式。
  4. 如权利要求2所述的介质,其特征在于,选择短信方式前,所述程序代码包括的指令还用于包括:
    判断所述终端是否设置成允许发送短信;
    如果所述终端设置成允许发送短信,才选择短信方式;
    如果所述终端没有设置成允许发送短信,选择即时通信方式。
  5. 根据权利要求2至4任一所述的介质,其特征在于,根据所述消息接收方信息判断所述消息接收方是否即时通信在线,包括:向即时通信服务器发送查询消息,所述查询消息包括所述消息接收方信息;接收所述即时通信服务器发送的响应消息,所述响应消息包括所述消息接收方即时通信在线或即时通 信不在线的信息。
  6. 一种终端,其特征在于,包括:相互耦合的处理器和存储器;所述处理器用于执行如下步骤:获取用户输入的消息内容以及消息接收方信息;根据获取的消息接收方信息选择消息发送方式,所述消息发送方式包括短信方式或即时通信方式;按照选择的消息发送方式向所述消息接收方发送所述消息内容。
  7. 如权利要求6所述的终端,其特征在于,所述处理器根据获取的消息接收方信息选择消息发送方式,包括:根据所述消息接收方信息判断所述消息接收方是否即时通信在线;如果所述消息接收方是时通信在线,则选择即时通信方式;如果所述消息接收方是时通信不在线,则选择短信方式。
  8. 如权利要求7所述的终端,其特征在于,所述处理器还用于:判断所述终端是否设置成优先发送即时通信消息;在判断所述终端设置成优先发送即时通信消息时,才根据所述消息接收方信息判断所述消息接收方是否即时通信在线;在判断所述终端没有设置成优先发送即时通信消息时,选择短信方式。
  9. 如权利要求7所述的终端,其特征在于,
    所述处理器还用于:判断所述终端是否设置成允许发送短信;在判断所述终端设置成允许发送短信时,才选择短信方式;在所述终端没有设置成允许发送短信时,选择即时通信方式。
  10. 根据权利要求6至9任一所述的终端,其特征在于,所述处理器在根据所述消息接收方信息判断所述消息接收方是否即时通信在线,包括:向即时通信服务器发送查询消息,所述查询消息包括所述消息接收方信息;接收所述即时通信服务器发送的响应消息,所述响应消息包括所述消息接收方即时通信在线或即时通信不在线的信息。
PCT/CN2017/098762 2017-08-24 2017-08-24 传输消息的终端和相关产品 WO2019037000A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/098762 WO2019037000A1 (zh) 2017-08-24 2017-08-24 传输消息的终端和相关产品

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/098762 WO2019037000A1 (zh) 2017-08-24 2017-08-24 传输消息的终端和相关产品

Publications (1)

Publication Number Publication Date
WO2019037000A1 true WO2019037000A1 (zh) 2019-02-28

Family

ID=65439723

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/098762 WO2019037000A1 (zh) 2017-08-24 2017-08-24 传输消息的终端和相关产品

Country Status (1)

Country Link
WO (1) WO2019037000A1 (zh)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060142005A1 (en) * 2004-12-27 2006-06-29 Nokia Corporation Providing service distribution between distributed applications
CN101227652A (zh) * 2008-02-04 2008-07-23 中国移动通信集团公司 一种即时通信方法、装置及系统
US8880612B1 (en) * 2004-12-16 2014-11-04 Sprint Spectrum L.P. Mobile device proxy for instant messaging
CN107426093A (zh) * 2017-08-24 2017-12-01 深圳双创科技发展有限公司 一种消息发送方法及终端

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8880612B1 (en) * 2004-12-16 2014-11-04 Sprint Spectrum L.P. Mobile device proxy for instant messaging
US20060142005A1 (en) * 2004-12-27 2006-06-29 Nokia Corporation Providing service distribution between distributed applications
CN101227652A (zh) * 2008-02-04 2008-07-23 中国移动通信集团公司 一种即时通信方法、装置及系统
CN107426093A (zh) * 2017-08-24 2017-12-01 深圳双创科技发展有限公司 一种消息发送方法及终端

Similar Documents

Publication Publication Date Title
US10581774B2 (en) Method, terminal and computer storage medium for group sending message in instant communication
EP3627777B1 (en) Message transmission method and device, terminal and storage medium
US20080305742A1 (en) Interface for pda and computing device
CN106973330B (zh) 一种屏幕直播方法、装置和系统
CN107483320B (zh) 一种群组创建的方法及服务器
CN107645551B (zh) 文件传输方法及装置
WO2018205786A1 (zh) 分享录屏视频的方法、装置及设备
CN108206742B (zh) 一种消息发送方法、装置、服务器以及系统
CN111949177B (zh) 信息发送方法、终端设备及计算机可读存储介质
CN112087362B (zh) 一种客户端之间的消息转发方法和装置以及终端
CN104871481A (zh) 用于本地网络设备的基于云的功率管理的方法和装置
CN112492529B (zh) 音频传输方法、移动终端及计算机可读存储介质
WO2021223157A1 (zh) 通信控制方法和通信控制装置
CN112333337B (zh) 一种消息查看方法、装置、设备及存储介质
CN108601063B (zh) 个人热点实现方法及相关产品
US20220368667A1 (en) Method and apparatus for forwarding content between different application programs
WO2018157720A1 (zh) 一种即时通讯信息的处理方法及装置
CN107465827B (zh) 一种信息回复的方法、终端及存储介质
WO2019037000A1 (zh) 传输消息的终端和相关产品
KR101349156B1 (ko) 상태 정보를 공유하는 방법과 그를 위한 시스템, 서버,이동통신 단말기 및 컴퓨터로 읽을 수 있는 저장매체
WO2018232646A1 (zh) 具有自适应播放能力的移动终端和相关产品
CN113596748B (zh) 实现呼叫保持功能的方法、服务器及用户终端
CN114501449B (zh) 信息查询的方法、装置、电子设备及存储介质
CN115277928B (zh) 处理方法、智能终端及存储介质
CN112689274B (zh) 短距离无线通信连接的提示方法、装置及按摩设备

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17922855

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17922855

Country of ref document: EP

Kind code of ref document: A1