[go: up one dir, main page]

CN107371222B - Virtual card disabling method and device - Google Patents

Virtual card disabling method and device Download PDF

Info

Publication number
CN107371222B
CN107371222B CN201710413916.3A CN201710413916A CN107371222B CN 107371222 B CN107371222 B CN 107371222B CN 201710413916 A CN201710413916 A CN 201710413916A CN 107371222 B CN107371222 B CN 107371222B
Authority
CN
China
Prior art keywords
card
virtual card
terminal
data connection
closing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710413916.3A
Other languages
Chinese (zh)
Other versions
CN107371222A (en
Inventor
黄钱红
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201710413916.3A priority Critical patent/CN107371222B/en
Publication of CN107371222A publication Critical patent/CN107371222A/en
Application granted granted Critical
Publication of CN107371222B publication Critical patent/CN107371222B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. Transmission Power Control [TPC] or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0261Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level
    • H04W52/0274Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level by switching on or off the equipment or parts thereof
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44594Unloading
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/30Connection release
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The disclosure relates to a virtual card disabling method and device. The method comprises the following steps: acquiring a closing operation instruction, wherein the closing operation instruction indicates to close the data connection of the terminal; responding to the closing operation instruction, and determining whether the terminal establishes the data connection through a virtual card; and if the terminal establishes the data connection through the virtual card, closing the data connection and forbidding the virtual card. In the technical scheme, if the terminal establishes the data connection through the virtual card, the virtual card can be forbidden while the data connection is closed, so that the standby power consumption of the terminal is reduced, and the user experience is improved.

Description

Virtual card disabling method and device
Technical Field
The present disclosure relates to the field of electronic devices, and in particular, to a method and an apparatus for disabling a virtual card.
Background
With the development of communication technology, the technology of physical card virtualization is more and more widely applied. The entity card virtualization technology is to store data to be stored in an entity card into a mobile terminal, and realize the function of the entity card in the mobile terminal through the function of the virtual entity card of a software program or through an embedded entity card chip.
Disclosure of Invention
To overcome the problems in the related art, the embodiments of the present disclosure provide a method and an apparatus for disabling a virtual card. The technical scheme is as follows:
according to a first aspect of the embodiments of the present disclosure, there is provided a virtual card disabling method, including:
acquiring a closing operation instruction, wherein the closing operation instruction indicates to close the data connection of the terminal;
responding to the closing operation instruction, and determining whether the terminal establishes the data connection through a virtual card;
and if the terminal establishes the data connection through the virtual card, closing the data connection and forbidding the virtual card.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: if the terminal establishes the data connection through the virtual card, the virtual card can be forbidden while the data connection is closed, so that the standby power consumption of the terminal is reduced, and the user experience is improved.
In one embodiment, said disabling said virtual card comprises:
releasing the card slot resources occupied by the virtual card;
and closing the protocol stack occupied by the virtual card.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: when the virtual card is forbidden, the card slot resources occupied by the virtual card can be released, and meanwhile, the protocol stack occupied by the virtual card before is closed, so that the standby power consumption of the terminal is reduced, and the user experience is improved.
In one embodiment, the method further comprises:
determining whether an entity card which is not started exists in the terminal currently;
and if the terminal has the entity card which is not started currently, starting the entity card.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: after the virtual card is forbidden, if the terminal has an entity card which is not enabled, the entity card can be enabled by using the card slot resource and the protocol stack released by the forbidden virtual card, so that the standby rate of the entity card of the terminal is improved, and further the user experience is improved.
In one embodiment, the method further comprises:
and if the terminal does not have an entity card which is not started currently, closing the protocol stack occupied by the virtual card before.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: after the virtual card is forbidden, if the terminal does not have an entity card which is not enabled, the protocol stack occupied by the virtual card before can be closed, the standby power consumption of the terminal is reduced, and the user experience is further improved.
In one embodiment, the protocol stack is a modem protocol stack.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: after the virtual card is forbidden, if the terminal does not have an entity card which is not enabled, a modem protocol stack occupied by the virtual card can be closed, so that the standby power consumption of the terminal is reduced, and the user experience is improved.
According to a second aspect of the embodiments of the present disclosure, there is provided a virtual card disabling device, including:
the terminal comprises an acquisition module, a data connection module and a data connection module, wherein the acquisition module is used for acquiring a closing operation instruction which indicates to close the data connection of the terminal;
a first determining module, configured to determine, in response to the closing operation instruction, whether the terminal establishes the data connection through a virtual card;
and the processing module is used for closing the data connection and forbidding the virtual card when the terminal establishes the data connection through the virtual card.
In one embodiment, the processing module comprises:
the release submodule is used for releasing the card slot resources occupied by the virtual card;
and the closing submodule is used for closing the protocol stack occupied by the virtual card.
In one embodiment, the apparatus further comprises:
the second determination module is used for determining whether the terminal currently has an entity card which is not started;
and the enabling module is used for enabling the entity card if the terminal currently has the entity card which is not enabled.
In one embodiment, the apparatus further comprises:
and the closing module is used for closing the protocol stack occupied by the virtual card before if the terminal does not have the entity card which is not started currently.
In one embodiment, the protocol stack is a modem protocol stack.
According to a third aspect of the embodiments of the present disclosure, there is provided a virtual card disabling device, including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
acquiring a closing operation instruction, wherein the closing operation instruction indicates to close the data connection of the terminal;
responding to the closing operation instruction, and determining whether the terminal establishes the data connection through a virtual card;
and if the terminal establishes the data connection through the virtual card, closing the data connection and forbidding the virtual card.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
FIG. 1a is a flow diagram illustrating a method of virtual card disabling, according to an example embodiment.
FIG. 1b is a flow diagram illustrating a method of virtual card disabling, according to an example embodiment.
FIG. 1c is a flow diagram illustrating a method of virtual card disabling, according to an example embodiment.
Fig. 2 is a flow diagram illustrating a virtual card disabling method according to an example embodiment.
Fig. 3 is a flow diagram illustrating a method of virtual card disabling, according to an example embodiment.
Fig. 4a is a schematic structural diagram illustrating a virtual card disabling apparatus according to an exemplary embodiment.
Fig. 4b is a schematic structural diagram illustrating a virtual card disabling apparatus according to an exemplary embodiment.
Fig. 4c is a schematic structural diagram illustrating a virtual card disabling apparatus according to an exemplary embodiment.
Fig. 4d is a schematic structural diagram illustrating a virtual card disabling apparatus according to an exemplary embodiment.
Fig. 5 is a block diagram illustrating a structure of a virtual card disabling apparatus according to an exemplary embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
The technical scheme provided by the embodiment of the disclosure relates to a terminal, which can be a mobile phone, a tablet computer, an intelligent wearable device and other devices provided with a virtual card. In the related art, a virtual card provided in a terminal may implement dynamic enabling and disabling in a software-controlled manner. If the user needs to use the virtual card to surf the internet, the virtual card can be selected to be started on the operation interface of the virtual card. After the terminal opens the virtual card according to the user instruction, a card slot resource and a modem protocol stack can be allocated to the virtual card to realize the data transmission service of the virtual card. In this case, if the user closes the data service, the virtual card is still in a standby state only by disconnecting the modem protocol stack from the network, that is, the virtual card still occupies the card slot resource and the modem protocol stack of the terminal, so that the standby power consumption of the terminal is large, and the user experience is poor. In the technical scheme provided by the embodiment of the disclosure, if the terminal establishes the data connection through the virtual card, the virtual card can be disabled while the data connection is closed, so that the standby power consumption of the terminal is reduced, and further, the user experience is improved.
Fig. 1a is a flowchart illustrating a virtual card disabling method according to an exemplary embodiment, where the method is applied to a terminal, and the terminal may be a mobile phone, a tablet computer, a smart wearable device, or other devices provided with a virtual card. As shown in fig. 1a, the method comprises the following steps 101 to 103:
in step 101, a closing operation instruction is obtained, wherein the closing operation instruction instructs to close the data connection of the terminal.
For example, an operation interface for data connection of the terminal may be provided in the setting function of the terminal, and a closing option for data connection is provided on the operation interface. When the user needs to close the data connection, the user can click the closing option, and after the terminal detects the click, the terminal determines that the closing operation instruction input by the user is received.
Or, when the user needs to close the data connection of the terminal, the closing operation instruction may be input on another control terminal, and then the closing operation instruction is forwarded to the terminal needing to close the data connection through the control terminal.
In step 102, in response to the closing operation instruction, it is determined whether the terminal establishes a data connection through the virtual card.
For example, after determining that the closing operation instruction is obtained, the terminal may instruct a protocol stack that supports the current data connection service to send a request for disconnecting the data connection to the network, and obtain information of a data card connected to the protocol stack at the same time. The information of the data card comprises the identification of the data card which is currently connected with the protocol stack, and whether the current data connection is established through the virtual card or not can be determined through the identification of the data card.
In step 103, if the terminal establishes a data connection through the virtual card, the data connection is closed and the virtual card is disabled.
For example, when the virtual card is disabled, the protocol stack occupied by the virtual card may be closed while the card slot resources occupied by the virtual card are released.
Or, the card slot resources occupied by the virtual card can be released, the connection between the virtual card and the protocol stack occupied by the virtual card is disconnected, and the function of the protocol stack is not closed, so that the terminal can quickly start the virtual card when using the virtual card again, the time for waking up the protocol stack is saved, and the starting speed of the virtual card is improved.
According to the technical scheme provided by the embodiment of the disclosure, if the terminal establishes the data connection through the virtual card, the virtual card can be forbidden while the data connection is closed, so that the standby power consumption of the terminal is reduced, and the user experience is further improved.
In one embodiment, as shown in fig. 1b, the method further comprises the following steps 104 and 105:
in step 104, it is determined whether the terminal currently has an entity card that is not enabled.
In step 105, if there is an entity card that is not enabled currently in the terminal, the entity card is enabled.
For example, assuming that the terminal is currently provided with two card slots, after the terminal disables the virtual card, whether an entity card exists in the two card slots may be respectively detected, if an entity card exists in both of the two card slots, whether each entity card is already registered in the network may be respectively detected, and if an entity card that is not registered exists, the entity card is an entity card that is not enabled. After the terminal disables the virtual card, the entity card can be enabled by using the card slot resources and the protocol stack released by the disabled virtual card, so that the standby of the entity card is realized.
In the technical scheme provided by the embodiment of the disclosure, after the virtual card is forbidden, if the terminal has an entity card which is not enabled, the entity card can be enabled by using the card slot resource and the protocol stack released by the forbidden virtual card, so that the standby rate of the entity card of the terminal is improved, and further the user experience is improved.
In one embodiment, as shown in fig. 1c, the method further comprises step 106:
in step 106, if there is no entity card not enabled currently in the terminal, the protocol stack occupied by the virtual card before is closed.
Illustratively, the protocol stack is a modem protocol stack.
When the terminal disables the virtual card in step 103, the terminal may release the card slot resources occupied by the virtual card and simultaneously disconnect only the connection between the virtual card and the protocol stack occupied by the virtual card. At this time, the state machine of the protocol stack is in a card-free and service-free state, and the protocol stack in the state can traverse the card slots of the terminal to determine whether each card slot has an entity card which is not enabled.
Assuming that the terminal is currently provided with two card slots, namely a first card slot and a second card slot, after the protocol stack traverses the first card slot and the second card slot, if an unfired entity card is not detected, the protocol stack feeds back information of the unfired entity card to the terminal, and the terminal can close the protocol stack according to the information, so that the phenomenon that the power consumption is overlarge due to the fact that the protocol stack circularly detects the entity card is avoided; if the protocol stack detects that the first card slot has an entity card which is not enabled, the protocol stack can establish connection with the entity card of the first card slot, and the standby of the entity card is realized by using the card slot resources and the protocol stack which are disabled to be released by the virtual card.
In the technical scheme provided by the embodiment of the disclosure, after the virtual card is disabled, if the terminal does not have an entity card which is not enabled, the protocol stack occupied by the virtual card before can be closed, so that the standby power consumption of the terminal is reduced, and the user experience is further improved.
The implementation is described in detail below by way of several embodiments.
Fig. 2 is a flowchart illustrating a virtual card disabling method according to an exemplary embodiment, where an execution subject is a terminal, and as shown in fig. 2, the method includes the following steps 201 to 204:
in step 201, a close operation instruction is obtained, the close operation instruction instructs to close the data connection of the terminal, and step 202 is executed.
In step 202, in response to the closing operation instruction, determining whether the terminal establishes the data connection through the virtual card; if the terminal does not establish the data connection through the virtual card, step 203 is executed; if the terminal establishes the data connection through the virtual card, step 204 is executed.
In step 203, the data connection is closed and the process ends.
In step 204, the data connection is closed, the card slot resource occupied by the virtual card is released, and the protocol stack occupied by the virtual card is closed.
The embodiment of the disclosure provides a virtual card forbidding method, and if a terminal establishes a data connection through a virtual card, the virtual card can be forbidden while the data connection is closed, so that the standby power consumption of the terminal is reduced, and further, the user experience is improved.
Fig. 3 is a flowchart illustrating a virtual card disabling method according to an exemplary embodiment, where an execution subject is a terminal, and as shown in fig. 3, the method includes the following steps 301 to 307:
in step 301, a close operation instruction is obtained, the close operation instruction instructs to close the data connection of the terminal, and step 302 is executed.
In step 302, in response to the closing operation instruction, determining whether the terminal establishes the data connection through the virtual card; if the terminal does not establish the data connection through the virtual card, executing step 303; if the terminal establishes the data connection through the virtual card, go to step 304.
In step 303, the data connection is closed and the process ends.
In step 304, the data connection is closed and the virtual card is disabled, step 305 is performed.
For example, when the terminal disables the virtual card, the terminal may release the card slot resource occupied by the virtual card and disconnect the connection between the virtual card and the protocol stack occupied by the virtual card.
In step 305, determining whether an entity card which is not enabled currently exists in the terminal; if the terminal does not have an entity card which is not started currently, executing step 306; if the terminal currently has an entity card that is not enabled, go to step 307.
In step 306, the protocol stack previously occupied by the virtual card is closed, and the process ends.
In step 307, the non-enabled physical card is enabled.
The embodiment of the disclosure provides a virtual card forbidding method, and if a terminal establishes a data connection through a virtual card, the virtual card can be forbidden while the data connection is closed, so that the standby power consumption of the terminal is reduced, and further, the user experience is improved.
The following are embodiments of the disclosed apparatus that may be used to perform embodiments of the disclosed methods.
Fig. 4a is a schematic structural diagram illustrating a virtual card disabling apparatus 40 according to an exemplary embodiment, where the apparatus 40 may be implemented as part of or all of an electronic device through software, hardware, or a combination of the two. As shown in fig. 4a, the virtual card disabling apparatus 40 includes an obtaining module 401, a first determining module 402 and a processing module 403.
The obtaining module 401 is configured to obtain a closing operation instruction, where the closing operation instruction indicates to close a data connection of a terminal.
A first determining module 402, configured to determine, in response to the closing operation instruction, whether the terminal establishes the data connection through a virtual card.
A processing module 403, configured to close the data connection and disable the virtual card when the terminal establishes the data connection through the virtual card.
In one embodiment, as shown in fig. 4b, the processing module 403 includes a release sub-module 4031 and a close sub-module 4032.
The release submodule 4031 is configured to release the card slot resource occupied by the virtual card.
A closing submodule 4032, configured to close the protocol stack occupied by the virtual card.
In one embodiment, as shown in fig. 4c, the apparatus 40 further comprises a second determining module 404 and an enabling module 405.
Wherein, the second determining module 404 is configured to determine whether an entity card that is not enabled currently exists in the terminal.
An enabling module 405, configured to enable an entity card if an entity card that is not enabled currently exists in the terminal.
In one embodiment, as shown in FIG. 4d, the apparatus 40 further comprises a shutdown module 406.
The closing module 406 is configured to close the protocol stack occupied by the virtual card before the terminal currently has no entity card that is not enabled.
Illustratively, the protocol stack is a modem protocol stack.
The embodiment of the disclosure provides a virtual card disabling device, which can disable a virtual card when a data connection is closed if a terminal establishes the data connection through the virtual card, so that the standby power consumption of the terminal is reduced, and the user experience is improved.
The disclosed embodiment provides a virtual card disabling device, which includes:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
acquiring a closing operation instruction, wherein the closing operation instruction indicates to close the data connection of the terminal;
responding to the closing operation instruction, and determining whether the terminal establishes the data connection through a virtual card;
and if the terminal establishes the data connection through the virtual card, closing the data connection and forbidding the virtual card.
In one embodiment, the processor may be further configured to: releasing the card slot resources occupied by the virtual card; and closing the protocol stack occupied by the virtual card.
In one embodiment, the processor may be further configured to: determining whether an entity card which is not started exists in the terminal currently; and if the terminal has the entity card which is not started currently, starting the entity card.
In one embodiment, the processor may be further configured to: and if the terminal does not have an entity card which is not started currently, closing the protocol stack occupied by the virtual card before.
In one embodiment, the protocol stack is a modem protocol stack.
The embodiment of the disclosure provides a virtual card disabling device, which can disable a virtual card when a data connection is closed if a terminal establishes the data connection through the virtual card, so that the standby power consumption of the terminal is reduced, and the user experience is improved.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 5 is a block diagram illustrating a structure of a virtual card disabling apparatus 50, which is applicable to a terminal device, according to an exemplary embodiment. For example, the apparatus 50 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
The apparatus 50 may include one or more of the following components: processing component 502, memory 504, power component 506, multimedia component 508, audio component 510, input/output (I/O) interface 512, sensor component 514, and communication component 516.
The processing component 502 generally controls overall operation of the device 50, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 502 may include one or more processors 520 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 502 can include one or more modules that facilitate interaction between the processing component 502 and other components. For example, the processing component 502 can include a multimedia module to facilitate interaction between the multimedia component 508 and the processing component 502.
The memory 504 is configured to store various types of data to support operations at the apparatus 50. Examples of such data include instructions for any application or method operating on the device 50, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 504 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The power supply component 506 provides power to the various components of the device 50. The power components 506 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 50.
The multimedia component 508 includes a screen that provides an output interface between the device 50 and the user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 508 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the device 50 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 510 is configured to output and/or input audio signals. For example, audio component 510 includes a Microphone (MIC) configured to receive external audio signals when apparatus 50 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 504 or transmitted via the communication component 516. In some embodiments, audio component 510 further includes a speaker for outputting audio signals.
The I/O interface 512 provides an interface between the processing component 502 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 514 includes one or more sensors for providing various aspects of status assessment for the device 50. For example, the sensor assembly 514 may detect an open/closed state of the device 50, the relative positioning of the components, such as a display and keypad of the device 50, the sensor assembly 514 may also detect a change in the position of the device 50 or a component of the device 50, the presence or absence of user contact with the device 50, the orientation or acceleration/deceleration of the device 50, and a change in the temperature of the device 50. The sensor assembly 514 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 514 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 514 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 516 is configured to facilitate communication between the apparatus 50 and other devices in a wired or wireless manner. The device 50 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 516 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 516 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 50 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 504 comprising instructions, executable by the processor 520 of the apparatus 50 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
The disclosed embodiments provide a non-transitory computer-readable storage medium, where instructions, when executed by a processor of an apparatus 50, enable the apparatus 50 to perform the above-mentioned virtual card disabling method, where the method includes:
acquiring a closing operation instruction, wherein the closing operation instruction indicates to close the data connection of the terminal;
responding to the closing operation instruction, and determining whether the terminal establishes the data connection through a virtual card;
and if the terminal establishes the data connection through the virtual card, closing the data connection and forbidding the virtual card.
In one embodiment, said disabling said virtual card comprises: releasing the card slot resources occupied by the virtual card; and closing the protocol stack occupied by the virtual card.
In one embodiment, the method further comprises: determining whether an entity card which is not started exists in the terminal currently; and if the terminal has the entity card which is not started currently, starting the entity card.
In one embodiment, the method further comprises: and if the terminal does not have an entity card which is not started currently, closing the protocol stack occupied by the virtual card before.
In one embodiment, the protocol stack is a modem protocol stack.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (10)

1. A virtual card disabling method, comprising:
acquiring a closing operation instruction, wherein the closing operation instruction indicates to close the data connection of the terminal;
responding to the closing operation instruction, and determining whether the terminal establishes the data connection through a virtual card;
if the terminal establishes the data connection through the virtual card, closing the data connection and forbidding the virtual card;
the method further comprises the following steps:
determining whether an entity card which is not started exists in the terminal currently;
and if the terminal has the entity card which is not started currently, starting the entity card.
2. The method of claim 1, wherein the disabling the virtual card comprises:
releasing the card slot resources occupied by the virtual card;
and closing the protocol stack occupied by the virtual card.
3. The method of claim 1, further comprising:
and if the terminal does not have the entity card which is not started currently, closing the protocol stack occupied by the virtual card before.
4. The method of claim 3, wherein the protocol stack is a modem protocol stack.
5. A virtual card disabling apparatus, comprising:
the terminal comprises an acquisition module, a data connection module and a data connection module, wherein the acquisition module is used for acquiring a closing operation instruction which indicates to close the data connection of the terminal;
a first determining module, configured to determine, in response to the closing operation instruction, whether the terminal establishes the data connection through a virtual card;
the processing module is used for closing the data connection and forbidding the virtual card when the terminal establishes the data connection through the virtual card;
the device further comprises:
the second determination module is used for determining whether the terminal currently has an entity card which is not started;
and the enabling module is used for enabling the entity card if the terminal currently has the entity card which is not enabled.
6. The apparatus of claim 5, wherein the processing module comprises:
the release submodule is used for releasing the card slot resources occupied by the virtual card;
and the closing submodule is used for closing the protocol stack occupied by the virtual card.
7. The apparatus of claim 5, further comprising:
and the closing module is used for closing the protocol stack occupied by the virtual card before if the terminal does not have the entity card which is not started currently.
8. The apparatus of claim 7, wherein the protocol stack is a modem protocol stack.
9. A virtual card disabling apparatus, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
acquiring a closing operation instruction, wherein the closing operation instruction indicates to close the data connection of the terminal;
responding to the closing operation instruction, and determining whether the terminal establishes the data connection through a virtual card;
if the terminal establishes the data connection through the virtual card, closing the data connection and forbidding the virtual card;
the processor is further configured to:
determining whether an entity card which is not started exists in the terminal currently;
and if the terminal has the entity card which is not started currently, starting the entity card.
10. A computer-readable storage medium having stored thereon computer instructions, which when executed by a processor, perform the steps of the method of any one of claims 1 to 4.
CN201710413916.3A 2017-06-05 2017-06-05 Virtual card disabling method and device Active CN107371222B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710413916.3A CN107371222B (en) 2017-06-05 2017-06-05 Virtual card disabling method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710413916.3A CN107371222B (en) 2017-06-05 2017-06-05 Virtual card disabling method and device

Publications (2)

Publication Number Publication Date
CN107371222A CN107371222A (en) 2017-11-21
CN107371222B true CN107371222B (en) 2021-01-05

Family

ID=60305275

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710413916.3A Active CN107371222B (en) 2017-06-05 2017-06-05 Virtual card disabling method and device

Country Status (1)

Country Link
CN (1) CN107371222B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109275124B (en) * 2018-08-24 2021-09-14 Tcl移动通信科技(宁波)有限公司 Mobile terminal Bluetooth protocol stack loading processing method, mobile terminal and storage medium
CN110083220A (en) * 2019-04-30 2019-08-02 努比亚技术有限公司 A kind of power-saving processing method and wearable device
CN111107219B (en) * 2019-11-20 2021-06-22 维沃移动通信有限公司 Control method and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1909517A2 (en) * 2000-09-07 2008-04-09 Nokia Corporation Management of portable radio telephones
WO2014071725A1 (en) * 2012-11-09 2014-05-15 华为技术有限公司 Soft sim card activating method and network-joining method and terminal, and network access device
CN106210023A (en) * 2016-07-05 2016-12-07 努比亚技术有限公司 Virtual SIM card synchronization management method and terminal
CN106792640A (en) * 2016-12-20 2017-05-31 北京小米移动软件有限公司 The communication means of virtual SIM card, mobile terminal and server

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103391535B (en) * 2013-07-31 2017-02-01 华为技术有限公司 Method for allowing multiple terminals to share virtual SIM (subscriber identity module) card, as well as terminals, server and system
CN106255226B (en) * 2015-06-10 2021-07-30 中兴通讯股份有限公司 Network connection processing method and device
CN106385664A (en) * 2016-09-14 2017-02-08 Tcl通讯(宁波)有限公司 IOT (Internet of Things) intelligent equipment communication method and system based on virtual SIM card

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1909517A2 (en) * 2000-09-07 2008-04-09 Nokia Corporation Management of portable radio telephones
WO2014071725A1 (en) * 2012-11-09 2014-05-15 华为技术有限公司 Soft sim card activating method and network-joining method and terminal, and network access device
CN106210023A (en) * 2016-07-05 2016-12-07 努比亚技术有限公司 Virtual SIM card synchronization management method and terminal
CN106792640A (en) * 2016-12-20 2017-05-31 北京小米移动软件有限公司 The communication means of virtual SIM card, mobile terminal and server

Also Published As

Publication number Publication date
CN107371222A (en) 2017-11-21

Similar Documents

Publication Publication Date Title
EP3136793B1 (en) Method and apparatus for awakening electronic device
US10064000B2 (en) Method, apparatus, and storage medium for acquiring terminal information
EP3076745B1 (en) Methods and apparatuses for controlling wireless access point
EP3136699A1 (en) Method and device for connecting external equipment
EP3226432B1 (en) Method and devices for sharing media data between terminals
US11596018B2 (en) Region configuration method and device
CN107040591B (en) Method and device for controlling client
CN106033397B (en) Memory buffer area adjusting method, device and terminal
CN105404382A (en) Power saving mode setting method and apparatus
CN106507282B (en) Wireless connection control method and device
CN106792937B (en) Method and device for processing call request
WO2020034072A1 (en) Method and apparatus for sending uplink scheduling request, device, and storage medium
CN107371222B (en) Virtual card disabling method and device
CN106170141B (en) Mobile terminal network switching method and device
CN105517078A (en) Network connection switching method and device
CN105227426B (en) Application interface switching method and device and terminal equipment
CN109922203B (en) Terminal, screen off method and device
CN106201738B (en) System broadcast calling method and device
CN106535147B (en) Communication signal processing method and device
CN112187326A (en) Antenna control method, device, equipment and storage medium
CN105100135A (en) Network sharing setting method and device
CN112307229A (en) Data processing method and device, electronic equipment and computer readable storage medium
CN107277422B (en) Video call method, device and system
US11895659B2 (en) Control instruction transmission method, base station, terminal and storage medium
CN108718450B (en) Telephone card control method, device, storage medium and mobile terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant