IMS short message processing method, electronic device and storage medium

By judging the user status and IMS registration format, it determines whether to resend IMS text messages without falling back, which solves the problem of users' tariff confusion after failure to send, and improves the communication experience and the integrity of the processing process.

CN117715001BActive Publication Date: 2024-09-06HONOR DEVICE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310861275.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-07-13
Publication Date
2024-09-06
Estimated Expiration
2043-07-13

AI Technical Summary

Technical Problem

After the IMS text message that the user fails to send automatically falls back and is resent, the user cannot detect it from the terminal device interface, resulting in confusion about the tariff and a decrease in communication experience.

Method used

By obtaining the sending status of IMS text messages, and when it is judged that the user is in roaming state and the non-fallback card configuration is not configured, the preset card configuration items are read, and the IMS registration format is matched to determine whether to resend without fallback, ensuring that No fallback and retransmission in VoLTE or VoWiFi scenarios.

Benefits of technology

It realizes that IMS text messages that users fail to send are not dropped and re-sent, which eliminates users’ doubts about tariffs, improves the communication experience, and improves the IMS text message processing process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117715001B
    Figure CN117715001B
Patent Text Reader

Abstract

The present application provides an IMS SMS processing method, an electronic device and a storage medium, and relates to the field of terminal technology. The method includes: first, when it is determined that the sending state of the IMS SMS is fallback retransmission, and it is determined that the user sending the IMS SMS is in a roaming state, and it is determined that the mobile platform of the electronic device carrying the IMS SMS is not configured with the card-attached configuration of the IMS SMS without fallback, read the value of the preset card-attached configuration item for scene control; then obtain the IMS registration format registered on the SIM card of the user sending the IMS SMS, and determine the configuration value corresponding to the IMS registration format, which is used to compare with the previously read preset card-attached configuration item for scene control. When the two match, the sending state of the IMS SMS is modified to no fallback retransmission, and the no fallback retransmission operation is performed according to the modified sending state in the scene, thereby eliminating the user's consumption doubts and improving the user's communication experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of terminal technology, and in particular to an IMS short message processing method, electronic device and storage medium. Background Art

[0002] With the continuous breakthroughs in artificial intelligence technology and the increasing popularity of various terminal devices, mobile communications play an important role in people's daily work and life. When people communicate through terminal devices, in order to facilitate daily communication, the use of IP Multimedia Subsystem (IMS) short messages and circuit switched (CS) domain short message services is becoming more and more frequent.

[0003] At present, for IMS SMS messages that fail to be sent by users, it is usually determined whether they need to be resent to the CS domain. If so, they are automatically resent. After the automatic resent is completed, the user cannot perceive that the IMS SMS has been resent from the interface of the terminal device. However, the resent IMS SMS will generate SMS charges at the CS domain level for the user, causing confusion among users and affecting their communication experience. Summary of the invention

[0004] In order to solve the above problems, the present application provides an IMS SMS processing method, an electronic device and a storage medium, the purpose of which is to realize the function of not falling back and resending an IMS SMS that failed to be sent by a user, and to improve the entire processing flow of the IMS SMS to enhance the user's communication experience.

[0005] In the first aspect, the present application provides an IMS SMS processing method, the method comprising: first obtaining the sending status of the IMS SMS to be processed; then when it is determined that the sending status of the IMS SMS is fallback and retransmission, and it is determined that the user sending the IMS SMS is in a roaming state, and it is determined that the mobile platform carried by the electronic device sending the IMS SMS is not configured with the IMS SMS non-fallback card configuration, read the value of the preset card configuration item for scene control (the specific value content is set according to the needs of the operator); then, obtain the IMS registration format registered on the SIM card of the user sending the IMS SMS, and determine the configuration value corresponding to the IMS registration format, which is used to compare with the previously read preset card configuration item value for scene control. When the two match, it means that the current scenario is a scenario where the operator hopes that the IMS SMS will not fallback and retransmit, otherwise it will cause consumer confusion to the user and affect the user's communication experience, so it is necessary to modify the sending status of the IMS SMS to non-fallback and retransmit, and perform the non-fallback and retransmit operation according to the modified sending status of the IMS SMS.

[0006] In this way, in the above-mentioned IMS SMS processing method, the newly added preset card configuration item for scenario control is used to control the non-fallback and retransmission of IMS SMS in VoLTE, VoWiFi or both scenarios. Not only does it not destroy the customization capability and related logic of the original card configuration (such as fallback_sms_not_allowed_in_roaming) provided by the mobile platform carried by the electronic device, but it can also realize the function of not falling back and retransmitting the IMS SMS that failed to be sent to the user when it is judged that the user is in a roaming scenario, and improve the entire processing flow of IMS SMS, eliminate the user's consumption doubts, and thus improve the user's communication experience.

[0007] In a possible implementation, the sending status of the IMS SMS may include but is not limited to successful sending, non-retransmission, retransmission or fallback retransmission, so that different subsequent SMS processing flows are executed according to different sending statuses.

[0008] In a possible implementation, the scenarios controlled by the newly added card configuration items may include but are not limited to VoLTE and VoWiFi; specifically, the newly added card configuration items for scenario control may be used to control not to fall back and resend IMS SMS in VoLTE, VoWiFi, or both scenarios; and the specific scenario in which IMS SMS is not to fall back can be set according to the different needs of different operators. This can meet the personalized scenario needs of each operator, that is, not to fall back and resend IMS SMS in this scenario.

[0009] In a possible implementation, obtaining the IMS registration technology registered on the SIM card of the user who sends the IMS SMS includes: obtaining the IMS registration technology registered on the SIM card of the user who sends the IMS SMS by calling the TelephonyManager.getImsRegTechnologyForMmTel interface.

[0010] In this way, the IMS standard registered on the current user's SIM card is obtained by calling the TelephonyManager.getImsRegTechnologyForMmTel interface instead of using the judgment interface such as TelephonyManager.isWifiCallingAvailable. There is no influence on whether there is voice calling capability, which effectively improves the accuracy of judging the IMS registration standard.

[0011] In a possible implementation, after obtaining the sending status of the IMS SMS to be processed, the method further includes: using the customized logic for the sending status value in the original logic in the IMS application to determine the sending status of the IMS SMS (such as successful sending, no resending, resending, or fallback resending). Different processing methods can then be used according to different sending statuses, effectively improving processing efficiency.

[0012] In a possible implementation, when it is determined that the sending state of the IMS message is not to be resent, the sending state of the IMS message will not be modified, and the non-retransmission operation will be performed according to the original sending state of the IMS message. Alternatively, when it is determined that the sending state of the IMS message is to be resent after falling back, and it is determined that the electronic device sending the IMS message is not in a roaming state, the sending state of the IMS message will not be modified, and the non-retransmission operation will be performed according to the original sending state of the IMS message, so as to ensure the integrity of the IMS message processing.

[0013] In a possible implementation, when it is determined that the sending status of the IMS SMS is successfully sent, regardless of whether the card-attached configuration item is configured, the sending status of the IMS SMS will not be modified, and the corresponding operation can be performed according to the original sending status of the IMS SMS. This is because a successfully sent IMS SMS will often not be resent.

[0014] In a possible implementation, a non-fallback resending operation is performed according to the modified sending status of the IMS SMS, including: sending the modified sending status of the IMS SMS to the framework logic (ImsSmsDispatcher) of the framework layer; and triggering a listening function at the framework layer. For example, a listener at the framework layer can be triggered to perform a non-fallback resending operation according to the modified sending status of the received IMS SMS, thereby ensuring the integrity of the IMS SMS processing process.

[0015] In a second aspect, the present application provides an electronic device, the electronic device comprising a memory and a processor, the memory storing a computer program, and the processor being used to call and execute the computer program to implement the IMS SMS processing method described in any one of the first aspects above.

[0016] In a third aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor of an electronic device, is used to implement the IMS SMS processing method described in any one of the first aspects above.

[0017] In a fourth aspect, the present application provides a computer program product. When the computer program product is run on a computer, the computer executes the IMS SMS processing method as described in any one of the first aspects. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1 A schematic diagram of a scenario provided for an embodiment of the present application;

[0019] Figure 2 A schematic diagram of an electronic device provided in an embodiment of the present application;

[0020] Figure 3 A software structure block diagram of an electronic device provided in an embodiment of the present application;

[0021] Figure 4 A signaling diagram of an IMS SMS processing method provided in an embodiment of the present application;

[0022] Figure 5 A signaling diagram of another IMS SMS processing method provided in an embodiment of the present application;

[0023] Figure 6 A signaling diagram of another IMS SMS processing method provided in an embodiment of the present application. DETAILED DESCRIPTION

[0024] The technical solutions in the embodiments of the present application will be described clearly and completely below in conjunction with the drawings in the embodiments of the present application. The terms used in the following embodiments are only for the purpose of describing specific embodiments and are not intended to be used as limitations on the present application. As used in the specification and the appended claims of the present application, the singular expressions "one", "a kind", "said", "above", "the" and "this" are intended to also include expressions such as "one or more", unless there is a clear contrary indication in the context. It should also be understood that in the embodiments of the present application, "one or more" refers to one, two or more; "and / or" describes the association relationship of the associated objects, indicating that three relationships may exist; for example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the associated objects before and after are in an "or" relationship.

[0025] References to "one embodiment" or "some embodiments" etc. described in this specification mean that a particular feature, structure or characteristic described in conjunction with the embodiment is included in one or more embodiments of the present application. Thus, the phrases "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear at different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.

[0026] The multiple involved in the embodiments of the present application means greater than or equal to two. It should be noted that in the description of the embodiments of the present application, the words "first", "second", etc. are only used for the purpose of distinguishing the description, and cannot be understood as indicating or implying relative importance, nor can they be understood as indicating or implying an order.

[0027] In order to enable those skilled in the art to more clearly understand the solution of the present application, the application scenario of the technical solution of the present application is first explained below.

[0028] See also Figure 1 , which shows a schematic diagram of a scenario provided in an embodiment of the present application.

[0029] In this example scenario, user A can use electronic device A (such as a smart phone) to send IMS text messages and / or CS domain text messages to user B's electronic device B (such as a smart phone) through the operator server. Among them, operators often have different charging standards for IMS text messages and CS domain text messages, and usually the charges for IMS text messages are less than or equal to the charges for CS domain text messages. Therefore, there is a scenario where user A fails to send an IMS text message using electronic device A. It is usually determined whether it needs to fall back to the CS domain for resending based on the sending status fed back by the operator server. If so, it will automatically fall back and resend, and after the automatic resending is completed, user A cannot perceive from the interface of electronic device A that the IMS text message has been resent, that is, when the automatic resending is completed, user A cannot perceive that the IMS text message has been resent at all, and does not know how it was sent. Due to the different charging standards for IMS text messages and CS domain text messages by operators, user A may be confused about the charges it has incurred, affecting the user's communication experience.

[0030] In order to overcome the above technical problems, the present application provides an IMS SMS processing method, electronic device and storage medium. When it is determined that the user is in a roaming scenario, the IMS SMS that failed to be sent by the user can be resent without falling back, and the entire processing flow of the IMS SMS can be improved, eliminating the user's consumption doubts, thereby improving the user's communication experience.

[0031] The IMS SMS processing solution provided in the embodiment of the present application can be applied to electronic devices such as mobile phones, tablet computers, personal digital assistants (PDAs), desktops, laptops, notebook computers, ultra-mobile personal computers (UMPCs), handheld computers, netbooks, and wearable devices (such as Figure 1 A electronic device in the equipment).

[0032] In order to enable those skilled in the art to more clearly understand the IMS SMS processing method provided by the present application, the hardware architecture and software system architecture of the electronic device are first introduced in detail below.

[0033] See also Figure 2 , which shows a schematic diagram of an electronic device provided in an embodiment of the present application.

[0034] like Figure 2 As shown, the electronic device 200 may include a processor 210, a mobile communication module 220, a wireless communication module 230, a sensor module 240, an internal memory 241, a SIM card interface 242, an external memory interface 243, a motor 244, a button 245, a power management module 246, a battery 247, a charging management module 248, a universal serial bus (USB) interface 249, an indicator 250, a camera 251, a display screen 252, an audio module 253, a speaker 253A, a receiver 253B, a microphone 253C, an earphone interface 253D, an antenna group 1 and an antenna group 2.

[0035] It is to be understood that the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the electronic device 200. In other embodiments of the present application, the electronic device 200 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.

[0036] The processor 210 may include one or more processing units, for example, the processor 210 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU). Different processing units may be independent devices or integrated into one or more processors. The controller may generate an operation control signal according to the instruction opcode and the timing signal to complete the control of fetching and executing instructions.

[0037] The processor 210 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 210 is a cache memory. The memory may store instructions or data that the processor 210 has just used or cyclically used. If the processor 210 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 210, and thus improves the efficiency of the system.

[0038] In some embodiments, the processor 210 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.

[0039] The internal memory 241 can be used to store computer executable program codes, which include instructions. The internal memory 241 may include a program storage area and a data storage area. Among them, the program storage area may 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 may store data created during the use of the electronic device 200 (such as audio data, a phone book, etc.), etc. In addition, the internal memory 241 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. The processor 210 executes various functional applications and data processing of the electronic device 200 by running instructions stored in the internal memory 241 and / or instructions stored in a memory provided in the processor.

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

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

[0042] Motor 244 can generate vibration prompts. Motor 244 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback. For example, touch operations acting on different applications (such as taking pictures, audio playback, etc.) can correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization.

[0043] The key 245 includes a power key, a volume key, etc. The key 245 can be a mechanical key or a touch key. The electronic device 200 can receive key input and generate key signal input related to user settings and function control of the electronic device 200.

[0044] The USB interface 249 is an interface that complies with the USB standard specification, and specifically can be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc. The USB interface 249 can be used to connect a charger to charge the electronic device 200, and can also be used to transmit data between the electronic device 200 and a peripheral device. It can also be used to connect headphones to play audio through the headphones. The interface can also be used to connect other electronic devices, such as AR devices, etc.

[0045] The charging management module 248 is used to receive charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 248 may receive charging input from a wired charger through a USB interface 249. In some wireless charging embodiments, the charging management module 248 may receive wireless charging input through a wireless charging coil of the electronic device 200. While the charging management module 248 is charging the battery 247, it may also power the electronic device 200 through the power management module 246.

[0046] The power management module 246 is used to connect the battery 247, the charging management module 248 and the processor 210. The power management module 246 receives input from the battery 247 and / or the charging management module 248, and provides power to the processor 210, the internal memory 241, the display screen 252, the camera 251, and the wireless communication module 230. The power management module 246 can also be used to monitor parameters such as battery capacity, battery cycle number, battery health status (leakage, impedance), etc. In some other embodiments, the power management module 246 can also be set in the processor 210. In other embodiments, the power management module 246 and the charging management module 248 can also be set in the same device.

[0047] The display screen 252 is used to display images, videos, etc. The display screen 252 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the electronic device 200 may include 1 or N display screens 252, where N is a positive integer greater than 1.

[0048] The camera 251 is used to capture still images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then passes the electrical signal to the ISP to be converted into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV or other format. In some embodiments, the electronic device 200 may include 1 or N cameras 251, where N is a positive integer greater than 1.

[0049] The indicator 250 may be an indicator light, which may be used to indicate the charging status, power change, messages, missed calls, notifications, etc.

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

[0051] The electronic device 200 can implement audio functions such as music playing and recording through the audio module 253, the speaker 253A, the receiver 253B, the microphone 253C, the headphone jack 253D, and the application processor.

[0052] The audio module 253 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signal. The audio module 253 can also be used to encode and decode audio signals. In some embodiments, the audio module 253 can be arranged in the processor 210, or some functional modules of the audio module 253 can be arranged in the processor 210.

[0053] The speaker 253A, also called a "speaker", is used to convert an audio electrical signal into a sound signal. The electronic device 200 can listen to music or listen to a hands-free call through the speaker 253A.

[0054] The receiver 253B, also called a "earpiece", is used to convert audio electrical signals into sound signals. When the electronic device 200 receives a call or voice message, the voice can be received by placing the receiver 253B close to the human ear.

[0055] Microphone 253C, also called "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can speak by putting their mouth close to microphone 253C to input the sound signal into microphone 253C. The electronic device 200 can be provided with at least one microphone 253C. In other embodiments, the electronic device 200 can be provided with two microphones 253C, which can not only collect sound signals but also realize noise reduction function. In other embodiments, the electronic device 200 can also be provided with three, four or more microphones 253C to realize the collection of sound signals, noise reduction, identification of sound sources, realization of directional recording function, etc.

[0056] The earphone interface 253D is used to connect a wired earphone and can be a USB interface 249 or a 3.5 mm open mobile terminal platform (OMTP) standard interface or a cellular telecommunications industry association of the USA (CTIA) standard interface.

[0057] 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 electronic device 200. In other embodiments of the present application, the electronic device 200 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.

[0058] The wireless communication function of the electronic device 200 can be implemented through the antenna 1, the antenna 2, the mobile communication module 220, the wireless communication module 230, the modem processor and the baseband processor.

[0059] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in the electronic device 200 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of the antennas. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.

[0060] The mobile communication module 220 can provide solutions for wireless communications including 2G / 3G / 4G / 5G, etc., applied to the electronic device 200. The mobile communication module 220 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 220 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 220 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 220 can be set in the processor 210. In some embodiments, at least some of the functional modules of the mobile communication module 220 can be set in the same device as at least some of the modules of the processor 210.

[0061] The modem processor may include a modulator and a demodulator. Among them, the modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to a speaker 253A, a receiver 253B, etc.), or displays an image or video through a display screen 252. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 210 and be set in the same device as the mobile communication module 220 or other functional modules.

[0062] The wireless communication module 230 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to the electronic device 200. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 230 receives electromagnetic waves via the antenna 2, modulates the frequency of the electromagnetic wave signal and performs filtering, and sends the processed signal to the processor 210. The wireless communication module 230 can also receive the signal to be sent from the processor 210, modulate the frequency of it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.

[0063] In some embodiments, the antenna 1 of the electronic device 200 is coupled to the mobile communication module 220, and the antenna 2 is coupled to the wireless communication module 230, so that the electronic device 200 can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology. The GNSS may include a global positioning system (GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS) and / or a satellite based augmentation system (SBAS).

[0064] In addition, on top of the above components, the electronic device 200 runs an operating system, such as an iOS operating system, an Android operating system, a Windows operating system, etc. Application programs can be installed and run on the operating system.

[0065] See also Figure 3 , which shows a schematic diagram of the software structure of the electronic device provided in an embodiment of the present application.

[0066] The software system of the electronic device 200 may 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 application takes the Android system of the layered architecture as an example to exemplify the software structure of the electronic device 200.

[0067] The layered architecture divides the software into several layers, each with clear roles and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom: the application layer, the application framework layer, the Android runtime and system library, and the kernel layer.

[0068] The application layer can include a series of application packages. Figure 3 As shown, the application package may include applications such as camera, call, text message, music, video, WLAN, Bluetooth, etc.

[0069] The application framework layer provides application programming interface (API) and programming framework for the applications in the application layer. The application framework layer includes some predefined functions. Figure 3 As shown, the application framework layer may include a window manager, a notification manager, a phone manager, a resource manager, a text message manager, and the like.

[0070] The window manager is used to manage window programs. The window manager can obtain the display screen size, determine whether there is a status bar, lock the screen, capture the screen, etc.

[0071] The phone manager is used to provide communication functions of the electronic device 200, such as management of call status (including connecting, hanging up, etc.).

[0072] The SMS manager is used to provide the SMS sending and receiving functions of the electronic device 200, such as the management of the SMS sending status (including fallback resending, non-resending, etc.).

[0073] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.

[0074] The notification manager enables applications to display notification information in the status bar. It can be used to convey notification-type messages and can disappear automatically after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc. The notification manager can also be a notification that appears in the system top status bar in the form of a chart or scroll bar text, such as notifications of applications running in the background, or a notification that appears on the screen in the form of a dialog window. For example, a text message is displayed in the status bar, a prompt sound is emitted, an electronic device vibrates, an indicator light flashes, etc.

[0075] Android Runtime includes core libraries and virtual machines. Android runtime is responsible for scheduling and management of the Android system.

[0076] The core library consists of two parts: one part is the function that needs to be called by the Java language, and the other part is the Android core library.

[0077] The application layer and the application framework layer run in a virtual machine. The virtual machine executes the Java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.

[0078] The system library may include multiple functional modules, such as surface manager, media library, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), etc.

[0079] The surface manager is used to manage the display subsystem and provide the fusion of 2D and 3D layers for multiple applications.

[0080] The media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.

[0081] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.

[0082] A 2D graphics engine is a drawing engine for 2D drawings.

[0083] The kernel layer is the layer between hardware and software. The kernel layer contains at least display driver, camera driver, audio driver, and sensor driver.

[0084] The technical solutions involved in the following embodiments can all be implemented in electronic devices having the above-mentioned hardware architecture and software architecture.

[0085] Next, the implementation process of the IMS SMS processing method provided by this application will be introduced in detail:

[0086] In some embodiments, the first IMS SMS processing method provided by the embodiments of the present application is: first, in the processor in the mobile platform pre-installed in the electronic device, it is determined whether the electronic device loaded with a user's SIM card is in roaming state. If so, continue to use the card configuration provided by the mobile platform pre-installed in the electronic device (such as fallback_sms_not_allowed_in_roaming), to ensure that after the configuration item is pre-configured for the user's SIM card, the user's failed IMS SMS will not be automatically fallen back and resent.

[0087] However, this configuration does not limit the processing scope. That is, failure to send IMS SMS in any roaming scenario will trigger the step of not automatically falling back and resending. The impact range is large and cannot meet the requirement of being effective only in VoLTE or VoWiFi scenarios. This configuration cannot meet the requirements.

[0088] In some other embodiments, the embodiments of the present application also provide a second IMS SMS processing method, which is based on the above-mentioned first IMS SMS processing method, and adds a step of determining whether the electronic device is in a VoWiFi scenario, thereby limiting a certain IMS SMS processing range, so that it is only effective in a VoWiFi scenario.

[0089] In this embodiment, the added step of determining whether the electronic device is in the VoWiFi scenario is implemented by calling the VoWiFi scenario determination interface (such as TelephonyManager.isWifiCallingAvailable) provided by the mobile platform pre-installed on the electronic device. Specifically, the second IMS SMS processing method provided in the embodiment of the present application can be: first, in the processor in the mobile platform pre-installed on the electronic device, determine whether the electronic device loaded with a certain user's SIM card is in a roaming state. If so, while continuing to use the card configuration (such as fallback_sms_not_allowed_in_roaming) provided by the mobile platform pre-installed on the electronic device, call the VoWiFi scenario determination interface (such as TelephonyManager.isWifiCallingAvailable) provided by the mobile platform pre-installed on the electronic device to determine whether the electronic device used by the user is in the VoWiFi scenario. If so, ensure that after these configuration items are pre-configured for the user's SIM card, the user can prevent the IMS SMS that fails to be sent in this VoWiFi scenario from being automatically retransmitted.

[0090] It should be noted that, since the IMS SMS processing method usually uses the method of calling the TelephonyManager.isWifiCallingAvailable interface to determine whether the electronic device is in a VoWiFi scenario, the result obtained by TelephonyManager.isWifiCallingAvailable when determining whether the electronic device is in a VoWiFi scenario is not accurate enough. This is because the interface not only determines the IMS registration format, but also determines whether there is voice calling capability, which affects the determination of the IMS registration format, resulting in an inaccurate determination result, which in turn affects the accuracy of the final processing result of the IMS SMS.

[0091] In some other embodiments, the present application also provides a third IMS SMS processing method, which is based on the above second IMS SMS processing method, and is improved and modified, and a new configuration item is added to control VoLTE, VoWiFi and both scenarios, and is no longer limited to the operation of not automatically falling back and resending the failed IMS SMS in the VoWiFi scenario. Figure 4 As shown, the specific implementation process of the IMS SMS processing method may include the following steps S401-S411:

[0092] S401: The SMS application sends an IMS SMS and determines that the sending status of the IMS SMS is sending failure.

[0093] In this embodiment, after the user generates an IMS message on the electronic device, the user sends the IMS message to the operator server through the SMS application to determine that the sending status of the IMS message is sending failure.

[0094] The sending status of the failed IMS SMS may include three different situations, namely: no resending (SEND_STATUS_ERROR), resending (SEND_STATUS_ERROR_RETRY), and fallback resending (SEND_STATUS_ERROR_FALLBACK).

[0095] S402: The operator server returns a sending status indicating a sending failure to the protocol layer (modem).

[0096] The sending result including the sending status of the sending failure may also be returned to the modem.

[0097] S403: The modem receives the sending status of sending failure returned by the operator server.

[0098] S404: The modem reports the sending result of the IMS SMS to the IMS application.

[0099] The sending result includes the sending status of the IMS short message sending failure.

[0100] S405: The IMS application receives the sending result reported by the modem.

[0101] S406: The IMS application determines that the sending status is fallback resending.

[0102] S407: The IMS application determines that the electronic device is in a roaming state.

[0103] Specifically, after the IMS application receives the sending result reported by the modem, it further determines that the sending status of the IMS SMS is fallback resend by using the customized logic for the sending status value in the original logic in the IMS application, and determines that the electronic device sending the IMS SMS is in roaming status, then continues to execute subsequent steps S408 or S409.

[0104] S408: When the IMS application determines that the mobile platform of the electronic device has configured the card-attached configuration of the IMS SMS without fallback, the sending state of the IMS SMS is changed to sending without fallback.

[0105] S409: When the IMS application determines that the mobile platform of the electronic device is not configured with the card-attached configuration for IMS SMS not to fall back, read the card-attached configuration item newly added in this application for controlling VoLTE, VoWiFi, or neither of the two scenarios to fall back and send, and when it is determined that the IMS registration format of the current electronic device matches the configuration value of the aforementioned scenario, modify the sending status of the IMS SMS to send without fallback.

[0106] Among them, the newly added card configuration item of this application is used to control VoLTE or VoWiFi or not fall back in both scenarios. The value of the configuration item can be set according to the requirements of the operator, and the embodiment of this application does not limit this. For example, assuming that the requirement of a certain operator is to ensure that IMS text messages cannot fall back and send in the VoLTE roaming scenario, the value configured for the custom configuration item can be 1. In this way, when the user's SIM card is registered with VoLTE, the user sends a text message, and the text message will be sent through IMS. If the sending fails, and the sending status returned by the operator server is fall back and resend. After the modem reports the sending result to the IMS application, the sending status and roaming status are first judged, and then the configuration of the mobile platform carried by the electronic device is read (boolean type, default is false). When the configuration item of the mobile platform is not configured, the default value can be taken. Then read the value configured by the custom configuration item, and the current configuration is 1.

[0107] Afterwards, in order to eliminate the influence of the inaccurate IMS standard judgment result caused by the VoWiFi scenario judgment interface TelephonyManager.isWifiCallingAvailable used in the second IMS SMS processing method, this embodiment is based on the IMS SMS scenario, and there is no influence on whether there is voice calling capability. Only the IMS standard is considered for judgment, and the TelephonyManager.getImsRegTechnologyForMmTel interface is used, that is, the IMS standard registered on the current user's SIM card is obtained by calling the TelephonyManager.getImsRegTechnologyForMmTel interface. If the current registration is VoLTE, the value corresponding to REGISTRATION_TECH_LTE (that is, the int value of the IMS standard corresponding to the registered VoLTE) will be returned. The IMS standard registered on the current SIM card matches the value configured in the custom configuration item, both of which are VoLTE, indicating that the current scenario is the scenario that cannot fall back as required by the operator, and the sending status of the IMS SMS "fall back and resend" needs to be changed to "no fall back and resend".

[0108] In addition, it should be noted that this application does not limit the type of newly added configuration. For example, it can be configured as an int type, and each number represents a scenario. For example, 0 can be used to represent the default value, indicating the stainless steel sending state; 1 can be used to represent that the VoLTE roaming scenario cannot fall back to send; 2 can be used to represent that the VoWiFi roaming scenario cannot fall back to send; 3 can be used to represent that the VoLTE and VoWiFi roaming scenarios cannot fall back to send. In addition, this application does not limit the content of the IMS registration format, which can be set according to actual conditions. For example, the IMS registration format can be set to three types, namely: no registration (REGISTRATION_TECH_NONE), registration to IMS via LTE (ie, VoLTE) (REGISTRATION_TECH_LTE), and registration to IMS via WLAN (ie, VoWiFi) (REGISTRATION_TECH_WLAN).

[0109] S410: The IMS application sends a sending result including the modified sending status of the IMS SMS to the framework logic of the framework layer (ImsSmsDispatcher).

[0110] S411: The framework layer triggers monitoring and performs corresponding operations according to the modified sending status of the IMS SMS, such as implementing resending without fallback.

[0111] In some other embodiments, the present application also provides a fourth IMS message processing method, such as Figure 5 As shown, the specific implementation process of the IMS SMS processing method may include the following steps S501-S509:

[0112] S501: The SMS application sends an IMS SMS and determines that the sending status of the IMS SMS is sending failure.

[0113] S502: Send the sending status of sending failure returned by the operator server to the protocol layer (modem).

[0114] S503: The modem receives the sending status of sending failure returned by the operator server.

[0115] S504: The modem sends the sending result of the IMS SMS to the IMS application.

[0116] S505: The IMS application receives the sending result reported by the modem.

[0117] It should be noted that the implementation process of steps S501-S505 is similar to the implementation process of the above steps S401-S405. For specific content, please refer to the above steps S401-S405, which will not be repeated here.

[0118] S506: When the IMS application determines that the sending status is not fallback resending, the sending status of the IMS SMS is not modified.

[0119] In this embodiment, different from the above step S406, when the IMS application determines that the sending status of the IMS SMS is not fallback resend according to the sending result reported by the received modem by using the customized logic for the sending status value in the original logic of the IMS application, it is not necessary to modify the sending status of the IMS SMS, and it is only necessary to ensure that the sending status remains unchanged to continue to execute the subsequent step S508. On the contrary, when the IMS application determines that the sending status of the IMS SMS is fallback resend according to the sending result reported by the received modem, it is necessary to continue to execute the subsequent step S507.

[0120] S507: When the IMS application determines that the sending status is fallback resending and determines that the electronic device is not in a roaming state, the sending status of the IMS short message is not modified.

[0121] In this embodiment, after receiving the sending result reported by the modem, the IMS application uses the customized logic for the sending status value in the original logic in the IMS application to determine that the sending status of the IMS SMS at this time is fallback retransmission, and judges that the electronic device sending the IMS SMS is not in roaming state. In this case, there is no need to modify the sending status of the IMS SMS, and it is only necessary to ensure that its sending status remains unchanged to continue to execute the subsequent step S508.

[0122] S508: The IMS application sends the sending result including the unmodified sending status of the IMS SMS to the framework logic of the framework layer (ImsSmsDispatcher).

[0123] S509: The framework layer triggers monitoring and performs corresponding operations according to the original sending status of the IMS SMS, such as implementing fallback resending, etc. (the message can be returned to the modem for processing at this time, which will not be described in detail here).

[0124] In some other embodiments, the present application also provides a fifth IMS SMS processing method, such as Figure 6 As shown, the specific implementation process of the IMS SMS processing method may include the following steps S601-S608:

[0125] S601: The SMS application sends an IMS SMS and determines that the sending status of the IMS SMS is successfully sent.

[0126] In this embodiment, after the user generates an IMS SMS on the electronic device, the user sends the IMS SMS to the operator server through the SMS application to determine that the sending status of the IMS SMS is successfully sent (SEND_STATUS_OK).

[0127] S602: Send the successful sending status returned by the operator server to the protocol layer (modem).

[0128] The sending result including the sending status of successful sending returned by the operator server may also be sent to the modem.

[0129] S603: The modem receives a successful sending status returned by the operator server.

[0130] S604: The modem sends the sending result of the IMS SMS to the IMS application.

[0131] The sending result includes the sending status of successful IMS SMS sending.

[0132] S605: The IMS application receives the sending result reported by the modem.

[0133] S606: When the IMS application determines that the sending status is successfully sent, the sending status of the IMS SMS is not modified.

[0134] Specifically, after the IMS application receives the sending result reported by the modem, when it further determines that the sending status of the IMS SMS is successfully sent (SEND_STATUS_OK), at this time, regardless of whether the card configuration item is configured, the sending status of the IMS SMS does not need to be modified, and the subsequent step S607 can be continued.

[0135] S607: The IMS application sends the sending result including the unmodified sending status of the IMS SMS to the framework logic of the framework layer (ImsSmsDispatcher).

[0136] S608: The framework layer triggers monitoring and performs corresponding operations according to the original sending status of the IMS SMS (i.e., successful sending) without falling back and resending.

[0137] In addition, the present application also provides an electronic device. For the hardware structure and software framework of the electronic device, please refer to Figure 2 and Figure 3 The electronic device includes a memory and a processor, the memory stores a computer program, and the processor is used to call and execute the computer program to implement the IMS SMS processing method provided in the above description.

[0138] The present application also provides a computer-readable storage medium in an embodiment, on which a computer program is stored. When the computer program is executed by a processor of a terminal device, it is used to implement the IMS SMS processing method provided in the above description.

[0139] As described above, the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. An IMS SMS processing method, characterized in that: Applied to electronic equipment, the method comprises: Get the sending status of the pending IP Multimedia System IMS SMS; When it is determined that the sending state of the IMS SMS is fallback and resending, and it is determined that the user sending the IMS SMS is in a roaming state, and it is determined that the mobile platform carried by the electronic device sending the IMS SMS is not configured with the card-attached configuration of the IMS SMS not falling back, read the value of the preset card-attached configuration item for scene control; the preset card-attached configuration item for scene control is a card-attached configuration item for controlling VoLTE or VoWiFi or controlling not falling back and sending in both scenarios; Obtaining the IMS registration standard registered on the SIM card of the user who sends the IMS SMS, and determining the configuration value corresponding to the IMS registration standard; When the configuration value corresponding to the IMS registration format matches the value of the preset card configuration item for scene control, the sending state of the IMS SMS is modified to no fallback resend, and the no fallback resend operation is performed according to the modified sending state of the IMS SMS.

2. The method according to claim 1, characterized in that: The sending status of the IMS SMS is successfully sent, not resent, resent or fallback resend.

3. The method according to claim 1, characterized in that The scenarios include VoLTE and VoWiFi; the preset card-based configuration item for scenario control is used to control not to fallback and resend the IMS text message in VoLTE, VoWiFi or both scenarios; the value content of the preset card-based configuration item for scenario control is set according to the needs of the operator.

4. The method according to claim 1, characterized in that: The obtaining of the IMS registration format registered on the SIM card of the user sending the IMS SMS includes: The IMS registration technology registered on the SIM card of the user who sends the IMS SMS is obtained by calling the TelephonyManager.getImsRegTechnologyForMmTel interface.

5. The method according to claim 1, characterized in that: After obtaining the sending status of the IP Multimedia System IMS SMS to be processed, the method further includes: The sending status of the IMS short message is determined by using the customized logic for the sending status value in the original logic in the IMS application.

6. The method according to claim 1 or 5, characterized in that: The method further comprises: When it is determined that the sending status of the IMS SMS is not to be resent, the sending status of the IMS SMS will not be modified, and a non-retransmission operation will be performed according to the original sending status of the IMS SMS; Alternatively, when it is determined that the sending status of the IMS SMS is fallback and resending, and it is determined that the electronic device sending the IMS SMS is not in roaming status, the sending status of the IMS SMS will not be modified, and the fallback and resending operation will be performed according to the original sending status of the IMS SMS.

7. The method according to claim 1 or 5, characterized in that: The method further comprises: When it is determined that the sending status of the IMS SMS is successfully sent, the sending status of the IMS SMS will not be modified, and a corresponding operation is performed according to the original sending status of the IMS SMS.

8. The method according to claim 1, characterized in that: The performing of the operation of not falling back and resending according to the modified sending status of the IMS short message includes: Send the modified sending status of the IMS SMS to the framework logic ImsSmsDispatcher of the framework layer; A monitoring function is triggered at the framework layer to perform a non-fallback resending operation according to the modified sending status of the IMS short message.

9. An electronic device, characterized in that: The electronic device comprises a memory and a processor, the memory stores a computer program, and the processor is used to call and execute the computer program to implement the method according to any one of claims 1 to 8.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by an electronic device, the method according to any one of claims 1 to 8 is implemented.