Short message resending method, device, storage medium and electronic device

By judging whether the Modem chip supports the SMS resend mechanism, the SMS resend process is optimized, and the problem of reporting time is solved when the SMS is sent for a failure, improving the user experience and reducing the equipment performance burden.

CN115915035BActive Publication Date: 2025-04-18深圳开鸿数字产业发展有限公司
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202211342636.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-10-28
Publication Date
2025-04-18
Estimated Expiration
2042-10-28

AI Technical Summary

Technical Problem

In the prior art, when SMS sending fails, the Modem chip and SMS resend module use two SMS resend mechanisms at the same time, resulting in too long reporting time, affecting the user experience and adversely affecting the performance of the equipment.

Method used

By determining whether the Modem chip in the device supports the SMS resend mechanism, if not, directly start the SMS resend module for resend; if it is supported, priority will be given to the SMS resend mechanism in the Modem chip or the SMS resend module for resend, avoiding the use of the two mechanisms at the same time.

Benefits of technology

It effectively avoids the problem of long reporting time when text messages fail, improves user experience, and reduces the negative impact on device performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115915035B_ABST
    Figure CN115915035B_ABST
Patent Text Reader

Abstract

The embodiment of the present application provides a method, device, storage medium and electronic device for resending a short message, the method comprising: determining whether a modem chip in a device supports a short message resending mechanism; if not, when detecting information that a short message fails to be sent, starting a short message resending module in the device, and notifying the short message sending module to resend the short message based on the short message resending mechanism in the short message resending module; if supported, when detecting information that a short message fails to be sent, starting the short message resending mechanism in the modem chip, and notifying the short message sending module to resend the short message based on the short message resending mechanism in the modem chip, or starting the short message resending module in the device, and notifying the short message sending module to resend the short message based on the short message resending mechanism in the short message resending module. The embodiment of the present application can avoid using two short message resending mechanisms to resend the short message at the same time when there is also a short message resending mechanism inside the modem chip, thereby causing the problem of too long reporting time when the short message fails to be sent.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of Internet technology, and in particular to a method, device, storage medium and electronic device for resending short messages. Background Art

[0002] In the current telephone subsystem, the SMS service may fail to send due to network, base station and other reasons, so the SMS resending module came into being. However, the birth of new technology is also accompanied by the emergence of new problems. Since some modem manufacturers on the market have also implemented the SMS resending mechanism inside the modem chip, the SMS resending mechanism in the SMS resending module and the SMS resending mechanism inside the modem chip are repeated. This results in that when the SMS fails to send, the SMS sending module will resend the SMS based on these two SMS resending mechanisms. Since the SMS sending failure information must be reported to the SMS application after three resending failures, and the use of two SMS resending mechanisms to resend the SMS at the same time will result in a long reporting time when the SMS fails to send, affecting the user experience, and also causing adverse effects on the performance of the device itself.

[0003] Therefore, the prior art has defects and needs to be improved and developed. Summary of the invention

[0004] The embodiments of the present application provide a text message retransmission method, device, storage medium and electronic device. When a text message retransmission mechanism also exists inside a modem chip, it is possible to avoid using two text message retransmission mechanisms at the same time to retransmit text messages, thereby avoiding the problem of too long reporting time when text message sending fails.

[0005] The present application provides a method for resending a text message, the method comprising:

[0006] When it is detected that the SMS sending module sends a SMS, it is determined whether the modem chip in the device supports the SMS resending mechanism;

[0007] If not supported, when the message of SMS sending failure is detected, the SMS resending module in the device is started, and the SMS sending module is notified to resend the SMS based on the SMS resending mechanism in the SMS resending module;

[0008] If supported, when information about failed SMS sending is detected, the SMS resending mechanism in the modem chip is started, and the SMS sending module is notified to resend the SMS based on the SMS resending mechanism in the modem chip, or the SMS resending module in the device is started, and the SMS sending module is notified to resend the SMS based on the SMS resending mechanism in the SMS resending module.

[0009] In the SMS resending method described in this embodiment, before determining whether the modem chip in the device supports the SMS resending mechanism, the method further includes:

[0010] Starting the Modem hardware adaptation layer in the device;

[0011] Obtain information on whether the modem chip supports a short message resending mechanism;

[0012] According to the information, system attributes are set in the modem hardware adaptation layer, wherein the system attributes record information on whether the modem chip supports a short message resending mechanism.

[0013] In the SMS resending method described in this embodiment, the step of determining whether the modem chip in the device supports the SMS resending mechanism includes:

[0014] Obtaining the system properties;

[0015] Based on the system attributes, it is determined whether the Modem chip in the device supports a short message resending mechanism.

[0016] In the SMS resending method described in this embodiment, if supported, when detecting information that SMS sending fails, starting the SMS resending mechanism in the Modem chip, and notifying the SMS sending module to resend the SMS based on the SMS resending mechanism in the Modem chip, or starting the SMS resending module in the device, and notifying the SMS sending module to resend the SMS based on the SMS resending mechanism in the SMS resending module, further comprising:

[0017] Prioritize the Modem chip and the SMS resending module;

[0018] If supported, when information about a failure in sending a text message is detected, a text message resending mechanism in the modem chip is started, and the text message sending module is notified to resend the text message based on the text message resending mechanism in the modem chip, or the text message resending module in the device is started, and the text message sending module is notified to resend the text message based on the text message resending mechanism in the text message resending module, including:

[0019] If supported, obtaining the priority of the modem chip and the SMS resending module;

[0020] Compare the priority of the modem chip with the priority of the short message resending module;

[0021] If the priority of the modem chip is higher than the priority of the short message resending module, the short message resending mechanism in the modem chip is started, and the short message sending module is notified to resend the short message based on the short message resending mechanism in the modem chip;

[0022] If the priority of the modem chip is lower than the priority of the SMS resending module, the SMS resending module in the device is started, and the SMS sending module is notified to resend the SMS based on the SMS resending mechanism in the SMS resending module.

[0023] In the SMS resending method described in this embodiment, if the priority of the modem chip is lower than the priority of the SMS resending module, the SMS resending module in the device is started, and the SMS sending module is notified to resend the SMS based on the SMS resending mechanism in the SMS resending module, the method further includes:

[0024] The short message resending mechanism in the modem chip is deleted, and the result that the short message resending mechanism in the modem chip has been deleted is saved.

[0025] In the SMS resending method described in this embodiment, after deleting the SMS resending mechanism in the Modem chip and saving the result that the SMS resending mechanism in the Modem chip has been deleted, the method further includes:

[0026] When the message of the failure of the text message sending is detected, the text message resending module in the device is directly started, and the text message sending module is notified to resend the text message based on the text message resending mechanism in the text message resending module.

[0027] In the SMS resending method described in this embodiment, if it is not supported, when the SMS sending failure information is detected, the SMS resending module in the device is started, and the SMS sending module is notified to resend the SMS based on the SMS resending mechanism in the SMS resending module, and the method further includes:

[0028] The information that the modem chip does not support the short message resending mechanism is saved;

[0029] After the information that the modem chip does not support the short message resending mechanism is saved, the method further includes:

[0030] When the message of the failure of the text message sending is detected, the text message resending module in the device is directly started, and the text message sending module is notified to resend the text message based on the text message resending mechanism in the text message resending module.

[0031] An embodiment of the present application also provides a text message resending device, including a processor and a memory, wherein the memory stores a computer program, and the processor calls the computer program stored in the memory to execute the text message resending method as described in any of the above embodiments.

[0032] An embodiment of the present application further provides a computer-readable storage medium, wherein a computer program is stored in the computer-readable storage medium. When the computer program is executed on a computer, the computer executes the SMS resending method as described in any of the above embodiments.

[0033] An embodiment of the present application further provides an electronic device, which includes the SMS resending device described in the above embodiment.

[0034] The embodiment of the present application determines whether the modem chip in the device supports the SMS resending mechanism. If not, when detecting information that the SMS sending fails, the SMS resending module in the device is directly started, and the SMS sending module is notified to resend the SMS based on the SMS resending mechanism in the SMS resending module; if supported, when detecting information that the SMS sending fails, the SMS resending mechanism in the modem chip is started, and the SMS sending module is notified to resend the SMS based on the SMS resending mechanism in the modem chip, or the SMS resending module in the device is started, and the SMS sending module is notified to resend the SMS based on the SMS resending mechanism in the SMS resending module. In this way, when there is also an SMS resending mechanism inside the modem chip, it is possible to avoid using two SMS resending mechanisms to resend the SMS at the same time, thereby causing the problem of too long reporting time when the SMS sending fails. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present application, and those skilled in the art can obtain other drawings based on these drawings without creative work.

[0036] Figure 1 A flowchart of a method for resending text messages provided in an embodiment of the present application.

[0037] Figure 2 A schematic diagram of the structure of the SMS resending device provided in an embodiment of the present application.

[0038] Figure 3 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0039] 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. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present application.

[0040] The embodiment of the present application provides a method for resending a short message, and the method for resending a short message can be applied to an electronic device, such as a mobile phone.

[0041] See also Figure 1 , Figure 1 The flowchart of the SMS resending method provided in the embodiment of the present application is as follows. The SMS resending method is applied in an electronic device, and the method may include the following steps:

[0042] Step 101, when it is detected that the SMS sending module sends a SMS, it is determined whether the Modem chip in the device supports the SMS resending mechanism.

[0043] Among them, since some modem chips support the short message resending mechanism and some do not, it is necessary to determine whether the modem chip in the device supports the short message resending mechanism.

[0044] In some embodiments, before determining whether the modem chip in the device supports the SMS resending mechanism, the method further includes:

[0045] Starting the Modem hardware adaptation layer in the device;

[0046] Obtain information on whether the modem chip supports a short message resending mechanism;

[0047] According to the information, system attributes are set in the modem hardware adaptation layer, wherein the system attributes record information on whether the modem chip supports a short message resending mechanism.

[0048] The Modem hardware adaptation layer may be started through the RIL layer (Radio Interface Layer), thereby setting system properties in the Modem hardware adaptation layer.

[0049] In some embodiments, determining whether the modem chip in the device supports the SMS resending mechanism includes:

[0050] Obtaining the system properties;

[0051] Based on the system attributes, it is determined whether the Modem chip in the device supports a short message resending mechanism.

[0052] Among them, since the system properties record information on whether the modem chip supports the SMS resending mechanism, it is only necessary to obtain the system properties to determine whether the modem chip in the device supports the SMS resending mechanism based on the system properties.

[0053] Step 102: If not supported, when the SMS sending failure information is detected, the SMS resending module in the device is started, and the SMS sending module is notified to resend the SMS based on the SMS resending mechanism in the SMS resending module.

[0054] Since the modem chip does not support the SMS resending mechanism, it is necessary to start the SMS resending module in the device and resend the SMS through the SMS resending mechanism in the SMS resending module.

[0055] In some embodiments, if it is not supported, when the message of SMS sending failure is detected, the SMS resending module in the device is started, and the SMS sending module is notified to resend the SMS based on the SMS resending mechanism in the SMS resending module, and further includes:

[0056] The information that the modem chip does not support the short message resending mechanism is saved;

[0057] After the information that the modem chip does not support the short message resending mechanism is saved, the method further includes:

[0058] When the message of the failure of the text message sending is detected, the text message resending module in the device is directly started, and the text message sending module is notified to resend the text message based on the text message resending mechanism in the text message resending module.

[0059] Among them, by saving the information that the modem chip does not support the SMS resending mechanism, when the SMS sending failure is detected later, it can be concluded that the SMS should be resent through the SMS resending mechanism in the SMS resending module based on the saved information, and there is no need to judge whether the modem chip in the device supports the SMS resending mechanism, thereby saving device resources.

[0060] Step 103, if supported, when information about failed SMS sending is detected, the SMS resending mechanism in the modem chip is started, and the SMS sending module is notified to resend the SMS based on the SMS resending mechanism in the modem chip, or the SMS resending module in the device is started, and the SMS sending module is notified to resend the SMS based on the SMS resending mechanism in the SMS resending module.

[0061] Among them, since the modem chip also supports the SMS resending mechanism, in order to avoid the SMS resending module using two SMS resending mechanisms at the same time to resend the SMS, thereby causing the problem of too long reporting time when the SMS sending fails, at this time, only the SMS resending mechanism in the modem chip can be used to resend the SMS, or the SMS resending mechanism in the SMS resending module can be used to resend the SMS, one of the two can be selected.

[0062] In some embodiments, if supported, when a message of a failed SMS transmission is detected, the SMS retransmission mechanism in the Modem chip is started, and the SMS transmission module is notified to retransmit the SMS based on the SMS retransmission mechanism in the Modem chip, or the SMS retransmission module in the device is started, and the SMS transmission module is notified to retransmit the SMS based on the SMS retransmission mechanism in the SMS retransmission module, and the method further includes:

[0063] Prioritize the Modem chip and the SMS resending module;

[0064] If supported, when information about a failure in sending a text message is detected, a text message resending mechanism in the modem chip is started, and the text message sending module is notified to resend the text message based on the text message resending mechanism in the modem chip, or the text message resending module in the device is started, and the text message sending module is notified to resend the text message based on the text message resending mechanism in the text message resending module, including:

[0065] If supported, obtaining the priority of the modem chip and the SMS resending module;

[0066] Compare the priority of the modem chip with the priority of the short message resending module;

[0067] If the priority of the modem chip is higher than the priority of the short message resending module, the short message resending mechanism in the modem chip is started, and the short message sending module is notified to resend the short message based on the short message resending mechanism in the modem chip;

[0068] If the priority of the modem chip is lower than the priority of the SMS resending module, the SMS resending module in the device is started, and the SMS sending module is notified to resend the SMS based on the SMS resending mechanism in the SMS resending module.

[0069] Among them, the priorities of the modem chip and the SMS resending module can be pre-set according to actual needs. When the SMS sending fails, it is directly determined based on the priority whether to resend the SMS through the SMS resending mechanism in the modem chip or through the SMS resending mechanism in the SMS resending module.

[0070] In some embodiments, if the priority of the modem chip is lower than the priority of the SMS resending module, the SMS resending module in the device is started, and the SMS sending module is notified to resend the SMS based on the SMS resending mechanism in the SMS resending module, further comprising:

[0071] The short message resending mechanism in the modem chip is deleted, and the result that the short message resending mechanism in the modem chip has been deleted is saved.

[0072] Among them, since the priority of the modem chip is lower than the priority of the SMS resending module, the SMS resending mechanism in the SMS resending module will be used to resend the SMS in the future. In order to save equipment resources, the SMS resending mechanism in the modem chip can be deleted, and the result that the SMS resending mechanism in the modem chip has been deleted can be saved, so that it is no longer necessary to obtain the priority of the modem chip and the SMS resending module to determine which SMS resending mechanism to select to resend the SMS. From the saved result, it can be known that the SMS resending mechanism in the SMS resending module should be used to resend the SMS.

[0073] In some embodiments, after deleting the SMS resending mechanism in the Modem chip and saving the result that the SMS resending mechanism in the Modem chip has been deleted, the method further includes:

[0074] When the message of the failure of the text message sending is detected, the text message resending module in the device is directly started, and the text message sending module is notified to resend the text message based on the text message resending mechanism in the text message resending module.

[0075] Among them, since the SMS resending mechanism in the modem chip has been deleted, when the SMS sending failure is detected, the SMS resending module in the device is directly started, and the SMS is resent through the SMS resending mechanism in the SMS resending module. There is no need to judge the priority of the modem chip and the SMS resending module.

[0076] All the above optional technical solutions can be arbitrarily combined to form optional embodiments of the present application, which will not be described one by one here.

[0077] In specific implementation, the present application is not limited by the execution order of the various steps described. If no conflict occurs, some steps can be performed in other orders or simultaneously.

[0078] As can be seen from the above, the SMS resending method provided in the embodiment of the present application determines whether the modem chip in the device supports the SMS resending mechanism. If not, when the SMS sending failure information is detected, the SMS resending module in the device is directly started, and the SMS sending module is notified to resend the SMS based on the SMS resending mechanism in the SMS resending module; if supported, when the SMS sending failure information is detected, the SMS resending mechanism in the modem chip is started, and the SMS sending module is notified to resend the SMS based on the SMS resending mechanism in the modem chip, or the SMS resending module in the device is started, and the SMS sending module is notified to resend the SMS based on the SMS resending mechanism in the SMS resending module. In this way, when the SMS resending mechanism also exists inside the modem chip, it is possible to avoid using two SMS resending mechanisms to resend the SMS at the same time, thereby causing the problem of too long reporting time when the SMS sending fails.

[0079] The embodiment of the present application further provides a short message resending device, which can be integrated in an electronic device, such as a mobile phone or other electronic device.

[0080] See also Figure 2 , Figure 2 A schematic diagram of the structure of a text message resending device provided in an embodiment of the present application. The text message resending device 30 includes a memory 120, one or more processors 180, and one or more applications, wherein the one or more applications are stored in the memory 120 and configured to be executed by the processor 180; the memory 120 can be used to store applications and data. The applications stored in the memory 120 include executable code. The applications can be composed of various functional modules. The processor 180 executes various functional applications and data processing by running the applications stored in the memory 120. In addition, the memory 120 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, or other volatile solid-state storage devices. Accordingly, the memory 120 may also include a memory controller to provide the processor 180 with access to the memory 120.

[0081] The processor 180 is the control center of the device, and uses various interfaces and lines to connect various parts of the entire terminal, and executes various functions of the device and processes data by running or executing applications stored in the memory 120, and calling data stored in the memory 120, so as to monitor the device as a whole. Optionally, the processor 180 may include one or more processing cores; preferably, the processor 180 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs.

[0082] Specifically in this embodiment, a computer program is stored in the memory 120 , and the processor 180 executes the SMS resending method described in any of the above embodiments by calling the computer program stored in the memory 120 .

[0083] See also Figure 3 , Figure 3 The electronic device 1200 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application, and the electronic device can be used to implement the SMS resending method provided in the above embodiment. The electronic device 1200 can be an electronic device such as a mobile phone.

[0084] like Figure 3 As shown, the electronic device 1200 may include an RF (Radio Frequency) circuit 110, a memory 120 including one or more (only one is shown in the figure) computer-readable storage media, an input unit 130, a display unit 140, a sensor 150, an audio circuit 160, a transmission module 170, a processor 180 including one or more (only one is shown in the figure) processing cores, and a power supply 190. Those skilled in the art will understand that Figure 3 The structure of the electronic device 1200 shown in the figure does not constitute a limitation on the electronic device 1200, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.

[0085] The RF circuit 110 is used to receive and send electromagnetic waves, realize the mutual conversion between electromagnetic waves and electrical signals, and thus communicate with a communication network or other devices. The RF circuit 110 may include various existing circuit elements for performing these functions, such as an antenna, a radio frequency transceiver, a digital signal processor, an encryption / decryption chip, a user identity module (SIM) card, a memory, etc. The RF circuit 110 can communicate with various networks such as the Internet, an intranet, a wireless network, or communicate with other devices through a wireless network.

[0086] The memory 120 can be used to store software programs and modules, such as the program instructions / modules corresponding to the SMS resending method in the above-mentioned embodiment. The processor 180 can improve the recognition efficiency of human body motion gestures by running the software programs and modules stored in the memory 120, thereby executing various functional applications and data processing. The memory 120 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 120 may further include a memory remotely arranged relative to the processor 180, and these remote memories may be connected to the electronic device 1200 via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and a combination thereof.

[0087] The input unit 130 can be used to receive input digital or character information, and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control. Specifically, the input unit 130 may include a touch-sensitive surface 131 and other input devices 132. The touch-sensitive surface 131, also known as a touch display screen or a touch pad, can collect user touch operations on or near it (such as operations performed by users using fingers, styluses, or any other suitable objects or accessories on or near the touch-sensitive surface 131), and drive corresponding connection devices according to a pre-set program. Optionally, the touch-sensitive surface 131 may include a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into touch point coordinates, and then sends it to the processor 180, and can receive and execute commands sent by the processor 180. In addition, the touch-sensitive surface 131 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch-sensitive surface 131, the input unit 130 may further include other input devices 132. Specifically, other input devices 132 may include but are not limited to one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, etc.

[0088] The display unit 140 may be used to display information input by the user or information provided to the user and various graphical user interfaces of the electronic device 1200, which may be composed of graphics, text, icons, videos and any combination thereof. The display unit 140 may include a display panel 141. Optionally, the display panel 141 may be configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or the like. Further, the touch-sensitive surface 131 may cover the display panel 141. When the touch-sensitive surface 131 detects a touch operation on or near it, it is transmitted to the processor 180 to determine the type of touch event. Subsequently, the processor 180 provides a corresponding visual output on the display panel 141 according to the type of touch event. Although in Figure 3 In the embodiment, the touch-sensitive surface 131 and the display panel 141 are implemented as two independent components to realize the input and output functions. However, in some embodiments, the touch-sensitive surface 131 and the display panel 141 can be integrated to realize the input and output functions.

[0089] The electronic device 1200 may also include at least one sensor 150, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 141 according to the brightness of the ambient light, and the proximity sensor may turn off the display panel 141 and / or the backlight when the electronic device 1200 is moved to the ear. As a type of motion sensor, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally three axes), and can detect the magnitude and direction of gravity when stationary, which can be used for applications that identify the posture of the electronic device (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for other sensors such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc. that can also be configured in the electronic device 1200, they will not be repeated here.

[0090] The audio circuit 160, the speaker 161, and the microphone 162 can provide an audio interface between the user and the electronic device 1200. The audio circuit 160 can transmit the received audio data to the speaker 161 after converting the received audio data into an electrical signal, which is converted into a sound signal for output; on the other hand, the microphone 162 converts the collected sound signal into an electrical signal, which is received by the audio circuit 160 and converted into audio data, and then the audio data is output to the processor 180 for processing, and then sent to another terminal through the RF circuit 110, or the audio data is output to the memory 120 for further processing. The audio circuit 160 may also include an earplug jack to provide communication between an external headset and the electronic device 1200.

[0091] The electronic device 1200 can help users send and receive emails, browse web pages, and access streaming media through the transmission module 170 (such as a Wi-Fi module), which provides users with wireless broadband Internet access. Figure 3 The transmission module 170 is shown, but it is understandable that it is not an essential component of the electronic device 1200 and can be omitted as needed without changing the essence of the invention.

[0092] The processor 180 is the control center of the electronic device 1200. It uses various interfaces and lines to connect various parts of the entire electronic device 1200. By running or executing software programs and / or modules stored in the memory 120, and calling data stored in the memory 120, it executes various functions of the electronic device 1200 and processes data, thereby monitoring the human body as a whole. Optionally, the processor 180 may include one or more processing cores; in some embodiments, the processor 180 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, etc., and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 180.

[0093] The electronic device 1200 also includes a power supply 190 (such as a battery) for supplying power to various components. In some embodiments, the power supply can be logically connected to the processor 180 through a power management system, so that the power management system can manage charging, discharging, and power consumption management. The power supply 190 can also include any components such as one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, and power status indicators.

[0094] Although not shown, the electronic device 1200 may also include a camera (such as a front camera, a rear camera), a Bluetooth module, etc., which will not be described in detail here. Specifically in this embodiment, the display unit 140 of the electronic device 1200 is a touch screen display, and the electronic device 1200 also includes a memory 120, and one or more programs, wherein one or more programs are stored in the memory 120, and are configured to be executed by one or more processors 180. One or more programs include instructions for performing the following operations:

[0095] When it is detected that the SMS sending module sends a SMS, it is determined whether the modem chip in the device supports the SMS resending mechanism;

[0096] If not supported, when the message of SMS sending failure is detected, the SMS resending module in the device is started, and the SMS sending module is notified to resend the SMS based on the SMS resending mechanism in the SMS resending module;

[0097] If supported, when information about failed SMS sending is detected, the SMS resending mechanism in the modem chip is started, and the SMS sending module is notified to resend the SMS based on the SMS resending mechanism in the modem chip, or the SMS resending module in the device is started, and the SMS sending module is notified to resend the SMS based on the SMS resending mechanism in the SMS resending module.

[0098] In some embodiments, the processor 180 is used to start the modem hardware adaptation layer in the device;

[0099] Obtain information on whether the modem chip supports a short message resending mechanism;

[0100] According to the information, system attributes are set in the modem hardware adaptation layer, wherein the system attributes record information on whether the modem chip supports a short message resending mechanism.

[0101] In some embodiments, the processor 180 is used to obtain the system attribute;

[0102] Based on the system attributes, it is determined whether the Modem chip in the device supports a short message resending mechanism.

[0103] In some embodiments, the processor 180 is used to set the priority of the modem chip and the SMS resending module;

[0104] If supported, when information about a failure in sending a text message is detected, a text message resending mechanism in the modem chip is started, and the text message sending module is notified to resend the text message based on the text message resending mechanism in the modem chip, or the text message resending module in the device is started, and the text message sending module is notified to resend the text message based on the text message resending mechanism in the text message resending module, including:

[0105] If supported, obtaining the priority of the modem chip and the SMS resending module;

[0106] Compare the priority of the modem chip with the priority of the short message resending module;

[0107] If the priority of the modem chip is higher than the priority of the short message resending module, the short message resending mechanism in the modem chip is started, and the short message sending module is notified to resend the short message based on the short message resending mechanism in the modem chip;

[0108] If the priority of the modem chip is lower than the priority of the SMS resending module, the SMS resending module in the device is started, and the SMS sending module is notified to resend the SMS based on the SMS resending mechanism in the SMS resending module.

[0109] In some embodiments, the processor 180 is used to delete the SMS resending mechanism in the modem chip, and save the result that the SMS resending mechanism in the modem chip has been deleted.

[0110] In some embodiments, the processor 180 is used to directly start the SMS resending module in the device when detecting information that the SMS sending fails, and notify the SMS sending module to resend the SMS based on the SMS resending mechanism in the SMS resending module.

[0111] In some embodiments, the processor 180 is used to save the information that the modem chip does not support the SMS resending mechanism;

[0112] After the information that the modem chip does not support the short message resending mechanism is saved, the method further includes:

[0113] When the message of the failure of the text message sending is detected, the text message resending module in the device is directly started, and the text message sending module is notified to resend the text message based on the text message resending mechanism in the text message resending module.

[0114] As can be seen from the above, the embodiment of the present application provides an electronic device 1200, and the electronic device 1200 performs the following steps:

[0115] When it is detected that the SMS sending module sends a SMS, it is determined whether the modem chip in the device supports the SMS resending mechanism;

[0116] If not supported, when the message of SMS sending failure is detected, the SMS resending module in the device is started, and the SMS sending module is notified to resend the SMS based on the SMS resending mechanism in the SMS resending module;

[0117] If supported, when information about failed SMS sending is detected, the SMS resending mechanism in the modem chip is started, and the SMS sending module is notified to resend the SMS based on the SMS resending mechanism in the modem chip, or the SMS resending module in the device is started, and the SMS sending module is notified to resend the SMS based on the SMS resending mechanism in the SMS resending module.

[0118] An embodiment of the present application further provides a storage medium, wherein a computer program is stored in the storage medium. When the computer program is executed on a computer, the computer executes the SMS resending method described in any of the above embodiments.

[0119] It should be noted that, for the SMS resending method described in the present application, ordinary testers in the field can understand that the implementation of all or part of the process of the SMS resending method described in the embodiment of the present application can be completed by controlling the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium, such as a memory of an electronic device, and executed by at least one processor in the electronic device, and the execution process may include the process of the embodiment of the SMS resending method. Among them, the storage medium can be a disk, an optical disk, a read-only memory (ROM), a random access memory (RAM), etc.

[0120] The above is a detailed introduction to the SMS resending method, device, storage medium and electronic device provided in the embodiments of the present application. This article uses specific examples to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method and core ideas of the present application; at the same time, for those skilled in the art, according to the ideas of the present application, there will be changes in the specific implementation methods and application scopes. In summary, the content of this specification should not be understood as limiting the present application.

Claims

1. A method for resending a short message, characterized in that: The method comprises: When it is detected that the SMS sending module sends a SMS, it is determined whether the modem chip in the device supports the SMS resending mechanism; If not supported, when the message of SMS sending failure is detected, the SMS resending module in the device is started, and the SMS sending module is notified to resend the SMS based on the SMS resending mechanism in the SMS resending module; If supported, when a message indicating that the SMS sending fails is detected, the SMS resending mechanism in the modem chip is started, and the SMS sending module is notified to resend the SMS based on the SMS resending mechanism in the modem chip, or the SMS resending module in the device is started, and the SMS sending module is notified to resend the SMS based on the SMS resending mechanism in the SMS resending module; Wherein, before determining whether the modem chip in the device supports the short message retransmission mechanism, the method further includes: Starting the Modem hardware adaptation layer in the device; Obtain information on whether the modem chip supports a short message resending mechanism; According to the information, system attributes are set in the modem hardware adaptation layer, wherein the system attributes record information on whether the modem chip supports a short message resending mechanism.

2. The method for resending a short message as claimed in claim 1, characterized in that: The step of judging whether the modem chip in the device supports the short message resending mechanism includes: Obtaining the system properties; Based on the system attributes, it is determined whether the Modem chip in the device supports a short message resending mechanism.

3. The method for resending a short message as claimed in claim 1, characterized in that: If supported, when detecting information that a text message fails to be sent, starting the text message resending mechanism in the modem chip, and notifying the text message sending module to resend the text message based on the text message resending mechanism in the modem chip, or starting the text message resending module in the device, and notifying the text message sending module to resend the text message based on the text message resending mechanism in the text message resending module, further comprising: Prioritize the Modem chip and the SMS resending module; If supported, when information about a failure in sending a text message is detected, a text message resending mechanism in the modem chip is started, and the text message sending module is notified to resend the text message based on the text message resending mechanism in the modem chip, or the text message resending module in the device is started, and the text message sending module is notified to resend the text message based on the text message resending mechanism in the text message resending module, including: If supported, obtaining the priority of the modem chip and the SMS resending module; Compare the priority of the modem chip with the priority of the short message resending module; If the priority of the modem chip is higher than the priority of the short message resending module, the short message resending mechanism in the modem chip is started, and the short message sending module is notified to resend the short message based on the short message resending mechanism in the modem chip; If the priority of the modem chip is lower than the priority of the SMS resending module, the SMS resending module in the device is started, and the SMS sending module is notified to resend the SMS based on the SMS resending mechanism in the SMS resending module.

4. The method for resending a short message as claimed in claim 3, characterized in that: If the priority of the modem chip is lower than the priority of the short message resending module, the short message resending module in the device is started, and the short message sending module is notified to resend the short message based on the short message resending mechanism in the short message resending module, the method further includes: The short message resending mechanism in the modem chip is deleted, and the result that the short message resending mechanism in the modem chip has been deleted is saved.

5. The method for resending a short message as claimed in claim 4, characterized in that: After deleting the short message retransmission mechanism in the modem chip and saving the result that the short message retransmission mechanism in the modem chip has been deleted, the method further includes: When the message of the failure of the text message sending is detected, the text message resending module in the device is directly started, and the text message sending module is notified to resend the text message based on the text message resending mechanism in the text message resending module.

6. The method for resending a short message as claimed in claim 1, characterized in that: If it is not supported, when the message of the failure of the SMS sending is detected, the SMS resending module in the device is started, and the SMS sending module is notified to resend the SMS based on the SMS resending mechanism in the SMS resending module, and further includes: The information that the modem chip does not support the short message resending mechanism is saved; After the information that the modem chip does not support the short message resending mechanism is saved, the method further includes: When the message of the failure of the text message sending is detected, the text message resending module in the device is directly started, and the text message sending module is notified to resend the text message based on the text message resending mechanism in the text message resending module.

7. A short message resending device, characterized in that: It comprises a processor and a memory, wherein the memory stores a computer program, and the processor is used to execute the SMS resending method according to any one of claims 1 to 6 by calling the computer program stored in the memory.

8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed on a computer, the computer is enabled to execute the method for resending a short message according to any one of claims 1 to 6.

9. An electronic device, characterized in that: The electronic device comprises the short message resending device according to claim 7.

Citation Information

Patent Citations

  • Methods and apparatuses for management of SMS message identifications in multi-mode device

    CN103814592A