MMS sending method, MMS receiving method, terminal equipment and storage medium

By adding conditions to the terminal device to determine whether the network link is used to transmit multi-message messages, and determining whether the network link connection is maintained based on the network evaluation results, the problem that the secondary card cannot send and receive multi-messages in the dual-card terminal device is solved, and MMS transmission is achieved when the mobile data connection is closed.

CN118590838BActive Publication Date: 2025-03-21HONOR DEVICE CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202410537455.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-04-29
Publication Date
2025-03-21
Estimated Expiration
2044-04-29

AI Technical Summary

Technical Problem

In dual-card terminal devices, when the mobile data connection is in a closed state, the secondary card cannot send and receive MMS messages normally.

Method used

In the terminal device, a condition is added to determine whether the network link is used to transmit multimedia messages, and the corresponding identification information is recorded in the network evaluation results to determine whether the network link connection is maintained.

Benefits of technology

It realizes that when the mobile data connection is in the closed state, it successfully sends and receives MMS messages through the secondary card.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118590838B_ABST
    Figure CN118590838B_ABST
Patent Text Reader

Abstract

The present application provides a multimedia message sending method, a multimedia message receiving method, a terminal device and a storage medium, which relate to the field of communication technology, and realize the purpose of successfully transmitting multimedia messages through a secondary card when the mobile data connection of the terminal device is in a closed state. The terminal device includes a first communication card (secondary card) registered under a 3G network, and the mobile data connection is in a closed state. The method includes: in response to the operation of using the first communication card to send a multimedia message, after establishing a network link for transmitting the multimedia message, a network evaluation is performed on the network link to obtain a network evaluation result; when it is determined that the network evaluation result includes the second type of identification information, after sending the multimedia message based on the network link, a multimedia message sending success interface is displayed, and when the network evaluation is performed, it is determined that the mobile data connection is in an unconnected state, and the first type of identification information is recorded; when it is determined that the network link is used to transmit the multimedia message, the target identification information is recorded.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of communication technology, and in particular to a multimedia message sending method, a multimedia message receiving method, a terminal device, and a storage medium. Background Art

[0002] With the development of terminal technology, dual-card terminal devices have been widely used. Among them, two communication cards are set in the dual-card terminal device. Users can use the two communication cards in the dual-card terminal device for communication. Generally, the two communication cards can be divided into a main card and a secondary card. The main card can be used to perform data services, and the secondary card can be used to perform call services.

[0003] At present, in order to save the data flow of the terminal device, the user can turn off the mobile data switch of the terminal device during the period when the user does not use the terminal device to surf the Internet. However, when two communication cards are installed in the dual-card terminal device, there is a problem that the MMS function cannot be used normally. Summary of the invention

[0004] The embodiments of the present application provide a multimedia message sending method, a multimedia message receiving method, a terminal device and a storage medium. When the terminal device performs a network evaluation on the network link, a judgment condition for determining whether the network link is used to transmit the multimedia message is added, so that after the network evaluation result is that the network link connection is maintained, the multimedia message is successfully transmitted through the network link, thereby achieving the purpose of successfully transmitting the multimedia message through the secondary card when the mobile data connection is in a closed state.

[0005] To achieve the above objectives, the embodiments of the present application adopt the following technical solutions:

[0006] In a first aspect, the present application provides a multimedia message sending method, which is applied to a terminal device, wherein a communication card in the terminal device includes a main card and a secondary card, the secondary card is a first communication card, the first communication card is registered in a third generation mobile communication (3G) network, and the mobile data connection of the terminal device is in a closed state. The multimedia message sending method includes:

[0007] In response to the operation of sending an MMS message using the first communication card, after a network link is established, a network evaluation is performed on the network link to obtain a network evaluation result; when it is determined that the network evaluation result includes the second type of identification information, after sending the MMS message based on the network link, an MMS sending success interface is displayed.

[0008] The network link is used to transmit multimedia messages, which may include one or more of pictures, text, audio or video.

[0009] In the process of network evaluation of the network link, it is determined that the mobile data connection of the terminal device is in an unconnected state, and the first type of identification information is recorded in the network evaluation result; it is determined whether the network link is used to transmit multimedia messages, and if it is determined that the network link is used to transmit multimedia messages, the target identification information is recorded in the network evaluation result. Among them, the target identification information belongs to the second type of identification information, and the second type of identification information is used to indicate the maintenance of the network link connection; the first type of identification information is used to indicate the disconnection of the network link.

[0010] Therefore, after the terminal device establishes a network link, it performs a network evaluation on the network link, and after determining to maintain the network link connection based on the identification information recorded in the network evaluation result, it uses the network link to send MMS messages, thereby achieving the purpose of successfully sending MMS messages through the secondary card when the mobile data connection is in the closed state.

[0011] In a possible implementation manner of the first aspect, recording the target identification information in the network evaluation result includes:

[0012] Compare the target identification information with the second type of identification information already recorded in the network assessment result;

[0013] If the priority of the target identification information is higher than the priority of the second type identification information that has been recorded, the target identification information is recorded in the network evaluation result.

[0014] It can be understood that only the target identification information with the highest priority can be recorded in the network evaluation results, so that the terminal device can quickly and accurately determine whether to continue to maintain the connection of the network link based on the target identification information, and can also save storage space for the device to store identification information.

[0015] In another possible implementation manner of the first aspect, the method further includes:

[0016] When the target identification information belongs to the second category identification information, the first category identification information recorded in the network evaluation result is deleted.

[0017] It can be understood that when the terminal device determines that the target identification information belongs to the second category of identification information, the first category of identification information recorded in the network evaluation result can be deleted before or after recording the target identification information in the network evaluation result. This not only saves storage space for storing identification information in the terminal device, but also can quickly determine the network evaluation result based on the target identification information.

[0018] In another possible implementation manner of the first aspect, performing network evaluation on a network link may further include:

[0019] Determine whether the first communication card is in an unloaded state; if it is determined that the first communication card is in an unloaded state, record first identification information in the network evaluation result, the first identification information belonging to the first category of identification information;

[0020] Determine whether the mobile data connection is in a connected state; if it is determined that the mobile data connection is in a disconnected state, record the first type of identification information in the network evaluation result;

[0021] Determine whether the current Internet access parameters are applicable to the network link; if it is determined that the current Internet access parameters are not applicable to the network link, record the first type of identification information in the network evaluation result.

[0022] It can be understood that when the terminal device determines that the first communication card is in an unloaded state, or determines that the mobile data connection is in an unconnected state, or determines that the current Internet access parameters are not suitable for the network link, the terminal device records the first type of identification information used to identify the disconnection of the network link in the network evaluation result.

[0023] It should be explained that the judgment process of the above-mentioned judgment conditions is not limited in the embodiment of the present application. For example, the terminal device can first determine whether the current Internet access parameters are applicable to the network link, and then determine whether the first communication card is in an unloaded state and whether the mobile data connection is in a connected state, and so on.

[0024] In another possible implementation manner of the first aspect, the multimedia message sending method may further include:

[0025] Determine whether the first category identification information includes the first identification information; if it is determined that the first category identification information includes the first identification information, disconnect the network link.

[0026] The first identification information belongs to the first category of identification information and is used to indicate disconnection of a network link.

[0027] It can be understood that the terminal device determines that the first type of identification information includes identification information for indicating the reason for disconnecting the network link, for example, the first communication card is in an unloaded state. In this case, the terminal device disconnects the network link and cannot successfully send the MMS message.

[0028] In another possible implementation manner of the first aspect, determining whether the network link is used to transmit the multimedia message includes:

[0029] When it is determined that the first type of identification information does not include the first identification information, it is determined whether the network link is used to transmit the multimedia message.

[0030] In another possible implementation manner of the first aspect, performing network evaluation on the network link further includes one or more of the following:

[0031] Determine whether a positioning data connection request during an emergency call is received; if a positioning data connection request during an emergency call is received, record the second type of identification information in the network evaluation result;

[0032] Determine whether the MMS link establishment request is a preset restricted request and whether there is a current dial-up network request; if the MMS link establishment request is a preset restricted request and there is no dial-up network request, record the second type of identification information in the network evaluation result; wherein the MMS link establishment request is used to request the establishment of a network link for transmitting MMS messages.

[0033] Determine whether the network link is a wireless local area network (WLAN) link; if the network link is a WLAN link, record the second type of identification information in the network evaluation result;

[0034] Determine whether the network link is an unmetered network; if the network link is an unmetered network, record the second type of identification information in the network evaluation result.

[0035] In another possible implementation manner of the first aspect, the first type of identification information is further used to indicate a reason for disconnecting the network link, and the second type of identification information is further used to indicate a reason for maintaining the network link connection.

[0036] In another possible implementation manner of the first aspect, the terminal device includes an application layer and a baseband layer, and establishing a network link includes:

[0037] After the baseband layer receives the MMS link establishment request sent by the application layer, the baseband layer activates the registration process of the packet switching PS domain;

[0038] After determining that the registration of the PS domain is successful at the baseband layer, determining that the registration state of the PS domain is changed to a registered state; obtaining the address of the multimedia message service center MMSC; and establishing a network link after establishing a connection with the MMSC.

[0039] Here we introduce the process of establishing a MMS link.

[0040] In another possible implementation manner of the first aspect, the terminal device further includes a framework layer, and after the network link is established, the method further includes:

[0041] When the baseband layer determines that the registration state of the PS domain is changed to the registered state, the baseband layer sends the registration state of the PS domain to the framework layer;

[0042] Conduct network assessments on network links, including:

[0043] When the framework layer determines that the registration state of the PS domain is changed to the registered state, a network evaluation is performed on the network link.

[0044] In a second aspect, the present application provides a method for receiving a multimedia message, which is applied to a terminal device, wherein a communication card in the terminal device includes a primary card and a secondary card, the secondary card is a first communication card, the first communication card is registered in a 3G network, and the mobile data connection of the terminal device is in a closed state, the method comprising:

[0045] A request for establishing an MMS link is received, and a network link is established, the network link is used to receive MMS messages; a network evaluation is performed on the network link to obtain a network evaluation result, and when it is determined that the network evaluation result includes the second type of identification information, the MMS message is received based on the network link, and an MMS reception success interface is displayed.

[0046] Among them, in the process of performing network evaluation on the network link, it is determined that the mobile data connection of the terminal device is in an unconnected state, and the first type of identification information is recorded in the network evaluation result, and the first type of identification information is used to indicate the disconnection of the network link; it is determined whether the network link is used to transmit MMS messages. When it is determined that the network link is used to transmit MMS messages, the target identification information is recorded in the network evaluation result, and the target identification information belongs to the second type of identification information. The second type of identification information is used to indicate the maintenance of the network link connection.

[0047] Therefore, after the terminal device establishes a network link, it performs a network evaluation on the network link, and after determining to maintain the network link connection based on the identification information recorded in the network evaluation result, it uses the network link to receive MMS messages, thereby achieving the purpose of successfully receiving MMS messages through the secondary card when the mobile data connection is in the closed state.

[0048] In a possible implementation manner of the second aspect, the terminal device may include a baseband layer, and establishing a network link includes:

[0049] After receiving the MMS link establishment request, the baseband layer sends the MMS link establishment request to the multimedia message service center MMSC. The MMS link establishment request is used to request the establishment of a network link. The baseband layer uses the wireless application protocol WAP to establish a connection with the MMSC to complete the establishment of the network link.

[0050] This section is the process of connecting to the network link for receiving MMS messages.

[0051] In a third aspect, the present application provides a terminal device, comprising: a memory, a processor, and a computer program stored in the memory, so that the processor executes the multimedia message sending or multimedia message receiving method as described in any one of the above-mentioned first aspects.

[0052] In a fourth aspect, the present application provides a computer-readable storage medium having a computer program / instruction stored thereon, which, when executed by a processor, implements the multimedia message sending or multimedia message receiving method described in any one of the first aspects.

[0053] In a fifth aspect, the present application provides a computer program product, including a computer program / instruction, which, when executed by a processor, implements the multimedia message sending or multimedia message receiving method as described in any one of the first aspects.

[0054] It can be understood that the terminal device described in the third aspect, the computer-readable storage medium described in the fourth aspect, and the computer program product described in the fifth aspect are all used to execute the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding methods provided above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0055] Figure 1 An example diagram of a dual-SIM dual-standby mobile phone provided in an embodiment of the present application;

[0056] Figure 2 This is an example diagram of a multimedia message sending interface in the related art;

[0057] Figure 3 This is an example diagram of a multimedia message receiving interface in the related art;

[0058] Figure 4 A schematic diagram of the structure of a terminal device provided in an embodiment of the present application;

[0059] Figure 5 A software structure diagram of a terminal device provided in an embodiment of the present application;

[0060] Figure 6 An example diagram of turning off a mobile data switch provided in an embodiment of the present application;

[0061] Figure 7 Another example diagram of turning off the mobile data switch provided in an embodiment of the present application;

[0062] Figure 8 A flow chart of sending multimedia messages provided in an embodiment of the present application;

[0063] Fig. 9 A flowchart of a network evaluation method provided in an embodiment of the present application;

[0064] Fig.10 An example diagram of a multimedia message sending interface provided in an embodiment of the present application;

[0065] Fig.11 A flow chart of receiving multimedia messages provided in an embodiment of the present application;

[0066] Fig.12 An example diagram of a multimedia message receiving interface provided in an embodiment of the present application;

[0067] Fig.13 A diagram showing an example structure of a terminal device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0068] The technical solution in the embodiment of the present application will be described below in conjunction with the drawings in the embodiment of the present application. In the description of the embodiment of the present application, unless otherwise specified, " / " means or, for example, A / B can mean A or B; "and / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone.

[0069] In the following, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of the embodiments of the present application, unless otherwise specified, "plurality" means two or more.

[0070] In the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.

[0071] With the development of terminal technology, dual-card terminal devices have been widely used. Among them, the dual-card terminal devices are provided with two communication cards. Exemplarily, the two communication cards can be divided into a main card and a secondary card, the main card can be used to perform data services, and the secondary card can be used to perform call services.

[0072] Among them, the communication card can be a SIM card, a universal subscriber identity module (USIM), an eSIM card, etc., which is not limited in this application.

[0073] For example, Figure 1 As shown, it is assumed that the dual-SIM terminal device is a dual-SIM dual-standby mobile phone (dual SIM dualstandby, DSDS). A dual-SIM dual-standby mobile phone means that a SIM card can be inserted into the mobile phone, and the two SIM cards can be on standby at the same time. The mobile phone can connect to the network of the same or different operators through the two SIM cards, and interact with the network provided by the operator to generate business transactions. The two SIM cards included in the dual-SIM dual-standby mobile phone can be the primary card and the secondary card respectively. For example, Figure 1The SIM card corresponding to the position of the middle card slot 1 is the primary card, and the SIM card corresponding to the position of the card slot 2 is the secondary card.

[0074] Normally, users of dual-SIM dual-standby mobile phones will only use one SIM card for data consumption services, and the other SIM card for other non-data consumption services (such as making and receiving calls, sending and receiving text messages, sending and receiving MMS, etc.). For example, a user uses the primary SIM card for data consumption services, and the secondary SIM card for other non-data consumption services (such as making and receiving calls, receiving text messages, etc.). For example, a user of a dual-SIM dual-standby mobile phone can use SIM1 as the SIM card for data consumption, and SIM2 as the SIM card for receiving calls, then SIM1 is the primary card and SIM2 is the secondary card.

[0075] In the related art, there are two domains for data transmission between terminal equipment and network equipment, namely, circuit switched (CS) domain and packet switched (PS) domain. Among them, the CS domain is usually used for call services, and the PS domain is usually used for data services.

[0076] The data transmission process in the CS domain includes: the terminal device and the network device first establish a link for data transmission. After the link is established, data transmission begins between the terminal device and the network device. During the data transmission process, the link connection is continuous until the data transmission between the terminal device and the network device is completed, and then the link is released.

[0077] The data transmission mode of PS domain is packet switching. The so-called packet switching is to encapsulate a group of data into a data packet, and then transmit the data in the form of data packets one by one. Different from the transmission mode of CS domain, the data transmission of PS domain does not have a fixed link for data transmission. In other words, a link of PS domain can provide data transmission for multiple users, but different users use the link at different times.

[0078] When the dual-SIM terminal device chip is a Qualcomm platform chip, the secondary card of the terminal device uses the 3G network to transmit data. Under the 3G network, the CS domain and the PS domain are registered and used separately. After the dual-SIM terminal device responds to the user's power-on operation, completes the power-on process, and the secondary card is loaded, the secondary card will not actively register the PS domain. When making a call, the terminal device is connected to the CS domain, and when using data, the terminal device is connected to the PS domain.

[0079] In this application, when a user needs to use the secondary card of a terminal device to send an MMS, the terminal device generates an MMS message sending instruction in response to the user's MMS sending operation, and the MMS application sends the generated MMS message sending instruction to the baseband layer (Modem).

[0080] MMS refers to multimedia information services that can deliver rich multimedia information, including text, pictures, sounds, and videos. MMS uses the wireless application protocol (WAP) as a carrier and transmits and receives content through the operator's general packet radio service (GPRS) data network.

[0081] After receiving the send command, the modem layer determines that the terminal device has not registered the PS domain. The modem layer activates the registration process of the PS domain. At this time, the registration status of the PS domain changes from unregistered to registered. The terminal device reports the registration status of the PS domain to the framework layer (Telephony). The Telephony layer can recognize that the registration status of the PS domain has changed.

[0082] According to Google's native logic, when the Telephony layer monitors the change in the registration status of the PS domain, the Telephony layer will trigger a network evaluation of the current MMS link to determine whether the current MMS link allows the terminal device to send MMS. During the network evaluation process, the Telephony layer will check some parameters of the MMS link to determine whether the MMS link is allowed to exist based on the inspection results. For example, the Telephony layer can determine the evaluation result of the MMS link based on the status of the mobile data switch. When the Telephony layer determines that the status of the mobile data switch is off, the Telephony layer adds a disallowed reason to the mobile data.

[0083] After the network evaluation process is completed, if the Telephony layer determines that there is at least one disallowedreason, the evaluation result will return false, that is, the MMS link is not allowed to exist.

[0084] As can be seen from the above, when the mobile data switch of the dual-SIM terminal device is in the off state, and the secondary card is registered in the 3G network, when the secondary card sends a request for MMS, the MMS application will trigger the establishment of the MMS link. After activating the MMS APN, the Modem layer reports that the registration status of the PS domain has changed, which triggers the Telephony layer to evaluate the network of the MMS link. During the network evaluation process of the Telephony layer, when the Telephony layer determines that the mobile data switch is in the off state, the Telephony layer determines that the evaluation result is to disconnect the MMS link, which causes the MMS link to be disconnected just after it is established, and the secondary card cannot send MMS.

[0085] For example, Figure 2As shown, Figure 2 The mobile phone in the example is provided with two SIM cards, wherein SIM card 1 is the primary card and SIM card 2 is the secondary card. The primary card is registered under the fifth-generation mobile communication technology (5th-Generation Mobile Communication Technology, 5G) network, and the secondary card is registered under the 3G network. When the mobile data switch of the mobile phone is in the off state, the user uses the secondary card of the mobile phone to send MMS. The mobile phone triggers the establishment of an MMS link in response to the user's operation of sending an MMS. Since the mobile data switch of the mobile phone is in the off state, the mobile phone determines to disconnect the MMS link, resulting in the failure to successfully send the MMS. At this time, the MMS sending interface displays a prompt message that the sending failed.

[0086] Figure 2 The registration of the main card in the 5G network is only an example. The main card can also be registered in the fourth-generation mobile communication technology (4th-Generation Mobile Communication Technology, 4G) network or 3G network, which is not limited in the embodiments of the present application.

[0087] It needs to be explained that due to the characteristics of the terminal device chip, when the main card of the terminal device uses the 3G network to transmit data, the main card will actively register the CS domain and PS domain. When the mobile data switch of the terminal device is in the off state, and the terminal device responds to the user's operation and sends MMS through the main card, there is no problem of the registration status of the PS domain changing, and it will not trigger the process of network evaluation of the MMS link of the main card. Obviously, the main card of the terminal device does not have the problem of being unable to send MMS normally.

[0088] Similarly, when the mobile data switch of the dual-SIM terminal device is in the off state and the secondary SIM card is registered in the 3G network, the secondary SIM card may not be able to receive MMS normally.

[0089] For example, Figure 3 As shown, Figure 3 The mobile phone in the example is equipped with two SIM cards, where SIM card 1 is the primary card and SIM card 2 is the secondary card. The primary card is registered under the 5G network, and the secondary card is registered under the 3G network. When the mobile data switch of the mobile phone is in the off state, when the secondary card receives an MMS message, it triggers the establishment of an MMS link. Since the mobile data switch of the mobile phone is in the off state, the mobile phone then disconnects the MMS link, resulting in the secondary card being unable to successfully download the MMS. At this time, the MMS receiving interface displays a prompt message that the reception failed.

[0090] In order to solve the problem in the related art that when the mobile data switch of the terminal device is in the off state, the secondary card registered in the terminal device for transmitting data under the 3G network cannot send a multimedia message, the embodiment of the present application provides a multimedia message sending method, which is applied to the terminal device, the communication card of the terminal device includes a main card and a secondary card (first communication card), the mobile data connection of the terminal device is in an unconnected state, the terminal device responds to the operation of using the first communication card to send a multimedia message, after establishing a network link, the network link is evaluated to obtain a network evaluation result, and when it is determined that the network evaluation result includes the second type of identification information, the multimedia message is sent based on the network link, and a multimedia message sending success interface is displayed. Among them, the network link is used to transmit the multimedia message.

[0091] In the process of performing network evaluation on the network link, it is determined that the mobile data connection of the terminal device is in an unconnected state, and first-category identification information is recorded in the network evaluation result, and the first-category identification information is used to indicate the disconnection of the network link; it is determined whether the network link is used to transmit MMS messages. When it is determined that the network link is used to transmit MMS messages, the target identification information is recorded in the network evaluation result, and the target identification information belongs to second-category identification information, and the second-category identification information is used to indicate the maintenance of the network link connection.

[0092] In order to solve the problem in the related art that when the mobile data switch of the terminal device is in the off state, the secondary card registered in the terminal device for transmitting data under the 3G network cannot successfully receive the MMS message, an embodiment of the present application provides an MMS receiving method, which is applied to the terminal device, the communication card of the terminal device includes a main card and a secondary card (first communication card), the mobile data connection of the terminal device is in an unconnected state, the terminal device receives an MMS link establishment request, and after establishing a network link, performs a network evaluation on the network link to obtain a network evaluation result, and when it is determined that the network evaluation result includes the second type of identification information, receives the MMS message based on the network link, and displays a successful MMS reception interface.

[0093] Exemplarily, the network evaluation method provided in the embodiment of the present application can be applied to any terminal device that can support dual SIM cards, such as mobile phones, tablet computers, smart watches, smart bracelets, etc. The embodiment of the present application does not impose any restrictions on the specific type of terminal device.

[0094] like Figure 4 As shown, Figure 4 A schematic diagram of the structure of a terminal device provided in an embodiment of the present application.

[0095] The terminal device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.

[0096] It is understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the terminal device 100. In other embodiments of the present application, the terminal device 100 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

[0097] The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.

[0098] The controller may be the nerve center and command center of the terminal device 100. The controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.

[0099] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.

[0100] In some embodiments, the processor 110 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.

[0101] It is understandable that the interface connection relationship between the modules illustrated in the embodiment of the present application is only a schematic illustration and does not constitute a structural limitation on the terminal device 100. In other embodiments of the present application, the terminal device 100 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.

[0102] The wireless communication function of the terminal device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.

[0103] The terminal device 100 implements the display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs, which execute program instructions to generate or change display information.

[0104] The terminal device 100 can realize the shooting function through ISP, camera 193, video codec, GPU, display screen 194 and application processor.

[0105] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the terminal device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function, such as storing music, video and other files in the external memory card.

[0106] The internal memory 121 can be used to store computer executable program codes, and the executable program codes include instructions. The processor 110 executes various functional applications and data processing of the terminal device 100 by running the instructions stored in the internal memory 121. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area can store data created during the use of the terminal device 100 (such as audio data, a phone book, etc.), etc. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc.

[0107] The terminal device 100 can implement audio functions such as music playing and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.

[0108] The SIM card interface 195 is used to connect a SIM card. The SIM card can be connected to and separated from the terminal device 100 by inserting it into the SIM card interface 195 or pulling it out from the SIM card interface 195. The terminal device 100 can support N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, and the like. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the multiple cards can be the same or different. The SIM card interface 195 can also be compatible with different types of SIM cards. The SIM card interface 195 can also be compatible with external memory cards. The terminal device 100 interacts with the network through the SIM card to implement functions such as calls and data communications. In some embodiments, the terminal device 100 uses an eSIM, i.e., an embedded SIM card. The eSIM card can be embedded in the terminal device 100 and cannot be separated from the terminal device 100.

[0109] In an embodiment of the present application, the terminal device may be provided with two SIM cards, wherein the two SIM cards may be a primary card and a secondary card respectively.

[0110] In some embodiments, the terminal device can distinguish between the primary card and the secondary card according to the service functions performed by different SIM cards. For example, the primary card can be used to perform data services, and the secondary card can be used to perform call services. Users can use the mobile network data of the primary card to surf the Internet, and can use the secondary card to send text messages, multimedia messages, etc.

[0111] In other embodiments, the terminal device can also distinguish between the main card and the secondary card according to the card slot design. For example, the terminal device includes a main card slot and a secondary card slot, the SIM card inserted in the main card slot is the main card, and the SIM card inserted in the secondary card slot is the secondary card.

[0112] It should be explained that the above-mentioned method of distinguishing between the primary card and the secondary card by the terminal device is only an example and is not specifically limited to this in the embodiments of the present application.

[0113] The software system of the terminal device can adopt a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. The embodiment of the present invention takes the Android system of the layered architecture as an example to exemplify the software structure of the terminal device.

[0114] Figure 5 A software structure diagram of a terminal device provided in an embodiment of the present application.

[0115] It is understandable that the layered architecture divides the software into several layers, each with a clear role and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system may include an application layer (abbreviated as application layer), an application framework layer (abbreviated as framework layer), a hardware abstraction layer, and a baseband layer (Modem layer).

[0116] The above application layer may include a series of application packages. Figure 5 As shown, the application package may include applications such as settings, MMS, control center, etc.

[0117] In the embodiment of the present application, the MMS generates an MMS sending instruction in response to the user's operation of sending an MMS message, and then sends the MMS sending instruction to the baseband module to trigger the baseband module to establish an MMS link.

[0118] The framework layer is responsible for the architecture design and module division of the entire system. At the same time, the framework layer can also provide users with external interface development, internal function module settings, encapsulation and abstraction, etc. Figure 5 As shown, as an example of the present application, the framework layer includes a network evaluation module, a network connection management module, and the like.

[0119] The network evaluation module is used to evaluate the network of the MMS link to determine the network evaluation result.

[0120] The network connection management module is used to determine whether to continue to maintain the MMS link connection according to the network evaluation result.

[0121] The function of the hardware abstraction layer is to abstract the hardware and encapsulate the underlying hardware driver. Figure 5 As shown, as an example of the present application, the hardware abstraction layer includes a wireless interface module, a camera interface module and a sensor interface module, among which the wireless interface module mainly provides adaptation for the interfaces of the framework layer and the modem layer and has good independence; the camera interface module mainly provides a unified driver interface for the camera; the sensor interface module mainly provides a unified driver interface for the sensor.

[0122] The modem layer includes a baseband module, etc. The function of the modem layer is to convert digital signals into analog signals so that the signals can be transmitted on common communication lines. The modem layer is used to interact with mobile network devices.

[0123] The technical solutions involved in the following embodiments can all be implemented in the terminal device 100 having the above hardware structure and software architecture. The following still takes the terminal device 100 as a mobile phone as an example to exemplarily illustrate the multimedia message sending method of the embodiment of the present application.

[0124] In an embodiment of the present application, two SIM cards are provided in the mobile phone, and the two SIM cards can be divided into a primary card and a secondary card. Among them, the primary card can be registered under a 3G, 4G or 5G network, and the secondary card is registered under a 3G network. In one scenario, while the mobile data connection of the mobile phone is in a closed state, the mobile phone detects the operation of a user sending an MMS message through a secondary card, and in response to the user's triggering operation, the mobile phone triggers the establishment of a network link. The network link is used to transmit MMS messages. After the mobile phone establishes a network link, the mobile phone performs a network evaluation on the network link to determine whether to continue to maintain the network link based on the network evaluation results.

[0125] In some embodiments, during the process of performing network evaluation on a network link, the mobile phone determines that the mobile data connection is in an unconnected state, and records the first type of identification information in the network evaluation result. Then, the mobile phone determines whether the network link is used to transmit MMS messages, and if it is determined that the network link is used to transmit MMS messages, the target identification information is recorded in the network evaluation result. Among them, the target identification information belongs to the second type of identification information, and the second type of identification information is used to indicate the maintenance of the network link connection; the first type of identification information is used to indicate the disconnection of the network link.

[0126] When the mobile phone determines that the network evaluation result includes the second type of identification information, the mobile phone determines to continue to maintain the network link connection.

[0127] When the mobile phone determines that the network evaluation result does not include the second type of identification information, the mobile phone determines to disconnect the network link.

[0128] In one case, when the mobile phone determines that the result of the network evaluation on the network link is to maintain the connection of the network link, the mobile phone can successfully send the MMS message through the network link.

[0129] In another case, when the mobile phone determines that the result of the network evaluation on the network link is to disconnect the network link, the mobile phone disconnects the network link and fails to successfully send the MMS message.

[0130] It needs to be explained that in the embodiment of the present application, due to the original characteristics of the mobile phone chip, no matter whether the main card in the mobile phone is registered in the 3G network, 4G or 5G network, the main card will actively register the CS domain and PS domain after loading, so that the main card in the mobile phone will not be unable to successfully send MMS.

[0131] In one scenario, the mobile phone successfully starts up in response to a user's power-on operation. Assume that after the mobile phone is started up, the mobile data switch of the mobile phone is turned on. In order to save traffic, after the mobile phone is started up, the mobile phone can turn off the mobile data connection in response to the user's triggering operation of turning off the mobile data switch.

[0132] In some embodiments, the mobile phone can close the mobile data connection in the interface corresponding to the setting application in response to the user's operation. Alternatively, the mobile phone can also close the mobile data connection in the interface corresponding to the control center in response to the user's operation on the interface corresponding to the control center.

[0133] For example, Figure 6 As shown, after the mobile phone is turned on, when the mobile phone detects that the user clicks the icon 602 of the setting application on the desktop 601, see Figure 6 In (a), in response to the user's click operation, after the settings application is launched, the display Figure 6 Interface 603 shown in (b) of FIG. 6 shows that the mobile network displayed in interface 603 is in an on state. After the mobile phone detects the user's trigger operation on area 604, it displays Figure 6 The mobile phone detects the user's trigger operation on area 606, and in response to the user's trigger operation, displays Figure 6The mobile phone detects the user's trigger operation on the mobile data switch icon 608, and in response to the user's trigger operation, turns off the mobile data switch. After the mobile phone turns off the mobile data switch, the mobile network of the primary card and the secondary card in the mobile phone cannot be used, such as Figure 6 The area 609 shown in (d) shows that the mobile data is disconnected.

[0134] For example, after the mobile phone is turned on, it displays Figure 7 When the mobile phone detects that the user slides down the interface 701, the mobile phone displays the Figure 7 The mobile phone detects the user's trigger operation on area 703 in interface 702, and in response to the user's trigger operation, turns off the mobile data switch. After the mobile phone turns off the mobile data switch, the mobile network of the primary card and the secondary card in the mobile phone cannot be used, such as Figure 7 The area 704 shown in (b) shows that the mobile data is disconnected.

[0135] Figure 6 and Figure 7 The example in which the main card is registered in the 5G network is used for exemplary explanation. Of course, the main card can also be registered in the 3G or 4G network, and there is no specific limitation here.

[0136] In an embodiment of the present application, when the mobile data connection of a mobile phone is in a closed state, when a user uses the secondary card of the mobile phone to send a MMS message, the mobile phone first establishes a network link for transmitting the MMS message. Then, after the mobile phone establishes the network link, the mobile phone performs a network evaluation on the network link to determine whether the network link can send the MMS message based on the network evaluation result.

[0137] Combine the following Figure 8 The process of sending multimedia messages is introduced in detail. Figure 8 As shown, the multimedia message sending process may include steps 801 to 808.

[0138] Step 801: The MMS application receives an instruction to send a MMS message and sends the MMS message.

[0139] The multimedia message may include one or more combinations of text, pictures, audio or video.

[0140] In the embodiment of the present application, after the mobile phone detects the user's triggering operation on the MMS application, in response to the user's operation of sending the MMS, it generates an instruction to send the MMS message, and the MMS application sends the MMS message to the baseband module of the baseband layer.

[0141] Step 802: The baseband module creates a network link.

[0142] In the embodiment of the present application, after receiving the MMS message, the baseband module determines that the terminal device has not registered the PS domain, and the baseband module activates the registration process of the PS domain. After the PS domain registration is completed, the registration state of the PS domain changes from the unregistered state to the registered state.

[0143] After the baseband module completes the registration in the PS domain, the baseband module can obtain the address of the multimedia messaging service center (MMSC), and then establish a connection with the MMSC, thereby successfully establishing a network link.

[0144] Step 803: The baseband module sends information indicating that the network link is successfully created to the network evaluation module; correspondingly, the network evaluation module receives the information indicating that the network link is successfully created.

[0145] Step 804: The network evaluation module performs a network evaluation on the network link and determines a network evaluation result.

[0146] In the embodiment of the present application, after the baseband module sends the information that the network link is successfully created to the network evaluation module of the framework layer, the network evaluation module is triggered to perform a network evaluation on the network link. The specific process of the network evaluation module performing a network evaluation on the network link is described in the subsequent Fig. 9 The introduction process is not described in detail here.

[0147] Step 805: The network evaluation module sends the network evaluation result to the network connection management module; correspondingly, the network connection management module receives the network evaluation result sent by the network evaluation module.

[0148] The network evaluation module performs network evaluation on the network link, and the network evaluation result may be maintaining the network link connection or disconnecting the network link.

[0149] Step 806: The network connection management module determines that the network evaluation result is to maintain the network link connection.

[0150] In an embodiment of the present application, the network evaluation result includes target identification information, and the network connection management module can determine whether the network evaluation result is to maintain the network link connection according to the type of target identification information included in the network evaluation result.

[0151] Exemplarily, assuming that the network connection management module determines that the target identification information included in the network evaluation result is the first type of identification information, the network connection management module may determine that the network evaluation result is to disconnect the network link. Assuming that the network connection management module determines that the target identification information included in the network evaluation result is the second type of identification information, the network connection management module may determine that the network evaluation result is to maintain the network link connection. The first type of identification information is used to indicate disconnecting the network link. The second type of identification information is used to indicate maintaining the network link.

[0152] It should be explained that the method in which the network connection management module determines whether the network evaluation result allows the network link connection to be maintained according to the type of identification information included in the network evaluation result is only an example and is not limited here.

[0153] Step 807: The network connection management module sends a network evaluation result for maintaining the network link connection to the baseband module.

[0154] When the network connection management module determines that the network evaluation result is to maintain the network link connection, the network connection management module sends the network evaluation result of maintaining the network link connection to the baseband module.

[0155] Step 808: The baseband module sends the MMS message via the network link.

[0156] In the embodiment of the present application, the baseband module can establish a packet data protocol (PDP) context, which is a logical link between the mobile phone and the network for transmitting data packets. The baseband module can encapsulate the MMS message into a data packet and route it to the MMSC through the Service GPRS Support Node (SGSN) or the Gateway GPRS Support Node (GGSN) to send the MMS message through the MMSC.

[0157] After the baseband module successfully sends the multimedia message through the network link, the baseband module releases the network link to save power consumption of the device.

[0158] Combine the following Fig. 9 The process of the network evaluation management module performing network evaluation on the network link is described in detail. Fig. 9 As shown, the network evaluation process may include steps 901 to 920.

[0159] Step 901: The network evaluation module determines whether the state of the first communication card is loaded.

[0160] In the embodiment of the present application, when the network evaluation module starts to perform network evaluation on the network link, the network evaluation module first determines whether the first communication card (ie, the secondary card) in the mobile phone is in a loaded state.

[0161] Since the mobile phone sends MMS messages through the secondary card in response to the user's operation, the network evaluation module needs to determine whether the first communication card is in a loaded state. Whether the primary card is in a loaded state does not affect the secondary card sending MMS messages. Here, it can be determined whether the primary card is in a loaded state, or it can not be determined whether the primary card is in a loaded state, which is not limited here.

[0162] In some embodiments, assuming that the first communication card is a SIM card, when the user inserts the SIM card into the SIM card slot of the mobile phone, the contact points in the SIM card slot will contact the metal contacts on the SIM card. A detection mechanism (e.g., a mechanical switch or sensor) is provided in the SIM card slot of the mobile phone to detect whether the SIM card is inserted in the card slot. When the detection mechanism in the SIM card slot of the mobile phone detects the presence of the SIM card, the mobile phone operating system can communicate with the SIM card through AT commands to query the international mobile subscriber identity (IMSI) of the SIM card, operator information, etc.

[0163] In the embodiment of the present application, the network evaluation module can determine whether the SIM card in the mobile phone is in a loaded state based on the information returned by the SIM card to the mobile phone operating system.

[0164] In one possible case, the network evaluation module determines that the information returned by the SIM card to the mobile phone operating system is valid information, and the network evaluation module determines that the SIM card has been loaded. Thereafter, the network evaluation module continues to perform step 903 to determine whether the mobile data connection of the mobile phone is in an open state.

[0165] When the SIM card of the mobile phone is loaded, the corresponding status will be shown in the display interface of the mobile phone, such as signal strength, operator name, etc.

[0166] In another possible case, the network evaluation module determines that the information returned by the SIM card to the mobile phone operating system is invalid information, or the network evaluation module determines that the SIM card does not return information to the mobile phone operating system within a preset time. In this case, the network evaluation module determines that the state of the SIM card is an unloaded state, and the network evaluation module continues to execute step 902.

[0167] Step 902: The network evaluation module records the first type of identification information 1.

[0168] Among them, the first type of identification information is used to indicate the disconnection of the network link. Different first type of identification information corresponds to different reasons for disconnecting the network link. For example, the above-mentioned first type of identification information 1 is used to indicate the disconnection of the network link, and the first type of identification information 1 carries the reason for disconnecting the network link as the state of the first communication card is unloaded. For example, the first type of identification information 1 can be disallow reason1, and the disallow reason1 carries the reason for disconnecting the network link as SIM_NOT_READY.

[0169] In the embodiment of the present application, when the network evaluation module determines that the state of the first communication card in the mobile phone is unloaded, the network evaluation module can record the first type of identification information 1 in the network evaluation result. For example, the network evaluation module can store the first type of identification information 1 in a HashSet set or an array.

[0170] It should be explained that, during the process of the network evaluation module performing network evaluation on the network link, after the network evaluation module determines the reason for disconnecting the network link based on different judgment conditions, the network evaluation module may record different first-category identification information in the network evaluation result.

[0171] Step 903: The network evaluation module determines whether the mobile data connection is in a connected state.

[0172] In one possible case of the embodiment of the present application, when the mobile phone turns on or off the mobile data switch in response to the user's operation, the mobile phone operating system updates the status mark of the mobile data switch. The network evaluation module can determine whether the mobile data connection is in a connected state according to the status mark of the mobile data switch.

[0173] Exemplarily, assuming that the network evaluation module determines that the state of the mobile data switch is marked as off, the network evaluation module can determine that the mobile data connection is in a closed state. The network evaluation module determines that the state of the mobile data switch is marked as on, and the network evaluation module can determine that the mobile data connection is in a connected state.

[0174] In another possible case of the embodiment of the present application, the network evaluation module can query the system log to determine whether the mobile data connection is in a connected state according to the on or off events of the mobile data switch recorded in the system log.

[0175] Exemplarily, assuming that the network assessment module finds out from the system log that the latest event related to the mobile data switch is a shutdown event, the network assessment module can determine that the mobile data connection is in a closed state. Assuming that the network assessment module finds out from the system log that the latest event related to the mobile data switch is an opening event, the network assessment module can determine that the mobile data connection is in an open state.

[0176] In the embodiment of the present application, if the network evaluation module determines that the mobile data connection is in a disconnected state, step 904 is executed; if the network evaluation module determines that the mobile data connection is in a connected state, step 905 is executed.

[0177] Step 904: The network evaluation module records the first type of identification information 2.

[0178] In the embodiment of the present application, when the network evaluation module determines that the mobile data connection of the mobile phone is in a closed state, the network evaluation module can record the first type of identification information 2 in the network evaluation result. For example, the network evaluation module can store the first type of identification information 2 in a HashSet collection.

[0179] The first type of identification information 2 is used to indicate the disconnection of the network link, and the first type of identification information 2 carries the reason for disconnecting the network link as the mobile data connection of the mobile phone is in a closed state. For example, the first type of identification information 2 may be disallow reason2, and the disallow reason2 carries the reason for disconnecting the MMS link as DATA_DISABLED.

[0180] Step 905: The network evaluation module determines whether the current Internet access parameters are applicable.

[0181] The current Internet access parameters refer to the parameters that need to be configured when the mobile phone uses the network link to transmit the MMS message. For example, the current Internet access parameters may include APN, MMSC address, Microsoft Media Server (MMS) port, MMS protocol and other parameters.

[0182] In the embodiment of the present application, the network evaluation module can determine whether the current Internet access parameters are applicable to the network link. If the network evaluation module determines that the current Internet access parameters are applicable to the network link, step 907 is executed. If the network evaluation module determines that at least one parameter of the current Internet access parameters is not applicable to the network link, step 906 is executed.

[0183] Step 906: The network evaluation module records the first type of identification information 3.

[0184] In the embodiment of the present application, when the network evaluation module determines that the current Internet access parameters are not applicable to the network link, the network evaluation module can record the first type of identification information 3 in the network evaluation result. For example, the network evaluation module can store the first type of identification information 3 in a HashSet set.

[0185] The first type of identification information 3 is used to indicate the disconnection of the network link, and the first type of identification information 3 carries the reason for disconnecting the network link as the current Internet access parameters are not applicable to the network link. For example, the first type of identification information 3 may be disallow reason3, and the disallow reason3 carries the reason for disconnecting the network link as DATA_PROFILE_NOT_PREFERRED.

[0186] Step 907: The network evaluation module determines whether the network evaluation result includes the first type of identification information.

[0187] In an embodiment of the present application, after the network evaluation module completes the process of determining whether the first communication card is loaded, whether the mobile data connection is in an open state, and whether the current Internet access parameters are applicable to the network link, the network evaluation module can determine whether the network evaluation result includes the first type of identification information to determine whether to maintain the network link connection.

[0188] In one possible case, the network evaluation module determines that the network evaluation result does not include the first type of identification information. At this time, the network evaluation module determines to continue to maintain the network link connection and continues to execute step 908.

[0189] In another possible case, the network evaluation module determines that the network evaluation result includes at least one first-category identification information. In this case, step 909 is continued.

[0190] In the embodiment of the present application, since the mobile phone has closed the mobile data connection of the mobile phone in response to the user's triggering operation before sending the MMS message in the present application, in this case, the network evaluation result includes at least the first type of identification information 2. That is, the network evaluation module does not execute step 908, but directly executes step 909.

[0191] Step 908: The network evaluation module records the second type of identification information 1.

[0192] In the embodiment of the present application, when the network evaluation module determines that the network evaluation result does not include the first type of identification information, the network evaluation module may add the second type of identification information 1 to the network evaluation result.

[0193] The second type identification information 1 is used to indicate that the network link connection is maintained, and carries the reason for maintaining the network link connection. For example, the second type identification information 1 may be allowed reason 1, and carries NORMAL, which is used to indicate that the network link connection is maintained.

[0194] Step 909: The network evaluation module determines whether the network evaluation result includes the first identification information.

[0195] The first identification information is used to indicate a preset reason for disconnecting the network link, so as to indicate disconnecting the network link under the preset reason through the first identification information. For example, the first identification information can be used to indicate disconnecting the network link when the state of the first communication card is unloaded. That is, the first identification information belongs to the first category of identification information, for example, the first identification information can be the first category of identification information 1. For another example, the first identification information can be used to indicate disconnecting the network link when the current Internet access parameters are not applicable. That is, the first identification information can also be the first category of identification information 3.

[0196] In the embodiment of the present application, the network evaluation module determines that the network evaluation result does not include the first identification information, and the network evaluation module determines to execute step 910.

[0197] Step 910: The network evaluation module determines whether a location data connection request during an emergency call is received.

[0198] Among them, the positioning data connection request during the emergency call refers to the connection request sent by the mobile phone in an emergency situation, such as natural disasters, accident scenes, etc., which needs to quickly determine the location of the mobile phone and establish a data connection to transmit key information.

[0199] For example, suppose that the user of the mobile phone triggers an emergency call in an emergency situation. After the mobile phone detects the user's operation of triggering the emergency call, it sends a data connection request in response to the emergency call operation. In this application, the emergency call is given a higher priority to ensure that data can be transmitted quickly.

[0200] In one possible case, after the network link is established, if the network evaluation module determines that the mobile phone receives a location data connection request during an emergency call, the network evaluation module executes step 911, otherwise, executes step 912.

[0201] Step 911: The network evaluation module records the second type of identification information 2.

[0202] In an embodiment of the present application, when the network evaluation module determines that the mobile phone receives a positioning data connection request during an emergency call, the network evaluation module may record the second type of identification information 2 in the network evaluation result.

[0203] The second type identification information 2 is used to indicate that the network link connection is maintained and carries the reason for allowing the establishment. For example, the second type identification information 2 may be allowed reason 2 and carry EMERGENCY_SUPL, which indicates that the network link can continue to be maintained.

[0204] In a possible case of the embodiment of the present application, when the network evaluation module records the second type of identification information 2 in the network evaluation result, the first type of identification information included in the network evaluation result will be deleted. That is, the network evaluation result may include multiple first type of identification information, or include one second type of identification information.

[0205] In another possible case of the embodiment of the present application, when the network evaluation module records the second type of identification information 2 in the network evaluation result, the first type of identification information included in the network evaluation result will not be deleted. That is, the network evaluation result may include multiple first type of identification information and second type of identification information.

[0206] In the embodiment of the present application, when the network evaluation module records the second type of identification information 2 in the network evaluation result, the network evaluation module determines whether the network evaluation result already includes the second type of identification information. If the network evaluation module determines that the network evaluation result does not include the second type of identification information, the network evaluation module can directly store the second type of identification information 2 in the network evaluation result.

[0207] If the network evaluation module determines that the second category identification information already exists in the network evaluation result, the network evaluation module can perform a priority comparison between the second category identification information 2 and the second category identification information included in the network evaluation result to determine whether to store the second category identification information 2 in the network evaluation result based on the priority comparison result.

[0208] For example, assuming that the network evaluation module determines that the priority of the second category identification information 2 is higher than the second category identification information included in the network evaluation result, the network evaluation module stores the second category identification information 2 in the network evaluation result and deletes the second category identification information included in the network evaluation result. Assuming that the network evaluation module determines that the priority of the second category identification information 2 is lower than the second category identification information included in the network evaluation result, the network evaluation module does not store the second category identification information 2 in the network evaluation result. In other words, only one second category identification information is stored in the network evaluation result.

[0209] Step 912: The network evaluation module determines whether the MMS link establishment request is a preset restricted request, and whether there is a current dial-up network request.

[0210] In the embodiment of the present application, the network evaluation module can determine whether the MMS link establishment request is a preset restricted request and whether there is a dial-up network request. If so, execute step 913, otherwise, execute step 914.

[0211] Step 913: The network evaluation module records the second type of identification information 3.

[0212] In the embodiment of the present application, when the network evaluation module determines that the MMS link establishment request is restricted and there is no dial-up network request currently, the network evaluation module may record the second type of identification information 3 in the network evaluation result.

[0213] The second type of identification information 3 is used to indicate that the network link connection is maintained, and carries the reason for maintaining the network link. For example, the second type of identification information 3 may be allowed reason 3, and carries RESTRICTED_REQUEST, which indicates that the network link can continue to maintain the connection.

[0214] In the embodiment of the present application, when the network evaluation module records the second type of identification information 3 in the network evaluation result, the network evaluation module determines whether the second type of identification information has been recorded in the network evaluation result. If the network evaluation module determines that the network evaluation result does not include the second type of identification information, the network evaluation module can directly store the second type of identification information 3 in the network evaluation result.

[0215] If the network evaluation module determines that the second type of identification information already exists in the network evaluation result, the network evaluation module can compare the second type of identification information 3 with the second type of identification information included in the network evaluation result, so as to determine whether to store the second type of identification information 3 in the network evaluation result according to the priority comparison result. The specific process can refer to the above-mentioned judgment process of the second type of identification information 2, which will not be repeated here.

[0216] In step 914, the network evaluation module determines whether the network link is a wireless local area network (WLAN) link.

[0217] In one possible case of the embodiment of the present application, the network evaluation module can check the network link currently established by the mobile phone to determine whether the currently established network link is a WLAN link. For example, assuming that the network evaluation module determines that the currently established network link is established through a wireless local area network (wireless fidelity, WiFi) network card, the network evaluation module determines that the currently established network link is a WLAN link.

[0218] In another possible case of the embodiment of the present application, the network evaluation module can determine whether the currently established network link is a WLAN link by querying network configuration information, such as IP address, gateway, DNS server, etc. Exemplarily, assuming that the network evaluation module determines that the network configuration information is the IP address allocation method and DNS server corresponding to the WLAN network, the network evaluation module can determine that the currently established network link is a WLAN link.

[0219] It should be explained that the network configuration information of the WLAN network and the mobile data network are different, so the network evaluation module can determine whether the currently established network link is a WLAN link according to the network configuration information.

[0220] In another possible case of the embodiment of the present application, the network evaluation module can also determine whether the currently established network link is a WLAN link by querying the system log. Exemplarily, the network evaluation module determines whether the currently established network link of the mobile phone is a WLAN link based on the detailed information of the network connection recorded in the system log (e.g., connection type, network configuration process, etc.).

[0221] When the network evaluation module determines that the network link currently established by the mobile phone is a WLAN link, the network evaluation module executes step 915 , otherwise, executes step 916 .

[0222] Step 915: The network evaluation module records the second type of identification information 4.

[0223] In the embodiment of the present application, when the network evaluation module determines that the currently established network link is a WLAN link, the network evaluation module may add the second type of identification information 4 to the network evaluation result.

[0224] The second type of identification information 4 is used to indicate that the network link connection is maintained, and carries the reason for maintaining the connection that the currently established network link is a WLAN link. For example, the second type of identification information 4 may be allowed reason 4, and carries UNMETRED_USAGE, which is used to indicate that the network link can be established normally, and the reason for allowing the establishment is the currently established network link WLAN link.

[0225] In the embodiment of the present application, when the network evaluation module adds the second type of identification information 4 to the network evaluation result, the network evaluation module determines whether the network evaluation result already includes the second type of identification information. If the network evaluation module determines that the network evaluation result does not include the second type of identification information, the network evaluation module can directly store the second type of identification information 4 in the network evaluation result.

[0226] If the network evaluation module determines that the second type of identification information already exists in the network evaluation result, the network evaluation module can compare the second type of identification information 4 with the second type of identification information included in the network evaluation result, so as to determine whether to store the second type of identification information 4 in the network evaluation result according to the priority comparison result. The specific process can refer to the above-mentioned judgment process of the second type of identification information 2, which will not be repeated here.

[0227] Step 916: The network evaluation module determines whether the network link is used to transmit the MMS message.

[0228] In an embodiment of the present application, the network evaluation module can determine whether the network link is used to transmit MMS messages.

[0229] As a possible implementation manner, the network evaluation module may determine whether the network link is used to transmit the MMS message by determining whether the attribute information of the network link is the attribute information of the MMS link.

[0230] Exemplarily, assuming that the attribute information is a network capability, the network evaluation module can determine whether the network capability is a capability for transmitting multimedia messages, so as to determine whether the network link is used to transmit multimedia messages. For example, assuming that the network evaluation module determines that the network capability is a capability for transmitting multimedia messages, the network evaluation module determines that the network link is used to transmit multimedia messages. Assuming that the network evaluation module determines that the network capability is not a capability for transmitting multimedia messages, for example, the network capability is a capability for transmitting short messages, the network evaluation module determines that the network link cannot be used to transmit multimedia messages.

[0231] It should be explained that the above-mentioned network evaluation module determines whether the network link is used to transmit MMS messages based on the attribute information of the network link is only an example. Other methods for determining whether a network link is used to transmit MMS messages are also applicable to this application and are not limited here.

[0232] If the network evaluation module determines that the network link is used to transmit MMS messages, in this case, the mobile phone allows the network link connection to be maintained and continues to execute step 917. Otherwise, execute step 918.

[0233] Step 917: The network evaluation module records the second type of identification information 5.

[0234] In the embodiment of the present application, when the network evaluation module determines that the network link is used to transmit the MMS message, the network evaluation module may add the second type of identification information 5 to the network evaluation result.

[0235] The second type of identification information 5 is used to indicate that the network link connection is maintained, and carries the reason for maintaining the connection, which is that the network link is used to transmit multimedia messages. For example, the second type of identification information 5 may be allowed reason 5, and carries MMS_REQUEST, which indicates that the network link can continue to be connected, and the reason for allowing the connection to be maintained is that the network link is used to transmit multimedia messages.

[0236] In the embodiment of the present application, when the network evaluation module adds the second type of identification information 5 to the network evaluation result, the network evaluation module determines whether the network evaluation result already includes the second type of identification information. If the network evaluation module determines that the network evaluation result does not include the second type of identification information, the network evaluation module can directly store the second type of identification information 5 in the network evaluation result.

[0237] If the network evaluation module determines that the second type of identification information already exists in the network evaluation result, the network evaluation module can compare the second type of identification information 5 with the second type of identification information included in the network evaluation result, so as to determine whether to store the second type of identification information 5 in the network evaluation result according to the priority comparison result. The specific process can refer to the above-mentioned judgment process of the second type of identification information 2, which will not be repeated here.

[0238] In the embodiment of the present application, since the scenario in which the network evaluation module performs network evaluation on the network link is when the mobile data connection of the mobile phone is in a closed state, when the secondary card sends a multimedia message, the registration state of the PS domain is triggered to change. When the network evaluation module evaluates the network link, in the above step 903, the network evaluation module determines that the mobile data connection is in a closed state, and the network evaluation module adds the first type of identification information 2 to the network evaluation result. In this case, in the subsequent step 907, the network evaluation module determines that the network evaluation result includes the first type of identification information. When the network evaluation module determines that the network evaluation result does not include the first identification information, the network evaluation module sequentially executes the subsequent steps. The judgment results of the network evaluation module in the judgment process of step 910, step 912 and step 914 are all no. In this case, the network evaluation module continues to execute step 916, and the network evaluation module determines that the network link is used to transmit multimedia messages. The network evaluation module records the second type of identification information 6 in the network evaluation result. That is, the network evaluation module determines that the current network link supports the transmission of multimedia messages and will not disconnect the network link.

[0239] Step 918: The network evaluation module determines whether the current network is an unmetered network.

[0240] Unmetered networks refer to a type of network connection that does not limit data usage. For example, unmetered networks can be wired networks, wireless hotspots, or specific data packages provided by operators.

[0241] In one case, the network evaluation module can determine whether the currently established network link is an unmetered network based on the type of the current network displayed in the network settings of the mobile phone operating system. For example, assuming that the network evaluation module determines that the current network of the mobile phone is a 4G network, the network evaluation module determines that the current network is an unmetered network.

[0242] In another case, the mobile phone may be provided with a traffic monitoring application, and the network assessment module detects that the mobile phone uses a large amount of data but does not incur any charges based on the traffic monitoring application. In this case, the network assessment module determines that the network link currently established by the mobile phone is an unmetered network.

[0243] If the network evaluation module determines that the current network is an unmetered network, in this case, the mobile phone allows the network link connection to be maintained, and step 919 is continued. Otherwise, step 920 is executed.

[0244] Step 919: The network evaluation module records the second type of identification information 6.

[0245] In the embodiment of the present application, when the network evaluation module determines that the current network is an unmetered network, the network evaluation module may record the second type of identification information 6 in the network evaluation result.

[0246] The second type of identification information 6 is used to indicate that the network link connection is maintained, and carries the reason for maintaining the connection that the currently connected network is an unmetered network. For example, the second type of identification information 6 may be allowed reason 6, and carries UNMETERED_USAGE, which is used to indicate that the network link can continue to be established, and the reason for allowing the establishment is that the current network is an unmetered network.

[0247] In the embodiment of the present application, when the network evaluation module records the second type of identification information 6 in the network evaluation result, the network evaluation module determines whether the network evaluation result already includes the second type of identification information. If the network evaluation module determines that the network evaluation result does not include the second type of identification information, the network evaluation module can directly store the second type of identification information 6 in the network evaluation result.

[0248] If the network evaluation module determines that the second type of identification information already exists in the network evaluation result, the network evaluation module can compare the second type of identification information 6 with the second type of identification information included in the network evaluation result, so as to determine whether to store the second type of identification information 6 in the network evaluation result according to the priority comparison result. The specific process can refer to the above-mentioned judgment process of the second type of identification information 2, which will not be repeated here.

[0249] Step 920: The network evaluation module determines the network evaluation result according to the target identification information in the network evaluation result.

[0250] In some embodiments, when the network evaluation module clears the first category identification information pre-stored in the network evaluation result before adding the second category identification information to the network evaluation result, the network evaluation module can determine the network evaluation result based on whether the target identification information included in the network evaluation result belongs to the second category identification information.

[0251] In one case, when the network evaluation module determines that the target identification information stored in the network evaluation result belongs to the first category of identification information, the network evaluation module determines that the network evaluation result is to disconnect the network link.

[0252] In another case, when the network evaluation module determines that the identification information stored in the network evaluation result belongs to the second category of identification information, the network evaluation module determines that the network evaluation result is to maintain the network link connection.

[0253] In other embodiments, when the network evaluation module does not clear the first type of identification information pre-stored in the network evaluation result before adding the second type of identification information to the network evaluation result, the network evaluation module may judge the network evaluation result based on whether the network evaluation result includes the second type of identification information.

[0254] In one case, when the network evaluation module determines that the target identification information stored in the network evaluation result does not include the second type of identification information, the network evaluation module determines that the network evaluation result is a disconnected network link.

[0255] In another case, when the network evaluation module determines that the target identification information stored in the network evaluation result includes the second type of identification information, the network evaluation module determines that the network evaluation result is to continue to maintain the network link connection.

[0256] It needs to be explained that the above Fig. 9 The process of evaluating the network link by the network evaluation module is only an example. Fig. 9 The execution order of the judgment process of each condition in is not limited. For example, the network evaluation module may first execute the judgment process of step 903, and then execute the judgment process of steps 901 and 905. Alternatively, the network evaluation module may first execute the judgment process of step 916 before executing step 910. In other words, the execution order of step 916 is not limited in the embodiment of the present application. The network evaluation module may also execute step 916 after executing the judgment process of step 910, and may also execute step 916 after executing step 912, and so on.

[0257] In an embodiment of the present application, based on Google's native network evaluation method, when the network evaluation module performs network evaluation on the network link, a judgment condition is added, that is, a judgment condition is added to determine whether the network link is used to transmit MMS messages. If the network evaluation module determines that the network link is used to transmit MMS messages, the network link connection continues to be maintained. In this way, when the secondary card of the mobile phone sends an MMS message, triggering a change in the registration status of the PS domain, and then triggering the network evaluation module to evaluate the network link, the result of the network evaluation module's evaluation of the network link includes a second type of identification information for indicating that the network link connection should continue to be maintained. The baseband module maintains the established network link and sends MMS messages through the network link. Therefore, when the secondary card is registered in the 3G network and the mobile data connection of the mobile phone is in a closed state, the secondary card can also successfully send MMS messages.

[0258] For example, Fig.10 As shown, Fig.10 The mobile phone in the example has two SIM cards, SIM card 1 is the primary card and SIM card 2 is the secondary card. The primary card is registered in the 5G network, and the secondary card is registered in the 3G network. Fig.10 It can be seen that when the mobile data connection of the mobile phone is in a closed state, the mobile phone responds to the user's operation of sending a multimedia message, establishes a network link, and triggers the network evaluation module to perform a network evaluation on the network link. Fig. 9 After the network link is evaluated by the network evaluation process in the network evaluation process, it is determined that the network link connection is maintained. In this case, the mobile phone successfully sends the MMS message through the network link and displays Fig.10 A prompt message indicating that the MMS message was sent successfully.

[0259] In another scenario of the embodiment of the present application, when the mobile data connection of the mobile phone is in a closed state, when the mobile phone detects that the secondary card receives a multimedia message, the mobile phone triggers the establishment of a network link. The network link is used to receive the multimedia message. After the mobile phone establishes the network link, the mobile phone performs a network evaluation on the network link to determine whether to continue to maintain the network link based on the identification information in the network evaluation result.

[0260] In one case, when the mobile phone determines that the result of network evaluation on the network link includes the second type of identification information, the mobile phone determines to maintain the connection of the network link, and the mobile phone can successfully receive the MMS message through the network link.

[0261] In another case, when the mobile phone determines that the result of the network evaluation on the network link does not include the second type of identification information, the mobile phone determines to disconnect the network link. In this case, the mobile phone disconnects the network link and cannot successfully receive the MMS message.

[0262] Combine the following Fig.11 The MMS receiving process is introduced in detail. Fig.11 As shown, the MMS sending process may include steps 1101 to 1109.

[0263] Step 1101: The MMS application receives an instruction to download an MMS message and sends an MMS link establishment request.

[0264] In the embodiment of the present application, when the sender sends an MMS message to the secondary card of the mobile phone, after the MMS application of the mobile phone receives the instruction to download the MMS message, the MMS application sends an MMS link establishment request to the baseband module of the baseband layer. The MMS link establishment request is used to request the baseband module to establish a network link for receiving the MMS message.

[0265] Step 1102: The baseband module creates a network link.

[0266] After the baseband module receives the MMS link establishment request sent by the MMS application, the baseband module sends the MMS link establishment request to the MMSC. Then, the baseband module uses WAP to establish a connection with the MMSC to complete the establishment of the network link. Here, the network link is used for the secondary card to receive MMS messages.

[0267] Step 1103: The baseband module sends information indicating that the network link is successfully created to the network evaluation module; correspondingly, the network evaluation module receives the information indicating that the network link is successfully created.

[0268] Step 1104: the network evaluation module performs a network evaluation on the network link and determines a network evaluation result.

[0269] Here, the process of the network evaluation module evaluating whether the network link can be used to transmit the MMS message can be referred to above. Fig. 9 The network evaluation process of whether a network link is used to transmit MMS messages is not described in detail here.

[0270] Step 1105: The network evaluation module sends the network evaluation result to the network connection management module; correspondingly, the network connection management module receives the network evaluation result sent by the network evaluation module.

[0271] The network evaluation module performs network evaluation on the network link, and the network evaluation result may be maintaining the network link connection or disconnecting the network link.

[0272] Step 1106: The network connection management module determines that the network evaluation result is to maintain the network link connection.

[0273] Step 1107: The network connection management module sends a network evaluation result for maintaining the network link connection to the baseband module.

[0274] When the network connection management module determines that the network evaluation result is to maintain the network link connection, the network connection management module sends the network evaluation result of maintaining the network link connection to the baseband module.

[0275] The implementation process of step 1103 to step 1107 can refer to the implementation process of step 803 to step 807 above, which will not be repeated here.

[0276] Step 1108: The baseband module receives the MMS message via the network link.

[0277] In the embodiment of the present application, the baseband module can download the multimedia message from the MMSC through the network link. After the baseband module successfully receives the multimedia message through the network link, the baseband module will release the connection with the MMSC to release the network link to save power consumption of the device.

[0278] Step 1109: the baseband module sends a multimedia message to the multimedia message application; correspondingly, the multimedia message application receives the multimedia message sent by the baseband module.

[0279] In the embodiment of the present application, after the baseband module downloads the MMS message, the baseband module sends the MMS message to the MMS application, and the MMS application decodes and displays the MMS message.

[0280] For example, Fig.12 As shown, Fig.12 The mobile phone in the example has two SIM cards, SIM card 1 is the primary card and SIM card 2 is the secondary card. The primary card is registered in the 5G network, and the secondary card is registered in the 3G network. Fig.12 It can be seen that when the mobile data connection of the mobile phone is closed, the secondary card of the mobile phone receives the MMS message, triggers the establishment of a network link, and performs a network evaluation on the network link. After the mobile phone performs a network evaluation on the network link, it determines that the network evaluation result is to continue to maintain the network link connection. In this case, the mobile phone successfully receives the MMS message through the network link and displays Fig.12 The MMS message receiving successful interface.

[0281] In summary, when the terminal device includes a main card and a secondary card, the secondary card is registered under the 3G network, and the mobile data connection of the terminal device is in a closed state, when the secondary card of the terminal device receives or generates a multimedia message, after the network link is established, a network evaluation is performed on the network link to obtain a network evaluation result. In the process of performing a network evaluation on the network link, it is determined that the mobile data connection of the terminal device is in an unconnected state, and the first type of identification information used to indicate the disconnection of the network link is recorded in the network evaluation result. When it is determined that the network link is used to transmit multimedia messages, the target identification information is recorded in the network evaluation result, and the target identification information belongs to the second type of identification information. When it is determined that the network evaluation result includes the second type of identification information, multimedia messages are sent or received based on the network link, thereby achieving the purpose of installing two communication cards in the dual-card terminal device and successfully sending and receiving multimedia messages through the secondary card when the mobile data connection is in a closed state.

[0282] like Fig.13As shown, the embodiment of the present application discloses a terminal device, which can be the above-mentioned mobile phone. The terminal device may specifically include: a touch screen 1301, wherein the touch screen 1301 includes a touch sensor 1306 and a display screen 1307; one or more processors 1302; a memory 1303; one or more application programs (not shown); and one or more computer programs 1304, and the above-mentioned components may be connected via one or more communication buses 1305. Among them, the above-mentioned one or more computer programs 1304 are stored in the above-mentioned memory 1303 and are configured to be executed by the one or more processors 1302, and the one or more computer programs 1304 include instructions, which can be used to execute the relevant steps in the above-mentioned embodiment.

[0283] It is understandable that, in order to realize the above functions, the above-mentioned terminal devices etc. include hardware structures and / or software modules corresponding to the execution of each function. Those skilled in the art should easily realize that, in combination with the units and algorithm steps of each example described in the embodiments disclosed herein, the embodiments of the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the embodiments of the present invention.

[0284] The embodiment of the present application can divide the functional modules of the above-mentioned terminal device etc. according to the above-mentioned method example. For example, each functional module can be divided corresponding to each function, or two or more functions can be integrated into one processing module. The above-mentioned integrated module can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of modules in the embodiment of the present invention is schematic and is only a logical function division. There may be other division methods in actual implementation.

[0285] In the case of dividing each functional module according to each function, a possible composition diagram of the terminal device involved in the above embodiment, the terminal device may include: a display unit, a transmission unit and a processing unit, etc. It should be noted that all relevant contents of each step involved in the above method embodiment can be referred to the functional description of the corresponding functional module, and will not be repeated here.

[0286] The embodiment of the present application also provides a terminal device, including one or more processors and one or more memories. The one or more memories are coupled to the one or more processors, and the one or more memories are used to store computer program codes, and the computer program codes include computer instructions. When the one or more processors execute the computer instructions, the terminal device executes the above-mentioned related method steps to implement the multimedia message sending or multimedia message receiving method in the above-mentioned embodiment.

[0287] An embodiment of the present application also provides a computer-readable storage medium, which stores computer instructions. When the computer instructions are executed on a terminal device, the terminal device executes the above-mentioned related method steps to implement the MMS sending or MMS receiving method in the above-mentioned embodiment.

[0288] An embodiment of the present application also provides a computer program product, which includes computer instructions. When the computer instructions are executed on a terminal device, the terminal device executes the above-mentioned related method steps to implement the MMS sending or MMS receiving method in the above-mentioned embodiment.

[0289] In addition, an embodiment of the present application also provides a device, which can specifically be a chip, component or module, and the device may include a connected processor and memory; wherein the memory is used to store computer execution instructions, and when the device is running, the processor can execute the computer execution instructions stored in the memory, so that the device executes the MMS sending or MMS receiving method executed by the terminal device in the above-mentioned method embodiments.

[0290] Among them, the terminal equipment, computer-readable storage medium, computer program product or device provided in this embodiment are all used to execute the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding methods provided above, and will not be repeated here.

[0291] Through the description of the above implementation methods, technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. The specific working process of the system, device and unit described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.

[0292] Each functional unit in each embodiment of the present application can be integrated into a processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of software functional units.

[0293] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as flash memory, mobile hard disk, read-only memory, random access memory, disk or optical disk.

[0294] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A method for sending a multimedia message, characterized in that: Applied to a terminal device, the communication card in the terminal device includes a main card and a secondary card, the secondary card is a first communication card, the first communication card is registered in a third generation mobile communication 3G network, the mobile data connection of the terminal device is in a closed state, and the method includes: In response to the operation of sending a multimedia message using the first communication card, establishing a network link, the network link being used to transmit the multimedia message; Performing a network evaluation on the network link to obtain a network evaluation result; Wherein, in the process of performing network evaluation on the network link, it is determined that the mobile data connection of the terminal device is in a disconnected state, and first type of identification information is recorded in the network evaluation result, where the first type of identification information is used to indicate disconnection of the network link; In the case where the network evaluation result includes the first type of identification information, determining whether the network link is used to transmit the multimedia message; in the case where it is determined that the network link is used to transmit the multimedia message, recording target identification information in the network evaluation result, the target identification information belonging to the second type of identification information, and the second type of identification information is used to indicate maintaining the network link connection; In a case where the network evaluation result includes the second type of identification information, sending the multimedia message based on the network link; The MMS sending success interface is displayed.

2. The method according to claim 1, characterized in that The recording of target identification information in the network evaluation result includes: Comparing the target identification information with the second type of identification information recorded in the network evaluation result; If the priority of the target identification information is higher than the priority of the recorded second-category identification information, the target identification information is recorded in the network evaluation result.

3. The method according to claim 1 or 2, characterized in that: The method further comprises: In a case where the target identification information belongs to the second category of identification information, the first category of identification information recorded in the network evaluation result is deleted.

4. The method according to claim 1 or 2, characterized in that: The performing network evaluation on the network link further includes: Determining whether the first communication card is in an unloaded state; If it is determined that the first communication card is in an unloaded state, recording first identification information in the network evaluation result, the first identification information belonging to the first category of identification information; Determining whether the mobile data connection is in a connected state; If it is determined that the mobile data connection is in a disconnected state, recording the first type of identification information in the network evaluation result; Determine whether the current Internet access parameters are applicable to the network link; If it is determined that the current Internet access parameters are not suitable for the network link, the first type of identification information is recorded in the network evaluation result.

5. The method according to claim 4, characterized in that The method further comprises: Determining whether the first category of identification information includes the first identification information; If it is determined that the first type of identification information includes the first identification information, the network link is disconnected.

6. The method according to claim 5, characterized in that The determining whether the network link is used to transmit the multimedia message includes: In a case where it is determined that the first type of identification information does not include the first identification information, it is determined whether the network link is used to transmit the multimedia message.

7. The method according to claim 1 or 2, characterized in that: The network evaluation of the network link further includes one or more of the following: Determining whether a location data connection request is received during an emergency call; If a location data connection request is received during an emergency call, recording the second type of identification information in the network evaluation result; Determine whether the MMS link establishment request is a preset restricted request, and whether there is a current dial-up Internet access network request; If the MMS link establishment request is a preset restricted request and there is no dial-up network request, recording the second type of identification information in the network evaluation result; Determining whether the network link is a wireless local area network (WLAN) link; If the network link is a WLAN link, recording the second type of identification information in the network evaluation result; Determining whether the network link is an unmetered network; If the network link is an unmetered network, the second type of identification information is recorded in the network evaluation result.

8. The method according to claim 1 or 2, characterized in that: The first type of identification information is also used to indicate a reason for disconnecting the network link, and the second type of identification information is also used to indicate a reason for maintaining the network link connection.

9. The method according to claim 1 or 2, characterized in that: The terminal device includes an application layer and a baseband layer, and the establishing of a network link includes: After the baseband layer receives the MMS link establishment request sent by the application layer, the baseband layer activates the registration process of the packet switching PS domain; After the baseband layer determines that the registration of the PS domain is successful, determining that the registration state of the PS domain is changed to a registered state; Get the address of the multimedia message service center MMSC; After establishing the connection with the MMSC, the network link is established.

10. The method according to claim 9, characterized in that The terminal device further includes a framework layer. After the network link is established, the method further includes: When the baseband layer determines that the registration state of the PS domain is changed to a registered state, the baseband layer sends the registration state of the PS domain to the framework layer; The performing network evaluation on the network link comprises: When the framework layer determines that the registration state of the PS domain is changed to the registered state, a network evaluation is performed on the network link.

11. A method for receiving multimedia messages, characterized in that: Applied to a terminal device, the communication card in the terminal device includes a main card and a secondary card, the secondary card is a first communication card, the first communication card is registered in a third generation mobile communication 3G network, the mobile data connection of the terminal device is in a closed state, and the method includes: Receiving a multimedia message link establishment request, establishing a network link, wherein the network link is used to receive the multimedia message; Performing a network evaluation on the network link to obtain a network evaluation result; Wherein, in the process of performing network evaluation on the network link, it is determined that the mobile data connection of the terminal device is in a disconnected state, and first type of identification information is recorded in the network evaluation result, where the first type of identification information is used to indicate disconnection of the network link; In the case where the network evaluation result includes the first type of identification information, determining whether the network link is used to transmit the multimedia message; in the case where it is determined that the network link is used to transmit the multimedia message, recording target identification information in the network evaluation result, the target identification information belongs to the second type of identification information, and the second type of identification information is used to indicate maintaining the network link connection; In a case where the network evaluation result includes the second type of identification information, receiving the multimedia message based on the network link; The MMS receiving success interface is displayed.

12. The method according to claim 11, characterized in that The terminal device includes a baseband layer, and the establishing of a network link includes: After receiving the MMS link establishment request, the baseband layer sends the MMS link establishment request to a multimedia message service center MMSC, where the MMS link establishment request is used to request to establish the network link; The baseband layer uses the Wireless Application Protocol WAP to establish a connection with the MMSC to complete the establishment of the network link.

13. A terminal device comprising a memory, a processor and a computer program stored in the memory, characterized in that: The processor executes the computer program to implement the steps of the method according to any one of claims 1 to 10, or implements the steps of the method according to claim 11 or 12.

14. A computer-readable storage medium having a computer program / instruction stored thereon, characterized in that: When the computer program / instruction is executed by a processor, the steps of the method according to any one of claims 1 to 10 are implemented, or the steps of the method according to claim 11 or 12 are implemented.

15. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instruction is executed by a processor, the steps of the method according to any one of claims 1 to 10 are implemented, or the steps of the method according to claim 11 or 12 are implemented.

Citation Information

Patent Citations

  • Networking control method, device, equipment and computer storage medium for dual-card terminal

    CN108601097A