[go: up one dir, main page]

CN117135258A - A method and terminal for displaying short messages - Google Patents

A method and terminal for displaying short messages Download PDF

Info

Publication number
CN117135258A
CN117135258A CN202210550546.9A CN202210550546A CN117135258A CN 117135258 A CN117135258 A CN 117135258A CN 202210550546 A CN202210550546 A CN 202210550546A CN 117135258 A CN117135258 A CN 117135258A
Authority
CN
China
Prior art keywords
short message
session
terminal
satellite
message
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210550546.9A
Other languages
Chinese (zh)
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
Priority to CN202210550546.9A priority Critical patent/CN117135258A/en
Priority to PCT/CN2023/094782 priority patent/WO2023222037A1/en
Publication of CN117135258A publication Critical patent/CN117135258A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/7243User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72484User interfaces specially adapted for cordless or mobile telephones wherein functions are triggered by incoming communication events
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/14Reselecting a network or an air interface
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/021Services related to particular areas, e.g. point of interest [POI] services, venue services or geofences
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/12Messaging; Mailboxes; Announcements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/12Messaging; Mailboxes; Announcements
    • H04W4/14Short messaging services, e.g. short message services [SMS] or unstructured supplementary service data [USSD]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Business, Economics & Management (AREA)
  • General Business, Economics & Management (AREA)
  • Telephonic Communication Services (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

A method and a terminal for displaying short messages. In the method, a terminal sends or receives a first short message through a cellular network, and the terminal displays session information of the first short message on a session list interface of a first application; the first short message comprises a short message, a multimedia message and a rich media short message; the session information of the first short message includes one or more of: contact information of the first short message, receiving or sending time of the first short message and content of the first short message; the terminal sends or receives satellite short messages through a satellite network, the terminal displays the session information of the satellite short messages on a session list interface of a first application, and the session information of the satellite short messages comprises one or more of the following: contact information of the satellite short message, receiving or sending time of the satellite short message and content of the satellite short message. By implementing the technical scheme provided by the application, the user queries the satellite short message and the common short message in the same application of the terminal.

Description

Method and terminal for displaying short message
Technical Field
The present application relates to the field of terminal technologies, and in particular, to a method for displaying a short message and a terminal.
Background
The short messages may include satellite short messages (also referred to as satellite short messages) and ordinary short messages. The short message received and transmitted by the terminal through the satellite communication module can be called a satellite short message. The short message received and transmitted by the terminal through the mobile communication module can be called a common short message.
At present, the terminal uses another independent application to send and receive satellite short messages, which is different from the common short messages. The common short message and the satellite short message cannot be displayed in the same application. The user needs to check the satellite short message and the common short message of the same contact person in two applications. Thus, the user experience is poor.
Therefore, how to display the satellite short message and the common short message in the terminal in the same application is a problem to be solved.
Disclosure of Invention
The application provides a method and a terminal for displaying short messages.
In a first aspect, the present application provides a method for displaying a short message, which may include: the terminal sends or receives a first short message through a cellular network; the terminal displays the session information of the first short message on a session list interface of the first application; the session information of the first short message includes one or more of: contact information of the first short message, receiving or sending time of the first short message and content of the first short message; the terminal sends or receives a first satellite short message through a satellite network; the terminal displays the session information of the first satellite short message on a session list interface of the first application, wherein the session information of the first satellite short message comprises one or more of the following items: contact information of the satellite short message, receiving or sending time of the satellite short message and content of the satellite short message.
The first short message comprises any one of a multimedia message, a short message and a rich media short message. The session list interface of the first application is for displaying one or more sessions in the terminal.
Thus, the terminal can display the common short message and the satellite short message in the same application.
With reference to the first aspect, in a possible implementation manner, the method further includes: based on the operation of a user for checking a first session between the terminal and a first contact in a session list interface of a first application, the terminal displays a first user interface, wherein the first user interface comprises a first short message and a second satellite short message.
In this way, the terminal can integrate and display the common short message and the satellite short message of the same contact person into the same user interface. In this way, the user can view all short messages between the terminal and the first contact in the same interface.
With reference to the first aspect, in a possible implementation manner, the first user interface further includes a first identifier and a second identifier, where the first identifier is used to indicate a message type of the first short message; the second identifier is used for indicating the message type of the second satellite short message, an input box for inputting the second short message and a first control for sending the second short message, and the second short message comprises any one of the short message, the multimedia message and the rich media short message.
Thus, the user can know the message type of each short message in the interface.
With reference to the first aspect, in a possible implementation manner, the method further includes: based on the operation of clicking a satellite short message folder in a session list interface of a first application by a user, displaying a first session between the terminal and a first contact by the terminal, wherein the first session comprises satellite short messages; based on the operation of clicking the first session by the user, the terminal displays a second user interface, wherein the second user interface comprises a first short message, a second satellite short message, an input box for inputting the satellite short message and a second control for sending the satellite short message.
Further, in one possible implementation manner, after the terminal detects that the user clicks the satellite short message folder in the session list interface of the first application, the terminal may start the satellite communication module to perform satellite searching, satellite searching and satellite selecting, and determine satellites that may perform satellite communication.
Optionally, after the terminal detects that the user views the first session of the terminal and the first contact in the session list interface of the first application, the terminal may not turn on the satellite communication module. In this way, terminal power consumption can be saved.
Thus, the user can enter the user interface for sending the satellite short message by clicking the satellite short message folder. And when the user clicks the satellite short message folder, the terminal can also enter a satellite communication state, namely, a satellite communication module in the terminal is started, and the terminal can receive or send the satellite short message.
With reference to the first aspect, in a possible implementation manner, the terminal displays text content of a third satellite short message input by a user in the second user interface; based on the operation of clicking the second control by the user, the terminal sends a third satellite short message to the first contact through the satellite network.
With reference to the first aspect, in a possible implementation manner, the terminal displays content of a third short message input by a user in a third user interface, and sends the third short message to the second contact person through the cellular network based on the first user operation, where the third user interface is used to display one or more short messages included in a second session between the terminal and the second contact person; or the terminal displays the content of the fourth satellite short message input by the user in the third user interface, and sends the fourth satellite short message to the second contact person through the satellite network based on the operation of the second user.
Further, in one possible implementation, sending a third short message to the second contact over the cellular network includes: when the terminal resides in the cellular network, the third short message is sent to the second contact person through the cellular network;
sending the fourth satellite short message to the second contact via a satellite network, comprising: and when the terminal does not reside in the cellular network and the satellite communication module in the terminal is started, a fourth satellite short message is sent to the second contact person through the satellite network.
Thus, the user can send satellite short messages or common short messages in the same application.
With reference to the first aspect, in one possible implementation manner, the displaying, by the terminal, session information of the first short message on a session list interface of the first application includes: the terminal acquires first contact information contained in a first short message; the terminal searches a first session corresponding to the first contact information in a short message session table based on the first contact information, wherein the short message session table comprises a first short message session table and a satellite short message session table, and the first short message session table comprises one or more of a short message session table, a multimedia message session table and a rich media short message session table; the terminal determines the first short message as the nearest short message in the first session, and displays the session information of the first short message on a session list interface of the first application.
The terminal can display the session of different types between the terminal and the same contact person as one session, and update the session content by using the recently updated short message.
With reference to the first aspect, in one possible implementation manner, the terminal searches a first session corresponding to the first contact information in a short message session table based on the first contact information, where the short message session table includes a first short message session table and a satellite short message session table, and includes: the terminal merges N sessions in the first short message session table and the satellite short message session table, wherein N is an integer; the terminal determines a most recent one of the N sessions that contains one or more first sessions of first contact information.
With reference to the first aspect, in one possible implementation manner, the displaying, by the terminal, session information of the first short message on a session list interface of the first application includes: the terminal acquires first contact information contained in a first short message; when the terminal does not find out a session corresponding to the first contact information in a short message session table and a short message content table, the terminal generates a session id of the first session, and establishes association between the session information of the first short message and the session id of the first session, wherein the short message session table comprises a first short message session table and a satellite short message session table, and the first short message session table comprises one or more of a short message session table, a multimedia message session table and a rich media short message session table; the terminal stores the session id of the first session and the session information of the first short message associated with the id of the first session in a short message session table; the terminal determines that the first short message is the nearest short message in the first session, and displays the session information of the first short message on a session list interface of the first application.
With reference to the first aspect, in one possible implementation manner, the short message session table is used to store one or more short message sessions; the multimedia message session table is used for storing one or more multimedia message sessions; the rich media short message session table is used for storing one or more rich media short message sessions; the satellite short message session table is used to store one or more satellite short message sessions.
With reference to the first aspect, in one possible implementation manner, the displaying, by the terminal, session information of the satellite short message on a session list interface of the first application includes: the terminal acquires fourth contact person information contained in the first satellite short message; the terminal searches a first satellite short message session corresponding to the fourth contact information in a short message session table based on the fourth contact information, wherein the short message session table comprises a first short message session table and a satellite short message session table, and the first short message session table comprises one or more of a short message session table, a multimedia message session table and a rich media short message session table; the terminal determines that the first satellite short message is the latest short message in the first satellite short message session, and displays the session information of the first satellite short message on a session list interface of the first application.
The terminal can display the session of different types between the terminal and the same contact person as one session, and update the session content by using the recently updated short message.
With reference to the first aspect, in one possible implementation manner, the terminal searches a first satellite short message session corresponding to the fourth contact information in a short message session table based on the fourth contact information, where the short message session table includes a first short message session table and a satellite short message session table, and includes: the terminal merges N sessions in the first short message session table and the satellite short message session table, wherein N is an integer; the terminal determines a nearest short message in one or more fourth sessions including fourth contact information in the N sessions.
With reference to the first aspect, in one possible implementation manner, the displaying, by the terminal, session information of the satellite short message on a session list interface of the first application includes: the terminal acquires fourth contact person information contained in the first satellite short message; when the terminal does not find out a session corresponding to the fourth contact information in the short message session table and the short message content table, the terminal generates a session id of the fourth session, and establishes association between the session information of the first satellite short message and the session id of the fourth session, wherein the short message session table comprises a first short message session table and a satellite short message session table, and the first short message session table comprises one or more of a short message session table, a multimedia message session table and a rich media short message session table; the terminal stores the session id of the fourth session and the session information of the first satellite short message associated with the id of the fourth session in a short message session table; the terminal determines that the first satellite short message is the nearest short message in the fourth session, and displays the session information of the first satellite short message on a session list interface of the first application.
With reference to the first aspect, in one possible implementation manner, the terminal includes a short message content table, where the short message content table includes a short message table, a multimedia message table, a rich media short message table, and a satellite short message table; the short message list is used for storing the content of one or more short messages received or sent by the terminal, the sending or receiving time corresponding to the one or more short messages and the session id corresponding to the one or more short messages; the multimedia message table is used for storing the content of one or more multimedia messages received or sent by the terminal, the sending or receiving time corresponding to the one or more multimedia messages and the session id corresponding to the one or more multimedia messages; the rich media short message list is used for storing the content of one or more rich media short messages received or sent by the terminal, the sending or receiving time corresponding to the one or more rich media short messages and the session id corresponding to the one or more rich media short messages; the satellite short message list is used for storing the content of one or more satellite short messages received or sent by the terminal, the sending or receiving time corresponding to the one or more satellite short messages and the session id corresponding to the one or more satellite short messages.
With reference to the first aspect, in a possible implementation manner, the method further includes: the terminal searches one or more short messages corresponding to the fifth contact person in the short message list, the multimedia message list, the rich media short message list and the satellite short message list based on the operation of a third user; the one or more short messages include: the method comprises the steps of satellite short messages, multimedia messages and rich media short messages, wherein a fifth user operation is used for checking a fourth user interface, and the fourth user interface is used for displaying one or more short messages contained in a session between a terminal and a fifth contact person; the terminal determines the sequence of sending or receiving time corresponding to one or more short messages; and the terminal displays the one or more short messages on the fourth user interface based on the sequence of the sending or receiving time corresponding to the one or more short messages.
Thus, for the history information of a single session, common short messages, RCS messages and satellite short messages are displayed in a fusion mode and are arranged according to time ascending order.
In a second aspect, the present application provides a terminal comprising a display screen, one or more processors, one or more memories, and a transceiver. The transceiver, the one or more memories are coupled with the one or more processors and the display screen, the one or more memories are for storing computer program code comprising computer instructions that, when executed by the one or more processors, cause the terminal to perform the method in any of the possible implementations of the first aspect described above.
In a third aspect, the application provides a computer storage medium comprising computer instructions which, when run on a terminal, cause the terminal to perform the method of any one of the possible implementations of the first aspect.
In a fourth aspect, the application provides a computer program product for, when run on a computer, causing the computer to perform the method of any one of the possible implementations of the first aspect.
In a fifth aspect, the present application provides a chip or chip system for use in a terminal, comprising processing circuitry and interface circuitry, the interface circuitry being for receiving code instructions and for transmitting to the processing circuitry, the processing circuitry being for executing the code instructions to perform the method of any one of the possible implementations of the first aspect.
Drawings
Fig. 1A is a schematic diagram of a communication system 10 provided in an embodiment of the present application;
fig. 1B is a schematic diagram of a communication system 20 provided by an embodiment of the present application;
fig. 1C is a schematic diagram of a communication system 30 provided by an embodiment of the present application;
FIGS. 2-12 are a set of user interface diagrams provided by embodiments of the present application;
fig. 13 is a schematic structural diagram of a terminal according to an embodiment of the present application;
fig. 14 is a flowchart of a method for displaying a short message according to an embodiment of the present application;
fig. 15 is an interaction diagram of internal modules of the terminal 100 according to an embodiment of the present application.
Detailed Description
The terminology used in the following embodiments of the application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in the specification of the present application and the appended claims, the singular forms "a," "an," "the," and "the" are intended to include the plural forms as well, unless the context clearly indicates to the contrary. It should also be understood that the term "and/or" as used in this disclosure refers to and encompasses any or all possible combinations of one or more of the listed items.
The terms "first," "second," and the like, are used below for descriptive purposes only and are not to be construed as implying or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include one or more such feature, and in the description of embodiments of the application, unless otherwise indicated, the meaning of "a plurality" is two or more.
The following describes a communication system for receiving and transmitting short messages provided by the embodiment of the application.
Fig. 1A schematically illustrates a communication system 10 provided in accordance with an embodiment of the present application. As shown in fig. 1A, the communication system 10 may include a terminal 100, a satellite 21, a satellite network device 200, a short message center 22, and a terminal 300.
The terminal 100 under the satellite network may send a short message (including a short message, a multimedia message, a rich media short message, etc. may be referred to as a common short message) to the terminal 300 under the cellular network. Specifically, the terminal 100 is not resident under the cellular network, and the short message 1 may be transmitted to the satellite through a satellite communication module in the terminal 100. The satellite 21 may forward the short message 1 to the satellite network device 200 after receiving the short message 1. The satellite network device 200 parses the short message 1 and sends the decapsulated short message 1 to the short message center 22. The sms centre 22 may parse the recipient of the decapsulated sms message 1, encapsulate the decapsulated sms message 1 into a sms message 1', and send the sms message 1' to the terminal 300 via the cellular network. The terminal 300 receives the short message 1' through the cellular network.
The terminal 300 under the cellular network may also transmit a short message (i.e., a satellite short message, which may be simply referred to as a satellite short message) to the terminal 100 under the satellite network. Specifically, the terminal 300 may transmit the short message 2 to the short message center 22 through a cellular network. The short message center 22 may encapsulate the short message 2 into a short message 2' and send the short message to the satellite network device 200. The satellite network device 200 transmits the short message 2' to the terminal 100 through the satellite 21.
It will be appreciated that since the communication protocol under the satellite network is different from the communication protocol under the cellular network, the text content contained in the short message 1 and the short message 1' are the same, but the formats of the short message 1 and the short message 1' may be different, for example, the fields contained in the short message 1 and the short message 1' are different. The text content contained in the short message 2 and the short message 2 'are the same, but the formats of the short message 2 and the short message 2' may not be the same. For example, short message 2 and short message 2' contain different fields.
In the embodiment of the application, a terminal under a satellite network means that the terminal does not reside in a cellular network, and a satellite communication module in the terminal is turned on. The terminal may receive information transmitted from the satellite or may transmit information to the satellite.
A terminal under a cellular network means that the terminal resides in the cellular network and the terminal can transmit and receive information through the cellular network.
Fig. 1B schematically illustrates a communication system 20 provided by an embodiment of the present application. As shown in fig. 1B, the communication system 20 may include: terminal 100, satellite 21, satellite network device 200, short message center 25, and terminal 400.
The terminal 100 under the satellite network may send a short message (i.e., a satellite short message, which may be simply referred to as a satellite short message) to the terminal 400 under the satellite network. Specifically, the terminal 100 may send the short message 3 to the satellite 21, and the satellite 21 may forward the short message 3 to the satellite network device 200 after receiving the short message. The satellite network device 200 may send the short message 3 to the short message center 25. After the short message center 25 parses the recipient of the short message 3, the short message 3 may be sent to the satellite network device 200. Then, the satellite network device 200 may transmit the short message 3 to the terminal 400 through the satellite 21.
The terminal 400 under the satellite network may transmit a short message (i.e., a satellite short message, which may be simply referred to as a satellite short message) to the terminal 100 under the satellite network. Specifically, the terminal 400 may send the short message 4 to the satellite 21, and the satellite 21 may forward the short message 4 to the satellite network device 200 after receiving the short message. The satellite network device 200 may send the short message 4 to the short message center 25. After the short message center 25 parses the recipient of the short message 4, the short message 4 may be sent to the satellite network device 200. Then, the satellite network device 200 may transmit the short message 4 to the terminal 100 through the satellite 21.
Fig. 1C schematically illustrates a communication system 30 provided by an embodiment of the present application. As shown in fig. 1C, the communication system 30 may include a terminal 100, a short message center 22, and a terminal 300.
Wherein a short message may be sent to a terminal 300 under a cellular network when the terminal 100 is under the cellular network. Specifically, the terminal 100 may transmit the short message 5 to the short message center 22 through a cellular network. The short message center 22 may transmit the short message 5 to the terminal 300 through a cellular network.
The terminal 300 under the cellular network may transmit a short message to the terminal 100 under the cellular network. Specifically, the terminal 300 may send the short message 6 to the short message center 22 through a cellular network. The short message center may send the short message 6 to the terminal 100 via a cellular network.
In the embodiment of the application, the short message comprises a common short message and a satellite short message. In some embodiments, the common short message may include a short message, a multimedia message, and a rich media short message. The satellite message may be referred to as a satellite message.
In the embodiment of the present application, when the terminal is not resident in the cellular network, the terminal receives the short message sent by the satellite (for example, the short message 2' shown in fig. 1A, the short message 3 received by the terminal 400 and the short message 4 received by the terminal 100 shown in fig. 1B) through the satellite communication module in the terminal, and the short message sent to the satellite through the satellite communication module in the terminal is called a satellite short message (for example, the short message 1 shown in fig. 1A, the short message 3 and the short message 4 shown in fig. 2) or may be simply called a satellite short message. In some embodiments, this may also be referred to as a satellite short message.
In the embodiment of the present application, when the terminal resides in the cellular network, the short message (e.g., short message 1' shown in fig. 1A, short message 6 received by terminal 100 and short message 5 received by terminal 300 shown in fig. 1C) received by the mobile communication module in the terminal through the cellular network, and the short message (e.g., short message 2 shown in fig. 1A, short message 5 sent by terminal 100 and short message 6 sent by terminal 300 shown in fig. 1C) transmitted through the cellular network are referred to as a normal short message. The common short message may include a short message, a multimedia message, a rich media short message (rich communication suite, RCS), and the like. The short message only contains text information. The multimedia message is a multimedia short message service provided by an operator, and can transmit information such as images, texts, characters and the like in real time. The rich media short message is a rich media service provided based on basic communication service of operators. The rich media short message can comprise one or more of text, static pictures, animation, audio, video and installation packages. In some embodiments, the rich media short message may also be referred to as a rich media message.
In the prior art, some terminals can send and receive satellite short messages. The terminal receives and transmits satellite short messages through the application A and receives and transmits common short messages through the application B.
Illustratively, fig. 2 shows schematically a user interface of the terminal 100. As shown in fig. 2, the terminal 100 may display a user interface 200. The user interface 200 may display icons of a status bar 201 and a plurality of applications, such as an icon 202 of a satellite communication application and an icon 203 of information, as well as icons of a swipe application, a setup application, a payment application, a dial application, a camera application, a contacts application, and so forth. A signal strength indicator 201A of a mobile communication signal (also referred to as a cellular network signal) may be displayed in the status bar 201. The signal strength indicator 201A indicates that the terminal 100 is not connected to the network cell, at which point the terminal 100 is not camped on the cellular network.
The user may click on icon 202 to open a satellite communication application to send satellite messages or to view received satellite messages. The user may click on the icon 203 to open the information application to send a general short message or view a received general short message.
Thus, the same contact sends a satellite message and a common message to the user of the terminal 100, which are respectively displayed in the two applications. Satellite messages and ordinary messages sent by the user of terminal 100 to the same contact are also displayed in both applications, respectively. The terminal 100 needs to check the satellite short message sent by the same contact in two applications respectively, and needs to send the satellite short message and the common short message to the same contact in two applications respectively. The terminal 100 cannot display the satellite short message and the general short message in the same application, and thus, the user experience is poor.
In the method for displaying the short message provided by the embodiment of the application, the satellite short message and the common short message can be displayed in the same application. Therefore, the user does not need to check or send the satellite short message and the common short message in the two applications respectively, so that the operation of the user is convenient, and the user experience is improved.
How satellite messages and ordinary messages are displayed in the same application is described below with reference to the accompanying drawings.
Fig. 3 schematically shows a user interface 300 of the terminal 100. As shown in fig. 3, the user interface 300 may include a status bar 301, as well as icons for applications, such as an icon 302 for an information application. A signal strength indicator 301A of a mobile communication signal (also referred to as a cellular network signal) may be displayed in the status bar 301. The signal strength indicator 301A indicates that the terminal 100 is not connected to the network cell, at which point the terminal 100 is not camped on the cellular network. The user may click on the icon 302 and in response to a user operation, the terminal 100 may display the user interface 400.
Fig. 4 exemplarily shows a user interface 400 of the terminal 100. As shown in fig. 4, the user interface 400 may include page indication text 401, a search box 402, a folder 403, a message field 405, a message field 407, a message field 408, a control 404 included in the folder 403, and a control 406 included in the message field 405. The text in the page indication text 401 may be a "short message", which is used to indicate that the current page is a short message session list page, and may be viewed, and a short message is sent. The search box 402 may be used to search all short messages stored in the terminal 100. The user may click on a control 404 in folder 403 to view the satellite short message in terminal 100 and send the satellite short message. The user may click on control 406 in message field 405 to view the notification message in the terminal. The user may click on the message field 407 to view the short message between the user of the terminal 100 and the contact "min" (the short message sent by the user of the terminal 100 to the contact "min" and the short message sent by the contact "min" to the user of the terminal 100). The message field 407 may display the latest short message between the user of the terminal 100 and the contact "min" (i.e., the short message sent by the user of the terminal 100 to the contact "min", and one short message with the shortest time interval from the current view of the message field 407 among all the short messages sent by the contact "min" to the user of the terminal 100, for example, the short message is a satellite short message, where the content of the satellite short message may be "i am on a snowy mountain, and request rescue"). The message field 408 may display the latest short message between the user of the terminal 100 and the contact "small party" (e.g., the short message may be a short message received or transmitted through a cellular network, and the content of the short message may be "visit together in the afternoon today"). When the terminal 100 detects that the user clicks the control 404, the terminal 100 may display the user interface 500 in response to the user operation.
Fig. 5 schematically shows a user interface 500 of the terminal 100. As shown in fig. 5, the user interface 500 may include: control 501, search field 502, message field 503, message field 504, control 505, and control 506. Wherein control 501 may be used to return to the last interface. The search field 502 may be used to search for short messages between contacts that have satellite short message communications with the user of the terminal 100. The message field 503 is used to provide satellite short message usage guidance. The user may click on the message field 503 to view satellite short message usage guidance. The message field 504 is used to view the short message sent by the user of the terminal 100 to the contact "min" and received by the contact "min". A short message of the latest communication of the user of the terminal 100 with the contact "small" may also be displayed in the message field 504 (e.g. "i am on a snowy mountain, requesting rescue" shown in fig. 5). The user may click control 505 to send a satellite short message to other contacts. The user may click on control 506 to delete, set, etc. the satellite short message displayed in user interface 500.
It will be appreciated that only the contact with which the user of terminal 100 has satellite short message communication, and all short messages stored by terminal 100 between the user of terminal 100 and the contact, are displayed in the user interface 500. That is, there is satellite short message communication between the user of the terminal 100 and the contact "small", and the session of the terminal 100 with the contact "small" is displayed in the user interface 500. There is no satellite short message communication between the user of terminal 100 and the contact "party," whose session is not displayed in the user interface 500.
When the terminal 100 detects that the user clicks on the message column 504, the terminal 100 may display the user interface 600 in response to the user operation.
Fig. 6 schematically shows a user interface 600 of the terminal 100. As shown in fig. 6, the user interface 600 may be used to view short messages sent by the contact "mins" to the user of the terminal 100 and to send satellite short messages to the contact "mins". Control 601, text 602, text 603, text 604, short message text 605, text 606, text 607, control 608, short message text 609, text 610, control 611, control 612, input box 613, control 614, text 615, text 616, and control 617 may be included in user interface 600. Wherein control 601 is used to return to the previous level interface. Text 602 is used to display the name (e.g., small) and phone number (e.g., +86136 x 5678) of the contact. Text 603 is used to indicate that short message text 605 is a sms/mms. Text 604 is used to indicate that the transmission date of short message text 605 and short message text 609 is "monday today". The specific content of the short message text 605 may be "i am ready to go to the departure to get on snow". Text 606 is used to indicate that the specific time of transmission of short message text 605 is "9:30 a.m. Text 607 is used to indicate that the short message text 609 is a satellite short message. Control 608 is used to indicate the location information of terminal 100 when sending the short message text 609. The specific content of the short message text 609 may be "i am on a snowmountain, requesting rescue". Text 610 is used to indicate the specific transmission time "11:28 am" and transmission status "successful transmission" of short message text 609. Control 611 is used to select the location where the portable terminal 100 is currently located when the satellite short message is sent. Control 612 is used to input the specific content of the satellite short message that the user of terminal 100 needs to send. The input box 613 is used to display the specific content of the satellite short message input by the user through the control 612. Control 614 is used to display the remaining time for the user to edit the content of the satellite short message and is used to trigger terminal 100 to send the user-edited satellite short message. Text 615 and text 616 are text contents of the satellite short message provided by terminal 100. The user may directly select text 615 or text 616 as the text content of the satellite short message to be sent. Illustratively, the text 615 may be "I am here, everything is normal", and the text 616 may be "I am trapped, asking for rescue". Control 617 may be used to delete one or more short messages between the contact and terminal 100, or to view the contact, or to blacklist the contact, etc.
It will be appreciated that the specific text content of the short message text 605 and the short message text 609 shown in fig. 6 is only an example, and the embodiment of the present application is not limited to the specific text content of the short message text 605 and the short message text 609.
It will be appreciated that the user interface 600 shown in fig. 6 may display more text of short messages, and fig. 6 is merely an example, and the number of short messages displayed in the user interface 600 is not limited in the embodiment of the present application.
It will be appreciated that more text may be displayed by the terminal 100 for user selection to send, with text 615 and text 616 shown in fig. 6 being merely examples. The embodiment of the present application does not limit the number of texts displayed by the terminal 100 and available for the user to select and the specific content.
Alternatively, in one possible implementation, the terminal 100 may display a user interface for finding satellites before the user edits the text content of the satellite short message to be sent, or after the user clicks the control 614.
Fig. 7 exemplarily shows a user interface 700 of the terminal 100. User interface 700 may be used to search for satellites that terminal 100 is capable of and select satellites that can communicate. A hint information 701, a hint information 702, and a satellite icon display area 703 may be included in the user interface 700. The prompt 701 and the prompt 702 may be used to prompt the user terminal 100 that a satellite selection operation is being performed, so as to keep the terminal 100 in the open area as much as possible, so that satellite signals received by the current terminal 100 are not blocked by obstacles (such as a mountain), and improve the success rate of sending satellite short messages to a target satellite. The prompt 701 and the prompt 702 may include, but are not limited to, text prompt, picture prompt, animation prompt, and the like. For example, the prompt 701 may be a text prompt: the satellite finding is carried out, the satellite finding is carried out on the open area as much as possible, and foreign matter shielding signals are avoided in the visible range of the sight. For example, the prompt 702 may be a text prompt: "select star, please get later". The satellite icon display area 703 may be used to display satellite icons and number information corresponding to satellites searched by the terminal 100. For example, the satellite icon display area 703 may display the satellite number and satellite icon of the "No. 1" satellite, the satellite number and satellite icon of the "No. 2" satellite, and the satellite number and satellite icon of the "No. 3" satellite.
After the terminal 100 determines the satellite having the strongest signal from among the searched satellites by selecting the satellite, a first mark may be displayed, which may be used to indicate that the target satellite has been selected. Optionally, the first mark may also be used to prompt the user for the satellite number and satellite icon of the selected target satellite.
For example, the terminal 100 may display a user interface for selecting a satellite for communication after selecting a target satellite.
Fig. 8 schematically shows a user interface 800 of the terminal 100. As shown in fig. 8, a user interface 800 may be used to select satellites for communication. A reminder 801, a reminder 802, and a satellite icon display area 803 may be included in the user interface 800. The prompt message 801, the prompt message 802, and the satellite icon display area 803 may be used to prompt the user that the current satellite selection is completed, and should be in the open area, so that the terminal 100 is not blocked by an obstacle when sending and receiving satellite signals, and the success rate of sending satellite short messages to the satellite network device 200 is improved. The prompt message 801 and the prompt message 802 may be text prompt messages. For example, the prompt 801 may be a text prompt: "please be in the open area as much as possible, avoid the existence of foreign matter shielding signals in the visible range of the sight", the prompting information 802 may be a text prompting information: "successful star selection, please adjust terminal gesture according to prompt message, ensure communication quality. The satellite icon display area 803 may include satellite icons and number information corresponding to satellites searched by the terminal 100. A marker 804 may be further included in the satellite icon display area 803. The terminal 100 may identify the selected target satellite by a mark, which may be a color mark or a graphic mark, etc. For example, the label 804 is a graphical label. The tag 804 may be used to prompt the user for satellite "number 1" as the target satellite selected by the terminal 100. When the mark is a color mark, the color mark may be a color when the target satellite is displayed, so that the color of the target satellite is different from the colors of other satellites, thereby prompting the user to identify the target satellite.
In one possible implementation, the terminal 100 may receive an input from a user for a satellite icon or number, and determine, in response to the input, that a satellite corresponding to the satellite icon or number is the target satellite. For example, the terminal 100 may respond to a user input (e.g., a single click) of a satellite icon for satellite number 1 shown in fig. 7, and in response to the input, determine satellite number 1 as the target satellite, the terminal 100 may also display the user interface 800 shown in fig. 8 described above.
Illustratively, after the user selects the target satellite in the terminal 100, the terminal 100 may display the user interface 900.
Fig. 9 exemplarily shows a user interface 900 of the terminal 100. As shown in fig. 9, the user interface 900 is used to instruct the user to aim the terminal 100 at a target satellite. Prompt 901, prompt 902, and 903 may be included in user interface 900. The prompt 901, the prompt 902, and the prompt 903 may be used to prompt the user to adjust the terminal 100 according to the direction of reducing the azimuth deviation and the pitch deviation, so that the radiation direction of the satellite antenna of the terminal 100 is aligned to the target satellite. The prompt information 901 and the prompt information 903 may be text prompt information, and the prompt information 902 may include text prompt information and picture prompt information. For example, the hint information 901 may be: the terminal is adjusted to the optimal posture (prompting that the mobile phone is rotated along with the indication to align the satellite icon with the gray area at the top, and the mobile phone angle is adjusted up and down until the two circles coincide, and the mobile phone is in the optimal posture after the vibration is sensed). Where the "top gray area" is the content shown in area 902A in hint information 902 and the "two circles" are the content shown in area 902B in hint information 902. The prompt 902 may also include a manner in which the user adjusts the gesture of the terminal, for example, the text prompt "please rotate the phone to the right" in the prompt 902 may be used to prompt the user to rotate in a specified direction (e.g., to the right hand). The prompt 903 may include real-time data of the satellite terminal 100, such as one or more of local time, azimuth deviation, pitch deviation, and signal strength. The local time is the time of the city where the current terminal 100 is located, the azimuth deviation is the azimuth difference between the azimuth of the satellite transmission link direction and the azimuth of the satellite antenna in the radiation direction, the pitch angle deviation is the pitch angle difference between the pitch angle of the satellite transmission link direction and the pitch angle of the satellite antenna in the radiation direction, and the signal strength is the signal strength of the target satellite received by the current terminal 100.
In the case that the azimuth difference is greater than the first threshold or the pitch difference is greater than the second threshold, the terminal 100 may re-perform the satellite-alignment operation in response to the input after receiving the input for the user to adjust the posture of the terminal 100, and re-calculate the pitch difference and the azimuth difference. The terminal 100 may update the values of the pitch angle deviation and the azimuth angle deviation in the prompt 903 of the display user interface 900. The satellite alignment process may be cycled until the pitch angle difference is less than/equal to the second threshold and the azimuth angle difference is less than/equal to the first threshold. When the pitch angle difference is less than/equal to the second threshold and the azimuth angle difference is less than/equal to the first threshold, the terminal 100 may display the user interface 1000.
Fig. 10 exemplarily shows a user interface 1000 of the terminal 100. As shown in fig. 10, the user interface 1000 provides an interface for the terminal 100 to successfully star. The user interface 1000 includes a prompt 1001, a prompt 1002, and a prompt 1003. The prompt 1001 may be used to prompt the user that the satellite has been completed at this time, but the current gesture is to be maintained so as not to affect the transmission of the first data packet. The prompt 1003 may be used to prompt the user terminal 100 for real-time data (e.g., signal strength of the received target satellite, azimuth deviation, etc.). Wherein, the prompt information 1001 and the prompt information 1002 may be text prompt information, where the prompt information 1001 may be: the mobile phone is aligned to the target satellite, receives and transmits the satellite short message after the mobile phone senses vibration, and keeps the gesture unchanged. The prompt 1002 may include a picture class prompt and a text class prompt. The hint information 1002 includes a schematic representation of the direction of the radiation of the satellite antenna as it is aimed at the target satellite after the satellite has been successfully pointed.
Alternatively, in another possible implementation, the user may click on a control 404 in a folder 403 in the user interface 400, and the terminal displays a user interface for finding satellites. Reference may be made in particular to the description in fig. 7-10.
Optionally, the user may also click on folder 403 at user interface 400 to view a short message with the contact "min". Illustratively, as shown in FIG. 11, the user may click on a folder 403 in the user interface 400. When the terminal 100 detects that the user clicks the message 403, the terminal 100 may display the user interface 1200 in response to the user operation.
Fig. 12 exemplarily shows a user interface 1200 of the terminal 100. As shown in fig. 12, the user interface 1200 may be used to view short messages sent by the contact "mins" to the user of the terminal 100, and to send satellite short messages to the contact "mins". Control 1201, text 1202, text 1203, text 1204, short message text 1205, text 1206, text 1207, control 1208, short message text 1209, text 1210, control 1211, input box 1212, control 1213, control 1214, and control 1215 may be included in user interface 1200. Wherein control 1201 is used to return to the previous level interface. Text 1202 is used to display the name (e.g., small) and phone number (e.g., +86136 x 5678) of the contact. Text 1203 is used to indicate that short message text 1205 is a short message/multimedia message. Text 1204 is used to indicate that the transmission date of short message text 1205 and short message text 1209 is "monday today". The specific content of the short message text 1205 may be "i am ready to go to the departure to get on the snow". Text 1206 is used to indicate that the specific time of transmission of short message text 1205 is "9:30 a.m. Text 1207 is used to indicate that short message text 1209 is a satellite short message. Control 1208 is used to indicate location information of terminal 100 when sending the short message text 1209. The specific content of the short message text 1209 may be "i am on a snowmountain, requesting rescue". Text 1210 is used to indicate the specific transmission time "11:28 am" and transmission status "successful transmission" of short message text 1209. The control 1211 may be used to select a picture or video, etc., to send to the contact as content of a common text message. The input block 1212 may be used to input text content of a general short message to be transmitted. Control 1213 may be used to select expressions to send to contacts as content of a common text message. The control 1214 is used to trigger the terminal 100 to send the edited common sms to the contact. Control 1215 may be used to delete one or more short messages between the contact and terminal 100, or to view the contact, or to blacklist the contact, etc.
It will be appreciated that in the embodiment of the present application, the user clicks on a session in the satellite short message folder in the session list interface (e.g., the user interface 400) to enter the session content interface 1 (e.g., the user interface 500 shown in fig. 5), and the user may not only view all the short messages included in the session content interface 1, but may also send satellite short messages in the session content interface 1. The user clicks on a session in the session list interface of the terminal 100 to enter into the session content interface 2 (for example, the user interface 1200 shown in fig. 12), and the user may not only view all the short messages included in the session content interface 2, but also send a common short message in the session content interface 2.
Optionally, in other possible examples, the user clicks on a session in the satellite short message folder in the session list interface (e.g., user interface 400) to enter into the session content interface 1 (e.g., user interface 500 shown in fig. 5), and the user may view not only all the short messages contained in the session content interface 1, but also satellite short messages and regular short messages in the session content interface 1.
Further, in one possible implementation, when the terminal 100 is not resident in the cellular network and the satellite communication module is turned on, the terminal 100 may send a satellite short message in the session content interface 1. When the terminal 100 resides in the cellular network, the terminal 100 may send a general short message in the session content interface 1.
Further, in one possible implementation, when the terminal 100 is not resident in the cellular network, the satellite communication module is turned on, the terminal 100 searches for a connectable cellular network. After the terminal 100 searches for a connectable cellular network, the terminal 100 connects to the cellular network and turns off the satellite communication module.
In an embodiment of the present application, the user interface 400 may be referred to as a session list interface of the first application. It will be appreciated that the name of the first application is not limited by the embodiment of the present application. The user interface 1200 may be referred to as a first user interface and the user interface 600 may be referred to as a second user interface.
An exemplary terminal 100 provided by an embodiment of the present application is described below.
Fig. 13 is a schematic structural diagram of a terminal 100 according to an embodiment of the present application.
The embodiment will be specifically described below with reference to the terminal 100 as an example. It should be understood that terminal 100 may have more or fewer components than shown, may combine two or more components, or may have a different configuration of components. The various components shown in the figures may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application specific integrated circuits.
The terminal 100 may include: processor 110, external memory interface 120, internal memory 121, universal serial bus (universal serial bus, USB) interface 130, charge management module 140, power management module 141, battery 142, antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, headset interface 170D, sensor module 180, keys 190, motor 191, indicator 192, camera 193, display 194, and subscriber identity module (subscriber identification module, SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyro sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, and the like.
It should be understood that the structure illustrated in the embodiments of the present application does not constitute a specific limitation on the terminal 100. In other embodiments of the application, terminal 100 may include more or less components than shown, or certain components may be combined, or certain components may be split, or different arrangements of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
The processor 110 may include one or more processing units, such as: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), a controller, a memory, a video codec, a digital signal processor (digital signal processor, DSP), a baseband processor, and/or a neural network processor (neural-network processing unit, NPU), etc. Wherein the different processing units may be separate devices or may be integrated in one or more processors.
The controller may be a neural hub and a command center of the terminal 100, among others. The controller can generate operation control signals according to the instruction operation codes and the time sequence signals to finish the control of instruction fetching and instruction execution.
A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may hold instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to reuse the instruction or data, it can be called directly from the memory. Repeated accesses are avoided and the latency of the processor 110 is reduced, thereby improving the efficiency of the system.
In some embodiments, the processor 110 may include one or more interfaces. The interfaces may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous receiver transmitter (universal asynchronous receiver/transmitter, UART) interface, a mobile industry processor interface (mobile industry processor interface, MIPI), a general-purpose input/output (GPIO) interface, a subscriber identity module (subscriber identity module, SIM) interface, and/or a universal serial bus (universal serial bus, USB) interface, among others.
The I2C interface is a bi-directional synchronous serial bus comprising a serial data line (SDA) and a serial clock line (derail clock line, SCL). In some embodiments, the processor 110 may contain multiple sets of I2C buses. The processor 110 may be coupled to the touch sensor 180K, charger, flash, camera 193, etc., respectively, through different I2C bus interfaces. For example: the processor 110 may be coupled to the touch sensor 180K through an I2C interface, so that the processor 110 and the touch sensor 180K communicate through an I2C bus interface to implement a touch function of the terminal 100.
The I2S interface may be used for audio communication. In some embodiments, the processor 110 may contain multiple sets of I2S buses. The processor 110 may be coupled to the audio module 170 via an I2S bus to enable communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 may transmit an audio signal to the wireless communication module 160 through the I2S interface, to implement a function of answering a call through the bluetooth headset.
PCM interfaces may also be used for audio communication to sample, quantize and encode analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 may be coupled through a PCM bus interface. In some embodiments, the audio module 170 may also transmit audio signals to the wireless communication module 160 through the PCM interface to implement a function of answering a call through the bluetooth headset. Both the I2S interface and the PCM interface may be used for audio communication.
The UART interface is a universal serial data bus for asynchronous communications. The bus may be a bi-directional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, a UART interface is typically used to connect the processor 110 with the wireless communication module 160. For example: the processor 110 communicates with a bluetooth module in the wireless communication module 160 through a UART interface to implement a bluetooth function. In some embodiments, the audio module 170 may transmit an audio signal to the wireless communication module 160 through a UART interface, to implement a function of playing music through a bluetooth headset.
The MIPI interface may be used to connect the processor 110 to peripheral devices such as a display 194, a camera 193, and the like. The MIPI interfaces include camera serial interfaces (camera serial interface, CSI), display serial interfaces (display serial interface, DSI), and the like. In some embodiments, processor 110 and camera 193 communicate through a CSI interface to implement the photographing function of terminal 100. The processor 110 and the display 194 communicate through a DSI interface to implement the display function of the terminal 100.
The GPIO interface may be configured by software. The GPIO interface may be configured as a control signal or as a data signal. In some embodiments, a GPIO interface may be used to connect the processor 110 with the camera 193, the display 194, the wireless communication module 160, the audio module 170, the sensor module 180, and the like. The GPIO interface may also be configured as an I2C interface, an I2S interface, a UART interface, an MIPI interface, etc.
The SIM interface may be used to communicate with the SIM card interface 195 to perform functions of transferring data to or reading data from the SIM card.
The USB interface 130 is an interface conforming to the USB standard specification, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, or the like. The USB interface 130 may be used to connect a charger to charge the terminal 100, or may be used to transfer data between the terminal 100 and a peripheral device. And can also be used for connecting with a headset, and playing audio through the headset. The interface may also be used to connect other terminals, such as AR devices, etc.
It should be understood that the interfacing relationship between the modules illustrated in the embodiment of the present application is only illustrative, and does not limit the structure of the terminal 100. In other embodiments of the present application, the terminal 100 may also use different interfacing manners in the above embodiments, or a combination of multiple interfacing manners.
The charge management module 140 is configured to receive a charge input from a charger. The charger can be a wireless charger or a wired charger.
The power management module 141 is used for connecting the battery 142, and the charge management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and/or the charge management module 140 and provides power to the processor 110, the internal memory 121, the external memory, the display 194, the camera 193, the wireless communication module 160, and the like.
The wireless communication function of the terminal 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, a modem processor, a baseband processor, and the like.
The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in terminal 100 may be configured to cover a single or multiple communication bands. Different antennas may also be multiplexed to improve the utilization of the antennas. For example: the antenna 1 may be multiplexed into a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
The mobile communication module 150 may provide a solution including 2G/3G/4G/5G wireless communication applied to the terminal 100. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (low noise amplifier, LNA), etc. The mobile communication module 150 may receive electromagnetic waves from the antenna 1, perform processes such as filtering, amplifying, and the like on the received electromagnetic waves, and transmit the processed electromagnetic waves to the modem processor for demodulation. The mobile communication module 150 can amplify the signal modulated by the modem processor, and convert the signal into electromagnetic waves through the antenna 1 to radiate. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be disposed in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be provided in the same device as at least some of the modules of the processor 110.
The modem processor may include a modulator and a demodulator. The modulator is used for modulating the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used for demodulating the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low frequency baseband signal to the baseband processor for processing. The low frequency baseband signal is processed by the baseband processor and then transferred to the application processor. The application processor outputs sound signals through an audio device (not limited to the speaker 170A, the receiver 170B, etc.), or displays images or video through the display screen 194. In some embodiments, the modem processor may be a stand-alone device. In other embodiments, the modem processor may be provided in the same device as the mobile communication module 150 or other functional module, independent of the processor 110.
The wireless communication module 160 may provide solutions for wireless communication including wireless local area network (wireless local area networks, WLAN) (e.g., wireless fidelity (wireless fidelity, wi-Fi) network), bluetooth (BT), global navigation satellite system (global navigation satellite system, GNSS), satellite communication module, frequency modulation (frequency modulation, FM), near field wireless communication technology (near field communication, NFC), infrared technology (IR), etc., applied on the terminal 100. The wireless communication module 160 may be one or more devices that integrate at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the electromagnetic wave signals, filters the electromagnetic wave signals, and transmits the processed signals to the processor 110. The wireless communication module 160 may also receive a signal to be transmitted from the processor 110, frequency modulate it, amplify it, and convert it to electromagnetic waves for radiation via the antenna 2.
In the embodiment of the present application, the terminal 100 may send and receive satellite short messages through a satellite communication module.
In some embodiments, antenna 1 and mobile communication module 150 of terminal 100 are coupled, and antenna 2 and wireless communication module 160 are coupled, such that terminal 100 may communicate with a network and other devices via wireless communication techniques. The wireless communication techniques may include the Global System for Mobile communications (global system for mobile communications, GSM), general packet radio service (general packet radio service, GPRS), code division multiple access (code division multiple access, CDMA), wideband code division multiple access (wideband code division multiple access, WCDMA), time division code division multiple access (time-division code division multiple access, TD-SCDMA), long term evolution (long term evolution, LTE), BT, GNSS, WLAN, NFC, FM, and/or IR techniques, among others. The GNSS may include a global satellite positioning system (global positioning system, GPS), a global navigation satellite system (global navigation satellite system, GLONASS), a beidou satellite navigation system (beidou navigation satellite system, BDS), a quasi zenith satellite system (quasi-zenith satellite system, QZSS) and/or a satellite based augmentation system (satellite based augmentation systems, SBAS).
Terminal 100 implements display functions via a GPU, display 194, and application processor, etc. The GPU is a microprocessor for image processing, and is connected to the display 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
The display screen 194 is used to display images, videos, and the like. The display 194 includes a display panel. The display panel may employ a liquid crystal display (liquid crystal display, LCD), an organic light-emitting diode (OLED), an active-matrix organic light emitting diode (AMOLED), a flexible light-emitting diode (flex), a mini, a Micro-OLED, a quantum dot light-emitting diode (quantum dot light emitting diodes, QLED), or the like. In some embodiments, the terminal 100 may include 1 or N display screens 194, N being a positive integer greater than 1.
The terminal 100 may implement photographing functions through an ISP, a camera 193, a video codec, a GPU, a display 194, an application processor, and the like.
The ISP is used to process data fed back by the camera 193. For example, when photographing, the shutter is opened, light is transmitted to the camera photosensitive element through the lens, the optical signal is converted into an electric signal, and the camera photosensitive element transmits the electric signal to the ISP for processing and is converted into an image visible to naked eyes. ISP can also optimize the noise, brightness and color of the image. The ISP can also optimize parameters such as exposure, color temperature and the like of a shooting scene. In some embodiments, the ISP may be provided in the camera 193.
The camera 193 is used to capture still images or video. The object generates an optical image through the lens and projects the optical image onto the photosensitive element. The photosensitive element may be a charge coupled device (charge coupled device, CCD) or a Complementary Metal Oxide Semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, which is then transferred to the ISP to be converted into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV, or the like format. In some embodiments, terminal 100 may include 1 or N cameras 193, N being a positive integer greater than 1.
The digital signal processor is used for processing digital signals, and can process other digital signals besides digital image signals. For example, when the terminal 100 selects a frequency bin, the digital signal processor is used to fourier transform the frequency bin energy, etc.
Video codecs are used to compress or decompress digital video. The terminal 100 may support one or more video codecs. In this way, the terminal 100 may play or record video in a variety of encoding formats, such as: dynamic picture experts group (moving picture experts group, MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
The NPU is a neural-network (NN) computing processor, and can rapidly process input information by referencing a biological neural network structure, for example, referencing a transmission mode between human brain neurons, and can also continuously perform self-learning. Applications such as intelligent cognition of the terminal 100 can be implemented by the NPU, for example: image recognition, face recognition, speech recognition, text understanding, etc.
The external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to realize the memory capability of the extension terminal 100. The external memory card communicates with the processor 110 through an external memory interface 120 to implement data storage functions. For example, files such as music, video, etc. are stored in an external memory card.
The internal memory 121 may be used to store computer executable program code including instructions. The processor 110 executes various functional applications of the terminal 100 and data processing by executing instructions stored in the internal memory 121. The internal memory 121 may include a storage program area and a storage data area. The storage program area may store an operating system, an application required for at least one function (such as a face recognition function, a fingerprint recognition function, a mobile payment function, etc.), and the like. The storage data area may store data created during use of the terminal 100 (e.g., face information template data, fingerprint information templates, etc.), and the like. In addition, the internal memory 121 may include a high-speed random access memory, and may further include a nonvolatile memory such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (universal flash storage, UFS), and the like.
The terminal 100 may implement audio functions through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, an application processor, and the like. Such as music playing, recording, etc.
The audio module 170 is used to convert digital audio information into an analog audio signal output and also to convert an analog audio input into a digital audio signal. The audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be disposed in the processor 110, or a portion of the functional modules of the audio module 170 may be disposed in the processor 110.
The speaker 170A, also referred to as a "horn," is used to convert audio electrical signals into sound signals. The terminal 100 can listen to music or to handsfree calls through the speaker 170A.
A receiver 170B, also referred to as a "earpiece", is used to convert the audio electrical signal into a sound signal. When the terminal 100 receives a telephone call or voice message, it is possible to receive voice by approaching the receiver 170B to the human ear.
Microphone 170C, also referred to as a "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or transmitting voice information, the user can sound near the microphone 170C through the mouth, inputting a sound signal to the microphone 170C. The terminal 100 may be provided with at least one microphone 170C. In other embodiments, the terminal 100 may be provided with two microphones 170C, and may implement a noise reduction function in addition to collecting sound signals. In other embodiments, the terminal 100 may be further provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify the source of sound, implement directional recording functions, etc.
The earphone interface 170D is used to connect a wired earphone. The earphone interface 170D may be a USB interface 130 or a 3.5mm open mobile terminal platform (open mobile terminal platform, OMTP) standard interface, a american cellular telecommunications industry association (cellular telecommunications industry association of the USA, CTIA) standard interface.
The pressure sensor 180A is used to sense a pressure signal, and may convert the pressure signal into an electrical signal. For example: and executing an instruction for checking the short message when the touch operation with the touch operation intensity smaller than the first pressure threshold acts on the short message application icon. And executing an instruction for newly creating the short message when the touch operation with the touch operation intensity being greater than or equal to the first pressure threshold acts on the short message application icon.
The gyro sensor 180B may be used to determine a motion gesture of the terminal 100.
The air pressure sensor 180C is used to measure air pressure. In some embodiments, the terminal 100 calculates altitude from barometric pressure values measured by the barometric pressure sensor 180C, aiding in positioning and navigation.
The magnetic sensor 180D includes a hall sensor. The terminal 100 may detect the opening and closing of the flip cover using the magnetic sensor 180D. In some embodiments, when the terminal 100 is a folder, the terminal 100 may detect opening and closing of the folder according to the magnetic sensor 180D. And then according to the detected opening and closing state of the leather sheath or the opening and closing state of the flip, the characteristics of automatic unlocking of the flip and the like are set.
The acceleration sensor 180E may detect the magnitude of acceleration of the terminal 100 in various directions (typically three axes).
A distance sensor 180F for measuring a distance. The terminal 100 may measure the distance by infrared or laser. In some embodiments, the terminal 100 may range using the distance sensor 180F to achieve quick focusing.
The proximity light sensor 180G may include, for example, a Light Emitting Diode (LED) and a light detector, such as a photodiode. The light emitting diode may be an infrared light emitting diode.
The ambient light sensor 180L is used to sense ambient light level.
The fingerprint sensor 180H is used to collect a fingerprint. The terminal 100 can utilize the collected fingerprint characteristics to realize fingerprint unlocking, access an application lock, fingerprint photographing, fingerprint incoming call answering and the like.
The temperature sensor 180J is for detecting temperature.
The touch sensor 180K, also referred to as a "touch panel". The touch sensor 180K may be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, which is also called a "touch screen". The touch sensor 180K is for detecting a touch operation acting thereon or thereabout. The touch sensor may communicate the detected touch operation to the application processor to determine the touch event type. Visual output related to touch operations may be provided through the display 194.
The keys 190 include a power-on key, a volume key, etc. The keys 190 may be mechanical keys. Or may be a touch key. The terminal 100 may receive key inputs, generating key signal inputs related to user settings and function controls of the terminal 100.
The motor 191 may generate a vibration cue. The motor 191 may be used for incoming call vibration alerting as well as for touch vibration feedback.
The indicator 192 may be an indicator light, may be used to indicate a state of charge, a change in charge, a message indicating a missed call, a notification, etc.
The SIM card interface 195 is used to connect a SIM card. The terminal 100 interacts with the network through the SIM card to realize functions such as call and data communication.
In conjunction with the user interfaces shown in fig. 3-12 and the description of the hardware structure of the terminal 100, a method for displaying a short message according to an embodiment of the present application is described in detail below. The method may include: the terminal 100 sends or receives a first short message through a cellular network, and the terminal 100 displays session information of the first short message on a session list interface of a first application; the first short message comprises a short message, a multimedia message and a rich media short message; the session information of the first short message includes one or more of: contact information of the first short message, receiving or sending time of the first short message and content of the first short message; the terminal 100 transmits or receives a satellite short message through a satellite network, the terminal 100 displays session information of the satellite short message on a session list interface of the first application, the session information of the satellite short message including one or more of the following: contact information of the satellite short message, receiving or sending time of the satellite short message and content of the satellite short message.
In the embodiment of the present application, the short message sent by the terminal 100 to one contact, and the short message received by the contact are referred to as a session, where one session may include one or more short messages that the terminal 100 communicates with the same contact. In a short message application, a session list interface may be displayed, which may display one or more sessions. For example, the user interface 400 shown in fig. 4 is a session list interface, and a session between the terminal 100 and the contact "xiaoming" is displayed in the user interface 400, that is, the message column 407 in fig. 4 may be referred to as a session. The user may click on the session to view all short messages in the session.
Fig. 14 shows a method for displaying a short message according to an embodiment of the present application. As shown in fig. 14, a method for displaying a short message according to an embodiment of the present application may include the following steps:
s1401, the terminal 100 sends or receives a first short message through the cellular network, where the terminal 100 displays session information of the first short message on a session list interface of the first application, and the first short message includes a short message, a multimedia message, and a rich media short message.
The terminal 100 may transmit or receive the first short message through the cellular network, and then the terminal 100 may display session information of the first short message on a session list interface of the first application. The first application may be an application for transceiving short messages, for example, an information application shown in fig. 3. The specific name of the first application is not limited in the embodiment of the present application. The session list interface of the first application is used to display one or more sessions in the terminal 100. In the embodiment of the present application, the session list interface may also be referred to as a session interface, a user interface, or the like, and the embodiment of the present application does not display the names of the interfaces for displaying one or more sessions in the terminal 100 in the first application. For example, the session list interface of the first application may be the user interface 400 shown in fig. 4.
Wherein the session information of the first short message includes one or more of: contact information of the first short message, receiving or sending time of the first short message and content of the first short message.
The terminal 100 transmits or receives the first short message through the cellular network, and the terminal 100 displays session information of the first short message on a session list interface of the first application, which may specifically include the steps of:
1. the terminal 100 stores the content of the first short message transmitted or received through the cellular network in a first message content table, and stores the first session corresponding to the first short message in a first session table.
If the first short message is a short message, the first message content table is a short message table, and the first session table is a short message session table. That is, the terminal 100 stores the transmitted or received short message session in a short message session table; the terminal 100 stores the content of the transmitted or received short message in a short message table.
If the first short message is a multimedia message, the first message content table is a multimedia message table, and the first session table is a multimedia message session table. That is, the terminal 100 stores the transmitted or received multimedia message session in a multimedia message session table; the terminal 100 stores the content of the transmitted or received multimedia message in a multimedia message table.
If the first short message is a rich media short message, the first message content table is a rich media short message table, and the first session table is a rich media short message session table. Namely, the terminal 100 stores the sent or received rich media short message session in a rich media short message session table; the terminal 100 stores the content of the sent or received rich media sms in a rich media sms table.
In an embodiment of the present application, the satellite short message session table is used to store one or more satellite short message sessions in the terminal 100 and the content of a satellite short message with the latest time in each satellite short message session. The satellite short message table is used to store the contents of all satellite short messages in the terminal 100. The sms conversation table is used for storing one or more sms conversations in the terminal 100 and the content of a short message with the latest time in each sms conversation. The sms list is used to store the contents of all sms in the terminal 100. The multimedia message session table is used for storing one or more multimedia message sessions in the terminal 100 and the content of one multimedia message with the latest time in each multimedia message session. The rich media short message session table is used for storing one or more rich media sessions in the terminal 100 and the content of one rich media short message with the latest time in each rich media session.
In some embodiments, the content of the short message and the content of the multimedia message may be stored in a message content table, and the short message session and the multimedia message session may also be stored in a session table. That is, the short message table and the multimedia message table may be the same message table, and the short message session table and the multimedia message session table may also be the same session table.
For example, the formats of the short message table, the multimedia message table, and the rich media short message table may be as shown in table 1 below.
TABLE 1
As shown in table 1, the message content table of the short message such as the short message, the multimedia message, the rich media short message and the like may include related information of the short message, such as a message id, a session id, a message type (including a type of sending, receiving, drafts, queuing, and the like), a contact mobile phone number, a short message text content, a group sending message id, a short message receiving time, a short message sending state, a short message sending success time, whether the received short message is read, an index id of a card corresponding to the short message in a system of the terminal, whether the short message is failed to send, whether the short message is in a privacy mode, and the like. If the message type of the short message is sending, the short message receiving time corresponding to the short message, whether the received short message is read or not, and the like are null values in the message content table. If the message type of the short message is received, the short message sending state, the short message sending success time and the like corresponding to the short message are null values in the message content table. If the short message is not a group sending message, the group sending message id corresponding to the short message may be a null value in the message content table.
It can be understood that the above table 1 is only an example, and the message content table of the short message such as the short message, the multimedia message, the rich media short message, etc. may include more or less related information of the short message.
It will be appreciated that when the terminal 100 transmits or receives a short message m1, the terminal 100 may store the related information of the short message m1 in the message content table corresponding to the short message. When the terminal 100 receives a user operation for deleting the sent or received short message m2, the terminal 100 deletes the related information of the short message m2 stored in the message content table, and updates the session list interface corresponding to the first application of the terminal 100 and the interface for presenting the message content of the short message m 2. That is, when the short message m2 is the most recent short message of the plurality of short messages of the terminal 100 and the contact, after the terminal 100 deletes the short message m2 based on the user operation, the session list interface corresponding to the first application of the terminal 100 does not display the message content of the short message m2 any more, and the terminal 100 displays the content of the short message m2 any more in the message content interface of the short message with the contact. When the short message m2 is the only short message between the terminal 100 and the contact person, after the terminal 100 deletes the short message m2 based on the user operation, the session list interface corresponding to the first application of the terminal 100 does not display the session between the terminal 100 and the contact person. The terminal 100 does not display any message content interface presenting the content of the short message m 2.
Because the satellite short message can carry the position information, the satellite short message table needs to be able to store the position information carried in the satellite short message. The format of the satellite short message table may be as shown in table 2, for example.
TABLE 2
As shown in table 2, the information content table of the satellite short message (i.e., the satellite short message table) may include relevant information of the satellite short message, such as a message id, a session id, a satellite short message type (including emergency rescue service, location report service, message communication service, mailbox service, etc.), a message type (including types of transmission, reception, draft, queue queuing, etc.), a contact mobile phone number, short message text content, a group sending message id, a short message reception time, a short message transmission status, a short message transmission success time, whether the received short message has been read, an index id of a card corresponding to the short message in a system of the terminal, whether the short message is failed to be transmitted, a geographic location longitude, a geographic location latitude, whether the short message is in a privacy mode, etc. If the message type of the short message is sending, the short message receiving time corresponding to the short message, whether the received short message is read or not, and the like are null values in the message content table. If the message type of the short message is received, the short message sending state, the short message sending success time and the like corresponding to the short message are null values in the message content table. If the short message is not a group sending message, the group sending message id corresponding to the short message may be a null value in the message content table.
It is understood that the satellite short message may or may not carry geographic location information. When the satellite short message carries the geographical location information, the terminal 100 may store the longitude in the geographical location information carried in the satellite short message in the geographical location longitude column in the satellite short message table, and store the latitude in the geographical location information carried in the satellite short message in the geographical location latitude column in the satellite short message table. When the satellite short message does not carry the geographical position information, the terminal 100 stores the relevant information of the satellite short message in the satellite short message table, and the geographical position longitude and latitude value and the geographical position latitude value corresponding to the satellite short message are null values.
It will be appreciated that table 2 above is merely exemplary, and that more or less satellite short message related information may be included in the satellite short message table.
It will be appreciated that when the terminal 100 transmits or receives a satellite sms message smc1, the terminal 100 may store the relevant information of the satellite sms message smc1 in the satellite sms message table and update the satellite sms message session table. When the terminal 100 receives a user operation for deleting the sent or received satellite sms message smc2, the terminal 100 deletes the relevant information of the satellite sms message smc2 stored in the message content table, and updates the session list interface corresponding to the first application of the terminal 100 and the interface for presenting the message content of the satellite sms message smc 2. That is, when the satellite short message smc2 is the most recent short message of the plurality of short messages of the terminal 100 and the contact person, after the terminal 100 deletes the satellite short message smc2 based on the user operation, the session list interface corresponding to the first application of the terminal 100 does not display the message content of the satellite short message smc2 any more, and the terminal 100 displays the content of the satellite short message smc2 any more in the message content interface of the contact person small-bright session. When the satellite short message smc2 is the only short message between the terminal 100 and the contact person, after deleting the satellite short message smc2 based on the user operation, the session list interface corresponding to the first application of the terminal 100 does not display the session between the terminal 100 and the contact person. The terminal 100 does not display any message content interface presenting the content of the satellite sms message smc 2.
Illustratively, the format of the satellite short message session table may be as shown in table 3 below.
TABLE 3 Table 3
As shown in table 3, the satellite short message session table may store session information for each session in the format shown in table 3. The session information for each session may include, for example, a session id, a time of a last update of the session, a number of messages in the current session, a corresponding contact id, a content of the last updated message, whether there is an unread message, a number of failed short messages sent, a number of unread short messages, and so on.
It will be appreciated that the format of the satellite short message session table shown in table 3 above is merely exemplary, and that more or less session information may be included in the satellite short message session table.
For example, the format of the sms conversation table and the mms conversation table may be as shown in table 4 below.
TABLE 4 Table 4
As shown in table 4, the sms conversation table and the mms conversation table may store conversation information of each conversation in a format shown in table 4. The session information of each session may include a session id, a time of a latest update of the session, a number of messages in the current session, a corresponding contact id, a content of a latest update message, whether there is an unread message, whether it is delivered, a message type, a number of failed short messages sent, whether a multimedia message has an attachment, a SIM card id, a number of unread short messages, and so on.
It may be understood that the formats of the sms conversation table and the mms conversation table shown in the above table 4 are only examples, and more or less conversation information may be included in the sms conversation table and the mms conversation table.
Illustratively, the format of the rich media sms conversation table may be as shown in table 5 below.
TABLE 5
As shown in table 5, the rich media short message session table may store session information of each session in the format shown in table 5. The session information of each session may include a session id, a time of a latest update of the session, a number of messages in the current session, a corresponding contact id, a content of a latest update message, whether there is an unread message, whether it is delivered, a message type, a number of failed short messages sent, whether a multimedia message has an attachment, a SIM card id, and so on.
It will be appreciated that the format of the rich media sms conversation table shown in table 5 is merely an example, and more or less conversation information may be included in the rich media sms conversation table.
It will be appreciated that in the embodiment of the present application, each type of short message corresponds to a session table. Even if a session is between the terminal 100 and the same contact, different types of short messages included in the session are stored in a session table corresponding to each type of short message by the terminal 100.
Based on the formats of the satellite short message session table, the format of the multimedia message session table, and the format of the rich media short message session table shown in the foregoing tables 3, 4, and 5, the following exemplary embodiments specifically show the satellite short message session table, the multimedia message session table, and the rich media short message session table.
For example, the satellite short message session table may be found in table 6 below.
TABLE 6
In table 6 above: rowid indicates "line number", thread_id indicates session id, date indicates "session latest update time", message_count indicates "current session message number", clients_ids indicates "corresponding contact id", snippet indicates "content of latest updated message", read indicates "whether there is unread message", error indicates "number of failed short messages sent", and unread_count indicates "number of unread short messages".
As shown in table 6, two satellite sms sessions are stored in the satellite sms session table. As shown in table 6, the line number of the first satellite short message session in the satellite short message session table is "59", the session id is "59", the latest update time of the session is "the time is a Unix timestamp, which indicates" 2021-12-17:45:13 ", the number of current session messages is" 1", the contact id corresponding to the session is" 31", the content of the latest update message of the satellite short message session is" satellite short message text 1", whether or not there is an unread message field is" 0 "(which indicates that the session in the satellite short message session is" unread "), the number of short messages failed to be sent is" 0", and the number of unread short messages is" 1". The line number of another satellite short message session is "60", the session id is "60", the latest update time of the session is "1639705313175", the time is a Unix timestamp, the number of current session messages is "1", the contact id corresponding to the session is "32", the content of the latest update message of the satellite short message session is "satellite short message text 2", whether an unread message field is "1" (the session in the satellite short message session is "read"), the number of short messages failed to be sent is "0", and the number of unread short messages is "0".
It will be appreciated that the satellite short message text 1 or the satellite short message text 2 may be the content of the satellite short message that was updated recently in the session of the terminal 100 with the contact's minds as shown in fig. 4 "i am on a snowy mountain, requesting rescue". The specific contents of the satellite short message text 1 and the satellite short message text 2 shown in table 6 are not limited in the embodiment of the present application.
It should be understood that the satellite short message session table shown in table 6 is only an example, and the number of satellite short message sessions stored in the satellite short message session table and the session information of the satellite short message session are not limited in the embodiment of the present application.
It will be appreciated that the session information of the sessions in the satellite short message session table stored in the terminal, as well as the number of sessions, are not fixed. I.e. the session information of the sessions in the satellite short message session table stored in the terminal and the number of sessions are updated as the terminal receives or transmits satellite short messages.
For example, the sms session table may be referred to in table 7 below.
TABLE 7
In table 7 above: the line indicates "line number", the thread_id indicates a session id, the date indicates "a latest update time of a session", the message_count indicates "a current session message number", the clients_ids indicates "a corresponding contact id", the snippet indicates "a content of a latest updated message", the read indicates "whether there is an unread message", the reserved indicates "whether to be delivered", the type indicates "a message type", the error indicates "a number of failed short messages to be sent", the has_segment indicates "whether there is an attachment to a multimedia message", the sub_id indicates "SIM card id", and the unit_count indicates "a number of unread short messages".
As shown in table 7, two sms sessions are stored in the sms session table. As shown in table 7, the line number of the first short message session in the short message session table is "58", the session id is "58", the latest update time of the session is "1639705623889", the time is a Unix timestamp, which indicates that the number of current session messages is "2",0, the contact id corresponding to the session is "31", the content of the latest update message of the short message session is "short message text 1", whether the unread message field is "0" (which indicates that the session in the short message session is "unread"), whether the sending field is "0", the message type field is "0", the number of short messages failed to be sent is "1", the number of attachment fields of the multimedia message is "0", the SIM card id field is "0", and the number of unread short messages is "1". The line number of the other short message session is '59', the session id is '59', the latest update time of the session is '1639705282309', the time is Unix timestamp, the number of the current session messages is '1', the contact id corresponding to the session is '31', the content of the latest update message of the short message session is 'short message text 2', whether an unread message field is '1' (the session in the short message session is 'read'), whether a sending field is '0', the message type field is '0', the number of short messages which are failed to be sent is '0', the number of the multimedia messages is '0', the SIM card id field is '0', and the number of unread short messages is '2'.
It will be appreciated that the text 1 or text 2 may be the content of the short message 605 in the session of the terminal 100 with the contact's text as shown in fig. 6, "i prepare to go to the snow mountain". The embodiment of the present application does not limit the specific contents of the text 1 and the text 2 shown in table 7.
It may be understood that the sms session table shown in table 7 is only an example, and the number of sms sessions and session information of the sms sessions stored in the sms session table in the embodiment of the present application are not limited.
It will be appreciated that the session information of the sessions in the sms session table stored in the terminal and the number of sessions are not fixed. That is, session information of sessions and the number of sessions in the short message session table stored in the terminal may be updated as the terminal receives or transmits the short message.
For example, the multimedia message session table may be referred to in the following table 8.
TABLE 8
In table 8 above: the line indicates "line number", the thread_id indicates the session id, the date indicates "the latest update time of the session", the message_count indicates "the number of current session messages", the clients_ids indicates "the corresponding contact id", the snippet indicates "the content of the latest updated messages", the read indicates "whether there is an unread message", the reserved indicates "whether to be delivered", the type indicates "message type", the error indicates "the number of failed short messages to be sent", the has_segment indicates "whether or not the multimedia message is attached", the sub_id indicates "SIM card id", and the unit_count indicates "the number of unread short messages".
As shown in table 8, two multimedia message sessions can be stored in the multimedia message session table for illustration. The line number of the first multimedia message session is "62", the session id is "62", the latest update time of the session is "1639706737419", the time is a Unix timestamp, the number of current session messages is "1", the contact id corresponding to the session is "34", the content of the latest update message of the multimedia message session is "multimedia message text 1", whether an unread message field is "0" (the session in the multimedia message session is "unread"), whether a sending field is "0", the message type field is 0, the number of short messages which are failed to be sent is "0", whether an attachment field of the multimedia message is "0", the SIM card id field is "0", and the number of unread short messages is "0". The line number of the other multimedia message session is 63, the session id is 63, the latest update time of the session is 1639705642583, the time is Unix timestamp, the number of current session messages is 1, the contact id corresponding to the session is 35, the content of the latest update message of the multimedia message session is multimedia message text 2, whether an unread message field is 1 (the session in the multimedia message session is read), whether a sending field is 0, the message type field is 0, the number of short messages which are failed to be sent is 0, the number of the multimedia messages which are attached fields is 0, the SIM card id is 0, and the number of unread short messages is 0.
It can be understood that the specific contents of the multimedia message text 1 and the multimedia message text 2 shown in table 8 are not limited in the embodiment of the present application.
It may be understood that the multimedia message session table shown in table 8 is merely an example, and the number of multimedia message sessions stored in the multimedia message session table and session information of the multimedia message session are not limited in the embodiment of the present application.
It can be understood that the session information of the session and the number of sessions in the multimedia message session table stored in the terminal are not fixed. Namely, the session information of the sessions in the multimedia message session table stored in the terminal and the number of the sessions are updated along with the receiving or sending of the multimedia message by the terminal.
For example, the rich media sms session table may be referred to in table 9 below.
TABLE 9
In table 9 above: the rowid indicates "line number", the thread_id indicates a session id, the date indicates "a latest update time of a session", the message_count indicates "a current session message number", the clients_ids indicates "a corresponding contact id", the snippet indicates "a content of a latest updated message", the read indicates "whether there is an unread message", the type indicates "a message type", the error indicates "a number of transmission failure short messages", the has_attribute indicates "whether a multimedia message has an attachment", and the sub_id indicates "SIM card id".
As shown in table 9, two rich media sms sessions are stored in the rich media sms session table. The line number of the first rich media short message session is '59', the session id is '59', the latest update time of the session is '1639705513808', the time is Unix timestamp, the number of current session messages is '1', the contact id corresponding to the session is '31', the content of the latest update message of the multimedia short message session is 'rich media short message text 1', whether an unread message field is '1' (the session in the rich media short message session is 'read'), the message type field is '4', the number of short messages which are failed to be sent is '0', the content of the multimedia message has an attachment field is '0', and the SIM card field is '0'. The line number of the other rich media short message session is '60', the session id is '60', the latest update time of the session is '1639705313174', the time is Unix timestamp, the number of the current session messages is '1', the contact id corresponding to the session is '32', the latest update message content of the rich media short message session is 'rich media short message text 2', whether an unread message field is '1' (the session in the multimedia message session is 'read'), the message type field is '4', the number of the short messages which are failed to be sent is '0', the multimedia message has an attachment field of '0', and the SIM card id field is '0'.
It will be appreciated that the specific contents of the rich media sms text 1 and the rich media sms text 2 shown in table 9 are not limited in the embodiments of the present application.
It may be understood that the rich media sms session table shown in table 9 is only an example, and the number of rich media sms sessions and session information of the rich media sms session stored in the rich media sms session table in the embodiment of the present application are not limited.
It can be appreciated that the session information of the sessions and the number of sessions in the rich media sms session table stored in the terminal are not fixed. Namely, the session information of the sessions in the rich media short message session table stored in the terminal and the number of the sessions are updated along with the receiving or sending of the rich media short message by the terminal.
2. The terminal 100 queries a short message session table, a multimedia message session table, a satellite short message session table and a rich media short message session table stored in the terminal 100, determines that the first short message is a short message with the latest time in the first session, and the terminal 100 displays the session information of the first short message on a session list interface of the first application.
In a possible implementation manner, the terminal 100 queries a short message session table, a multimedia message session table, a satellite session table and a rich media session table stored in the terminal 100, determines that the first short message is a short message with the latest time in the first session, and displays session information of the first short message on a session list interface of the first application, which may include the following steps:
A: the terminal 100 groups the sessions in the short message session table, the multimedia message session table, the satellite short message session table, and the rich media short message session table, and queries the sessions in each group respectively.
Firstly, the terminal 100 may group the sessions in the sms session table, the mms session table, the satellite sms session table, and the rich media sms session table according to the following logic:
(1): a session containing only short messages;
(2): only session containing multimedia message;
(3): a session containing only rich media messages;
(4): a session containing only satellite short messages;
(5): the conversation comprising the short message and the multimedia message, but the latest short message is the conversation of the short message;
(6): the conversation comprises the short message and the multimedia message, but the latest short message is the conversation of the multimedia message;
(7): the conversation comprising the short message and the rich media short message, but the latest short message is the conversation of the short message;
(8): the conversation comprising the short message and the rich media short message, but the latest short message is the conversation of the rich media short message;
(9): a conversation comprising a short message and a satellite short message, but the latest short message is a conversation of the short message;
(10): a session comprising a short message and a satellite short message, but the latest short message is the session of the satellite short message;
(11): the conversation comprising the multimedia message and the rich media message, but the latest short message is the conversation of the multimedia message;
(12): the multimedia message and the rich media message are included in the conversation, but the latest short message is the conversation of the rich media message;
(13): the conversation comprising the rich media short message and the satellite short message, but the latest short message is the conversation of the rich media short message;
(14): the session of the rich media short message and the satellite short message is included, but the latest short message is the session of the satellite short message;
(15): the conversation comprises a short message, a multimedia message and a rich media short message, but the latest short message is the conversation of the short message;
(16): the conversation comprises a short message, a multimedia message and a rich media short message, but the latest short message is the conversation of the multimedia message;
(17): the conversation comprises a short message, a multimedia message and a rich media short message, but the latest short message is the conversation of the rich media short message;
(18): the conversation comprises short messages, multimedia messages and satellite short messages, but the latest short message is the conversation of the short messages;
(19): the conversation comprises a short message, a multimedia message and a satellite short message, but the latest short message is the conversation of the multimedia message;
(20): the conversation comprises a short message, a multimedia message and a satellite short message, but the latest short message is the conversation of the satellite short message;
(21): a conversation comprising a short message, a rich media short message and a satellite short message, wherein the latest short message is a conversation of the short message;
(22): the conversation comprises short messages, rich media short messages and satellite short messages, but the latest short message is the conversation of the rich media short messages;
(23): the conversation comprises short messages, rich media short messages and satellite short messages, but the latest short message is the conversation of the satellite short messages;
(24): the conversation comprises multimedia messages, rich media short messages and satellite short messages, but the latest short message is the conversation of the multimedia messages;
(25): the conversation comprises multimedia messages, rich media short messages and satellite short messages, but the latest short message is the conversation of the rich media short messages;
(26): the session comprises multimedia message, rich media message and satellite message, but the latest short message is the session of satellite message;
(27): the conversation comprises a short message, a multimedia message, a rich media short message and a satellite short message, but the latest short message is the conversation of the short message;
(28): the conversation comprises a short message, a multimedia message, a rich media short message and a satellite short message, but the latest short message is the conversation of the multimedia message;
(29): the conversation comprises a short message, a multimedia message, a rich media short message and a satellite short message, but the latest short message is the conversation of the rich media short message;
(30): the session comprises short message, multimedia message, rich media short message and satellite short message, but the latest short message is the session of satellite short message.
In this way, the terminal 100 can divide the sessions stored in all session tables in the terminal 100 into a plurality of groups. It will be appreciated that the more session tables in the terminal 100, the more session grouping results may be obtained.
Illustratively, according to the above grouping logic, the sessions in the satellite short message session table, the multimedia message session table, and the rich media short message session table shown in the foregoing tables 6 to 9 may be divided into multiple groups:
(1): a session containing only short messages, i.e., a session with a session id of 58 in table 7;
(2): a session only containing multimedia messages, namely a session with a session id of 62 and a session with a session id of 63 in table 8;
(3): only the session containing the satellite short message and the rich media short message, namely the session with the session id of 60 in the table 6 and the table 9;
(4): only the session of satellite short message, short message and rich media short message, i.e. the session id of 59 in table 6, table 7 and table 9 is included.
Illustratively, the query statement used by the terminal 100 to group sessions in different session tables in the terminal 100 may be as follows:
select
thread_id,date,message_count,recipient_ids,snippet,snippet_cs,has_attachment,sub_id,network_type,unread_count,
case when priority=1then=0else priority end as priority,number_type,undeliveres_status,file_type,type,has_metioned_people
from(
selectthread_id,date,message_count,recipient_ids,snippet,snippet_cs,has_attachment,sub_id,network_type,unread_count,priority,number_type,0as undeliveres_status,0as file_type,1as thread_type,type,has_metioned_people
from threads_pub where recipient_ids not in(select recipient_ids from rcs threads)
The threads_pub marks the short message conversation table and the conversation table after the multimedia message conversation table is filtered according to the privacy control. rcs threads represents a rich media short message session table. The query statement indicates that the query only contains the short message and the multimedia message, and does not contain the session of the rich media short message.
union
selectthread_id,date,message_count,recipient_ids,snippet,snippet_cs,read,error,has_attachment,sub_id,network_type,unread_count,priority,number_type,undeliveres_status,file_type,2as thread_type,type,has_metioned_people
from rcs threads where recipient_ids not in(select recipient_ids from threads_pub)
The query statement indicates a session which only contains rich media short messages and does not contain short messages and multimedia messages.
unionselect threads_pub_id as thread_id,threads_pub.date as date,(threads_pub.message_count+rcs_threads.message_count)as message count,threads_pub.recipient_ids as recipient_ids,threads_pub.snippet as snippet,threads_pub.snippet_cs as snippet_cs,threads_pub.read as read,threads_pub.error as error,threads_pub.has_attachment as has_attachment,threads_pub.sub_id as sub_id,threads_pub.network_type as network_type,(threads_pub.unread_count+rcs_threads.unread_count)as unread_count,threads_pub.priority as priority,threads_pub.number_type as number_type,0as undeliveres_status,0as file_type,1as thread_type,threads_pub.type as type,threads_pub.has_metioned_people as has_metioned_people from threads pub,rcs threads where threads_pub.recipient_ids=rcs_threads.recipient_ids and threads_pub.date>rcs_threads.date
The query statement indicates a session for querying a short message, a multimedia message and a rich media short message, wherein the last message in the session is the short message and the multimedia message.
unionselect rcs_threads.thread_id as thread_id,rcs_threads.date as date,(threads_pub.message_count+rcs_threads.message_count)as message count,rcs_threads.recipient_ids as recipient_ids,rcs_threads.snippet as snippet,rcs_threads.snippet_cs as snippet_cs,rcs_threads.read as read,rcs_threads.error as error,rcs_threads.has_attachment as has_attachment,rcs_threads.sub_id as sub_id,rcs_threads.network_type as network_type,(threads_pub.unread_count+rcs_threads.unread_count)as unread_count,rcs_threads.priority as priority,rcs_threads.number_type as number_type,0as undeliveres_status,0as file_type,1as thread_type,rcs_threads.type as type,rcs_threads.has_metioned_people as has_metioned_people from threads pub,rcs threads where threads_pub.recipient_ids=rcs_threads.recipient_ids and threads_pub.date<rcs_threads.date
The query statement indicates that the session containing the short message, the multimedia message and the rich media short message is queried, but the last message in the session is the rich media short message.
B: the terminal 100 merges the sessions with the same id in different session tables and arranges the session information into a merged session information according to a time sequence.
The terminal 100 may aggregate sessions of the same id in different session tables, e.g., sum the number of unread messages, the total number of messages, the number of failed messages to send, etc. And ordering the time in the session with the same id in different session tables, and selecting the content of the message with the latest time as the content of the latest updated message in the fused session. The latest update time date of the session in the fused session information is the date with the latest time (the time is closest to the current time) in the plurality of identical id sessions, and the snippet is the snippet corresponding to the latest date in the plurality of identical id sessions, and the unread message quantity, the total message quantity, the sending failure message quantity and the like are the sum of the unread message quantity, the total message quantity and the sending failure message quantity in the plurality of identical id sessions respectively.
Illustratively, the session id shown in tables 6-9 above is 59, for example. The session with the session id of 59 comprises three different sessions of satellite short messages, short messages and rich media short messages. The terminal 100 may fuse the session with the session id of 59 in the satellite short message session table, the short message session table, and the rich media short message session table to obtain a fused session with the session id of 59.
C: the terminal 100 determines that the first short message is the short message with the latest time in the first session, and the terminal 100 displays the session information of the first short message on the session list interface of the first application.
When the terminal 100 fuses the first short message in the first session according to the step B to be the first short message, the terminal 100 may determine that the first short message is the first short message in the first session and the terminal 100 displays the session information of the first short message on the session list interface of the first application.
In the following, the first short message is described by taking a short message as an example, that is, when the terminal 100 sends or receives the first short message, the terminal 100 stores the first short message in the short message table and updates the short message session table. The terminal 100 then needs to look up whether the first session exists in each session table. The terminal 100 may query the respective session tables for the first session according to the query logic shown in step a. When the terminal 100 fuses the first short message in the first session according to the step B to be the first short message, the terminal 100 may determine that the first short message is the first short message in the first session and the terminal 100 displays the session information of the first short message on the session list interface of the first application.
In this embodiment, the larger the session table stored in the terminal 100, the more sessions stored in each session table, the more complex the query, which may result in slower query and failure to meet the performance requirements of the short message application.
Optionally, in another possible implementation manner, the terminal 100 queries a short message session table, a multimedia message session table, a satellite session table and a rich media session table stored in the terminal 100, determines that the first short message is a short message with the latest time in the first session, and displays the session information of the first short message on a session list interface of the first application, where the method may include the following steps:
and A, the terminal 100 aggregates all the sessions in the satellite short message session table, the multimedia message session table and the rich media short message session.
The terminal 100 aggregates all of the satellite short message session table, the multimedia message session table, and the rich media short message session. If there are duplicate sessions among all the aggregated sessions, the terminal 100 may delete the duplicate sessions.
B: the terminal 100 groups all the sessions according to the contact ids, groups the sessions with the same contact ids into a group, extracts the latest updated message content from the plurality of sessions with the same ids, and fuses other session information to obtain fused session information.
The terminal 100 may group all sessions by contact id, grouping sessions with the same contact id. Then, the terminal 100 may take the content of the latest one of the short messages in the session in each group as the latest updated content of the session. For example, the terminal 100 may use the aggregation function MAX to take the maximum value for the date field of the session in each group, and the short message content corresponding to the maximum value of the date field is the follow-up update content of the session.
Further, the terminal 100 may SUM columns (e.g., the number of current session messages, the number of unread messages, the number of short messages failed to be transmitted, etc.) to be accumulated in the packet using the aggregate function SUM, and obtain the fused session information.
Illustratively, the terminal 100 may aggregate all sessions, group sessions, and fuse sessions by way of the following query statement.
select
thread_id,MAX(date)as date,SUM(message_count)as message_count,recipient_ids,snippet,snippet_cs,SUM(read)as read,SUM(error)as error,has_attachmen,sub_id,network_type,SUM(unread_count)as unread_count,
case when priority=1then=0else priority end as priority,number_type,undeliveres_status,file_type,thread_type,type,has_metioned_people
from(
selectthread_id,date,message_count,recipient_ids,snippet,snippet_cs,has_attachment,sub_id,network_type,unread_count,priority,number_type,0as undeliveres_status,0as file_type,1as thread_type,type,has_metioned_people
from threads_pub// get short message, multimedia message conversation table conversation
union
selectthread_id,date,message_count,recipient_ids,snippet,snippet_cs,has_attachment,sub_id,network_type,unread_count,priority,number_type,undeliveres_status,file_type,2as thread_type,type,has_metioned_people
from rcs_threads// jointly fetch the conversation in the rich media SMS conversation table
union
selectthread_id,date,message_count,recipient_ids,snippet,0assnippet_cs,0as has_attachment,0as sub_id,0as network_type,unread_count,0as priority,0as number_type,0as undeliveres_status,0as file_type,2as thread_type,0as type,0as has_metioned_people
from smc_threads// jointly fetch sessions in a satellite short message session table
grouping according to field recript ids
order by date DESC// descending order of columns in which date fields are located
In the query statement, the group by is a grouping operation, and the grouping is performed according to a designated field (for example, the receiver_ids). The Max () function returns the maximum value of the specified column, and in the grouping operation, returns the maximum column within the group. The SUM () function returns the SUM of the columns of values, which in the grouping operation returns the SUM of the columns of values within the group. order by is ordered according to the specified column ordering (DESC, descending order).
C: the terminal 100 determines that the first short message is the short message with the latest time in the first session, and the terminal 100 displays the session information of the first short message on the session list interface of the first application.
When the terminal 100 fuses the first short message in the first session according to the step a and the step B to obtain the first short message, the terminal 100 may determine that the first short message is the short message in the first session and the terminal 100 displays the session information of the first short message on the session list interface of the first application.
As shown in fig. 15, the first application in the terminal 100 may send a query statement to a database in the terminal 100, for querying specified data (for example, session information of a certain session or short message content included in the session, etc.), and the database may return, based on the query statement sent by the merge result set mergecursor module in the first application, data (for example, session information of the first session after fusion) that is required to be displayed in a fused manner by the query statement. And then the first application displays the data in a user interface of the first application through the list display listview module matched with the adapter module based on the acquired data in the fusion display. For example, session information of the first short message is displayed on a session list interface of the first application.
S1402, the terminal 100 sends or receives the satellite short message smc0 through the satellite network, and the terminal 100 displays the session information of the satellite short message smc0 on the session list interface of the first application.
The terminal 100 transmitting or receiving the satellite short message smc0 through the satellite network, the terminal 100 displaying session information of the satellite short message smc0 on a session list interface of the first application may include the steps of:
1. the terminal 100 stores the content of the satellite short message smc0 transmitted or received through the satellite network in the satellite short message table, and stores the first satellite short message session corresponding to the satellite short message smc0 in the satellite short message session table.
Here, reference may be made to the description in the above step S1401, the format of the satellite short message table may be referred to in table 2, which is not described herein again, the format of the satellite short message session table may be referred to in table 3, and the satellite short message session table may be referred to in table 6, which is not described herein again.
2. The terminal 100 queries a short message session table, a multimedia message session table, a satellite short message session table and a rich media short message session table stored in the terminal 100, determines that the satellite short message smc0 is a short message with the nearest time in the first satellite short message session, and the terminal 100 displays the session information of the satellite short message smc0 on a session list interface of the first application.
In a possible implementation manner, the terminal 100 queries a short message session table, a multimedia message session table, a satellite short message session table, and a rich media short message session table stored in the terminal 100, determines that the satellite short message smc0 is a short message with the latest time in the first satellite short message session, and the terminal 100 displays session information of the satellite short message smc0 on a session list interface of the first application, which may include the following steps:
a: the terminal 100 groups the sessions in the short message session table, the multimedia message session table, the satellite short message session table, and the rich media short message session table, and queries the sessions in each group respectively.
B: the terminal 100 merges the sessions with the same id in different session tables and arranges the session information into a merged session information according to a time sequence.
C: the terminal 100 determines that the satellite short message smc0 is the short message with the latest time in the first satellite short message session, and the terminal 100 displays the session information of the satellite short message smc0 on the session list interface of the first application.
Here, reference may be made to the description in step S1401, and a detailed description thereof will be omitted.
Optionally, in another possible implementation manner, the terminal 100 queries a short message session table, a multimedia message session table, a satellite session table and a rich media session table stored in the terminal 100, determines that the satellite short message smc0 is a short message with the latest time in the first satellite short message session, and the terminal 100 displays the session information of the satellite short message smc0 on the session list interface of the first application, which may include the following steps:
And A, the terminal 100 aggregates all the sessions in the satellite short message session table, the multimedia message session table and the rich media short message session.
The terminal 100 aggregates all of the satellite short message session table, the multimedia message session table, and the rich media short message session. If there are duplicate sessions among all the aggregated sessions, the terminal 100 may delete the duplicate sessions.
B: the terminal 100 groups all the sessions according to the contact ids, groups the sessions with the same contact ids into a group, extracts the latest updated message content from the plurality of sessions with the same ids, and fuses other session information to obtain fused session information.
C: the terminal 100 determines that the satellite short message smc0 is the short message with the latest time in the first satellite short message session, and the terminal 100 displays the session information of the satellite short message on the session list interface of the first application.
When the terminal 100 fuses the first satellite short message session according to the step a and the step B and the short message is the satellite short message smc0, the terminal 100 may determine that the satellite short message smc0 is the short message with the latest time in the first satellite short message session, and the terminal 100 displays the session information of the satellite short message smc0 on the session list interface of the first application.
Reference may be made to the description in step S1401, and a detailed description thereof will be omitted.
It is to be understood that the step S1401 and the step S1402 are not sequentially performed, and the step S1401 may be performed before the step S1402 or may be performed after the step S1402. The terminal 100 transmits or receives the satellite short message through the satellite network, and the terminal 100 may display session information of the satellite short message according to step S1402. The terminal 100 sends or receives short messages such as short messages, multimedia messages or rich media short messages through the cellular network, and the terminal 100 may display session information of the short messages such as short messages, multimedia messages or rich media short messages according to step S1401.
Thus, by the method for displaying the short message provided by the embodiment of the application, the terminal can display the satellite short message and the common short message in the same application.
Further, the terminal 100 may display, in the session content interface, one or more satellite short messages sent or received through the satellite network, where the one or more satellite short messages are included in the session TH1, and display one or more first short messages sent or received through the cellular network, where the first short messages include a multimedia message, a short message, and a rich media short message.
The session content interface is used for displaying the content of one or more short messages contained in the session. Illustratively, the session content interface may be a user interface 600 as shown in fig. 6. The user interface 600 displays the contents of a plurality of short messages in a session between the terminal 100 and a contact.
In a possible implementation manner, the terminal 100 displays, in the session content interface, one or more satellite short messages that are included in the session TH1 and are sent or received through the satellite network, and displays one or more first short messages that are included in the session TH1 and are sent or received through the cellular network, where the first short messages include a multimedia message, a short message, and a rich media short message, and may include: the terminal 100 queries short messages with the same session id as the session TH1 in a short message table, a multimedia message table and a rich media short message and satellite short message table; then, the terminal 100 sorts the short messages queried from the short message table, the multimedia message table, the rich media short message and the satellite short message table according to the receiving or sending time of the short messages, and displays the sorted short messages in the session content interface.
Taking a session id of 16 (i.e. thread_id=16) of the session TH1 as an example, a query statement for the terminal 100 to query the sms table, the mms table, and the sms of the thread_id=16 in the sms of the rich media and the sms of the satellite may be as follows:
select
transport_type,_id,thread_id,address,body,sub_id,date,date_sent,read,type,status,locked,error_code,recent_im,sub,sub_cs,date,date_sent,read,m_type,msg_box,d_rpt,rr,err_type,locked,st,network,text_only,date_favadd,origin_id,subject,service_center,addr_body,time_body,is_secret,risk_url_body,service_kind,enriched_calling_type,owner_addr,protocol,global_group_id
from(
select distinct date*1as normalized_date,’sms’as transport_type,_id,thread_id,address,body,sub_id,date,date_sent,read,type,status,locked,error_code,recent_im,null as sub,null as sub_cs,date,date_sent,read,null as m_type,null as msg_box,null as d_rpt,null as rr,null as err_type,locked,null as st,network,null as text_only,null as date_favadd,null as origin_id,subject,service_center,addr_body,time_body,is_secret,risk_url_body,null as service_kind,null as enriched_calling_type,null as owner_addr,null as protocol,null as global_group_id
from sms window (((private_mode=0) and (thread_id=16)) and ((type |=3)))/taking a sms with a session id of 16 in the sms table
union select distinct date*1as normalized_date,’smc’as transport_type,_id,thread_id,address,body,sub_id,date,date_sent,read,type,status,null as locked,error_code,date,date_sent,read,null as m_type,null as msg_box,
from smc window (((private_mode=0) and (thread_id=16)) and ((type |=3)))/fetching a satellite short message with a session id of 16 in the satellite short message table
union select distinct date*1as normalized_date,’chat’as transport_type,_id,thread_id,address,body,sub_id,date,date_sent,read,type,status,locked,error_code,null as recent_im,null as sub,null as sub_cs,date,date_sent,read,null as m_type,null as msg_box,null as d_rpt,null as rr,null as err_type,locked,null as st,network,null as text_only,null as date_favadd,null as origin_id,subject,service_center,null as addr_body,null as time_body,null as is_secret,null as risk_url_body,service_kind,enriched_calling_type,owner_addr,null as protocol,global_group_id
from chat window (((private_mode=0) and (thread_id=16)) and ((type |=3)))/fetching the rich media sms with the session id of 16 in the rich media sms table
union select distinct date*1000as normalized_date,’mms’as transport_type,pdu._id,thread_id,address,body,sub_id,date,date_sent,read,type,status,locked,null as error_code,null as recent_im,sub,sub_cs,date,date_sent,read,m_type,msg_box,d_rpt,rr,err_type,locked,st,network,text_only,null as date_favadd,null as origin_id,null as subject,null as service_center,null as addr_body,null as time_body,null as is_secret,null as risk_url_body,null as service_kind,null as enriched_calling_type,null as owner_addr,null as protocol,null as global_group_id
from pdu leef join pending_msgs on pdu._id=pending_msgs.msg_id
where(((privacy_mode=0)and(thread_id=16))and((type!=3))
and
((msg_box!=3and(m_type=128or m_type=132or m_type=130)))
) Multimedia message with session id of 16 in/fetch multimedia message table
Order by normalized _date ASC// use unit to fuse the query results together, and finally arrange in ascending order according to time
The inquiry statement inquires the short message table, the satellite short message table, the rich media short message table and the multimedia message table respectively, then fuses inquiry results together by using the unit, and finally carries out ascending arrangement according to time.
When a first application (for example, a short message application) in the terminal analyzes a data set cursor returned by database query, the first application traverses a message type corresponding to each record (a field transport_type represents a message type), the query statement already indicates the message type corresponding to each table, a short message: sms, a satellite short message: smc, a rich media short message: chat, and a multimedia message: pdu). And then displaying the message type corresponding to the short message in the session content interface. For example, the text 607 "satellite short message" shown in fig. 6 is the message type of the short message text 609.
In the embodiment of the present application, for newly created information in the terminal 100, the terminal 100 first invokes an interface of the database to query whether the session is currently available or not, that is, to query whether the database table has information of the current recipient or not. If so, the terminal 100 may acquire a corresponding session id, i.e., a thread_id; if not, the terminal 100 may query the database for the maximum value of the current thread_id and then self-increment to generate a new thread_id.
For the retransmission of information of an existing session in the terminal 100, the terminal 100 may directly acquire the thread_id of the current session as the thread_id of the current message.
In this way, the satellite short message in the satellite short message table in the terminal 100 is associated with the data in the short message table, the multimedia message table and the rich media short message table in the terminal 100 through the thread_id, so that the session id of the terminal 100 and the session id of the same contact person are ensured to be the same.
When the terminal 100 deletes the short message in response to the user operation, the terminal 100 invokes deletion of the database, regardless of whether the short message is deleted in the session list interface or the short message is deleted in the session content interface, so as to update the corresponding message table and the data in the session table. When the user views the session list page or the session content interface of the first application again on the terminal 100, the terminal 100 may query the updated session short message table and the session table.
The above embodiments are only for illustrating the technical solution of the present application, and not for limiting the same; although the application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit of the application.
As used in the above embodiments, the term "when …" may be interpreted to mean "if …" or "after …" or "in response to determination …" or "in response to detection …" depending on the context. Similarly, the phrase "at the time of determination …" or "if detected (a stated condition or event)" may be interpreted to mean "if determined …" or "in response to determination …" or "at the time of detection (a stated condition or event)" or "in response to detection (a stated condition or event)" depending on the context.
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, produces a flow or function in accordance with embodiments of the present application, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by a wired (e.g., coaxial cable, fiber optic, digital subscriber line), or wireless (e.g., infrared, wireless, microwave, etc.). The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains an integration of one or more available media. The usable medium may be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid state disk), etc.
Those of ordinary skill in the art will appreciate that implementing all or part of the above-described method embodiments may be accomplished by a computer program to instruct related hardware, the program may be stored in a computer readable storage medium, and the program may include the above-described method embodiments when executed. And the aforementioned storage medium includes: ROM or random access memory RAM, magnetic or optical disk, etc.

Claims (16)

1. A method for displaying a short message, comprising:
the terminal sends or receives a first short message through a cellular network;
the terminal displays the session information of the first short message on a session list interface of a first application; the session information of the first short message includes one or more of the following: the contact information of the first short message, the receiving or sending time of the first short message and the content of the first short message;
the terminal sends or receives a first satellite short message through a satellite network;
the terminal displays the session information of the first satellite short message on the session list interface of the first application, wherein the session information of the first satellite short message comprises one or more of the following: contact information of the satellite short message, receiving or sending time of the satellite short message and content of the satellite short message.
2. The method according to claim 1, wherein the method further comprises:
based on the operation of viewing a first session of the terminal and a first contact person in a session list interface of the first application by a user, the terminal displays a first user interface, wherein the first user interface comprises the first short message and a second satellite short message.
3. The method of claim 2, wherein the first user interface further comprises a first identifier and a second identifier, wherein the first identifier is used for indicating a short message type of the first short message; the second identifier is used for indicating the short message type of the second satellite short message, an input box for inputting the second short message and a first control for sending the second short message, and the second short message comprises any one of the short message, the multimedia message and the rich media short message.
4. A method according to claim 3, characterized in that the method further comprises:
based on the operation of clicking a satellite short message folder in a session list interface of the first application by a user, the terminal displays a first session between the terminal and the first contact, wherein the first session comprises satellite short messages;
Based on the operation of clicking the first session by the user, the terminal displays a second user interface, wherein the second user interface comprises the first short message, the second satellite short message, an input box for inputting the satellite short message and a second control for sending the satellite short message.
5. The method according to claim 4, wherein the method further comprises:
the terminal displays text content of a third satellite short message input by a user in the second user interface;
and based on the operation of clicking the second control by the user, the terminal sends the third satellite short message to the first contact through the satellite network.
6. The method according to claim 1, wherein the method further comprises:
the terminal displays the content of a third short message input by a user in a third user interface, and sends the third short message to a second contact person through the cellular network based on the first user operation, wherein the third user interface is used for displaying one or more short messages contained in a second session between the terminal and the second contact person; or alternatively, the first and second heat exchangers may be,
the terminal displays the content of a fourth satellite short message input by a user in the third user interface, and sends the fourth satellite short message to the second contact person through the satellite network based on the operation of the second user.
7. The method of claim 6, wherein the sending the third short message to the second contact over the cellular network comprises:
when the terminal resides in a cellular network, sending the third short message to the second contact through the cellular network;
said sending said fourth satellite short message to said second contact via said satellite network comprising:
and when the terminal is not resident in the cellular network and the satellite communication module in the terminal is started, the fourth satellite short message is sent to the second contact through the satellite network.
8. The method according to any of claims 1-7, wherein the terminal displaying session information of the first short message on a session list interface of a first application, comprising:
the terminal acquires first contact information contained in the first short message;
the terminal searches a first session corresponding to the first contact information in a short message session table based on the first contact information, wherein the short message session table comprises a first short message session table and a satellite short message session table, and the first short message session table comprises one or more of a short message session table, a multimedia message session table and a rich media short message session table;
The terminal determines that the first short message is the nearest short message in the first session, and displays the session information of the first short message on a session list interface of a first application.
9. The method of claim 8, wherein the terminal searches a short message session table for a first session corresponding to the first contact information based on the first contact information, wherein the short message session table includes a first short message session table and a satellite short message session table, and wherein the method comprises:
the terminal merges N sessions in the first short message session table and the satellite short message session table, wherein N is an integer;
the terminal determines a nearest short message in one or more first sessions containing the first contact information in the N sessions.
10. The method according to any one of claims 1-7, wherein the terminal displaying session information of the first short message on a session list interface of the first application, comprising:
the terminal acquires first contact information contained in the first short message;
when the terminal does not find the session corresponding to the first contact information in a short message session table and a short message content table, the terminal generates a session id of a first session, and establishes association between the session information of the first short message and the session id of the first session, wherein the short message session table comprises a first short message session table and a satellite short message session table, and the first short message session table comprises one or more of a short message session table, a multimedia message session table and a rich media short message session table;
The terminal stores the session id of the first session and the session information of the first short message associated with the id of the first session in the short message session table;
the terminal determines that the first short message is the nearest short message in the first session, and displays the session information of the first short message on a session list interface of a first application.
11. The method according to any one of claims 8-10, wherein the sms session table is used to store one or more sms sessions; the multimedia message session table is used for storing one or more multimedia message sessions; the rich media short message session table is used for storing one or more rich media short message sessions; the satellite short message session table is used for storing the one or more satellite short message sessions.
12. The method of claim 1, wherein the terminal displays session information of the satellite short message on a session list interface of the first application, comprising:
the terminal acquires fourth contact person information contained in the first satellite short message;
the terminal searches a first satellite short message session corresponding to the fourth contact information in a short message session table based on the fourth contact information, wherein the short message session table comprises a first short message session table and a satellite short message session table, and the first short message session table comprises one or more of a short message session table, a multimedia message session table and a rich media short message session table;
The terminal determines that the first satellite short message is the latest short message in the first satellite short message session, and displays the session information of the first satellite short message on a session list interface of a first application.
13. The method according to any one of claims 1-12, wherein the terminal includes a short message content table, and the short message content table includes a short message table, a multimedia message table, a rich media short message table, and a satellite short message table;
the short message list is used for storing the content of one or more short messages received or sent by the terminal, the sending or receiving time corresponding to the one or more short messages and the session id corresponding to the one or more short messages;
the multimedia message table is used for storing the content of one or more multimedia messages received or sent by the terminal, the sending or receiving time corresponding to the one or more multimedia messages and the session id corresponding to the one or more multimedia messages;
the rich media short message list is used for storing the content of one or more rich media short messages received or sent by the terminal, the sending or receiving time corresponding to the one or more rich media short messages and the session id corresponding to the one or more rich media short messages;
the satellite short message table is used for storing the content of one or more satellite short messages received or sent by the terminal, the sending or receiving time corresponding to the one or more satellite short messages and the session id corresponding to the one or more satellite short messages.
14. The method of claim 11, wherein the method further comprises:
the terminal searches one or more short messages corresponding to the fifth contact person in the short message list, the multimedia message list, the rich media short message list and the satellite short message list based on the operation of a third user; the one or more short messages include: the fifth user operation is used for viewing the fourth user interface, and the fourth user interface is used for displaying one or more short messages contained in the session between the terminal and the fifth contact;
the terminal determines the sequence of the sending or receiving time corresponding to the one or more short messages;
and the terminal displays the one or more short messages on the fourth user interface based on the sequence of the sending or receiving time corresponding to the one or more short messages.
15. A terminal, comprising: a display screen, one or more processors, and one or more memories; the one or more processors being coupled with the one or more memories and the display screen, the one or more memories being operable to store computer program code comprising computer instructions that, when executed by the one or more processors, cause the terminal to perform the method of displaying a short message of any of the preceding claims 1-14.
16. A computer readable storage medium comprising computer instructions which, when run on an electronic device, cause the electronic device to perform the method of displaying a short message as claimed in any one of claims 1 to 14.
CN202210550546.9A 2022-05-20 2022-05-20 A method and terminal for displaying short messages Pending CN117135258A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202210550546.9A CN117135258A (en) 2022-05-20 2022-05-20 A method and terminal for displaying short messages
PCT/CN2023/094782 WO2023222037A1 (en) 2022-05-20 2023-05-17 Method for displaying short message and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210550546.9A CN117135258A (en) 2022-05-20 2022-05-20 A method and terminal for displaying short messages

Publications (1)

Publication Number Publication Date
CN117135258A true CN117135258A (en) 2023-11-28

Family

ID=88834699

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210550546.9A Pending CN117135258A (en) 2022-05-20 2022-05-20 A method and terminal for displaying short messages

Country Status (2)

Country Link
CN (1) CN117135258A (en)
WO (1) WO2023222037A1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103152698A (en) * 2012-12-12 2013-06-12 张�杰 Device and method for multi-mode broadcast short message receiving
CN104770053A (en) * 2012-11-02 2015-07-08 马林索芙特有限公司 Maritime communication system and method
CN104883217A (en) * 2014-02-28 2015-09-02 电信科学技术研究院 Method, system and device of transmitting satellite messages
CN110958046A (en) * 2018-09-26 2020-04-03 中国移动通信有限公司研究院 Intercommunication method and device for Beidou short message and mobile short message
CN113382363A (en) * 2021-04-27 2021-09-10 荣耀终端有限公司 Method and device for sending messages based on different networks

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8401154B2 (en) * 2009-09-17 2013-03-19 Verizon Patent And Licensing Inc. Emergency text communications
IL212968A (en) * 2011-05-18 2015-10-29 Verint Systems Ltd System and method for joint passive interception of satellite and cellular communication
CN105704686B (en) * 2014-11-27 2019-02-19 中国移动通信集团北京有限公司 A kind of instant messaging method, device and system based on short message
CN111130616B (en) * 2018-11-01 2022-09-09 中兴通讯股份有限公司 Session control method and satellite ground station
CN112947807A (en) * 2021-01-28 2021-06-11 维沃移动通信有限公司 Display method and device and electronic equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104770053A (en) * 2012-11-02 2015-07-08 马林索芙特有限公司 Maritime communication system and method
CN103152698A (en) * 2012-12-12 2013-06-12 张�杰 Device and method for multi-mode broadcast short message receiving
CN104883217A (en) * 2014-02-28 2015-09-02 电信科学技术研究院 Method, system and device of transmitting satellite messages
CN110958046A (en) * 2018-09-26 2020-04-03 中国移动通信有限公司研究院 Intercommunication method and device for Beidou short message and mobile short message
CN113382363A (en) * 2021-04-27 2021-09-10 荣耀终端有限公司 Method and device for sending messages based on different networks

Also Published As

Publication number Publication date
WO2023222037A1 (en) 2023-11-23

Similar Documents

Publication Publication Date Title
CN115706601B (en) A transmission control method and related device in a satellite communication system
CN119210569B (en) Transmission control method and related device in satellite communication system
EP4187891A1 (en) Method and system for replying to message, and electronic device
CN113689171B (en) A method and apparatus for integrating family schedules
US12323881B2 (en) Device positioning method and related apparatus
CN113676902B (en) A system, method and electronic device for providing wireless Internet access
CN114449090B (en) Data sharing method, device, system and electronic equipment, storage medium, chip
CN113973398B (en) Wireless network connection method, electronic equipment and chip system
CN115706602B (en) A method, system and related device for reporting position in satellite communication system
EP4293997A1 (en) Display method, electronic device, and system
WO2023011386A1 (en) Whitelist control method in beidou communication system and related device
US20240422260A1 (en) Call method, electronic device, network device, and system
CN119906715A (en) Method, device, equipment and storage medium for synchronizing navigation tasks across devices
CN115002333B (en) Image processing method and related device
CN117135258A (en) A method and terminal for displaying short messages
WO2023011603A1 (en) Position reporting method and system in beidou communication system, and related apparatus
CN120036019A (en) Method and device for acquiring perception information
US20250031026A1 (en) Communication sharing method and system, and related apparatus
CN114697960B (en) A method and system for connecting external cameras
US20250274733A1 (en) Bluetooth® ranging method and system, and electronic device
WO2025108339A1 (en) Satellite communication method and related apparatus
WO2025011217A1 (en) Communication system and method, and terminal device
CN120582668A (en) Satellite guidance method and related device
CN121150768A (en) Satellite communication system, method, electronic equipment and readable storage medium
CN119233389A (en) Crowd-sourcing method, system and related device

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