CN110140366B - Long short message sending method and terminal - Google Patents

Long short message sending method and terminal Download PDF

Info

Publication number
CN110140366B
CN110140366B CN201780081301.3A CN201780081301A CN110140366B CN 110140366 B CN110140366 B CN 110140366B CN 201780081301 A CN201780081301 A CN 201780081301A CN 110140366 B CN110140366 B CN 110140366B
Authority
CN
China
Prior art keywords
short message
network
terminal
packet
sending
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201780081301.3A
Other languages
Chinese (zh)
Other versions
CN110140366A (en
Inventor
张鑫
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Publication of CN110140366A publication Critical patent/CN110140366A/en
Application granted granted Critical
Publication of CN110140366B publication Critical patent/CN110140366B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/18Information format or content conversion, e.g. adaptation by the network of the transmitted or received information for the purpose of wireless delivery to users or terminals

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Telephone Function (AREA)

Abstract

The embodiment of the application provides a long short message sending method and a terminal, relates to the field of communication, and ensures that the terminal successfully sends a mobile time length short message in networks supporting different packet formats. The method specifically comprises the following steps: the terminal accesses a first network, splits the long short message into a first short message packet according to a first packet format supported by the first network, and sends the first short message packet; in the process of sending the first short message packet, the terminal is detected to be switched from the first network to the second network, the second network supports the second packet format, the terminal stops sending the first short message packet, the long short message is divided into the second short message packet according to the second packet format, and the second short message packet is sent.

Description

Long short message sending method and terminal
The present application claims priority of chinese patent application with application number 201710931542.4, entitled "a long short message sending method and terminal" filed by the chinese patent office on 09.10/2017, which is incorporated herein by reference in its entirety.
Technical Field
The present application relates to the field of communications, and in particular, to a method and a terminal for sending a long short message.
Background
Although communication technology is rapidly developed, Short Messaging Service (SMS) Service is still a Service that is not available to users when using terminals.
Before the short message is sent to the operator server, the terminal packages the short message into a data packet format supported by the operator network according to a packet format specified by a standard protocol, and then sends the short message to the operator server through a sending domain, and the operator server sends the short message to a target terminal. In the SMS service, a message whose message length exceeds a threshold is called a long short message. For long short messages, the terminal divides the long short message into a plurality of short message packets and then packages the short message packets according to the packet format, each packet comprises the serial number of the short message packet, and the receiving party combines the short message packets into a long short message according to the serial numbers and displays the long short message to the user. Currently, the global operator network supports two short message packet formats, 3rd Generation Partnership Project (3 GPP) and 3GPP 2.
Under different network standards, the operator server can support different packet formats. For example, Code Division Multiple Access (CDMA) network operators support only short messages in 3GPP2 packet format and transmit them in Circuit Switched (CS) domain in second Generation mobile communication technology (2nd-Generation, 2G) and third Generation mobile communication technology (3rd-Generation, 3G) networks, and support only short messages in 3GPP packet format and transmit them in Internet Protocol (IP) Multimedia Subsystem (IMS) domain in fourth Generation mobile communication technology (4th-Generation, 4G) networks.
The operator network is upgraded from a 2G network and a 3G network to a 4G network, and the coexistence of networks with different network systems is a necessary stage, so that the situation of accessing the networks with different systems exists in the terminal moving process. However, the conventional terminal usually determines the packet format before sending the short message, and in the process of sending the long short message, if the terminal is mobile-accessed to a network that does not support the determined packet format, the short message packet encapsulated according to the determined packet format cannot be identified, thereby causing the failure of sending the long short message.
Disclosure of Invention
The embodiment of the application provides a long short message sending method and a terminal, which ensure that the terminal can successfully send a mobile time length short message in networks supporting different packet formats.
In order to achieve the above purpose, the embodiment of the present application adopts the following technical solutions:
in a first aspect, a method for sending a long short message is provided, including: the terminal accesses a first network, splits a long short message into a first short message packet according to a first packet format supported by the first network, and sends the first short message packet; in the process of sending the first short message packet, the terminal is detected to be switched from the first network to the second network, the second network supports the second packet format, the terminal stops sending the first short message packet, the long short message is divided into the second short message packet according to the second packet format, and the second short message packet is sent.
By the long short message sending method, once the packet format supported by the network connected with the terminal is changed in the process of sending the short message packet split by the terminal, the long short message is re-split and sent by adopting the packet format supported by the newly accessed network, so that the operator server can accurately identify the short message packet sent by the terminal, and further the terminal can be ensured to successfully send the long short message when moving in the network supporting different packet formats.
With reference to the first aspect, in a possible implementation manner, the method for sending a long short message provided by the present application may further include: the terminal acquires the packet formats supported by different networks in a preset corresponding relation; the preset corresponding relation comprises a packet format supported by at least one network system.
With reference to the first aspect or any one of the foregoing possible implementation manners, in another possible implementation manner, the sending, by the terminal, the first short packet may specifically include: and the terminal sequentially sends the first short message packets in a sending domain corresponding to the first network. The sending, by the terminal, the second short packet may specifically include: and the terminal sequentially sends the second short message packets in a sending domain corresponding to the second network.
With reference to the first aspect or any one of the foregoing possible implementation manners, in another possible implementation manner, before splitting the long short message into a second short message packet according to a second packet format and sending the second short message packet, the long short message sending method provided by the present application may further include: the terminal judges whether the terminal meets a preset condition or not; if the terminal does not meet the preset conditions, the terminal detects that the terminal is switched from the first network to the second network in the process of sending the first short message packet, the terminal stops sending the first short message packet, divides the long short message into the second short message packet according to the second packet format, and sends the second short message packet. Therefore, the condition that the packet format of the terminal is frequently changed due to the mobile switching network is controlled through the preset condition.
With reference to the first aspect or any one of the foregoing possible implementation manners, in another possible implementation manner, the preset condition may include that a time length for sending the long short message is greater than or equal to a preset time length, or the preset condition includes that a number of times for splitting the long short message into short packets according to different packet formats is greater than or equal to a preset threshold.
With reference to the first aspect or any one of the foregoing possible implementation manners, in another possible implementation manner, the method for sending a long short message provided by the present application may further include: and if the terminal meets the preset condition, the terminal stops sending the long short message. Therefore, the condition that the packet format of the terminal is frequently changed due to the mobile switching network is controlled through the preset condition, and the sending of the long short message is stopped when the terminal meets the preset condition.
With reference to the first aspect or any one of the foregoing possible implementation manners, in another possible implementation manner, after the terminal stops sending the long short message, the method for sending the long short message provided by the present application may further include: and displaying the failure of sending the long short message to the terminal user. The retransmission or no processing is selected by the user by displaying the transmission failure to the user.
The sending failure of the long short message is displayed to the terminal User, and the sending failure can be reported to a User Interface (UI) module of the terminal, and the UI module displays the sending failure to the User in a terminal screen.
With reference to the first aspect or any one of the foregoing possible implementation manners, in another possible implementation manner, in the process of sending the first short packet, the terminal detects that the terminal is switched from the first network to the second network, and the long short message sending method provided by the present application may further include: the terminal clears the unsent first short message packet to avoid the situation that the terminal mistakenly sends the first short message packet obtained by splitting the long short message according to the first packet format to the operator server to occupy resources.
With reference to the first aspect or any one of the foregoing possible implementation manners, in another possible implementation manner, before the terminal accesses the first network, splits the long short message into the first short message packet according to the first packet format supported by the first network, and sends the first short message packet, the long short message sending method provided by the present application may further include: the terminal receives the long short message input by the user. In this implementation, the first network is a network to which the terminal accesses when receiving a long short message input by the user.
With reference to the first aspect or any one of the foregoing possible implementation manners, in another possible implementation manner, the first network may be any network that is re-accessed due to movement after the terminal receives the long short message input by the user.
With reference to the first aspect or any one of the foregoing possible implementation manners, in another possible implementation manner, the presetting a corresponding relationship may further include: and at least one sending domain corresponding to the network.
In a second aspect, a terminal is provided, which may include an access unit, a splitting unit, a sending unit, and a monitoring unit. The access unit is used for the terminal to access a network; the splitting unit is used for splitting the long short message into a first short message packet according to a first packet format supported by a first network when the access unit is accessed to the first network; the sending unit is used for sending the first short message packet; the monitoring unit is used for detecting whether the packet format supported by the network accessed by the access unit is changed or not in the process of sending the first short message packet by the sending unit; the sending unit is further used for switching the access unit from the first network to the second network in the process of sending the first short message packet, and the monitoring unit stops sending the first short message packet when detecting that the second network supports a second packet format different from that of the first network; the splitting unit is also used for switching the access unit from the first network to a second network in the process of sending the first short message packet by the sending unit, and the monitoring unit detects that the second network supports a second packet format different from the first network and splits the long short message into second short message packets according to the second packet format; the sending unit is also used for sending the second short message packet.
According to the terminal provided by the application, in the process of sending the short message packet split by the terminal, once the packet format supported by the network connected with the terminal is changed, the long short message is split again and sent by adopting the packet format supported by the newly accessed network, so that the operator server can accurately identify the short message packet sent by the terminal, and further the successful sending of the long short message is ensured when the terminal moves in the network supporting different packet formats.
With reference to the second aspect, in a possible implementation manner, the monitoring unit is specifically configured to: acquiring packet formats supported by different networks in a preset corresponding relation, and detecting whether the packet formats supported by the networks accessed by the access unit are changed; the preset corresponding relation comprises at least one packet format supported by the network.
With reference to the second aspect or any one of the foregoing possible implementation manners, in another possible implementation manner, the sending unit is specifically configured to: sequentially sending first short message packets in a sending domain corresponding to a first network; and sequentially sending the second short message packets in a sending domain corresponding to the second network.
With reference to the second aspect or any one of the foregoing possible implementation manners, in another possible implementation manner, the terminal may further include: and the judging unit is used for judging whether the terminal meets the preset condition. The splitting unit is further used for switching the access unit from the first network to a second network in the process of sending the first short message packet by the sending unit if the judging unit judges that the terminal does not meet the preset condition, and the monitoring unit detects that the second network supports a second packet format different from the first network and splits the long short message into the second short message packet according to the second packet format.
With reference to the second aspect or any one of the foregoing possible implementation manners, in another possible implementation manner, the preset condition includes that a time length for sending the long short message is greater than or equal to a preset time length, or the preset condition includes that a number of times for splitting the long short message into short packets according to different packet formats is greater than or equal to a preset threshold.
With reference to the second aspect or any one of the foregoing possible implementation manners, in another possible implementation manner, the sending unit may be further configured to stop sending the long short message if the determining unit determines that the terminal meets the preset condition.
With reference to the second aspect or any one of the foregoing possible implementation manners, in another possible implementation manner, the terminal may further include a clearing unit, configured to switch, by the access unit, the access from the first network to the second network in a process that the sending unit sends the first short packet, and the monitoring unit detects that the second network supports a second packet format different from that of the first network, and clears the unsent first short packet
With reference to the second aspect or any one of the foregoing possible implementation manners, in another possible implementation manner, the terminal may further include: and the receiving unit is used for receiving the long short message input by the user of the terminal.
With reference to the second aspect or any one of the foregoing possible implementation manners, in another possible implementation manner, the presetting a corresponding relationship may further include: and at least one sending domain corresponding to the network.
It should be noted that, the terminal provided in the second aspect of the present application is configured to implement the long short message sending method provided in the first aspect, and specific implementation of the terminal may refer to specific implementation of the first aspect, and may also achieve the same effect as that of the first aspect, and details are not repeated here.
In a third aspect, another terminal is provided that includes a processor, a memory, and a transceiver. The memory is used for storing computer execution instructions, and when the terminal runs, the processor calls the computer execution instructions stored in the memory to execute the long short message sending method according to the first aspect or any possible implementation manner. Wherein the processor is specifically configured to: accessing a first network, splitting a long short message into a first short message packet according to a first packet format supported by the first network, and sending the first short message packet through a transceiver; and in the process of sending the first short message packet through the transceiver, detecting that the terminal is switched from a first network to a second network, the second network supports a second packet format, controlling the transceiver to stop sending the first short message packet, splitting the long short message into second short message packets according to the second packet format, and sending the second short message packets through the transceiver.
According to the terminal provided by the application, in the process of sending the short message packet split by the terminal, once the packet format supported by the network connected with the terminal is changed, the long short message is split again and sent by adopting the packet format supported by the newly accessed network, so that the operator server can accurately identify the short message packet sent by the terminal, and further the successful sending of the long short message is ensured when the terminal moves in the network supporting different packet formats.
With reference to the third aspect, in a possible implementation manner, the processor is specifically configured to: acquiring packet formats supported by different networks in a preset corresponding relation, and detecting whether the packet formats supported by the accessed networks are changed; the preset corresponding relation comprises at least one packet format supported by the network.
With reference to the third aspect or any one of the foregoing possible implementations, in another possible implementation, the processor is specifically configured to: sequentially sending first short message packets through a transceiver in a sending domain corresponding to a first network; and sequentially transmitting the second short message packets through the transceiver in a transmitting domain corresponding to the second network.
With reference to the third aspect or any one of the foregoing possible implementation manners, in another possible implementation manner, the processor may be further configured to determine whether the terminal meets a preset condition; the processor is specifically configured to, if it is determined that the terminal does not satisfy the preset condition, switch, by the terminal, the terminal from the first network to the second network in a process of sending the first short packet through the transceiver, detect that the second network supports a second packet format different from the first network, control the transceiver to stop sending the first short packet, split the long short message into the second short packet according to the second packet format, and send the second short packet through the transceiver.
With reference to the third aspect or any one of the foregoing possible implementation manners, in another possible implementation manner, the preset condition includes that a time length for sending the long short message is greater than or equal to a preset time length, or the preset condition includes that a number of times for splitting the long short message into short packets according to different packet formats is greater than or equal to a preset threshold.
With reference to the third aspect or any one of the foregoing possible implementation manners, in another possible implementation manner, the processor may be further configured to, if it is determined that the terminal does not meet the preset condition, switch, by the terminal, from the first network to a second network in a process of sending the first short message packet through the transceiver, detect that the second network supports a second packet format different from the first network, and control the transceiver to stop sending the long short message to the operator server.
With reference to the third aspect or any one of the foregoing possible implementation manners, in another possible implementation manner, the processor is specifically configured to, during the process of sending the first short packet through the transceiver, switch access from the first network to the second network by the terminal, detect that the second network supports a second packet format different from that of the first network, and clear the unsent first short packet.
With reference to the third aspect or any one of the foregoing possible implementation manners, in another possible implementation manner, the processor may be further configured to receive, by the transceiver, the long short message input by the user.
With reference to the third aspect or any one of the foregoing possible implementation manners, in another possible implementation manner, the presetting a corresponding relationship may further include: and at least one sending domain corresponding to the network.
It should be noted that, the terminal provided in the third aspect of the present application is configured to implement the long short message sending method provided in the first aspect, and specific implementation of the terminal may refer to specific implementation of the first aspect, and may also achieve the same effect as that of the first aspect, and details are not repeated here.
A fourth aspect of the embodiments of the present application provides a computer storage medium, where a computer program is stored on the computer storage medium, and when the computer program is executed by a processor, the method for sending a long short message according to the first aspect or any one of the possible implementation manners of the first aspect is implemented.
A fifth aspect of the embodiments of the present application provides a computer program product, which, when running on a computer, causes the computer to execute the long short message sending method according to the first aspect or any one of the possible implementation manners of the first aspect.
Drawings
FIG. 1 is a simplified diagram of a system architecture according to an embodiment of the present application;
fig. 2 is a schematic composition diagram of a mobile phone according to an embodiment of the present application;
fig. 3 is a schematic view of a long short message sending scenario provided in an embodiment of the present application;
fig. 4 is a schematic view of another long short message sending scenario provided in the embodiment of the present application;
fig. 5 is a schematic diagram of another long short message sending scenario provided in an embodiment of the present application;
fig. 6A is a schematic diagram of a long short message transmission failure interface according to an embodiment of the present application;
fig. 6B is a schematic diagram of another long short message transmission failure interface according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of a terminal according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of another terminal provided in an embodiment of the present application;
fig. 9 is a schematic structural diagram of another terminal according to an embodiment of the present application.
Detailed Description
The terms "first" and "second" and the like in the description and drawings of the present application are used for distinguishing different objects or for distinguishing different processes for the same object, and are not used for describing a specific order of the objects. For example, the first application and the second application are different applications.
In the embodiments of the present application, words such as "exemplary" or "for example" are used to mean serving as an example, instance, or illustration. Any embodiment or design described herein as "exemplary" or "e.g.," is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the word "exemplary" or "such as" is intended to present relevant concepts in a concrete fashion for ease of understanding.
In order to ensure that a terminal can successfully send a mobile time-length short message in networks supporting different packet formats, an embodiment of the present application provides a long short message sending method, and the basic principle is as follows: the terminal splits and encapsulates the long short message according to the packet format supported by the network to which the terminal is accessed and sends the long short message, the change condition of the packet format supported by the accessed network is monitored in the sending process, once the terminal is switched to be accessed to another network supporting different packet formats, the terminal encapsulates the long short message again according to the packet format supported by the newly accessed network and sends the long short message, and therefore the operator server can accurately identify the short message packet sent by the terminal, and the successful sending of the long short message is guaranteed when the terminal moves in the network supporting different packet formats.
Embodiments of the present application will be described in detail below with reference to the accompanying drawings.
Fig. 1 shows a simplified schematic diagram of a system architecture to which embodiments of the present application may be applied. As shown in fig. 1, the system architecture includes at least one operator server and a terminal 102, such as the operator server 101 and the operator server 103 in fig. 1. Each operator server is deployed according to the network, belongs to networks of different standards, and the networks of different standards support different packet formats. The packet format supported by each network is determined by the network configuration, which is not specifically limited in the embodiment of the present application.
Illustratively, as shown in fig. 1, a terminal 102 accesses a network a when registering the network, and communicates with an operator server 101 deployed in the network a to implement a business service; in the moving process, the terminal 102 switches to access the network B due to the change of the position thereof, and communicates with the operator server 103 deployed in the network B to implement the service.
The operator server 101 or the operator server 103 may be a hardware device deployed by an operator of the wireless network on a network side, and is an entry device of the terminal 102 accessing the wireless network of the operator. The operator server 101 or the operator server 103 accesses the terminal 102 to the deployed operator mobile network to implement the service application by communicating with the terminal 102. It should be noted that the type of the operator server 101 or the operator server 103 may be deployed according to actual needs, and this is not specifically limited in this embodiment of the application.
The terminal 102 may be a desktop, laptop, tablet, handheld Computer, cell phone, notebook, Ultra-mobile Personal Computer (UMPC), netbook, and cellular phone, Personal Digital Assistant (PDA), dedicated media player, consumer electronics, wearable device, smart watch, smart glasses, television, and so forth. As an example, the terminal 102 is illustrated as a mobile phone in fig. 1.
The System architecture shown in fig. 1 may be a Long Term Evolution (LTE) network, a Universal Mobile Telecommunications System (UMTS) network, a Global System for Mobile communications (GSM) network, a Code Division Multiple Access (CDMA) network, or another network. The embodiment of the present application is not particularly limited to the type of the network to which the scheme of the present application is applied. The format of the communication network may include, but is not limited to: CDMA, CDMA1X, GSM, Enhanced Data Rate for GSM Evolution (EDGE), UMTS, LTE, etc.
In the embodiment of the present application, a terminal is taken as an example for description. The following describes the components of the mobile phone in detail with reference to the accompanying drawings:
as shown in fig. 2, the mobile phone may include: the touch screen 21, the processor 22, the memory 23, the power supply 24, a Radio Frequency (RF) circuit 25, a gravity sensor 26, an audio circuit 27, a speaker 28, a microphone 29, and the like, which may be connected by a bus or directly. Those skilled in the art will appreciate that the handset configuration shown in fig. 2 is not intended to be limiting and may include more components than those shown, or some components may be combined, or a different arrangement of components.
The touch screen 21 may be referred to as a touch display panel, and is used for implementing input and output functions of the mobile phone, collecting touch operations of a user on or near the touch screen 21 (for example, operations of the user on or near the touch screen 21 using any suitable object or accessory such as a finger, a stylus, etc.), and driving the corresponding connection device according to a preset program. And may also be used to display information entered by or provided to the user (e.g., images captured by a camera) as well as various menus for the handset. For example, the touch screen 21 may be implemented by various types, such as a resistive type, a capacitive type, an infrared sensing type, an ultrasonic wave type, and the like, which is not limited in the embodiment of the present invention. The operation of the user near the touch screen 21 may be referred to as floating touch, and the touch screen capable of performing floating touch may be implemented by using capacitive type, infrared sensing, ultrasonic wave, and the like. For example, the user operates the touch screen 21 to input a long short message.
For example, in the embodiment of the present application, the touch screen 21 may include a detection module 211 and a display module 212. The detection module 211 may detect a touch operation of a user on the touch screen 21, and may transmit a parameter generated by the touch screen 21 to the processor 22 after the touch operation is performed on the touch screen 21 (for example, if the touch screen 21 is implemented by using a capacitive type, the detection module 211 may transmit a variation parameter on the touch screen 21 to the processor 22, where the variation parameter refers to a size, a shape, a number, and a distribution of a capacitance value of a capacitance that varies), so that the processor 22 performs corresponding processing according to the touch operation. The display module 212 may display information input by a user, information provided to the user by the mobile phone, various menus of the mobile phone, and the like.
The processor 22 is a control center of the mobile phone, connects various parts of the entire mobile phone by using various interfaces and lines, and performs various functions of the mobile phone and processes data by operating or executing software programs and/or modules stored in the memory 23 and calling data stored in the memory 23, thereby performing overall monitoring of the mobile phone. In particular implementations, processor 22 may include one or more processing units, for one embodiment; processor 22 may integrate an application processor and a modem processor. The application processor mainly processes an operating system, a user interface, application programs and the like, and the modem processor mainly processes wireless communication. It will be appreciated that the modem processor described above may not be integrated into the processor 22.
The Memory 23 may be used for storing data, software programs and modules, and may be a Volatile Memory (Volatile Memory), such as a Random-Access Memory (RAM); or a Non-Volatile Memory (Non-Volatile Memory), such as a Read-Only Memory (ROM), a Flash Memory (Flash Memory), a Hard Disk (Hard Disk Drive, HDD) or a Solid-State Drive (SSD); or a combination of the above types of memories. Specifically, the memory 23 may store a program code, which is used to enable the processor 22 to execute the method for prompting the user to update the application version provided by the embodiment of the present application by executing the program code.
The power supply 24, which may be a battery, is logically connected to the processor 22 through a power management system, such that functions of managing charging, discharging, and power consumption are performed through the power management system.
RF circuitry 25 may be used for receiving and transmitting signals during a message transmission or communication session, and in particular, for processing received messages to processor 22; in addition, signals generated by the processor 22 are transmitted. Typically, the RF circuitry includes, but is not limited to, an antenna, at least one Amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, the RF circuitry 25 may also communicate with networks and other devices via wireless communications.
The Gravity Sensor (Gravity Sensor)26 can detect the acceleration of the mobile phone in each direction (generally three axes), can detect the Gravity and direction when the mobile phone is stationary, and can be used for applications of recognizing the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping) and the like. It should be noted that the mobile phone may further include other sensors, such as a pressure sensor, an optical sensor, a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, and so on, which are not described herein again.
Audio circuitry 27, speaker 28, microphone 29 may provide an audio interface between the user and the handset. The audio circuit 27 can transmit the electrical signal converted from the received audio data to the speaker 28, and the electrical signal is converted into a sound signal by the speaker 28 and output; on the other hand, the microphone 29 converts the collected sound signals into electrical signals, which are received by the audio circuit 27 and converted into audio data, which are output to the RF circuit 25 for transmission to, for example, another cellular phone, or to the processor 22 for further processing.
It should be noted that the triggering operation in the embodiment of the present application may be an operation on the touch screen, such as a pressing operation, a long-time pressing operation, a sliding operation, a clicking operation, and the like, or an operation near the touch screen by the user, that is, a floating touch, and the embodiment of the present application is not limited specifically herein.
In addition, an operating system runs on the above components. A running application, such as an IM application, may be installed on the operating system. And, although not shown, the mobile phone may further include a WiFi module, a bluetooth module, a camera, and the like. The WiFi module can be a module comprising a WiFi chip and a driver of the WiFi chip, and the WiFi chip has the capability of operating a wireless Internet standard protocol. The bluetooth module is a Printed Circuit Board Assembly (PCBA) integrated with bluetooth function, and is used for short-distance wireless communication.
The following describes a long short message sending method according to an embodiment of the present application with reference to the accompanying drawings.
In some embodiments of the present application, in the long short message sending method provided in the embodiments of the present application, when the terminal accesses the first network, the terminal splits the long short message into the first short message packet according to the first packet format supported by the first network and sends the first short message packet. In the process of sending the first short message packet, the terminal is switched from the first network to a second network, the second network supports a second packet format different from the first packet format, the terminal stops sending the first short message packet, and the long short message is split into the second short message packet according to the second packet format and sent.
It should be noted that, in the sending of the long short message to the operator server described in the embodiment of the present application, it may be understood that, in the sending domain corresponding to the standard of the network to which the terminal is accessed, a short message packet obtained by splitting the long short message according to the packet format supported by the network to which the terminal is accessed is sent to the operator server.
The long short message is a short message with the length defined by the protocol being larger than the threshold value. When sending a long short message, the long short message is first split into short message packets, and then the process of packaging according to the packet format can be implemented in the prior art, which is not described in detail in the embodiments of the present application.
The terminal may obtain at least one packet format supported by the network in the preset corresponding relationship. The predetermined correspondence may include at least one packet format supported by the network. Illustratively, as shown in table 1, a preset correspondence is illustrated.
TABLE 1
Network Supported packet formats
CDMA、CDMA1X 3GPP2
GSM、EDGE、UMTS 3GPP
LTE 3GPP
...... ......
Among the networks included in the preset correspondence shown in table 1, GSM, EDGE, and UMTS are 2G networks, CDMA1X are 3G networks, and LTE is 4G networks. In the embodiment of the present application, the type of the network included in the preset correspondence is not specifically limited, and table 1 is only an example and is not limited.
It should be noted that table 1 only describes the preset corresponding relationship in an exemplary form, and does not specifically limit the content and the form of the preset corresponding relationship.
In the embodiment of the present application, the content of the preset corresponding relationship may also be stored in the terminal in the form of a character string, and the storage form of the preset corresponding relationship is not specifically limited in the embodiment of the present application. For example, the preset correspondence illustrated in table 1 may be stored in the terminal as { CDMA, CDMA1X, 3GPP2}, { GSM, EDGE, UMTS, 3GPP }, { LTE, 3GPP }.
It should be further noted that at least one network in the preset corresponding relationship and the packet format supported by the network may be in a one-to-one form or a many-to-one form, and the content of the preset corresponding relationship may be configured according to an actual requirement, which is not specifically limited in this embodiment of the application.
In a possible implementation manner, the sending, by the terminal, the first short packet may be implemented as: and the terminal sequentially sends the first short message packets in a sending domain corresponding to the first network. The terminal sends the second short message packet, which can be implemented as follows: and the terminal sequentially sends the second short message packets in a sending domain corresponding to the second network.
Wherein, the sending domain is the network selected by the terminal to send the short message. The sending domain selected by the terminal depends on and corresponds to the network used for sending the short message and accessed by the terminal. The transmission domain corresponding to the network to which the terminal accesses may be stored in the terminal in advance. Optionally, the sending domain corresponding to the network to which the terminal accesses may be separately stored, or may be stored in the preset corresponding relationship, which is not specifically limited in this embodiment of the present application.
Optionally, the preset corresponding relationship may further include: and at least one sending domain corresponding to the network.
Exemplarily, as shown in table 2, another preset corresponding relationship is illustrated, where the preset corresponding relationship includes at least one packet format supported by a network and also includes a sending domain corresponding to the at least one network.
TABLE 2
Network Supported packet formats Sending domain
CDMA、CDMA1X 3GPP2 CS Domain
GSM、EDGE、UMTS 3GPP CS Domain
LTE 3GPP IMS domain
...... ...... ......
It should be noted that table 2 only describes the preset corresponding relationship in an exemplary form, and does not specifically limit the content and the form of the preset corresponding relationship. The sending domain may include a CS domain, an IMS domain, or the like, which is not specifically limited in this embodiment of the present application.
Exemplarily, as shown in fig. 3, a scenario in which a terminal sends a long short message is illustrated. In this scenario, the terminal is assumed to be a mobile phone illustrated in fig. 2, and is referred to as a mobile phone 1. The processor 22 of the handset 1 controls the RF circuitry 25 to register with the network and to access and camp on a first network, which is a GSM network. When the mobile phone 1 resides in the GSM network, the user operates the touch screen 21 of the mobile phone 1 to input the long short message X, and the long short message X is transmitted to the processor 22 of the mobile phone 1. The processor 22 of the mobile phone 1 queries the preset corresponding relationship stored in the memory 23 and indicated in table 1, and obtains the packet format supported by the GSM network to which the mobile phone 1 is connected, as the 3GPP format. The processor 22 splits and encapsulates the long short message X transmitted from the touch screen 21 into short message packets X1, X2.. Processor 22 sends a short envelope X1, X2.. In a possible case, as shown in fig. 4, in the process that the processor 22 of the mobile phone 1 sends the short packet X1, X2... Xn to the server of the operator deploying the GSM network through the RF circuit 25, when the short packet X1, X2... Xn is not sent completely, the mobile phone 1 is switched and accessed to the CDMA network (second network) by the GSM network due to the position movement, the processor 22 of the mobile phone 1 queries the preset corresponding relationship, as shown in table 1, stored in the memory 23, to obtain that the packet format supported by the CDMA network to which the mobile phone 1 is newly accessed is 3GPP2, the processor 22 determines that the packet format supported by the CDMA network to which the mobile phone 1 is newly accessed is different from the packet format supported by the GSM network to which the mobile phone is accessed before the access switching, the processor 22 stops sending the short packet X1, X2... Xn, and the processor 22 repacks the short packet X1 stored in the memory 23 and splits the short packet X1 into short packet Y and splits the short packet Y78 according to the packet format supported by the CDMA network to which the GSM network to which is accessed by the mobile phone 1 newly accessed, Yn, Y2.. Processor 22 sends a short envelope Y1, Y2..
In one possible implementation, the processor 22 sends the short packets X1, X2... Xn to the server of the operator deploying the GSM network through the RF circuit 25, which may be implemented as: processor 22 sends the short packets X1, X2... Xn to the server of the operator that deploys the GSM network at the corresponding sending domain of the GSM network through RF circuit 25.
In a possible situation, in the scenario that the terminal illustrated in fig. 3 sends a long short message, in the process that the processor 22 of the mobile phone 1 sends the short message packets X1, X2... Xn to the server of the operator deploying the GSM network through the RF circuit 25, until the short message packets X1, X2... Xn are all sent, the mobile phone 1 stays in the GSM network all the time, the sending of the long short message X is completed smoothly, the operator server receives the short message packets X1, X2... Xn, and the short message packets are decapsulated and combined into the long short message X according to the sequence of the short message packets. The sequence of the short packets may be embodied by a serial number or other forms, which is not specifically limited in this embodiment of the application.
It should be noted that, in the schematic diagram of fig. 4, the CDMA network newly accessed by the mobile phone 1 is different from the sending domain corresponding to the GSM network accessed before handover, and the mobile phone 1 sends the short packets X1, X2... Xn or Y1, Y2... Yn through the same sending domain (sending domain corresponding to the network). Wherein, the sending domain corresponding to the network can be independently stored in the memory 23 of the handset 1. Alternatively, the sending domain corresponding to the network may be stored in the memory 23 of the handset 1 as a preset corresponding relation as shown in table 2.
In a possible case, in the process that the processor 22 of the mobile phone 1 sends the short message packets Y1, Y2... Yn to the server of the operator deploying the CDMA network through the RF circuit 25, until the short message packets Y1, Y2... Yn are all sent, the mobile phone 1 stays in the CDMA network all the time, and then the sending of the long short message X is completed smoothly, and the operator server receives the short message packets Y1, Y2... Yn, decapsulates and merges the short message packets into the long short message X according to the sequence of the short message packets.
In a possible case, in the process that the processor 22 of the mobile phone 1 sends the short message packets Y1, Y2... Yn to the server of the operator deploying the CDMA network through the RF circuit 25, when the short message packets Y1, Y2... Yn are not sent completely, the mobile phone 1 is switched and accessed to an LTE network (third network) supporting a different packet format from the CDMA network due to the position movement by the CDMA network, the processor 22 of the mobile phone 1 stops sending the short message packets Y1, Y2... Yn, and splits and encapsulates the long message X according to the packet format 3GPP format supported by the newly accessed LTE network for sending, which is similar to the foregoing specific process and is not described herein again.
In one possible embodiment of the present application, as shown in fig. 5, it is assumed that the terminal is a mobile phone illustrated in fig. 2, which is referred to as a mobile phone 1; the processor 22 of the handset 1 controls the RF circuitry 25 to register with the network and to access and camp on a first network, which is a GSM network. When the mobile phone 1 resides in the GSM network, the user operates the touch screen 21 of the mobile phone 1 to input the long short message X, and the long short message X is transmitted to the processor 22 of the mobile phone 1. The processor 22 of the mobile phone 1 queries the preset corresponding relationship stored in the memory 23 as shown in table 1, and obtains the packet format supported by the GSM network to which the mobile phone 1 is connected, which is 3 GPP. The processor 22 splits and encapsulates the long short message X transmitted from the touch screen 21 into short message packets X1, X2.. Processor 22 sends a short envelope X1, X2.. In the process that the processor 22 of the mobile phone 1 sends the short packets X1, X2... Xn to the server of the operator deploying the GSM network through the RF circuit 25, when the short packets X1, X2... Xn are not sent completely, the mobile phone 1 is switched and accessed to the LTE network by the GSM network due to the position movement, the processor 22 of the mobile phone 1 queries the preset corresponding relationship, which is stored in the memory 23 and is indicated in table 1, and obtains that the packet format supported by the LTE network to which the mobile phone 1 is newly accessed is still 3GPP, the processor 22 determines that the packet format supported by the newly accessed LTE network is the same as the packet format supported by the GSM network accessed before access switching, and the processor 22 sends the short packets X1, X2... Xn to the server of the operator deploying the LTE network again through the RF circuit 25.
It should be noted that, in the scenario illustrated in fig. 5, in some embodiments of the present application, a transmission domain corresponding to an LTE network newly accessed by the mobile phone 1 is different from a transmission domain corresponding to a GSM network accessed before handover, and the mobile phone 1 transmits the short message packets X1, X2.. The sending domain corresponding to the network may be independently stored in the memory 23 of the mobile phone 1, or the sending domain corresponding to the network may be stored in the memory 23 of the mobile phone 1 as a preset corresponding relationship shown in table 2.
In some embodiments of the present application, in the long short message sending process of the above embodiments, the long short message may be sent by creating a short message sender. And for different networks, different short message transmitters are created, if the packet format supported by the terminal access network changes, the short message transmitter is created again, and the newly created short message transmitter is adopted to transmit the long short message. The short message sender can be a functional program code inside the terminal. The program code includes a packet format supported by a network corresponding to the short message sender. Or, the program code includes a packet format supported by a network corresponding to the short message sender and a corresponding sending domain. And sending the long short message by adopting a short message sender, namely calling a program code of the short message sender, splitting the long short message into short message packets according to a packet format included in the program code and sending the short message packets. The embodiment of the application does not limit the specific content of the degree code of the short message transmitter, and can be configured according to actual requirements.
For example, assuming that the terminal is a mobile phone illustrated in fig. 2, a process of the terminal creating the short message sender is described with reference to fig. 2.
For example, the processor 22 of the mobile phone obtains the packet format supported by the network accessed by the RF circuit 25, and the program code for creating the sms message sender including the packet format supported by the network accessed by the RF circuit 25 is stored in the memory 23 as the sms message sender of the network.
For example, the processor 22 of the mobile phone obtains the packet format supported by the network accessed by the RF circuit 25 and the corresponding sending domain, creates the program code of the sms message sender including the packet format supported by the network accessed by the RF circuit 25 and the corresponding sending domain, and saves the program code in the memory 23 as the sms message sender of the network.
In a possible implementation manner, the terminal accesses different networks due to the change of the mobile location, and the terminal may create a plurality of short message transmitters of different networks for transmitting the long short message in different networks.
For example, assuming that the processor 22 in the mobile phone accesses the network a after successfully camping on the network through the RF circuit 25, the processor 22 in the mobile phone creates the short message sender 1 according to the packet format 1 supported by the network a, where the program code of the short message sender 1 includes the packet format 1. In the running process of the mobile phone access network A, when the mobile phone receives a long short message input by a user, the short message transmitter 1 is used for transmitting the long short message, and the specific process comprises the following steps: and splitting and packaging the long short message into short message packets according to a packet format 1 included in the short message transmitter 1 and transmitting the short message packets. In the process that the mobile phone uses the short message sender 1 to send long short messages, if the RF circuit 25 in the mobile phone is connected to the network B, the network B and the network a support different packet formats, the processor 22 of the mobile phone creates the short message sender 2 according to the packet format 2 supported by the network B connected to the RF circuit 25, the program code of the short message sender 2 includes the packet format 2, and the short message sender 2 is used to send long short messages, which includes the following specific processes: and splitting and packaging the long short message into short message packets according to a packet format 2 included in the short message transmitter 2 and transmitting the short message packets. Optionally, in the process that the mobile phone access network B uses the short message sender 2 to send the long short message, if the mobile phone is accessed back to the network a, the mobile phone switches back to use the short message sender 1 to send the long short message again. Optionally, in the process that the mobile phone access network B uses the short message sender 2 to send the long short message, if the RF circuit 25 of the mobile phone is movably accessed to the network C, the network C and the network B support different packet formats, the processor 22 of the mobile phone creates the short message sender 3 according to the packet format 3 supported by the network C accessed by the RF circuit 25, the program code of the short message sender 3 includes the packet format 3, and the short message sender 3 is used to resend the long short message, which includes the specific processes: and splitting and packaging the long short message into short message packets according to a packet format 3 included in the short message transmitter 3 and transmitting the short message packets.
It should be noted that, in the long short message sending method provided in the embodiment of the present application, a specific process of splitting the long short message into the short message packets according to the packet format may include: and splitting the long short message and packaging the long short message into a short message packet according to the packet format. The specific process of splitting the long short message into the short message packets according to the packet format is not described here again.
Further, in a scenario that the terminal frequently moves, if the terminal frequently switches to access different networks, the terminal frequently splits the long short message into the short message packets according to the packet formats supported by the different networks and sends the short message packets, but the sending of the long short message cannot be completed, so that the user experience is not high.
Further, the long short message sending method provided in the embodiment of the present application first determines whether the terminal meets a preset condition when the terminal is switched to access the second network, and stops sending the long short message when the terminal meets the preset condition, so as to confirm that the sending of the long short message fails.
The preset condition may include that the time length for sending the long short message is greater than or equal to a preset time length. Alternatively, the preset condition may include that the number of times of splitting the long short message into the short message packets according to different packet formats is greater than or equal to a preset threshold.
It should be noted that values of the preset duration and the preset threshold may be determined according to actual requirements, and this is not specifically limited in the embodiment of the present application. The content of the preset condition can also be configured according to the actual requirement.
For example, the process of sending the long short message after determining whether the terminal meets the preset condition is described by taking the preset condition as an example that the preset condition is greater than or equal to the preset duration. Assuming that the terminal is accessed to the network A, the long short message is split into the short message packet set A according to the packet format supported by the network A and then is sent, in the sending process, the terminal is moved to the access network B, and at the moment, the terminal judges whether the time length from the moment when the long short message is input by the user is received is greater than or equal to the preset time length. If the terminal judges that the time length from the moment when the long short message is input by the user is received is less than the preset time length, the terminal does not meet the preset condition, the terminal stops sending the short message packet set A, and the long short message is split into the short message packet set B according to the packet format supported by the network B and then is sent. If the terminal judges that the time length from the time when the long short message is input by the user to the moment is greater than or equal to the preset time length, the terminal meets the preset condition, the terminal stops sending the long short message, and the terminal is prompted to fail to send the long short message.
For example, the process of sending the long short message after determining whether the terminal meets the preset condition is described by taking the example that the preset condition may include that the number of times of splitting the long short message into the short message packets according to different packet formats is greater than or equal to a preset threshold. Assume that the preset threshold is 2. Assuming that a terminal is accessed to a network A, a long short message is split into a short message packet set A according to a packet format supported by the network A and then is sent, in the process of sending the short message packet set A, the terminal is moved to an access network B, the terminal judges that the number of times 1 of splitting the long short message into short message packets according to different packet formats is smaller than a preset threshold value 2, the terminal does not meet a preset condition, the terminal stops sending the short message packet set A, and the long short message is split into the short message packet set B according to the packet format supported by the network B and then is sent. In the process of sending the short message packet set B, the terminal is accessed to the network C in a mobile mode, at the moment, the terminal judges that the times 2 of splitting the long short message into the short message packets according to different packet formats are equal to a preset threshold value 2, the terminal meets a preset condition, the terminal stops sending the long short message, and the long short message is prompted to be sent unsuccessfully.
It should be noted that after the short message packet sent by the terminal is received by the receiving party (operator server), the receiving party decapsulates the short message packet according to the sequence of the short message packet and merges the short message packet into the long short message X, which is not described in detail in this embodiment of the present application. The sequence of the short packets may be embodied by a serial number or other forms, which is not specifically limited in this embodiment of the application.
Further, when the sending of the long short message fails, the sending method of the long short message provided in the embodiment of the present application may further include: the terminal prompts the user that the long short message fails to be sent.
The terminal prompts the user that the long short message is failed to be sent, and can be used for the user to select to continue sending the long short message or to abandon sending the long short message. If the user chooses to continue sending the long short message, the terminal splits the long short message into short message packets again according to the packet format supported by the currently accessed network, and the specific process is as described above, and is not repeated here. If the user chooses to abandon sending the long short message, the sending of the long short message is finished.
Optionally, when the sending of the long short message is finished, the long short message stored in the short message database in the memory 23 may be cleared. Or, the long short message stored in the short message database in the memory 23 is stored in the draft box in the memory 23, so that the user can send the long short message again.
For example, the processor 22 of the terminal may send the sending failure status to the UI module of the terminal, and the UI module of the terminal presents the user with an interface of the long short message sending failure through the display module 212 in the touch screen 21.
Illustratively, as shown in fig. 6A, an interface for a long short message transmission failure is illustrated, which may include selectable items provided to the user, such as a resend button and an abort transmission button, for further selection by the user.
For example, the interface for failing to send the long short message may include selectable options provided to the user, such as a button for indicating resending and a button for indicating abandoning sending, for further selection by the user. As shown in fig. 6B, another interface in which transmission of a long short message fails is illustrated, in which "√" is used as a button for indicating retransmission and "×" is used as a button for indicating that transmission is to be abandoned.
It should be noted that the above example is only an example of an interface for failing to send a long short message, and the content of the interface is not specifically limited.
Further optionally, when the terminal accesses a second network that supports a packet format different from that of the first network, the method for sending the long short message provided in the embodiment of the present application may further include: the terminal clears the unsent first short message packet to avoid the terminal mistakenly sending the first short message packet which splits the long short message according to the first packet format to the operator server to occupy resources
The scheme provided by the embodiment of the application is introduced mainly from the perspective of the working principle of the terminal. It is understood that the terminal includes corresponding hardware structures and/or software modules for performing the respective functions in order to implement the above-described functions. Those of skill in the art will readily appreciate that the present application is capable of hardware or a combination of hardware and computer software implementing the various illustrative algorithm steps described in connection with the embodiments disclosed herein. Whether a function is performed as hardware or computer software drives hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiment of the present application, the terminal may be divided into the functional modules according to the method example, for example, each functional module may be divided corresponding to each function, or two or more functions may be integrated into one processing module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. It should be noted that, in the embodiment of the present application, the division of the module is schematic, and is only one logic function division, and there may be another division manner in actual implementation.
In the case of dividing the functional modules by corresponding functions, fig. 7 shows a possible composition diagram of the terminal mentioned above and in the embodiment, as shown in fig. 7, the terminal 70 may include: an access unit 701, a splitting unit 702, a sending unit 703 and a monitoring unit 704.
Wherein, the access unit 701 is used for the terminal 70 to access the network; the splitting unit 702 is configured to split the long short message into a first short message packet according to a first packet format supported by the first network when the access unit 701 accesses the first network; the sending unit 703 is configured to send the first short packet split by the splitting unit 702. The monitoring unit 704 is configured to detect whether a packet format supported by a network accessed by the access unit 701 changes in a process of sending the first short packet by the sending unit 703; the sending unit 703 is further configured to, during sending the first short packet, switch the access unit 701 from the first network to a second network, and when the monitoring unit 704 detects that the second network supports a second packet format different from the first network, stop sending the first short packet; the splitting unit 702 is further configured to, during the process of sending the first short packet by the sending unit 703, switch the access unit 701 from the first network to a second network, detect that the second network supports a second packet format different from the first network by the monitoring unit 704, and split the long short message into a second short packet according to the second packet format; the sending unit 703 is further configured to send the second short packet split by the splitting unit 702.
Optionally, the monitoring unit 704 is specifically configured to: acquiring packet formats supported by different networks in a preset corresponding relation, and detecting whether the packet formats supported by the networks accessed by the access unit 701 are changed; the preset corresponding relation comprises at least one packet format supported by the network.
Optionally, the sending unit 703 may be specifically configured to: sequentially sending the first short message packets split by the splitting unit 702 in a sending domain corresponding to the first network; and in the sending domain corresponding to the second network, the second short message packets split by the splitting unit 702 are sent in sequence.
Further optionally, as shown in fig. 8, the terminal 70 may further include: the determining unit 705 is configured to determine whether the terminal 70 satisfies a preset condition. The preset condition comprises that the time length for sending the long short message is greater than or equal to the preset time length, or the preset condition comprises that the times for splitting the long short message into the short message packets according to different packet formats are greater than or equal to a preset threshold value.
Correspondingly, the splitting unit 702 may be further configured to, if the determining unit 705 determines that the terminal does not meet the preset condition, switch the access unit 701 from the first network to a second network in a process of sending the first short packet by the sending unit 703, and the monitoring unit 704 detects that the second network supports a second packet format different from the first network, and splits the long short message into the second short packet according to the second packet format. The sending unit 703 may be further configured to, if the determining unit 705 determines that the terminal does not satisfy the preset condition, switch the access unit 701 from the first network to a second network in the process of sending the first short packet, and the monitoring unit 704 stops sending the first short packet and sends the second short packet split by the splitting unit 702 when detecting that the second network supports a second packet format different from that of the first network.
Further, the sending unit 703 may be further configured to stop sending the long short message if the determining unit 705 determines that the terminal meets the preset condition.
Further optionally, as shown in fig. 8, the terminal 70 may further include: a clearing unit 706, configured to switch, by the access unit 701, the access from the first network to the second network in a process of sending the first short packet by the sending unit 703, where the monitoring unit 704 detects that the second network supports a second packet format different from that of the first network, and clears the first short packet that is not sent and split by the splitting unit 702.
Further optionally, as shown in fig. 8, the terminal 70 may further include: a receiving unit 707, configured to receive the long short message input by the user.
Optionally, the preset corresponding relationship further includes: and at least one sending domain corresponding to the network.
It should be noted that all relevant contents of each step related to the above method embodiment may be referred to the functional description of the corresponding functional module, and are not described herein again.
In the case of an integrated unit, fig. 9 shows another possible composition diagram of the terminal involved in the above-described embodiment. As shown in fig. 9, the terminal 90 may include: a processing module 901 and a communication module 902.
The processing module 901 is used for controlling and managing the actions of the terminal 90. The communication module 902 is used to support communication of the terminal 90 with other network entities. The terminal 90 can also include a storage module 903 for storing program codes and data for the terminal 90.
The processing module 901 may be a processor or a controller, among others. Which may implement or perform the various illustrative logical blocks, modules, and circuits described in connection with the disclosure. The processing module 901 can also be a combination that performs computing functions, e.g., including one or more microprocessors, DSPs, and microprocessors, among others. The communication module 902 may be a transceiver, a transceiver circuit, an RF circuit or a communication interface, etc. The storage module 903 may be a memory.
When the processing module 901 is a processor, the communication module 902 is an RF circuit, and the storage module 903 is a memory, the terminal 90 according to the embodiment of the present application may be a mobile phone as shown in fig. 2.
The terminal 70 or 90 provided in the embodiment of the present application is configured to execute the long short message sending method described in the above method example, so that the same effect as that of the long short message sending method described in the above method example can be achieved.
Through the above description of the embodiments, it is clear to those skilled in the art that, for convenience and simplicity of description, the foregoing division of the functional modules is merely used as an example, and in practical applications, the above function distribution may be completed by different functional modules according to needs, that is, the internal structure of the device may be divided into different functional modules to complete all or part of the above described functions.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described device embodiments are merely illustrative, and for example, the division of the modules or units is only one logical functional division, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another device, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may be one physical unit or a plurality of physical units, that is, may be located in one place, or may be distributed in a plurality of different places. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a readable storage medium. Based on such understanding, the technical solutions of the embodiments of the present application may be essentially or partially contributed to by the prior art, or all or part of the technical solutions may be embodied in the form of a software product, where the software product is stored in a storage medium and includes several instructions to enable a device (which may be a single chip, a chip, or the like) or a processor (processor) to execute all or part of the steps of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a U disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.
The above description is only an embodiment of the present application, but the scope of the present application is not limited thereto, and any changes or substitutions within the technical scope of the present disclosure should be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (14)

1. A method for sending long short messages is characterized by comprising the following steps:
a terminal accesses a first network, splits a long short message into a first short message packet according to a first packet format supported by the first network, and sends the first short message packet;
in the process of sending the first short message packet, detecting that the terminal is switched from the first network to a second network, wherein the second network supports a second packet format, the terminal stops sending the first short message packet, splits the long short message into second short message packets according to the second packet format, and sends the second short message packets;
the terminal acquires packet formats supported by different networks in a preset corresponding relation; wherein, the preset corresponding relationship comprises at least one packet format and a sending domain supported by the network, and the packet format comprises: 3GPP and 3GPP 2;
the terminal sends the first short message packet, and the method comprises the following steps:
the terminal sequentially sends the first short message packets in a sending domain corresponding to the first network;
the terminal sends the second short message packet, and the method comprises the following steps:
and the terminal sequentially sends the second short message packets in a sending domain corresponding to the second network.
2. The method of claim 1,
before the step of splitting the long short message into the second short message packets according to the second packet format, the method further includes: and the terminal judges whether the terminal meets a preset condition, and if the terminal does not meet the preset condition, the step of splitting the long short message into the second short message packet according to the second packet format is executed.
3. The method of claim 2, wherein the predetermined condition comprises that a time length for sending the long short message is greater than or equal to a predetermined time length, or wherein the predetermined condition comprises that a number of times for splitting the long short message into short packets according to different packet formats is greater than or equal to a predetermined threshold.
4. The method of claim 3, further comprising: and if the terminal meets the preset condition, the terminal stops sending the long short message.
5. The method according to any of claims 1-4, wherein if the terminal detects that the terminal switches from the first network to the second network during the sending of the first short packet, and the second network supports a second packet format, the method further comprises:
and the terminal clears the first short message packet which is not sent.
6. The method according to any of claims 1-4, wherein before the terminal accesses the first network, splits the long short message into the first short message packet according to the first packet format, and sends the first short message packet, the method further comprises:
and the terminal receives the long short message input by the user.
7. A terminal is characterized by comprising an access unit, a splitting unit, a sending unit and a monitoring unit; wherein the content of the first and second substances,
the access unit is used for the terminal to access a network;
the splitting unit is used for splitting the long short message into a first short message packet according to a first packet format supported by a first network when the access unit accesses the first network;
the sending unit is used for sending the first short message packet;
the monitoring unit is configured to detect whether a packet format supported by a network accessed by the access unit changes in a process of sending the first short packet by the sending unit;
the sending unit is further configured to, during sending the first short packet, switch, by the access unit, the access from the first network to a second network, and the monitoring unit stops sending the first short packet when detecting that the second network supports a second packet format different from that of the first network;
the splitting unit is further configured to, during a process that the sending unit sends the first short message packet, switch the access unit from the first network to a second network, detect that the second network supports a second packet format different from the first network, and split the long short message into a second short message packet according to the second packet format;
the sending unit is further configured to send the second short packet;
the monitoring unit is specifically configured to:
acquiring packet formats supported by different networks in a preset corresponding relation, and detecting whether the packet formats supported by the networks accessed by the access unit are changed; wherein, the preset corresponding relationship comprises at least one packet format and a sending domain supported by the network, and the packet format comprises: 3GPP and 3GPP 2;
the sending unit is specifically configured to:
sequentially sending the first short message packet in a sending domain corresponding to the first network;
and sequentially sending the second short message packets in a sending domain corresponding to the second network.
8. The terminal of claim 7, further comprising:
the judging unit is used for judging whether the terminal meets a preset condition or not;
the splitting unit is further configured to, if the determining unit determines that the terminal does not satisfy the preset condition, switch, by the access unit, the access unit from the first network to a second network in a process of sending the first short packet by the sending unit, detect that the second network supports a second packet format different from the first network, and split the long short message into the second short packet according to the second packet format.
9. The terminal of claim 8, wherein the predetermined condition includes that a duration of sending the long short message is greater than or equal to a predetermined duration, or wherein the predetermined condition includes that a number of times of splitting the long short message into short packets according to different packet formats is greater than or equal to a predetermined threshold.
10. The terminal of claim 9, wherein the sending unit is further configured to:
and if the judging unit judges that the terminal meets the preset condition, stopping sending the long short message.
11. The terminal according to any of claims 7-10,
the terminal further includes a clearing unit, configured to switch, by the access unit, access from the first network to a second network in a process of sending the first short packet by the sending unit, and the monitoring unit detects that the second network supports a second packet format different from that of the first network, and clears the first short packet that is not sent.
12. The terminal according to any of claims 7-10, characterized in that the terminal further comprises:
and the receiving unit is used for receiving the long short message input by the user.
13. A terminal, characterized in that the terminal comprises a processor, a memory and a transceiver; the memory is used for storing computer-executable instructions, and when the terminal runs, the processor calls the computer-executable instructions stored in the memory to execute the method of any one of claims 1-6.
14. A computer storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the long short message transmission method according to any one of claims 1-6.
CN201780081301.3A 2017-10-09 2017-10-13 Long short message sending method and terminal Active CN110140366B (en)

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
CN2017109315424 2017-10-09
CN201710931542 2017-10-09
PCT/CN2017/106145 WO2019071593A1 (en) 2017-10-09 2017-10-13 Method for sending long text messages and terminal

Publications (2)

Publication Number Publication Date
CN110140366A CN110140366A (en) 2019-08-16
CN110140366B true CN110140366B (en) 2021-05-11

Family

ID=66101223

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201780081301.3A Active CN110140366B (en) 2017-10-09 2017-10-13 Long short message sending method and terminal

Country Status (2)

Country Link
CN (1) CN110140366B (en)
WO (1) WO2019071593A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110856127A (en) * 2019-11-29 2020-02-28 紫光展讯通信(惠州)有限公司 Short message transmission method, device and storage medium
CN113973338A (en) * 2020-07-23 2022-01-25 瑞昱半导体股份有限公司 Packet receiving system and packet receiving method
CN116828405B (en) * 2023-08-28 2023-11-21 北京小米移动软件有限公司 Short message transmission method and device, storage medium, terminal and network equipment

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101022590A (en) * 2007-02-14 2007-08-22 宇龙计算机通信科技(深圳)有限公司 System and method for realizing CDMA and GSM network long and short message intercommunication
CN101478596B (en) * 2009-01-21 2011-08-10 青岛海信移动通信技术股份有限公司 Dual mode terminal and ultralong short message storage method
CN101635892A (en) * 2009-08-27 2010-01-27 中兴通讯股份有限公司 Method for uniformly coding and decoding message contents and integrated short message center system
WO2012171173A1 (en) * 2011-06-14 2012-12-20 华为技术有限公司 Method and terminal for transmitting short message after handover of terminal
CN103763685B (en) * 2014-01-21 2017-04-26 中国联合网络通信集团有限公司 Method for sending short message and short message center
US9473397B2 (en) * 2014-02-03 2016-10-18 International Business Machines Corporation Using information on a supported one zone configuration setting in data forwarders to determine zone information to send to data forwarders
CN106102103A (en) * 2016-05-27 2016-11-09 努比亚技术有限公司 Call mode switching device and method
CN106376040A (en) * 2016-09-05 2017-02-01 努比亚技术有限公司 Method and device for switching network types in conversation process
CN106804030B (en) * 2017-02-15 2019-11-19 深圳市广和通无线通信软件有限公司 Short message protocol type configuration method and apparatus
CN107086951B (en) * 2017-04-05 2019-12-03 中国联合网络通信集团有限公司 Transmission method, Short Message Service Gateway and the industry short message access gateway of industry short message

Also Published As

Publication number Publication date
CN110140366A (en) 2019-08-16
WO2019071593A1 (en) 2019-04-18

Similar Documents

Publication Publication Date Title
KR101610454B1 (en) Data transmission method and apparatus, and terminal with touch screen
WO2018121148A1 (en) Communication resource selection method, hand-held intelligent terminal and access device
CN109587789B (en) Random access method, mobile terminal and network equipment
US9922438B2 (en) Method and apparatus for switching real-time image in instant messaging
WO2018103492A1 (en) Method for setting wifi roaming, and terminal device
US20170315777A1 (en) Method, terminal, and storage medium for starting voice input function of terminal
CN107592416B (en) Voice message transmitting method, terminal and computer readable storage medium
CN108834132B (en) Data transmission method and equipment and related medium product
WO2018103441A1 (en) Network positioning method and terminal device
CN109379735B (en) eSIM card operation method, mobile terminal and eSIM card device
CN109819489B (en) Terminal calling method and terminal
CN107172605B (en) Emergency call method, mobile terminal and computer readable storage medium
CN110140366B (en) Long short message sending method and terminal
CN107707755B (en) Key using method, terminal and computer readable storage medium
CN106484563B (en) Data migration method and terminal equipment
US11006475B2 (en) Direct mode operation communication method and terminal
CN108810262B (en) Application configuration method, terminal and computer readable storage medium
CN109089258B (en) eSIM card operation method, mobile terminal and eSIM card device
CN109257739B (en) eSIM card operation method, mobile terminal and eSIM card device
CN109219039B (en) eSIM card operation method, mobile terminal and eSIM card device
CN110149185B (en) Method for determining CSI resource type, terminal and network side equipment
CN110602766A (en) Personal hotspot identification method and method for determining association relationship between terminals
WO2018103440A1 (en) Network positioning method and terminal device
CN107148011B (en) Method, device and system for executing target service
CN106550461B (en) Resource using method and terminal

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
GR01 Patent grant
GR01 Patent grant