Short message receiving method and device and electronic equipment

By judging and switching cells to ensure SMS reception, the problem of SMS reception failure is solved, and the success rate and user experience are improved.

CN119071744APending Publication Date: 2024-12-03VIVO MOBILE COMM CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411188867.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-28
Publication Date
2024-12-03

AI Technical Summary

Technical Problem

The failure to receive SMS messages is often due to poor network signals or the registration network does not support SMS sending, which affects the user experience.

Method used

By determining whether the access cell of the electronic device supports SMS services, if not, switch or reselect the target cell to receive SMS.

Benefits of technology

It improves the success rate of SMS reception and improves the user experience, especially when network conditions are poor, the cell can be adjusted in time to ensure SMS reception.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119071744A_ABST
    Figure CN119071744A_ABST
Patent Text Reader

Abstract

The invention discloses a short message receiving method and device and electronic equipment, and belongs to the technical field of electronic equipment. The short message receiving method comprises the steps of judging whether an access cell of the electronic equipment supports a short message service according to a short message service registration state and / or a network state under the condition that it is determined that a short message needs to be received; under the condition of determining that the access cell of the electronic equipment does not support the short message service, switching to or reselecting to a target cell from the access cell; and receiving the short message in the target cell.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the technical field of electronic equipment, and in particular, relates to a method, device and electronic equipment for receiving short messages. Background Art

[0002] With the continuous development of information technology, the number of smart terminal devices in the world is increasing, and the demand for security authentication of devices is becoming more and more common. Users need to use security authentication when logging into an APP or a website. SMS authentication is a relatively mainstream security authentication method. The most common method of SMS authentication is to receive a SMS verification code, and then the user uses the verification code for security verification within a certain period of time. Since the verification code is time-sensitive and has high security, it has a wide range of application scenarios. For such SMS terminals, no operation is required, only waiting for the SMS to be received. In actual application scenarios, it is easy to fail to receive SMS due to poor network signals or the registered network not supporting SMS sending, which affects the user experience. Summary of the invention

[0003] The embodiments of the present application provide a method, device and electronic device for receiving text messages, so as to improve the success rate of receiving text messages and enhance the user experience.

[0004] In a first aspect, an embodiment of the present application provides a method for receiving a text message, comprising:

[0005] In the case of determining that it is necessary to receive SMS messages, judging whether the access cell of the electronic device supports the SMS service according to the SMS service registration status and / or the network status;

[0006] When it is determined that the access cell of the electronic device does not support the SMS service, switching from the access cell to or reselecting to the target cell;

[0007] The text message is received in the target cell.

[0008] In a second aspect, an embodiment of the present application provides a text message receiving device, which is applied to an electronic device, including:

[0009] A judgment module, used to judge whether the access cell of the electronic device supports the SMS service according to the SMS service registration status and / or network status when it is determined that SMS needs to be received;

[0010] An execution module, configured to switch from the access cell to or reselect to the target cell when it is determined that the access cell of the electronic device does not support the SMS service;

[0011] The receiving module is used to receive short messages in the target cell.

[0012] In a third aspect, an embodiment of the present application provides an electronic device, comprising a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the programs or instructions are executed by the processor, the steps of the method described in the first aspect are implemented.

[0013] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented.

[0014] In a fifth aspect, an embodiment of the present application provides a chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the method described in the first aspect.

[0015] In a sixth aspect, an embodiment of the present application provides a computer program product, which is stored in a storage medium and is executed by at least one processor to implement the method described in the first aspect.

[0016] In an embodiment of the present application, when it is determined that text messages need to be received, whether the access cell of the electronic device supports the text message service is judged according to the text message service registration status and / or network status; when it is determined that the access cell of the electronic device does not support the text message service, the access cell is switched to or reselected to the target cell; and text messages are received in the target cell; thereby actively judging whether the access cell of the electronic device supports the text message service, and when the access cell of the electronic device does not support the text message service, the cell is switched or reselected in time, thereby improving the success rate of text message reception and improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Figure 1 It is a flowchart of a method for receiving text messages according to an embodiment of the present application;

[0018] Figure 2 It is one of the detailed flow diagrams of the embodiment of the present application;

[0019] Figure 3 This is the second detailed flow chart of the embodiment of the present application;

[0020] Figure 4 It is a module schematic diagram of a text message receiving device according to an embodiment of the present application;

[0021] Figure 5 It is one of the structural schematic diagrams of the electronic device according to the embodiment of the present application;

[0022] Figure 6 This is the second structural schematic diagram of the electronic device according to the embodiment of the present application. DETAILED DESCRIPTION

[0023] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.

[0024] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.

[0025] The text message receiving method, device and electronic device provided in the embodiments of the present application are described in detail below with reference to the accompanying drawings through specific embodiments and their application scenarios.

[0026] like Figure 1 As shown, an embodiment of the present application provides a method for receiving a text message, which is applied to an electronic device, and the method includes:

[0027] Step 101, when it is determined that a text message needs to be received, judging whether the access cell of the electronic device supports the text message service according to the text message service registration status and / or the network status;

[0028] Optionally, the SMS service registration status may be understood as the type of SMS service registered by the electronic device when accessing the network.

[0029] Optionally, the network status may be understood as the type of SMS service supported by the cell to which the electronic device is registered for access, or may be understood as the type of SMS service supported by the cell to which the electronic device is registered for access.

[0030] Optionally, the type of SMS service involved in the embodiments of the present application may include but is not limited to at least one of the following: IP Multimedia Subsystem (IMS) SMS service and non-access stratum (NAS) SMS service.

[0031] Step 102, when it is determined that the access cell of the electronic device does not support the SMS service, switching from the access cell to or reselecting to a target cell;

[0032] Optionally, the access cell mentioned in the embodiment of the present application refers to the cell currently accessed by the electronic device, that is, the cell accessed by the electronic device when determining whether the access cell supports the SMS service.

[0033] It should be noted that when the access cell of the electronic device does not support the SMS service, it means that the electronic device cannot receive SMS in the currently accessed cell, and the electronic device needs to switch or reselect the cell to access a new cell and then receive SMS.

[0034] It should be noted that in the present embodiment, if the electronic device is in a connected state, if it is determined that the access cell of the electronic device does not support the SMS service, it is necessary to switch from the access cell to the target cell; if the electronic device is in an idle state or an inactive state, if it is determined that the access cell of the electronic device does not support the SMS service, it is necessary to reselect from the access cell to the target cell.

[0035] Step 103, receiving a text message in the target cell;

[0036] It should be noted that in the embodiment of the present application, when it is determined that text messages need to be received, whether the access cell of the electronic device supports the text message service is judged according to the text message service registration status and / or network status; when it is determined that the access cell of the electronic device does not support the text message service, the access cell is switched to or reselected to the target cell; and text messages are received in the target cell; thereby actively judging whether the access cell of the electronic device supports the text message service, and when the access cell of the electronic device does not support the text message service, the cell is switched or reselected in time, thereby improving the success rate of text message reception and improving the user experience.

[0037] Optionally, the text message in the embodiment of the present application carries a verification code, and the verification code is used for verification processes such as login, authentication or registration.

[0038] Optionally, in one implementation, the determining that a text message needs to be received includes:

[0039] When it is detected that the application triggers the electronic device to receive the text message, it is determined that the text message needs to be received.

[0040] It should be noted that in this case, the electronic device monitors any application installed thereon in real time. If it is detected that a certain application triggers the electronic device to receive a text message, it is determined that the text message needs to be received.

[0041] Optionally, the application triggering the electronic device to receive SMS can be understood as the user triggering the sending of SMS on the network side through some operations. For example, the user opens application A, enters relevant information, and clicks a specific button in application A (for example, the specific button is the button related to SMS verification code such as get verification code, SMS verification code login, send verification code, login, authentication, registration, etc.), so it can be determined that the user will wait to receive SMS in the next period of time, thereby determining that the electronic device needs to receive SMS.

[0042] It should be noted that by monitoring the status of user operation applications, it is possible to promptly know whether SMS messages need to be received, thereby ensuring that the process of determining whether the access cell of the electronic device supports SMS services can be accurately started, thereby ensuring the effectiveness of the operation of the electronic device.

[0043] Optionally, in one implementation, when it is determined that a text message needs to be received, judging whether the access cell of the electronic device supports the text message service according to the text message service registration status and / or the network status includes:

[0044] If you are sure you need to receive text messages, start the timer;

[0045] After the timer is started, it is determined whether the access cell of the electronic device supports the SMS service according to the SMS service registration status and / or the network status.

[0046] It should be noted that the process of SMS verification usually has a time limit. If the time is exceeded, even if the SMS is received, it cannot be used for verification. Therefore, a timer is set in the embodiment of the present application. Only SMS received within the timer running time are valid, otherwise the SMS is invalid; this avoids the situation where the received SMS is invalid and causes verification failure.

[0047] In this case, as long as it is determined that a text message needs to be received, the electronic device starts a timer; for example, the electronic device detects that the user clicks a button related to receiving a verification code, and starts a timer, indicating that the electronic device needs to receive a related text message before the timer times out. Optionally, the timing duration of the timer can be set to a specific value such as 60s, 90s, etc., and the timing duration of the timer can be pre-configured or configured on the network side.

[0048] Optionally, in one implementation, the specific implementation of judging whether the access cell of the electronic device supports the SMS service according to the SMS service registration status includes:

[0049] Detecting whether the SMS service registration status of the electronic device is normal, if the SMS service registration status of the electronic device is normal, determining that the access cell of the electronic device supports the SMS service, if the SMS service registration status of the electronic device is abnormal, determining that the access cell of the electronic device does not support the SMS service;

[0050] Optionally, the normal SMS service registration status can be understood as the cell to which the electronic device is connected supports the type of SMS service registered by the electronic device when accessing the network. For example, if the cell to which the electronic device is connected supports type 1 SMS service, and the SMS service registered by the electronic device when accessing the network is type 1 SMS service, then it means that the cell to which the electronic device is connected supports the type of SMS service registered by the electronic device when accessing the network, that is, the SMS service registration status of the electronic device is normal. The abnormal SMS service registration status can be understood as the cell to which the electronic device is connected does not support the type of SMS service registered by the electronic device when accessing the network. For example, if the cell to which the electronic device is connected supports type 1 SMS service, and the SMS service registered by the electronic device when accessing the network is type 2 SMS service, then it means that the cell to which the electronic device is connected does not support the type of SMS service registered by the electronic device when accessing the network, that is, the SMS service registration status of the electronic device is abnormal.

[0051] Optionally, the specific implementation method of detecting whether the SMS service registration status of the electronic device in the access cell is normal in the embodiment of the present application includes: the electronic device initiates an IMS registration (Register) request, and the network carries +g.3gpp.smsip information in the Contact header field of the 200OK message in the reply, indicating that the electronic device has subscribed to the SMS service, and also indicating that the cell supports the IMS SMS service, that is, indicating that the SMS service registration status of the electronic device in the access cell is normal. If the electronic device does not receive a 200OK message after sending an IMS registration request, or the Contact header field in the received 200OK message does not carry +g.3gpp.smsip information, it means that the electronic device has not subscribed to the SMS service, that is, the cell does not support the IMS SMS service, that is, indicating that the SMS service registration status of the electronic device in the access cell is abnormal; Optionally, the above takes the IMS SMS service as an example, and the implementation of the NAS SMS service is similar to that of the IMS SMS service, which will not be repeated here.

[0052] Optionally, the electronic device can re-register by initiating a Register request again, which can refresh the service status of the electronic device on the network side. If the electronic device is disconnected from the network, the electronic device needs to re-station the network, which can also refresh the service status of the electronic device on the network side.

[0053] It should be noted here that if it is determined that the access cell of the electronic device supports SMS service, the electronic device continues to stay in the currently accessed cell and waits for SMS reception; if it is determined that the access cell of the electronic device does not support SMS service, it is necessary to switch or reselect the cell; optionally, the electronic device can initiate SMS service capability re-registration and switch to the target cell. For example, if it is IMS SMS capability, the electronic device can initiate an IMS re-registration request to update its own IMS SMS registration status; if it is NAS SMS capability, the electronic device can initiate a network re-attachment (Attach) request to update its own NAS SMS registration status.

[0054] Optionally, in one implementation, judging whether the access cell of the electronic device supports the SMS service according to the network status includes the following steps:

[0055] Step A11: obtaining the network status of the access cell of the electronic device, wherein the network status includes: the type of SMS service supported;

[0056] Optionally, the specific implementation method of obtaining the network status of the access cell of the electronic device includes: checking whether the currently accessed cell supports SMS services such as IMS SMS services and NAS SMS services, and the electronic device checks whether the 200OK message of the IMS registration request reply carries "+g.3gpp.smsip". If this field is present, it means that the cell supports IMS SMS services, otherwise it does not support it; the electronic device checks the non-access layer SMS service (SMS over NAS) function item in the 5G Registration Accept message sent by the network. If the function item indicates support, it means that the cell supports NAS SMS services, otherwise it does not support it. For other types of SMS services, similar means are used for judgment, which will not be repeated here. In this way, the electronic device can determine the type of SMS service supported by the currently accessed cell.

[0057] Step A12: according to the network status, a target duration of staying in the access cell is set, wherein the target duration is associated with the network status;

[0058] It should be noted that since the text messages received by the electronic device after the timer expires are invalid text messages, it is necessary to actively receive text messages before the timer. Optionally, in one implementation, the target duration needs to be less than the timing duration of the timer.

[0059] Optionally, in one implementation, when the SMS service supported by the access cell is of the first type, the target duration is the first duration; and when the SMS service supported by the access cell is of the first type and the second type, the target duration is the second duration;

[0060] The second duration is greater than the first duration.

[0061] Optionally, the first type and the second type are types of different SMS services.

[0062] Optionally, the first type may include one or more SMS services, and the second type may include one or more SMS services; for example, taking only IMS SMS services and NAS SMS services as an example, the first type is one of the IMS SMS services and the NAS SMS services, and the second type is the other of the IMS SMS services and the NAS SMS services.

[0063] It should be noted that by setting the duration for supporting multiple types of SMS services longer than the duration for supporting one type of SMS services, electronic devices can stay in a cell that only supports one type of SMS services for a shorter period of time, thereby avoiding the situation where the electronic device stays in a cell that only supports one type of SMS services for too long, resulting in unsuccessful SMS reception.

[0064] Step A13: If no SMS is received within the target time period, it is determined that the access cell does not support SMS service.

[0065] Optionally, in one implementation, the switching from the access cell to or reselecting to the target cell includes at least one of B11 and B12:

[0066] B11. When the SMS service supported by the access cell is of the first type, reselect or switch to a target cell supporting the SMS service of the second type;

[0067] This situation can be understood as when an electronic device does not receive the corresponding type of SMS service in the access cell, it needs to switch to a cell supporting other types of SMS services in time to wait for SMS reception, so as to improve the success rate of SMS reception.

[0068] For example, in this case, the electronic device stays in the access cell for a first time period, waiting to receive a text message; if the text message is not received within the first time period, it reselects or switches to another cell. Optionally, in one implementation, the text message is received in the cell reselected or switched to, and if the text message is received before the timer times out, it is determined that the text message is received successfully; if the text message is not received before the timer times out, it is determined that the text message reception fails. Optionally, in another implementation, the electronic device stays in another cell reselected or switched to for a time period A. If the text message is not received within the time period A, the electronic device can re-register with the network, reselect or switch the cell, and wait to receive the text message in the re-accessed cell. If the text message is received before the timer times out, it is determined that the text message is received successfully; if the text message is not received before the timer times out, it is determined that the text message reception fails.

[0069] B12. When the SMS service supported by the access cell is the first type and the second type, reselect or switch to a target cell supporting the first type and / or the second type of SMS service through a network re-registration process;

[0070] This situation can be understood as, because the access cell of the electronic device supports multiple types of SMS services, when the electronic device does not receive the corresponding type of SMS service in the access cell, it indicates that the currently registered network does not meet the SMS reception requirements. In order to ensure that the electronic device can receive SMS, the electronic device needs to re-register with the network in time to refresh the network status and access the new cell to wait for SMS reception, thereby improving the success rate of SMS reception; it should be noted here that in order to improve the reception success rate in the re-accessed cell, when the electronic device reselects or switches the cell through the network re-registration process, it should select from cells excluding the cell accessed before the network re-registration.

[0071] For example, in this case, the electronic device stays in the access cell for a second period of time, waiting to receive a text message; if no text message is received within the second period of time, it reselects or switches to another cell. Optionally, in one implementation method, the text message is received in the reselected or switched cell, and if the text message is received before the timer expires, it is determined that the text message is received successfully; if the text message is not received before the timer expires, it is determined that the text message reception has failed.

[0072] Optionally, the electronic device may determine whether the access cell of the electronic device supports the SMS service only based on the SMS service registration status; or it may determine whether the access cell of the electronic device supports the SMS service only based on the network status; of course, the electronic device may also determine whether the access cell of the electronic device supports the SMS service based on both the SMS service registration status and the network status; when the SMS service registration status and the network status are used in combination, the specific application scenario is as follows: the electronic device may first detect whether the SMS service registration status in the access cell is normal; if the SMS service registration status of the electronic device in the access cell is normal, obtain the network status of the access cell of the electronic device, stay in the access cell for a target time; if no SMS is received within the target time, it is determined that the access cell does not support the SMS service; if the SMS service registration status of the electronic device in the access cell is abnormal, it is determined that the access cell does not support the SMS service.

[0073] Through the above implementation, the initiative of the user's electronic device when receiving text messages for verification can be enhanced, thereby improving the success rate of text message reception.

[0074] Taking obtaining a verification code via SMS to log in as an example, the specific implementation of this application is described as follows.

[0075] Application 1: Determine whether to switch cells through SMS service registration status detection

[0076] like Figure 2 As shown, the specific implementation process includes:

[0077] Step 201: Determine whether the electronic device needs to receive a text message;

[0078] Optionally, this step is implemented by monitoring the user's operations on the target application. For example, when the user opens application A in the electronic device, enters relevant information, and clicks buttons related to receiving SMS verification codes, such as obtaining verification code, logging in with SMS verification code, sending verification code, and logging in, it is predicted that the user will receive SMS messages in the next period of time, thereby determining that the electronic device needs to receive SMS messages;

[0079] Optionally, if it is determined that a text message needs to be received, step 202 is executed.

[0080] Step 202, start the timer;

[0081] That is, when the electronic device detects that the user clicks a button related to receiving the SMS verification code, a timer is started, indicating that the electronic device needs to receive the relevant SMS before the timer times out. For example, the timing duration of the timer can be set to 60s, 90s, etc.

[0082] Step 203: The upper layer framework notifies the bottom layer of the electronic device of the timer, and the electronic device detects whether the registration status of the SMS service in the access cell is normal;

[0083] If the SMS service registration status of the electronic device in the access cell is normal, execute step 204, otherwise execute step 205;

[0084] Step 204: Continue to stay in the currently connected cell, wait for SMS reception, and determine whether the SMS is received successfully;

[0085] If the reception is successful before the timer times out, execute step 206, otherwise, execute step 207;

[0086] Step 205: Initiate re-registration of the SMS service capability, wait for SMS reception in the target cell to be switched to, and determine whether the SMS is received successfully;

[0087] If the reception is successful before the timer times out, execute step 206, otherwise execute step 207;

[0088] Step 206, prompting that the SMS verification code is successfully received;

[0089] Step 207, prompting that the SMS verification code reception failed;

[0090] That is, if the electronic device does not receive the text message before the timer times out, it is determined that the text message reception fails.

[0091] Application 2: Determine whether to switch cells based on network status

[0092] like Figure 3 As shown, the specific implementation process includes:

[0093] Step 301: Determine whether the electronic device needs to receive a text message;

[0094] Optionally, this step is implemented by monitoring the user's operations on the target application. For example, when the user opens application A in the electronic device, enters relevant information, and clicks buttons related to receiving SMS verification codes, such as obtaining verification code, logging in with SMS verification code, sending verification code, and logging in, it is predicted that the user will receive SMS messages in the next period of time, thereby determining that the electronic device needs to receive SMS messages;

[0095] Optionally, if it is determined that a text message needs to be received, step 302 is executed.

[0096] Step 302: Start the timer;

[0097] That is, when the electronic device detects that the user clicks a button related to receiving the SMS verification code, a timer is started, indicating that the electronic device needs to receive the relevant SMS before the timer times out. For example, the timing duration of the timer can be set to 60s, 90s, etc.

[0098] Step 303: The upper layer framework notifies the bottom layer of the electronic device of the timer, obtains the network status of the access cell of the electronic device, and determines whether the access cell supports only one type of SMS service;

[0099] Optionally, in this application case, only two SMS services, namely, the IMS SMS service and the NAS SMS service, are taken as an example.

[0100] If the access cell supports only one type of SMS service, execute step 304, otherwise, execute step 308;

[0101] Step 304: The electronic device stays in the currently connected cell for a certain first time period, waits for a text message to be received, and determines whether the text message is received;

[0102] The first duration is smaller than the timing duration of the timer.

[0103] If the SMS is received within the first time period, then execute step 305, otherwise execute step 306;

[0104] Step 305, prompting that the SMS verification code is successfully received;

[0105] Step 306: The electronic device selects a cell supporting another type of SMS service by reselecting or switching, and determines whether a SMS message is received before the receiving timer times out.

[0106] If the SMS is successfully received before the timer times out, execute 305, otherwise, execute step 307;

[0107] Step 307, prompting that the SMS verification code reception failed;

[0108] Step 308: The electronic device stays in the cell currently accessed for a second time period, waits for a text message to be received, and determines whether the text message is received;

[0109] The second duration is less than the timing duration of the timer;

[0110] If the text message is received within the second time period, then execute step 305, otherwise execute step 309;

[0111] Step 309: The electronic device re-registers with the network, updates its own status information in the network's Home Location Register (HLR) or Visitor Location Register (VLR), and determines whether a text message is received before the timer times out.

[0112] If the SMS is successfully received before the timer times out, execute 305 ; otherwise, execute step 307 .

[0113] It should also be noted here that in the above application scenarios, if the electronic device receiving the SMS verification code and the electronic device filling in the verification code are not the same, information can be transmitted through the interconnection between electronic devices, that is, the device receiving the SMS verification code executes the above process, and then after receiving the verification code, sends the verification code to another electronic device.

[0114] It should be noted that the embodiments of the present application can reduce the disadvantage of passive waiting of electronic devices in the scenario of receiving text messages. The implementation scheme of the embodiments of the present application actively detects whether the access cell supports the text message service through the electronic device, and timely adjusts the access cell when the access cell does not support the text message service, which can improve the success rate of user text message reception.

[0115] The SMS receiving method provided in the embodiment of the present application can be executed by a SMS receiving device or a control module in the SMS receiving device for executing the SMS receiving method. In the embodiment of the present application, the SMS receiving device executing the SMS receiving method is taken as an example to illustrate the SMS receiving device provided in the embodiment of the present application.

[0116] like Figure 4 As shown, at least one embodiment of the present application further provides a text message receiving device, which is applied to an electronic device, including:

[0117] The judgment module 401 is used to judge whether the access cell of the electronic device supports the SMS service according to the SMS service registration status and / or network status when it is determined that SMS needs to be received;

[0118] An execution module 402 is used to switch from the access cell to or reselect to a target cell when it is determined that the access cell of the electronic device does not support the SMS service;

[0119] The receiving module 403 is used to receive short messages in the target cell.

[0120] Optionally, the judging module 401 includes:

[0121] A first acquisition unit is used to acquire a network status of an access cell of the electronic device, wherein the network status includes: a type of SMS service supported;

[0122] A first execution unit, configured to determine a target duration of stay in an access cell according to the network state, wherein the target duration is associated with the network state;

[0123] The determination unit is configured to determine that the access cell does not support the SMS service if no SMS is received within the target time period.

[0124] Optionally, when the SMS service supported by the access cell is of the first type, the target duration is the first duration; when the SMS service supported by the access cell is of the first type and the second type, the target duration is the second duration;

[0125] The second duration is greater than the first duration.

[0126] Optionally, the execution module 402 includes at least one of the following:

[0127] A second execution unit is used to reselect or switch to a target cell supporting a second type of SMS service when the SMS service supported by the access cell is of the first type;

[0128] A third execution unit is configured to reselect or switch to a target cell supporting the first type and / or the second type of SMS service through a network re-registration process when the SMS service supported by the access cell is the first type and the second type;

[0129] The first type and the second type are types of different SMS services.

[0130] Optionally, the device further comprises:

[0131] The determination module is used to determine that a text message needs to be received when it is detected that the application triggers the electronic device to receive the text message.

[0132] It should be noted that the device embodiment corresponds to the above method, and all implementation methods in the above method embodiment are applicable to the device embodiment and can achieve the same technical effect.

[0133] The SMS receiving device in the embodiment of the present application can be an electronic device, or a component in the electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal, or other devices other than a terminal. Exemplarily, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, a vehicle-mounted electronic device, a mobile Internet device (Mobile Internet Device, MID), an augmented reality (augmented reality, AR) / virtual reality (virtual reality, VR) device, a robot, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), etc., and can also be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.

[0134] The SMS receiving device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.

[0135] The SMS receiving device provided in the embodiment of the present application can achieve Figure 1 The various processes implemented by the method embodiment and achieving the same technical effect are not described here to avoid repetition.

[0136] Alternatively, if Figure 5 As shown, an embodiment of the present application also provides an electronic device 500, including a processor 501 and a memory 502, wherein the memory 502 stores a program or instruction that can be executed on the processor 501, and when the program or instruction is executed by the processor 501, each step of the above-mentioned SMS receiving method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0137] Specifically, Figure 6 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application.

[0138] The electronic device 600 includes but is not limited to: a radio frequency unit 601, a network module 602, an audio output unit 603, an input unit 604, a sensor 605, a display unit 606, a user input unit 607, an interface unit 608, a memory 609 and at least some of the components of a processor 610.

[0139] Those skilled in the art will appreciate that the electronic device 600 may also include a power source (such as a battery) for supplying power to each component, and the power source may be logically connected to the processor 610 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Figure 6 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.

[0140] It should be understood that in the embodiment of the present application, the input unit 604 may include a graphics processor 6041 and a microphone 6042, and the graphics processor 6041 processes the image data of the static image or video obtained by the image capture device (such as a camera) in the video capture mode or the image capture mode. The display unit 606 may include a display panel 6061, and the display panel 6061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 607 includes a touch panel 6071 and at least one of other input devices 6072. The touch panel 6071 is also called a touch screen. The touch panel 6071 may include two parts: a touch detection device and a touch controller. Other input devices 6072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.

[0141] In the embodiment of the present application, after receiving downlink data from the access network device, the radio frequency unit 601 can transmit the data to the processor 610 for processing; in addition, the radio frequency unit 601 can send uplink data to the network side device. Generally, the radio frequency unit 601 includes but is not limited to an antenna, an amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, etc.

[0142] The memory 609 can be used to store software programs or instructions and various data. The memory 609 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instruction required for at least one function (such as a sound playback function, an image playback function, etc.), etc. In addition, the memory 609 may include a volatile memory or a non-volatile memory, or the memory 609 may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM) and a direct memory bus random access memory (DRRAM). The memory 609 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.

[0143] The processor 610 may include one or more processing units; optionally, the processor 610 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It is understandable that the modem processor may not be integrated into the processor 610.

[0144] The processor 610 is used for:

[0145] In the case of determining that it is necessary to receive SMS messages, judging whether the access cell of the electronic device supports the SMS service according to the SMS service registration status and / or the network status;

[0146] When it is determined that the access cell of the electronic device does not support the SMS service, switching from the access cell to or reselecting to the target cell;

[0147] The radio frequency unit 601 is used to receive short messages in the target cell.

[0148] Optionally, the processor 610 is configured to:

[0149] Acquire a network status of an access cell of the electronic device, the network status including: a type of SMS service supported;

[0150] a target duration of staying in an access cell according to the network status, the target duration being associated with the network status;

[0151] If no SMS is received within the target time period, it is determined that the access cell does not support the SMS service.

[0152] Optionally, when the SMS service supported by the access cell is of the first type, the target duration is the first duration; when the SMS service supported by the access cell is of the first type and the second type, the target duration is the second duration;

[0153] The second duration is greater than the first duration.

[0154] Optionally, the processor 610 is configured to implement at least one of the following:

[0155] When the SMS service supported by the access cell is of the first type, reselecting or switching to a target cell supporting the SMS service of the second type;

[0156] In a case where the SMS services supported by the access cell are the first type and the second type, reselecting or switching to a target cell supporting the first type and / or the second type of SMS services through a network re-registration process;

[0157] The first type and the second type are types of different SMS services.

[0158] Optionally, the processor 610 is configured to:

[0159] When it is detected that the application triggers the electronic device to receive the text message, it is determined that the text message needs to be received.

[0160] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, each process of the above-mentioned SMS receiving method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0161] The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk.

[0162] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned SMS receiving method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0163] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.

[0164] An embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the above-mentioned SMS receiving method embodiment and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0165] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.

[0166] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for enabling a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.

[0167] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.

Claims

1. A method for receiving a text message, characterized in that: include: In the case of determining that it is necessary to receive SMS messages, judging whether the access cell of the electronic device supports the SMS service according to the SMS service registration status and / or the network status; When it is determined that the access cell of the electronic device does not support the SMS service, switching from the access cell to or reselecting to the target cell; The text message is received in the target cell.

2. The method according to claim 1, characterized in that Determine whether the access cell of the electronic device supports SMS service according to the network status, including: Acquire a network status of an access cell of the electronic device, the network status including: a type of SMS service supported; a target duration of staying in an access cell according to the network state, the target duration being associated with the network state; If no SMS is received within the target time period, it is determined that the access cell does not support the SMS service.

3. The method according to claim 2, characterized in that In the case where the SMS service supported by the access cell is of the first type, the target duration is the first duration; in the case where the SMS service supported by the access cell is of the first type and the second type, the target duration is the second duration; The second duration is greater than the first duration.

4. The method according to any one of claims 1 to 3, characterized in that: The switching from the access cell to or reselecting to the target cell includes at least one of the following: When the SMS service supported by the access cell is of the first type, reselecting or switching to a target cell supporting the SMS service of the second type; In a case where the SMS services supported by the access cell are the first type and the second type, reselecting or switching to a target cell supporting the first type and / or the second type of SMS services through a network re-registration process; The first type and the second type are types of different SMS services.

5. The method according to any one of claims 1 to 3, characterized in that: The determining that a text message needs to be received includes: When it is detected that the application triggers the electronic device to receive the text message, it is determined that the text message needs to be received.

6. A short message receiving device, applied to an electronic device, characterized in that: include: A judgment module, used to judge whether the access cell of the electronic device supports the SMS service according to the SMS service registration status and / or network status when it is determined that SMS needs to be received; An execution module, configured to switch from the access cell to or reselect to the target cell when it is determined that the access cell of the electronic device does not support the SMS service; The receiving module is used to receive short messages in the target cell.

7. The device according to claim 6, characterized in that The judging module comprises: A first acquisition unit is used to acquire a network status of an access cell of the electronic device, wherein the network status includes: a type of SMS service supported; A first execution unit, configured to determine a target duration of stay in an access cell according to the network state, wherein the target duration is associated with the network state; The determination unit is configured to determine that the access cell does not support the SMS service if no SMS is received within the target time period.

8. The device according to claim 7, characterized in that In the case where the SMS service supported by the access cell is of the first type, the target duration is the first duration; in the case where the SMS service supported by the access cell is of the first type and the second type, the target duration is the second duration; The second duration is greater than the first duration.

9. The device according to any one of claims 6 to 8, characterized in that: The execution module includes at least one of the following: A second execution unit is used to reselect or switch to a target cell supporting a second type of SMS service when the SMS service supported by the access cell is of the first type; A third execution unit is configured to reselect or switch to a target cell supporting the first type and / or the second type of SMS service through a network re-registration process when the SMS service supported by the access cell is the first type and the second type; The first type and the second type are types of different SMS services.

10. The device according to any one of claims 6 to 8, characterized in that: Also includes: The determination module is used to determine that a text message needs to be received when it is detected that the application triggers the electronic device to receive the text message.

11. An electronic device, characterized in that: It includes a processor and a memory, wherein the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, the steps of the text message receiving method according to any one of claims 1 to 5 are implemented.

12. A readable storage medium, characterized in that: The readable storage medium stores a program or instruction, and when the program or instruction is executed by the processor, the steps of the text message receiving method according to any one of claims 1 to 5 are implemented.