Method and device for establishing data service, terminal, electronic equipment and storage medium

CN121605751APending Publication Date: 2026-03-03BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202280004146.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2022-05-17
Publication Date
2026-03-03

AI Technical Summary

Technical Problem

Under the LTE network and VoLTE function, if the network does not respond during a call, the secondary card will continue to retransmit the data service request until the maximum number of times is reached, resulting in the user being unable to obtain data services and reducing the data service speed of the terminal device.

Method used

By determining whether the call has been hung up, if the call is hung up, the secondary card will stop initiating data service requests to the base station, release resources to establish data services on the primary card, and avoid invalid retransmissions.

Benefits of technology

It improves the speed at which user terminal equipment obtains data services during calls, reduces the number of retransmissions of data service requests, and improves the efficiency of data services.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121605751A_ABST
    Figure CN121605751A_ABST
Patent Text Reader

Abstract

The invention relates to a method and device for establishing a data service, and belongs to the technical field of wireless communication. The method comprises the following steps of: controlling a second card serving as an auxiliary card to initiate a data service request to a base station in a call establishment process, judging whether the call is hanged up in response to a response message that the data service request sent by the base station is not received within a preset time, and controlling the second card to stop initiating the data service request to the base station in response to the hanged-up of the call. According to the invention, when the second card as the auxiliary card does not receive the response message of the data service request sent by the base station within the preset time, whether the call of the second card is hanged up is judged, so that the second card is controlled to stop initiating the data service request to the base station after the call is hanged up; the second card can release the resources to establish the data service on the first card after stopping initiating the data service request, so that the speed of obtaining the data service by the user terminal equipment is increased.
Need to check novelty before this filing date? Find Prior Art

Description

Method, device, terminal, electronic device and storage medium for establishing data service Technical Field

[0001] The present disclosure relates to the field of wireless communication technologies, and in particular to a method, device, terminal, electronic device, and storage medium for establishing a data service. Background Art

[0002] Currently, dual-SIM user terminals, operating on LTE (Long Term Evolution) networks with VoLTE (Voice over Long-Term Evolution) enabled, set SIM card one as the primary SIM card and SIM card two as the secondary SIM card. When SIM card two makes or receives a call, SIM card two becomes the temporary primary SIM card to initiate a data connection request during the call establishment and start a timer to wait for a network response. However, if the network remains unresponsive, SIM card two will continue to retransmit the data service request until the maximum number of times is reached. During this period, the user cannot obtain data service, slowing down the speed at which the user terminal device can obtain data service.

[0003] Summary of the Invention

[0004] The present disclosure provides a method, apparatus, electronic device, and storage medium for establishing a data service, to at least address the problem in the related art that if the network remains unresponsive, SIM card 2 will continue to retransmit data service requests until a maximum number of times is reached, during which time the user cannot obtain data services, reducing the speed at which the user terminal device can obtain data services.

[0005] The technical solutions disclosed in this disclosure are as follows:

[0006] According to a first aspect of an embodiment of the present disclosure, a method for establishing a data service is provided, comprising: controlling Card 2, which serves as a secondary card, to initiate a data service request to a base station during a call establishment process; in response to not receiving a response message to the data service request sent by the base station within a preset time, determining whether the call is hung up; in response to the call being hung up, controlling Card 2 to stop initiating the data service request to the base station.

[0007] In one embodiment of the present disclosure, the method for establishing a data service further includes: in response to the call not being hung up, determining whether the number of times the data service request has been initiated has reached a preset number; in response to the number not reaching the preset number, controlling the card 2 to continue initiating the data service request to the base station.

[0008] In one embodiment of the present disclosure, the method for establishing a data service further includes: in response to the number of times reaching the preset number of times, controlling the second card to stop initiating the data service request to the base station.

[0009] In one embodiment of the present disclosure, after controlling the second card to stop initiating the data service request to the base station, the method for establishing the data service further includes: controlling the first card as the primary card to initiate the data service request to the base station.

[0010] In one embodiment of the present disclosure, determining whether the call is hung up includes: determining whether the value of the call flag of the card 2 is a preset value; in response to the value being the preset value, determining that the call is hung up; in response to the value not being the preset value, determining that the call is not hung up.

[0011] According to a second aspect of an embodiment of the present disclosure, a device for establishing a data service is provided, including: a first control module, configured to execute control of Card 2, which serves as a secondary card, to initiate a data service request to a base station during a call establishment process; a first judgment module, configured to execute a judgment on whether the call is hung up in response to not receiving a response message to the data service request sent by the base station within a preset time; and a second control module, configured to execute control of Card 2 to stop initiating the data service request to the base station in response to the call being hung up.

[0012] In one embodiment of the present disclosure, the device for establishing a data service also includes: a second judgment module, configured to execute, in response to the call not being hung up, a judgment on whether the number of times the data service request is initiated reaches a preset number; a third control module, configured to execute, in response to the number not reaching the preset number, control the card 2 to continue to initiate the data service request to the base station.

[0013] In one embodiment of the present disclosure, the apparatus for establishing a data service further includes: a fourth control module configured to control the card 2 to stop initiating the data service request to the base station in response to the number of times reaching the preset number of times.

[0014] In one embodiment of the present disclosure, the device for establishing a data service also includes: a fifth control module, which is configured to control card 1 as the main card to initiate the data service request to the base station after the second control module or the fourth control module controls card 2 to stop initiating the data service request to the base station.

[0015] In one embodiment of the present disclosure, the first judgment module is further configured to execute: judging whether the value of the call flag of the card 2 is a preset value; in response to the value being the preset value, judging that the call is hung up; in response to the value not being the preset value, judging that the call is not hung up.

[0016] According to a third aspect of an embodiment of the present disclosure, a terminal device is provided, comprising: an apparatus for establishing a data service as described in the second aspect of an embodiment of the present disclosure.

[0017] According to a fourth aspect of an embodiment of the present disclosure, an electronic device is provided, comprising: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to execute the instructions to implement the method described in the first aspect of the embodiment of the present disclosure.

[0018] According to a fifth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided. When instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the method described in the first aspect of the embodiment of the present disclosure.

[0019] The technical solution provided by the embodiments of the present disclosure brings at least the following beneficial effects: when Card 2, which serves as the secondary card, does not receive a response message to the data service request sent by the base station within a preset time, by judging whether the call of Card 2 is hung up, Card 2 is controlled to stop initiating data service requests to the base station after the call is hung up. Since Card 2 can release resources to establish data services on Card 1 after stopping initiating data service requests, the speed at which the user terminal device obtains data services is improved.

[0020] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] The accompanying drawings herein are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the description are used to explain the principles of the present disclosure, and do not constitute an improper limitation of the present disclosure.

[0022] Fig. 1 is a flow chart showing a method for establishing a data service according to an exemplary embodiment.

[0023] Fig. 2 is a flow chart showing another method for establishing a data service according to an exemplary embodiment.

[0024] Fig. 3 is a flow chart showing another method for establishing a data service according to an exemplary embodiment.

[0025] FIG4 is a schematic diagram showing a process of establishing a data service in a dual-SIM mobile phone with the VoLTE switch turned on, according to an exemplary embodiment.

[0026] Fig. 5 is a block diagram showing an apparatus for establishing a data service according to an exemplary embodiment.

[0027] Fig. 6 is a block diagram showing a terminal device according to an exemplary embodiment.

[0028] Fig. 7 is a block diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION

[0029] In order to enable ordinary persons in the art to better understand the technical solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.

[0030] It should be noted that the terms "first," "second," and the like in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or precedence. It should be understood that the terms used in this manner are interchangeable where appropriate so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and apparatuses consistent with certain aspects of the present disclosure as detailed in the appended claims.

[0031] FIG1 is a flow chart showing a method for establishing a data service according to an exemplary embodiment. As shown in FIG1 , the method for establishing a data service according to an embodiment of the present disclosure may include the following steps S101 - S103 .

[0032] S101, controlling the second card as the secondary card to initiate a data service request to the base station during the call establishment process.

[0033] It should be noted that the method for establishing a data service according to the present embodiment of the present disclosure may be performed by a user terminal device. User terminal devices may include, but are not limited to, mobile phones, tablet computers, laptops, desktop computers, vehicle-mounted terminals, smart home appliances, and the like. The method for establishing a data service according to the present embodiment of the present disclosure may be performed by the apparatus for establishing a data service according to the present embodiment of the present disclosure. The apparatus for establishing a data service according to the present embodiment of the present disclosure may be configured in any user terminal device to perform the method for establishing a data service according to the present embodiment of the present disclosure.

[0034] Those skilled in the art will appreciate that dual-SIM user terminals, operating on an LTE network with VoLTE enabled on both, can simultaneously use data services while on a call. This is because the call and data services on the user terminal device are handled via separate channels. SIM card 1 is set as the primary SIM card and SIM card 2 as the secondary SIM card. When SIM card 2 is in the process of establishing a call, SIM card 2 becomes the temporary primary SIM card and initiates a data service request to the base station to ensure that SIM card 2, the primary SIM card, can also use data services during the call establishment. A timer is started to wait for a response message from the base station. After receiving the data service request from the user terminal device, the base station sends a corresponding response message to the user terminal device. If SIM card 2 receives the response message before the timer expires, the timer is stopped and data service establishment begins. Once data service establishment is complete, SIM card 2 can use data services while on a call. If the call on SIM card 2 is terminated, the primary SIM card automatically switches back to SIM card 1, and data service is reestablished on SIM card 1. It should be noted that the timer can be T3482 or T3580, with T3482 and T3580 durations of 8 seconds and 16 seconds, respectively.

[0035] In the embodiments of the present disclosure, SIM Card 2, which serves as the secondary SIM card, is controlled to initiate a data service request to a base station during a call establishment process. The call establishment process refers to the process of making or receiving a VoLTE call. The base station may be a base station located in the area where the user terminal device is located. The data service request is used to ensure that the user terminal device can use data services while making a call.

[0036] S102 : In response to not receiving a response message to the data service request sent by the base station within a preset time, determining whether the call is hung up.

[0037] In the embodiments of the present disclosure, the preset time is the duration of the timer. If Card 2 does not receive a response message to the data service request sent by the base station within the preset time, i.e., within the timer duration, a determination is made as to whether Card 2's call has been disconnected, and subsequent processing is performed based on the determination result. If Card 2 receives a response message to the data service request sent by the base station within the preset time, data service for Card 2 is established. Once the data service is established, the user can use the data service while on the call with Card 2. It should be noted that the corresponding preset times for timers T3482 and T3580 are 8 seconds and 16 seconds, respectively.

[0038] S103: In response to the call being hung up, the second card is controlled to stop initiating a data service request to the base station.

[0039] In the embodiment of the present disclosure, based on the result of determining whether the call has been hung up in step S102, if the call is confirmed to have been hung up, Card 2 is controlled to stop initiating data service requests to the base station. It should be noted that when Card 2 is hung up, the primary card switches back to Card 1. At this time, controlling Card 2, as the secondary card, to initiate a data service request will not be able to establish data service and is meaningless. Moreover, when Card 2, as the secondary card, initiates a data service request, Card 1, as the primary card, cannot simultaneously initiate a data connection request. This results in the user terminal device being unable to immediately initiate data service establishment when Card 2 is hung up.

[0040] The method for establishing a data service provided by an embodiment of the present disclosure controls Card 2, which serves as a secondary card, to initiate a data service request to a base station during a call establishment process. In response to not receiving a response message to the data service request sent by the base station within a preset time, the method determines whether the call has been hung up. In response to the call being hung up, Card 2 is controlled to stop initiating data service requests to the base station. In the present disclosure, when Card 2, which serves as a secondary card, does not receive a response message to the data service request sent by the base station within a preset time, the method determines whether Card 2's call has been hung up, thereby controlling Card 2 to stop initiating data service requests to the base station after the call is hung up. Since Card 2 can release resources to establish data services on Card 1 after ceasing to initiate data service requests, the speed at which user terminal devices obtain data services is improved.

[0041] FIG2 is a flow chart showing another method for establishing a data service according to an exemplary embodiment. As shown in FIG2 , the method for establishing a data service according to an embodiment of the present disclosure may include the following steps.

[0042] S201, controlling the second card as the secondary card to initiate a data service request to the base station during the call establishment process.

[0043] Specifically, step S201 in this embodiment is the same as step S101 in the above embodiment, and will not be repeated here.

[0044] The “determining whether the call is hung up” in step S102 in the above embodiment may specifically include the following steps S202-204.

[0045] S202, determining whether the value of the call flag of card 2 is a preset value.

[0046] In the embodiments of the present disclosure, the preset value refers to a value pre-set to indicate that a call has been hung up. When Card 2 does not receive a response message to a data service request from the base station within a preset time, a determination is made as to whether the value of Card 2's call flag is the preset value, and subsequent processing is performed based on the determination result. Optionally, the preset value can be set to 1, i.e., the value is set to 1 when the call is hung up.

[0047] S203: In response to the value being a preset value, it is determined that the call is hung up.

[0048] In the embodiment of the present disclosure, according to the judgment result of step S202, if the value of the call flag of card 2 is a preset value, it is determined that the call is hung up. For example, if the value of the call flag of card 2 is 1, it is determined that the call is hung up.

[0049] S204: In response to the value not being the preset value, it is determined that the call has not been hung up.

[0050] In the embodiment of the present disclosure, according to the determination result of step S202, if the value of the call flag bit of card 2 is not a preset value, it is determined that the call has not been hung up. For example, if the value of the call flag bit of card 2 is not 1 (for example, a value of 0), it is determined that the call has not been hung up.

[0051] S205: In response to the call being hung up, the second card is controlled to stop initiating data service requests to the base station.

[0052] Specifically, step S205 in this embodiment is the same as step S103 in the above embodiment, and will not be repeated here.

[0053] The present disclosure provides a method for establishing a data service. The method controls Card 2, a secondary card, to initiate a data service request to a base station during a call establishment process. In response to not receiving a response message to the data service request sent by the base station within a preset time, the method determines whether the value of Card 2's call flag is a preset value. When the call is disconnected, the value is set to the preset value. If the value is the preset value, the call is disconnected. If the value is not the preset value, the call is not disconnected. In response to the disconnection, Card 2 is controlled to stop initiating data service requests from the base station. In the present disclosure, when Card 2, a secondary card, does not receive a response message to the data service request sent by the base station within a preset time, the method determines whether Card 2's call is disconnected, thereby controlling Card 2 to stop initiating data service requests from the base station after the call is disconnected. Since Card 2 stops initiating data service requests, resources can be released to establish data services on Card 1, thereby improving the speed at which user terminal devices obtain data services. Furthermore, by determining whether the call is disconnected, Card 1 can provide data services more quickly, further improving the speed at which user terminal devices obtain data services.

[0054] Furthermore, as shown in FIG3 , the above embodiment may further include the following steps:

[0055] S301: In response to the call not being hung up, determine whether the number of times the data service request is initiated reaches a preset number.

[0056] In the embodiments of the present disclosure, the preset number of times is the maximum number of data service requests that Card 2 can initiate to the base station during the call establishment process. Based on the result of determining whether the call has been disconnected, if the call has not been disconnected, a determination is made as to whether the number of data service requests initiated has reached the preset number, and subsequent processing is performed based on the determination result. Alternatively, the preset number of times can be five, meaning Card 2 can initiate a maximum of five data service requests to the base station during the call establishment process. In this case, when the timers are T3482 and T3580, the five data service requests will take a total of 40 seconds and 80 seconds, respectively.

[0057] S302: In response to the number of times not reaching the preset number of times, control the second card to continue to initiate a data service request to the base station.

[0058] In the embodiment of the present disclosure, based on the determination result of step 301, if the number of data service requests initiated has not reached the preset number, the second card is controlled to continue to initiate data service requests to the base station. It should be noted that while the second card continues to initiate data service requests to the base station and waits for a response message from the base station, the above step S202 is continued.

[0059] S303: In response to the number of times reaching the preset number of times, the second card is controlled to stop initiating the data service request to the base station.

[0060] In the embodiment of the present disclosure, according to the judgment result of step 301, when the number of times the data service request is initiated reaches a preset number, the control card 2 stops initiating the data service request to the base station.

[0061] Therefore, by judging whether the number of times the data service request is initiated reaches the preset number and performing corresponding processing, the speed at which the user terminal device obtains the data service is further improved.

[0062] Furthermore, in the above embodiment, after the control card 2 stops initiating the data service request to the base station, the following steps may be specifically included:

[0063] Control card 1 as the primary card to initiate a data service request to the base station.

[0064] In the embodiment of the present disclosure, after controlling Card 2 to stop initiating data service requests to the base station, Card 1, which serves as the primary card, is controlled to initiate data service requests to the base station. It should be noted that after Card 2 stops initiating data service requests to the base station, the primary card automatically switches back to Card 1, and data service is established on Card 1, which serves as the primary card.

[0065] Therefore, by controlling the card 1 as the main card to initiate a data service request to the base station after controlling the card 2 to stop initiating a data service request to the base station, the speed at which the user terminal device obtains data services is further improved.

[0066] To clearly illustrate the method for establishing a data service disclosed herein, the technical solution disclosed herein is described in detail below in conjunction with FIG4 . FIG4 is a schematic diagram of the process of establishing a data service on a dual-SIM phone with the VoLTE switch turned on. Currently, commercially available dual-SIM phones have the VoLTE switch turned on by default and do not have switch control. In the prior art, SIM card 1 (SIM1) is first set as the primary card and SIM card 2 (SIM2) is set as the secondary card. As shown in FIG4 , in step S401, SIM2 performs a call establishment process, i.e., makes / receives a call. In step S402, SIM2 becomes a temporary primary card. In step S403, SIM2 initiates a data service request to the base station. At the same time, timer T3482 is started in step S404. In step S406, the base station waits for a response message sent by the base station until timer T3482 expires. If a response message is received before timer T3482 expires, it indicates that SIM2 has successfully established the data service, as shown in step S405. Continuing, steps S405-S422 are the process of SIM2 initiating four subsequent retransmission data service requests. If no response message is received when timer T3482 expires, it is necessary to initiate the 1st retransmission data service request and still start timer 1st T3482 to wait for the response message. If a response message is received before 1st T3482 expires, it means that SIM2 has successfully established the data service. On the contrary, if no response message is received when 1st T3482 expires, SIM2 will initiate the 2nd retransmission data service request and still start timer 2nd T3482 to wait for the response message. If a response message is received before 2nd T3482 expires, it means that SIM2 has successfully established the data service. On the contrary, if no response message is received when 2nd T3482 expires, SIM2 will initiate the 3rd retransmission data service request and still start timer 3rd T3482 to wait for the response message. If a response message is received before 3rd T3482 expires, it means that SIM2 has successfully established the data service. If a response message is received before T3482 expires, SIM2 successfully establishes the data service. If a response message is not received before the third T3482 expires, SIM2 initiates a fourth retransmission of the data service request, again starting the fourth T3482 timer to wait for a response message. If a response message is received before the fourth T3482 expires, SIM2 successfully establishes the data service. If a response message is not received before the fourth T3482 expires, SIM2 has successfully initiated the data service request five times, reaching the preset number. As shown in steps S423-S424, SIM2 stops initiating data service requests, and the primary SIM is automatically switched back to SIM1, which initiates the data service request to establish the data service on SIM1.

[0067] Continuing with FIG. 4 , the technical solution proposed in the present disclosure corresponds to step S425 in FIG. 4 (step S425 merely illustrates the additional steps of the technical solution of the present disclosure over the prior art when SIM2's call is disconnected during the second T3482). After step S425, step S424 is executed. When SIM2's call is disconnected during the second T3482, SIM2 ceases to be the temporary primary SIM card and becomes the secondary SIM card. The primary SIM card automatically switches back to SIM1. Specifically, after the second retransmission data service request (2nd T3482) expires, SIM2 no longer retransmits the data service connection request until the preset number of retransmissions is reached. Instead, SIM2 directly stops initiating data service requests to free up resources, allowing SIM1, the primary SIM card, to initiate data service requests to establish data service on SIM1, thus reducing the number of retransmissions. Furthermore, if SIM2 does not disconnect during the second T3482, a third retransmission data service request is initiated, and subsequent steps are performed. If the call is hung up in the subsequent steps, the same process as when the call of SIM2 is hung up during the 2nd T3482 is performed.

[0068] FIG5 is a block diagram of an apparatus for establishing a data service according to an exemplary embodiment. As shown in FIG5 , the apparatus 500 for establishing a data service according to an embodiment of the present disclosure includes: a first control module 501 , a first judgment module 502 , and a second control module 503 .

[0069] The first control module 501 is configured to control the second card as the secondary card to initiate a data service request to the base station during the call establishment process.

[0070] The first determination module 502 is configured to execute, in response to not receiving a response message to the data service request sent by the base station within a preset time, a determination as to whether the call is hung up.

[0071] The second control module 503 is configured to control the second card to stop initiating a data service request to the base station in response to the call being hung up.

[0072] In one embodiment of the present disclosure, the device 500 for establishing a data service also includes: a second judgment module, configured to execute a judgment on whether the number of times a data service request is initiated reaches a preset number in response to the call not being hung up; a third control module, configured to execute a control card 2 to continue to initiate a data service request to the base station in response to the number not reaching the preset number.

[0073] In one embodiment of the present disclosure, the apparatus 500 for establishing a data service further includes: a fourth control module configured to control the second card to stop initiating a data service request to the base station in response to the number of times reaching a preset number of times.

[0074] In one embodiment of the present disclosure, the device 500 for establishing a data service further includes: a fifth control module, configured to control card 1 as the main card to initiate a data service request to the base station after the second control module or the fourth control module controls card 2 to stop initiating a data service request to the base station.

[0075] In one embodiment of the present disclosure, the first judgment module 502 is further configured to execute: judging whether the value of the call flag of card 2 is a preset value; in response to the value being the preset value, judging that the call is hung up; in response to the value not being the preset value, judging that the call is not hung up.

[0076] Regarding the apparatus in the above embodiment, the specific manner in which each module performs operations has been described in detail in the method embodiment related to the apparatus, and will not be elaborated on here.

[0077] An embodiment of the present disclosure provides an apparatus for establishing a data service. The apparatus controls Card 2, which serves as a secondary card, to initiate a data service request to a base station during a call establishment process. In response to not receiving a response message to the data service request sent by the base station within a preset time, the apparatus determines whether the call has been disconnected. In response to the disconnection, the apparatus controls Card 2 to stop initiating data service requests to the base station. In the present disclosure, when Card 2, which serves as a secondary card, does not receive a response message to the data service request sent by the base station within a preset time, the apparatus controls Card 2 to stop initiating data service requests to the base station after the call is disconnected. Since Card 2 stops initiating data service requests, resources can be released to establish data services on Card 1, thereby improving the speed at which user terminal devices obtain data services.

[0078] Fig. 6 is a block diagram showing a terminal device 600 according to an exemplary embodiment.

[0079] As shown in FIG6 , a terminal device 600 according to an embodiment of the present disclosure includes: an apparatus 500 for establishing a data service according to the above embodiment.

[0080] The terminal device provided by an embodiment of the present disclosure can execute the apparatus for establishing a data service as described above, controlling Card 2, which serves as a secondary card, to initiate a data service request to a base station during a call establishment process. In response to not receiving a response message to the data service request sent by the base station within a preset time, the terminal device determines whether the call has been hung up. In response to the call being hung up, the terminal device controls Card 2 to stop initiating data service requests to the base station. In the present disclosure, when Card 2, which serves as a secondary card, does not receive a response message to the data service request sent by the base station within a preset time, the terminal device determines whether Card 2's call has been hung up, thereby controlling Card 2 to stop initiating data service requests to the base station after the call is hung up. Since Card 2 can release resources to establish data services on Card 1 after ceasing to initiate data service requests, the speed at which the user terminal device obtains data services is improved.

[0081] Fig. 7 is a block diagram of an electronic device 700 according to an exemplary embodiment.

[0082] As shown in FIG7 , the electronic device 700 includes:

[0083] The memory 701 and the processor 702, a bus 703 connecting different components (including the memory 701 and the processor 702), the memory 701 stores a computer program, and when the processor 702 executes the program, the method for establishing a data service described above in the embodiment of the present disclosure is implemented.

[0084] Bus 703 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, or a local bus using any of a variety of bus architectures. Examples of these architectures include, but are not limited to, the Industry Standard Architecture (ISA) bus, the Micro Channel Architecture (MAC) bus, the Enhanced ISA bus, the Video Electronics Standards Association (VESA) local bus, and the Peripheral Component Interconnect (PCI) bus.

[0085] The electronic device 700 typically includes a variety of electronic device-readable media, which can be any available media that can be accessed by the electronic device 700, including volatile and non-volatile media, removable and non-removable media.

[0086] The memory 701 may also include computer system readable media in the form of volatile memory, such as random access memory (RAM) 704 and / or cache memory 705. The electronic device 700 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, the storage system 706 may be used to read and write non-removable, non-volatile magnetic media (not shown in FIG. 7 , commonly referred to as a “hard drive”). Although not shown in FIG. 7 , a disk drive for reading and writing to a removable non-volatile disk (such as a “floppy disk”) and an optical disk drive for reading and writing to a removable non-volatile optical disk (such as a CD-ROM, DVD-ROM or other optical medium) may be provided. In these cases, each drive may be connected to the bus 703 via one or more data medium interfaces. The memory 701 may include at least one program product having a set (e.g., at least one) of program modules that are configured to perform the functions of each embodiment of the present disclosure.

[0087] A program / utility 708 having a set (at least one) of program modules 707 may be stored, for example, in memory 701. Such program modules 707 include, but are not limited to, an operating system, one or more application programs, other program modules, and program data, each of which, or some combination thereof, may include an implementation of a network environment. Program modules 707 generally implement the functions and / or means of the embodiments described herein.

[0088] The electronic device 700 can also communicate with one or more external devices 709 (e.g., a keyboard, a pointing device, a display 710, etc.), one or more devices that enable a user to interact with the electronic device 700, and / or any device that enables the electronic device 700 to communicate with one or more other computing devices (e.g., a network card, a modem, etc.). Such communication can be performed via an input / output (I / O) interface 712. Furthermore, the electronic device 700 can also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) via a network adapter 713. As shown in FIG7 , the network adapter 713 communicates with other modules of the electronic device 700 via the bus 703. It should be understood that, although not shown in the figure, other hardware and / or software modules can be used in conjunction with the electronic device 700, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0089] The processor 702 executes various functional applications and data processing by running programs stored in the memory 701 .

[0090] It should be noted that the implementation process and technical principles of the electronic device of this embodiment refer to the aforementioned explanation of the device for establishing a data service in the embodiment of the present disclosure, and will not be repeated here.

[0091] The electronic device provided by the embodiment of the present disclosure can execute the method for establishing data services as described above, controlling Card 2, which serves as a secondary card, to initiate a data service request to a base station during a call establishment process, and in response to not receiving a response message to the data service request sent by the base station within a preset time, determining whether the call has been hung up, and in response to the call being hung up, controlling Card 2 to stop initiating data service requests to the base station. In the present disclosure, when Card 2, which serves as a secondary card, does not receive a response message to the data service request sent by the base station within a preset time, by determining whether Card 2's call has been hung up, the device controls Card 2 to stop initiating data service requests to the base station after the call is hung up. Since Card 2 can release resources to establish data services on Card 1 after ceasing to initiate data service requests, the speed at which the user terminal device obtains data services is improved.

[0092] In order to implement the above embodiments, the present disclosure also proposes a computer-readable storage medium.

[0093] When the instructions in the computer-readable storage medium are executed by the processor of the electronic device, the electronic device can perform the method for establishing a data service as described above. Optionally, the computer-readable storage medium can be a ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.

[0094] Other embodiments of the present disclosure will readily occur to those skilled in the art after considering the specification and practicing the invention disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art not disclosed herein. The description and examples are to be considered as exemplary only, with the true scope and spirit of the present disclosure being indicated by the following claims.

[0095] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes can be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims

1. A method for establishing a data service, characterized in that: include: Control SIM Card 2, which serves as the secondary SIM card, to initiate a data service request to the base station during call establishment; In response to not receiving a response message to the data service request sent by the base station within a preset time, determining whether the call is hung up; In response to the call being hung up, the second card is controlled to stop initiating the data service request to the base station.

2. The method according to claim 1, characterized in that Also includes: In response to the call not being hung up, determining whether the number of times the data service request has been initiated reaches a preset number; In response to the number of times not reaching the preset number of times, controlling the card 2 to continue initiating the data service request to the base station.

3. The method according to claim 2, characterized in that Also includes: In response to the number of times reaching the preset number of times, the card 2 is controlled to stop initiating the data service request to the base station.

4. The method according to any one of claims 1 to 3, characterized in that After controlling the card 2 to stop initiating the data service request to the base station, the method further includes: Controlling the card 1 as the primary card to initiate the data service request to the base station.

5. The method according to claim 1, wherein Determining whether the call is hung up includes: Determine whether the value of the call flag of the second card is a preset value; In response to the value being a preset value, determining that the call is hung up; In response to the value not being a preset value, it is determined that the call has not been hung up.

6. A device for establishing a data service, characterized in that: include: The first control module is configured to control the second card as the secondary card to initiate a data service request to the base station during the call establishment process; A first determining module is configured to determine whether the call is hung up in response to not receiving a response message to the data service request sent by the base station within a preset time; The second control module is configured to control the card 2 to stop initiating the data service request to the base station in response to the call being hung up.

7. The device according to claim 6, characterized in that Also includes: A second determining module is configured to determine whether the number of times the data service request is initiated reaches a preset number in response to the call not being hung up; The third control module is configured to control the second card to continue to initiate the data service request to the base station in response to the number of times not reaching the preset number of times.

8. The device according to claim 7, characterized in that Also includes: The fourth control module is configured to control the card 2 to stop initiating the data service request to the base station in response to the number of times reaching the preset number of times.

9. The device according to any one of claims 6 to 8, characterized in that Also includes: The fifth control module is configured to control the first card as the primary card to initiate the data service request to the base station after the second control module or the fourth control module controls the second card to stop initiating the data service request to the base station.

10. The device according to claim 6, characterized in that The first judgment module is further configured to execute: Determine whether the value of the call flag of the second card is a preset value; In response to the value being a preset value, determining that the call is hung up; In response to the value not being a preset value, it is determined that the call has not been hung up.

11. A terminal device, characterized in that: include: The apparatus for establishing a data service according to any one of claims 6 to 10.

12. An electronic device, characterized in that: include: processor; a memory for storing executable instructions for the processor; The processor is configured to execute the instructions to implement the method according to any one of claims 1 to 5.

13. A computer-readable storage medium, characterized in that When the instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to perform the method according to any one of claims 1 to 5.