CN116112603A - Hot plug identification method and related device - Google Patents

Hot plug identification method and related device Download PDF

Info

Publication number
CN116112603A
CN116112603A CN202310117574.6A CN202310117574A CN116112603A CN 116112603 A CN116112603 A CN 116112603A CN 202310117574 A CN202310117574 A CN 202310117574A CN 116112603 A CN116112603 A CN 116112603A
Authority
CN
China
Prior art keywords
event
card
timer
pulling
local
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.)
Granted
Application number
CN202310117574.6A
Other languages
Chinese (zh)
Other versions
CN116112603B (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.)
Zeku Technology Beijing Corp Ltd
Original Assignee
Zeku Technology Beijing Corp 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 Zeku Technology Beijing Corp Ltd filed Critical Zeku Technology Beijing Corp Ltd
Priority to CN202310117574.6A priority Critical patent/CN116112603B/en
Publication of CN116112603A publication Critical patent/CN116112603A/en
Application granted granted Critical
Publication of CN116112603B publication Critical patent/CN116112603B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72484User interfaces specially adapted for cordless or mobile telephones wherein functions are triggered by incoming communication events
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B1/00Details of transmission systems, not covered by a single one of groups H04B3/00 - H04B13/00; Details of transmission systems not characterised by the medium used for transmission
    • H04B1/38Transceivers, i.e. devices in which transmitter and receiver form a structural unit and in which at least one part is used for functions of transmitting and receiving
    • H04B1/3816Mechanical arrangements for accommodating identification devices, e.g. cards or chips; with connectors for programming identification devices
    • H04B1/3818Arrangements for facilitating insertion or removal of identification devices
    • 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)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Power Sources (AREA)
  • Stored Programmes (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The embodiment of the application discloses a hot plug identification method and a related device, wherein the method comprises the following steps: detecting a first event, and judging whether the first event is the same as a local event, wherein the first event comprises a card inserting event and a card pulling event, and the local event is one of the card inserting event and the card pulling event; if the first event is different from the local event, judging whether the first event is a card pulling event or not; if yes, closing the timer and entering a new round of event detection process; if not, determining the first event as a card inserting event and starting a timer; closing the timer after the timer finishes timing; and setting the local event as a card insertion event, and sending first prompt information to the baseband processor to finish the power-on processing of the communication card. Therefore, the recognition and processing process of the electronic equipment on the hot plug operation can be perfected based on the timer, and the transmission of redundant information in each module of the electronic equipment caused by repeated response is avoided.

Description

Hot plug identification method and related device
Technical Field
The application relates to the technical field of electronic technology, in particular to a hot plug identification method and a related device.
Background
In actual use of the electronic device, a subscriber identity module (subscribe identity module, SIM) card is an essential part of the electronic device. When the hardware driver of the electronic device detects the hot plug card behavior, the hardware driver triggers the operations such as the activation process and the deactivation operation of the hardware for the communication card. However, if the user performs improper operation during the use process, or the design of the card slot of the electronic device is unreasonable, frequent and rapid insertion and extraction of the SIM card may be caused, so that redundant messages may be transmitted inside the protocol stack, and even some errors may be caused.
Therefore, there is a need for a hot plug identification method that solves the above-mentioned problems.
Disclosure of Invention
The embodiment of the application provides a hot plug identification method and a related device, which are used for perfecting hot plug identification and processing processes of a communication card by means of a timer so as to avoid redundant information from being transmitted to each module in electronic equipment.
In a first aspect, an embodiment of the present application provides a hot plug identification method, which is applied to an electronic device, where the electronic device includes a baseband processor and a card slot, where the baseband processor is connected to the card slot, and the card slot is used for placing a communication card;
The method comprises the following steps:
detecting a first event, and judging whether the first event is identical with a local event, wherein the first event comprises a card inserting event and a card pulling event, and the local event is one of the card inserting event and the card pulling event;
if the first event is different from the local event, judging whether the first event is the card pulling event or not;
if the first event is the card pulling event, closing a timer and entering a new event detection process;
if the first event is not the card pulling event, determining that the first event is the card inserting event and starting the timer;
after the timer is timed, closing the timer, and setting the local event as the card inserting event; the method comprises the steps of,
and setting the local event as the card inserting event, and sending first prompt information to the baseband processor to finish the power-on processing of the communication card.
In a second aspect, an embodiment of the present application provides a hot plug identification device, which is applied to an electronic device, where the electronic device includes a baseband processor and a card slot, where the baseband processor is connected to the card slot, and the card slot is used to place a communication card, and the device includes: a detection unit, a judgment unit, a determination unit and an execution unit, wherein,
The detection unit is used for detecting a first event and judging whether the first event is the same as a local event, wherein the first event comprises a card inserting event and a card pulling event, and the local event is one of the card inserting event and the card pulling event;
the judging unit is configured to judge whether the first event is the card pulling event if the first event is different from the local event;
the detection unit is further configured to close a timer and enter a new event detection process if the first event is the card pulling event;
the determining unit is configured to determine that the first event is the card insertion event and start the timer if the first event is not the card pulling event;
the execution unit is used for closing the timer after the timer finishes timing, and setting the local event as the card inserting event; the method comprises the steps of,
the execution unit is further used for sending first prompt information to the baseband processor to finish the power-on processing of the communication card.
In a third aspect, an embodiment of the present application provides an electronic device, including a processor, a memory, a communication interface, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the processor, the programs including instructions for performing steps in any of the methods of the first aspect of the embodiments of the present application.
In a fourth aspect, embodiments of the present application provide a computer-readable storage medium, where the computer-readable storage medium stores a computer program for electronic data exchange, where the computer program causes a computer to perform some or all of the steps as described in any of the methods of the first aspect of the embodiments of the present application.
In a fifth aspect, embodiments of the present application provide a computer program product, wherein the computer program product comprises a non-transitory computer readable storage medium storing a computer program operable to cause a computer to perform some or all of the steps described in any of the methods of the first aspect of embodiments of the present application. The computer program product may be a software installation package.
It can be seen that in the embodiment of the present application, after detecting a first event, the electronic device determines whether the first event is the same as a local event, where the first event includes a card insertion event and a card extraction event, and the local event is one of the card insertion event and the card extraction event; if the first event is different from the local event, judging whether the first event is a card pulling event or not; if the first event is a card pulling event, closing a timer and entering a new event detection process; if the first event is not a card pulling event, determining that the first event is a card inserting event and starting a timer; if a second event is not detected within a preset duration, closing a timer, wherein the second event is a new event detected within the preset duration; and setting the local event as a card insertion event, and sending first prompt information to the baseband processor to finish the power-on processing of the communication card. Therefore, the recognition and processing process of the electronic equipment on the hot plug operation of the communication card can be perfected based on the timer, and the transmission of redundant information in each module of the electronic equipment caused by repeated response is avoided.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following description will briefly introduce the drawings that are needed in the embodiments or the description of the prior art, it is obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic diagram of an internal hardware structure of an electronic device according to an embodiment of the present application;
fig. 2 is a flow chart of a hot plug identification method according to an embodiment of the present application;
FIG. 3A is a schematic diagram illustrating a process of timeout processing of a hot plug timer according to an embodiment of the present application;
FIG. 3B is a schematic diagram of an event detection process from no card to a card in a card slot according to an embodiment of the present disclosure;
FIG. 3C is a schematic diagram illustrating a card slot from no card to no card event detection process according to an embodiment of the present disclosure;
FIG. 3D is a schematic diagram of a card slot event detection process from card to card according to an embodiment of the present application;
FIG. 3E is a schematic diagram of an event detection process from card to card in a card slot according to an embodiment of the present disclosure;
Fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 5 is a functional unit composition block diagram of a hot plug identification device according to an embodiment of the present application.
Detailed Description
In order to make the present application solution better understood by those skilled in the art, the following description will clearly and completely describe the technical solution in the embodiments of the present application with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, are intended to be within the scope of the present application.
The terms first, second and the like in the description and in the claims of the present application and in the above-described figures, are used for distinguishing between different objects and not for describing a particular sequential order. Furthermore, the terms "comprise" and "have," as well as any variations thereof, are intended to cover a non-exclusive inclusion. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those listed steps or elements but may include other steps or elements not listed or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment may be included in at least one embodiment of the present application. The appearances of such phrases in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. Those of skill in the art will explicitly and implicitly appreciate that the embodiments described herein may be combined with other embodiments.
The electronic device may be a portable electronic device that also includes other functionality such as personal digital assistant and/or music player functionality, such as a cell phone, tablet computer, wearable electronic device with wireless communication functionality (e.g., smart watch, smart glasses, smart helmet), vehicle-mounted device, etc. Exemplary embodiments of portable electronic devices include, but are not limited to, portable electronic devices that are equipped with IOS systems, android systems, microsoft systems, or other operating systems. The portable electronic device may also be other portable electronic devices such as a Laptop computer (Laptop) or the like. It should also be understood that, in other embodiments, the electronic device may also be an electronic device in the solution of the present application.
Hot-plug (hot-plug) of the communication card: the electronic device can directly replace the SIM card or the USIM card in the on state, and the electronic device can recognize such a so-called hot plug. Hot-plug (hot-plug), i.e., hot-plug, is a behavior that allows a user to remove or replace a damaged hard disk, etc., without shutting down the system, thereby improving the timely recovery capability, expandability, and flexibility of the system.
Fig. 1 shows a schematic diagram of internal hardware structure of an electronic device, where the system may include a plurality of electronic devices, and a specific electronic device 100 includes at least the following components: a baseband processor 101, a card slot 102, a memory 103, and other control circuitry 104.
The baseband processor 101 is respectively connected with the card slot 102, the memory 103 and other control circuits 104, and the baseband processor 101 includes a driving module and a communication interface, and obtains state change information in the card slot 102 through the communication interface. The card slot 102 includes one or two card holders therein for preventing communication cards, including but not limited to: comprising a subscriber identity module SIM card and/or a universal subscriber identity module USIM card. If the communication card is currently placed in the card slot 102, the baseband processor 101 obtains the relevant information of the communication card through the communication interface.
Specifically, the memory 103 is used to receive and store data. Other control circuitry 104 is used to power the various components of the electronic device 100 to enable proper operation of the electronic device 100.
For a better understanding of the aspects of the present application, specific description will be made below with respect to the aspects.
Referring to fig. 2, fig. 2 is a flowchart of a hot plug identification method provided in an embodiment of the present application, which is applied to an electronic device, as shown in fig. 2, and the hot plug identification method includes the following operations.
S201, detecting a first event, and judging whether the first event is the same as a local event. The first event comprises a card inserting event and a card pulling event, and the local event is one of the card inserting event and the card pulling event.
Specifically, as shown in fig. 1, the electronic device detects a first event, i.e., a hot plug event, through the driving module. The hot plug event includes a card plug event and a card plug event, namely a card plug action or a card plug action of a user, or ejection or access of a card slot, and the like.
Specifically, the local event is a historical event that occurs and is recorded by the current electronic device before the first event is detected, and the local event is one of the hot plug events.
Further, the electronic device determines whether the first event is the same as the local event after detecting the first event.
S202, if the first event is different from the local event, judging whether the first event is the card pulling event.
Specifically, if the determination in step S201 determines that the first event is different from the local event, the electronic device further determines whether the type of the first event is a card pulling event, that is, determines whether the first event corresponds to a card pulling action.
And S203, if the first event is the card pulling event, closing a timer and entering a new event detection process.
Specifically, if the first event is a card pulling event, the historical event state is indicated to be a card inserting event, when the electronic device detects the card inserting event, a timer is required to be started, and whether a new event occurs is detected within the effective timing range of the timer.
Specifically, if the electronic device determines that the first event is a card pulling event, the timer is closed, and a new event detection process is entered.
For example, if the timer timing end state of the history event is already reached when the first event occurs, and the timer is automatically closed due to timeout, the timer does not need to be started or closed even if the first event is a card pulling event.
It should be noted that, the timer referred to in the present application is used for clock constraint in the event detection process. Therefore, the timer can be set by a software program or can be completed by setting hardware in the electronic device, and the timer can be selected according to the use requirement in practical application, and is not particularly limited herein.
S204, if the first event is not the card pulling event, determining that the first event is the card inserting event and starting the timer.
Specifically, the card slot state of the electronic device shown in fig. 1 is only two, namely a card-present state and a card-absent state. The card-on state corresponds to the user action as a card inserting event, the card-off state corresponds to the user action as a card pulling event. Therefore, if the first event is not a card pulling event, the first event is a card inserting event.
Further, a timer is started to start counting.
S205, closing the timer after the timer finishes counting.
Specifically, the electronic device may define a preset duration after the timer is started, or may be adaptive to the system or selected by the user, which is not specifically limited again.
In an exemplary embodiment, if the electronic device does not detect the occurrence of the second event within the preset duration, the timer is closed after the timing is finished.
S206, setting the local event as the card inserting event, and sending first prompt information to the baseband processor to finish the power-on processing of the communication card.
Specifically, the first event is determined to be a card insertion event, and according to steps S201-S202, it may be determined that the local event is originally a card extraction event. After the timer expires, the electronic device sets the local event as a card insertion event.
Further, a first prompt message is sent to the baseband processor to complete the power-on processing of the communication card. Meanwhile, the baseband processor establishes connection with the communication card through the interface module to acquire the related information of the communication card.
It can be seen that, by the example of the present application, after detecting a first event, the electronic device determines whether the first event is the same as a local event, where the first event includes a card insertion event and a card extraction event, and the local event is one of the card insertion event and the card extraction event; if the first event is different from the local event, judging whether the first event is a card pulling event or not; if the first event is a card pulling event, closing a timer and entering a new event detection process; if the first event is not a card pulling event, determining that the first event is a card inserting event and starting a timer; closing the timer after the timer finishes timing; and setting the local event as a card insertion event, and sending first prompt information to the baseband processor to finish the power-on processing of the communication card. Therefore, the recognition and processing process of the electronic equipment on the hot plug operation of the communication card can be perfected based on the timer, and the transmission of redundant information in each module of the electronic equipment caused by repeated response is avoided.
In one possible example, the state of the card slot includes: the method further comprises the following steps of: the local event is initially set as the card pulling event, and before the first prompt message is sent to the baseband processor to complete the power-on processing of the communication card, the method further comprises: if at least one second event is detected within a preset time length, judging whether the event at the end of the preset time length is the card inserting event, wherein the preset time length is the time length from the moment that the first event is determined to be the card inserting event to the moment that the timer is started until the timer is ended; if the event when the preset duration is over is the card inserting event, closing the timer; and setting the local event as the card inserting event, and sending the first prompt message to the baseband processor to finish the power-on processing of the communication card.
Specifically, the process corresponding to steps S204 to S206 in fig. 2 is shown in fig. 3A, and fig. 3A is a schematic diagram of a process of timeout processing of the hot plug timer according to the embodiment of the present application.
Specifically, as shown in fig. 3A: after the timer times out, a time-out event is triggered, and the access state of the communication card is considered to be a stable state, so that the electronic device closes the timer (namely, the time-out automatic closing).
Further, the local event is set as a card insertion event.
Further, a first hint is sent to the baseband processor.
Specifically, fig. 3A described above macroscopically illustrates a processing procedure related to a card insertion event in the hot plug process. In practical applications, a certain differential processing procedure exists according to the initial state of the card slot of the electronic device, which will be described in detail below with reference to fig. 3B.
Fig. 3B is a schematic diagram of an event detection process from no card to a card in a card slot according to an embodiment of the present application. As shown in fig. 3B, the initial state of the card slot is: in the card-free state, the local event is a card pulling event, and the timer is not started.
Specifically, when the initial state is the card-free state, through the steps S201 to S204, it is determined that the first event is a card insertion event and a timer is started, and the detailed process is not described herein.
Further, the electronic device detects a first event, i.e., a card insertion event corresponds to a card insertion action. At this time, the first event is different from the local event, the card slot state is a card state, the timer is started, and no prompt message is sent.
Further, in the timing time range of the timer, a second event is detected, namely, the card pulling event corresponds to the card inserting action. The second event is consistent with the local event, the card slot state is a card-free state, the timer is closed, and no prompt message is sent.
Further, the electronic device detects at least one second event. If the last event is a card insertion event and after the timer finishes, the occurrence of a new event is not detected, namely the timer times out, the timer started by the card insertion event is closed, and after the local event is set as the card insertion event, first prompt information is sent to a baseband processor to finish the power-on processing of the communication card.
It can be seen that in this example, when the card slot of the electronic device goes from the initial card-free state to the final card-on state, the local event starts as a card-out event. When a plurality of events are detected in the middle, if the event is a card pulling event, only the timer is needed to be closed, if the event is a card inserting event, the timer is started until the last time of the card inserting event is overtime to trigger the timer to be closed, and the first prompt information is sent and the local event is updated. Therefore, redundant message transmission caused by repeated response and repeated prompt information sending each time a new event is detected can be avoided.
In one possible example, the state of the card slot includes: the method further comprises the following steps of: the local event is initially set as the card pulling event, and after the first event is determined to be the card inserting event and the timer is started, the method further comprises: detecting at least one second event within a preset time length, wherein the preset time length is a time length from when the first event is determined to be the card inserting event to when the timer is started to finish timing; judging whether the event at the end of the preset duration is the card pulling event or not; if the event when the preset duration is over is the card pulling event, closing the timer and entering a new event detection process.
Specifically, a specific description will be given below with reference to fig. 3C. Fig. 3C is a schematic diagram of an event detection process from no card to no card in a card slot according to an embodiment of the present application. As shown in fig. 3C, the initial state of the card slot is: in the card-free state, the local event is a card pulling event, and the timer is not started.
Specifically, when the initial state is the card-free state, the electronic device starts a timer after detecting the first event and determining that the first event is a card insertion event through the steps S201 to S204, and the detailed process is not described herein.
Further, at least one second event is detected within the timeframe, the at least one second event including a card pull event and a card insert event. If the current event is a card pulling event, namely the current event is consistent with the local event, the timer is closed, and no prompt information is sent.
Further, the electronic device determines that, in the at least one second event, when the preset duration is over, the last second event is a card pulling event. When the last second event of the at least one second event is a card pulling event, the timer is turned off, and at the moment, the local event is consistent with the last second event, prompt information is not sent yet, and a new event detection process is entered. At this time, the local event is not changed into a card-pulling event, and the card slot state is a card-free state.
It should be noted that, in the above process, after determining that the first event is a card insertion event, the electronic device performs polling on the current event until the last event, and when the last event is consistent with the local event and is a card extraction event, the card holder of the electronic device is in a relatively stable state, and a timer in the card insertion event state does not occur in the process for timing a timeout event, and the electronic device does not have a hot card insertion event for many times, but does not have a card insertion slot for accessing a communication card to a timeout stable state, and finally still has a card-free state (another stable state), so that only the timer is started and closed along with the change of the event type in the process, without sending prompt information.
In this example, when the card slot of the electronic device goes from the initial card-free state to the final card-free state, the electronic device determines that the timeout of the card insertion event does not occur according to the timer, which triggers the timer to close, so that the prompt message does not need to be sent. Therefore, redundant message transmission caused by repeated response and repeated prompt information sending each time a new event is detected can be avoided.
In one possible example, the state of the card slot includes: if the initial state of the card slot is the card-on state, the method further comprises the following steps: initializing the local event as the card inserting event; after the first event is detected, the method further comprises: determining that the first event is the card pulling event and the first event is different from the local event; after sending the second prompt message to the baseband processor, if at least one second event is detected, judging whether the last second event in the at least one second event is the card inserting event; if the last second event is the card inserting event, starting the timer, and closing the timer after the timer finishes timing; and setting the local event as the card inserting event, and sending first prompt information to the baseband processor to finish the power-on processing of the communication card.
Specifically, a detailed description will be made below in connection with fig. 3D. Fig. 3D is a schematic diagram of an event detection process from card-to-card of a card slot according to an embodiment of the present application. As shown in fig. 3D, the initial state of the card slot is: in the card state, the local event is a card insertion event, and the timer is not started.
Specifically, after the electronic device goes through the steps S201-S203, that is, the first event is detected and the first event is determined to be a card pulling event, at this time, since the initial state of the timer is an unopened state, no further closing is required, and no operation is performed on the timer. The electronic device is originally in a card-on state, i.e. the local event is set as the card-on event because the card-on event occurs and the timer is overtime to trigger the timer to be closed. The electronic equipment suddenly detects a card pulling event, the card slot is changed from a card-on state to a card-off state, and the original stable state is broken, so that when the first event is the card pulling event, second prompt information is required to be sent to the baseband processor to finish the power-off processing of the communication card, and the current card slot is indicated to be removed from the electronic equipment.
Further, the electronic device continues to poll and detect at least one second event, if the last second event in the at least one second event is a card inserting event, the timer is started, and after the timer finishes timing, the timer is closed. And setting the local event as a card insertion event, wherein the card slot state is a card-in state, and the electronic equipment sends first prompt information to the baseband processor to complete the power-on operation of the communication card.
In this example, when the card slot of the electronic device goes from the initial card-on state to the final card-on state, the electronic device detects the card-pulling event under the steady state condition of the original card-on state, breaks the original steady state and sends the prompt message. If and only if the card insertion event occurs in the subsequent event and the timer times out, the prompt information is sent again, and even if the repeated hot plug process occurs in the middle, the prompt information is not needed to be sent. Therefore, redundant message transmission caused by repeated response and repeated prompt information sending each time a new event is detected can be avoided.
In one possible example, the method further comprises the steps of: if the last second event is the card pulling event, closing the timer; and setting the local event as the card pulling event, and sending the second prompt message to the baseband processor to finish the power-off processing of the communication card.
Specifically, a detailed description will be given below with reference to fig. 3E. Fig. 3E is a schematic diagram of an event detection process from card to card in a card slot according to an embodiment of the present application. As shown in fig. 3E, the initial state of the card slot is: in the card state, the local event is a card insertion event, and the timer is not started.
In particular, the process as described in fig. 3D also includes another possible scenario. If the last second event in the at least one second event detected by the electronic device is a card pulling event, closing a timer started by the previous event (i.e. a card inserting event).
Further, since the initial state is a card-on state and the last second event is a card-off event, the card slot state is a card-off state and reaches a stable state. The electronic equipment sends a second prompt message to the baseband processor to complete the power-off processing of the communication card, at the moment, the electronic equipment is in a card-free state in a stable state, and the local event is a card-pulling event.
In this example, when the card slot of the electronic device goes from the initial card-on state to the final card-on state, the electronic device detects the card-pulling event under the steady state condition of the original card-on state, breaks the original steady state and sends the prompt message. And carrying out event polling in the middle until the last time is a card pulling event and no subsequent event is reached in a stable state, and sending prompt information again to complete the power-off processing. Therefore, redundant message transmission caused by repeated response and repeated prompt information sending each time a new event is detected can be avoided.
In one possible example, the first prompt information is used to characterize that the current state of the card slot of the electronic device is the card-on state, and instruct the baseband processor to perform a power-on operation for the communication card corresponding to the card slot; the second prompt information is used for representing that the current state of the card slot of the electronic equipment is the card-free state and indicating the baseband processor to execute power-off operation for the card slot.
The electronic device sends the first prompt message to the baseband processor when detecting that the card slot is connected with the communication card and reaches a stable state, that is, when the last event is a card insertion event and the timer is closed due to timeout, and then the baseband processor completes the power-on operation on the communication card, and obtains the information of the communication card through the interface module, including but not limited to: identification information of the communication card.
The electronic device sends the second prompt message to the baseband processor when detecting that the communication card in the card slot is removed and reaches a stable state, namely when the last event is a card pulling event, and then the baseband processor completes the power-off operation on the communication card.
In this example, the electronic device determines, according to the detected event, a prompt message to be sent to the baseband processor, so as to complete the power-on or power-off operation of the communication card.
In one possible example, the card slot of the electronic device includes a card position for placing the communication card, where the card position includes one or two card positions, and each card position has a corresponding identification ID; after the detection of the at least one second event, the method may comprise the steps of: acquiring a first Identification (ID) of the clamping position aimed at by the first event, wherein the first Identification (ID) corresponds to a first clamping position, and the first clamping position is one of the clamping positions; judging whether the identification ID of the clamping position aimed at each event in the at least one second event is the same as the first identification ID; if each event in the at least one second event is the same as the identification ID of the clamping position aimed at by the first event, determining that the hot plug event corresponding to each event in the at least one second event and the first event is aimed at the same clamping position; if the identification ID of the card bit aimed at by the target event is different from the first identification ID, determining that the first occurring target event is a first event corresponding to a second card bit, wherein the target event is one or more events in the at least one second event, and the identification ID corresponding to the second card bit is a second identification ID.
Illustratively, the card slot of the electronic device shown in fig. 1 includes one or two card positions, and the first card position and the second card position are described herein as examples. Each card position can be used for placing a communication card so as to realize communication and data interaction with the electronic equipment.
Specifically, after detecting at least one second event, the electronic device acquires the first event and the identification ID of the card bit for each event in the at least one second event. The first event is identified as a first identifier, where the first event corresponds to a first position. If the identification ID of the card bit corresponding to each event in at least one second event is consistent with the first identification ID, the current hot plug event is indicated to be carried out on the same card bit, namely the first card bit. Therefore, the electronic device may perform the related operations according to the steps shown in fig. 2 and fig. 3A to fig. 3E.
Specifically, after detecting at least one second event, if it is determined that the card position targeted by the target event is the second card position, that is, the ID is the second ID, at this time, it is determined that the operation targeted by the target event and the operation targeted by the first event are different card positions. The target event is one or more events generated by executing hot plug operation on the second card bit with the identification ID being the second identification ID in the at least one second event.
Further, the electronic device uses the first occurring target event as the first event corresponding to the second card bit, and executes the steps shown in fig. 2 and fig. 3A-3E to execute the related operations according to the local event of the second card bit and the status information of the card bit.
In this example, the electronic device may determine whether each event is directed to the same card location according to whether the identification ID of each event is consistent with the first identification ID corresponding to the first event, that is, whether the current multiple hot plug operations are directed to the same card location. And further determining a subsequent judging process and information transmission according to the judging result. Therefore, the hot plug identification among different clamping positions is not affected mutually, and the problem that redundant information or error information is transmitted due to repeated response when new events are detected each time and repeated prompt information or error prompt information is sent to the wrong clamping position is avoided.
Referring to fig. 4, fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present application, where the electronic device includes a processor, a memory, a communication interface, and one or more programs, and is applied to the electronic device.
Optionally, if the electronic device is an electronic device, wherein the one or more programs are stored in the memory, the one or more programs are configured to execute instructions of the following steps by the processor:
detecting a first event, and judging whether the first event is identical with a local event, wherein the first event comprises a card inserting event and a card pulling event, and the local event is one of the card inserting event and the card pulling event;
if the first event is different from the local event, judging whether the first event is the card pulling event or not;
if the first event is the card pulling event, closing a timer and entering a new event detection process; if the first event is not the card pulling event, determining that the first event is the card inserting event and starting the timer;
closing the timer after the timer finishes timing; the method comprises the steps of,
and setting the local event as the card inserting event, and sending first prompt information to the baseband processor to finish the power-on processing of the communication card.
It can be seen that, according to the example of the application, after detecting the first event, the electronic device determines whether the first event is the same as the local event, where the first event includes a card inserting event and a card extracting event, and the local event is one of the card inserting event and the card extracting event; if the first event is different from the local event, judging whether the first event is a card pulling event or not; if the first event is a card pulling event, closing a timer and entering a new event detection process; if the first event is not a card pulling event, determining that the first event is a card inserting event and starting a timer; closing the timer after the timer finishes timing; and setting the local event as a card insertion event, and sending first prompt information to the baseband processor to finish the power-on processing of the communication card. Therefore, the recognition and processing process of the electronic equipment on the hot plug operation of the communication card can be perfected based on the timer, and the transmission of redundant information in each module of the electronic equipment caused by repeated response is avoided.
In one possible example, the state of the card slot includes: the card-on state and the card-off state, if the initial state of the card slot is the card-off state, the program further comprises instructions for executing the following steps:
initially setting the local event as the card pulling event;
before the first prompt message is sent to the baseband processor to complete the power-on processing of the communication card, the method further includes:
if at least one second event is detected within a preset time length, judging whether the event at the end of the preset time length is the card inserting event, wherein the preset time length is the time length from the moment that the first event is determined to be the card inserting event to the moment that the timer is started until the timer is ended;
if the event when the preset duration is over is the card inserting event, closing the timer;
and setting the local event as the card inserting event, and sending the first prompt message to the baseband processor to finish the power-on processing of the communication card.
In one possible example, the state of the card slot includes: the card-on state and the card-off state, if the initial state of the card slot is the card-off state, the program further comprises instructions for executing the following steps:
Initially setting the local event as the card pulling event;
after determining that the first event is the card insertion event and starting the timer, the method further comprises:
detecting at least one second event within a preset time length, wherein the preset time length is a time length from when the first event is determined to be the card inserting event to when the timer is started to finish timing;
judging whether the event at the end of the preset time period is the card pulling event or not;
if the event when the preset duration is over is the card pulling event, closing the timer and entering a new event detection process.
In one possible example, the state of the card slot includes: the card-on state and the card-off state, if the initial state of the card slot is the card-on state, the program further comprises instructions for executing the following steps:
the local event is initially the card insertion event;
after the first event is detected, the method further comprises:
determining that the first event is the card pulling event and the first event is different from the local event;
after sending the second prompt message to the baseband processor, if at least one second event is detected, judging whether the last second event in the at least one second event is the card inserting event;
If the last second event is the card inserting event, starting the timer, and closing the timer after the timer finishes timing;
and setting the local event as the card inserting event, and sending first prompt information to the baseband processor to finish the power-on processing of the communication card.
In one possible example, the above-described program further includes instructions for performing the steps of:
if the last second event is the card pulling event, closing the timer;
and setting the local event as the card pulling event, and sending the second prompt message to the baseband processor to finish the power-off processing of the communication card.
In one possible example, the first prompt information is used to characterize that the current state of the card slot of the electronic device is the card-on state, and instruct the baseband processor to perform a power-on operation for the communication card corresponding to the card slot;
the second prompt information is used for representing that the current state of the card slot of the electronic equipment is the card-free state and indicating the baseband processor to execute power-off operation for the card slot.
In one possible example, the card slot of the electronic device includes a card position for placing the communication card, where the card position includes one or two card positions, and each card position has a corresponding identification ID;
After the detection of the at least one second event, the program further comprises instructions for:
acquiring a first Identification (ID) of the clamping position aimed at by the first event, wherein the first Identification (ID) corresponds to a first clamping position, and the first clamping position is one of the clamping positions;
judging whether the identification ID of the clamping position aimed at each event in the at least one second event is the same as the first identification ID;
if each event in the at least one second event is the same as the identification ID of the clamping position aimed at by the first event, determining that the hot plug event corresponding to each event in the at least one second event and the first event is aimed at the same clamping position;
if the identification ID of the card bit aimed at by the target event is different from the first identification ID, determining that the first occurring target event is a first event corresponding to a second card bit, wherein the target event is one or more events in the at least one second event, and the identification ID corresponding to the second card bit is a second identification ID.
Referring to fig. 5, fig. 5 is a schematic structural diagram of a hot plug identification device according to an embodiment of the present application, and as shown in fig. 5, the hot plug identification device 500 includes: the device comprises a detection unit 501, a judgment unit 502, a determination unit 503 and an execution unit 504, wherein,
The detecting unit 501 is configured to detect a first event, and determine whether the first event is the same as a local event, where the first event includes a card inserting event and a card extracting event, and the local event is one of the card inserting event and the card extracting event;
the judging unit 502 is configured to judge whether the first event is the card pulling event if the first event is different from the local event;
the detecting unit 501 is further configured to close a timer and enter a new event detection process if the first event is the card pulling event;
the determining unit 503 is configured to determine that the first event is the card insertion event and start the timer if the first event is not the card pulling event;
the executing unit 504 is configured to close the timer after the timer expires; the method comprises the steps of,
the execution unit 504 is further configured to set the local event as the card insertion event, and send a first prompt message to the baseband processor to complete the power-on processing of the communication card.
It can be seen that the embodiment of the application discloses a hot plug identification device, after an electronic device detects a first event through a detection unit, judging whether the first event is the same as a local event, wherein the first event comprises a card plug event and a card plug event, and the local event is one of the card plug event and the card plug event; if the first event is different from the local event, judging whether the first event is a card pulling event or not through a judging unit; if the first event is a card pulling event, closing a timer and entering a new event detection process; if the first event is not a card pulling event, determining that the first event is a card inserting event by a determining unit and starting a timer; closing the timer after the timer finishes timing within the preset time length through the execution unit; and setting the local event as a card insertion event, and sending first prompt information to the baseband processor to finish the power-on processing of the communication card. Therefore, the recognition and processing process of the electronic equipment on the hot plug operation of the communication card can be perfected based on the timer, and the transmission of redundant information in each module of the electronic equipment caused by repeated response is avoided.
In one possible example, the state of the card slot includes: if the initial state of the card slot is the card-free state, the executing unit 504 specifically executes the following steps:
initially setting the local event as the card pulling event;
before the first prompt message is sent to the baseband processor to complete the power-on processing of the communication card, the method further includes:
if at least one second event is detected within the preset time length, judging whether the event at the end of the preset time length is the card inserting event, wherein the preset time length is the time length from the moment that the first event is determined to be the card inserting event to the moment that the timer is started until the timer is ended;
if the event when the preset duration is over is the card inserting event, closing the timer;
and setting the local event as the card inserting event, and sending the first prompt message to the baseband processor to finish the power-on processing of the communication card.
In one possible example, the state of the card slot includes: if the initial state of the card slot is the card-free state, the executing unit 504 specifically executes the following steps:
Initially setting the local event as the card pulling event;
after determining that the first event is the card insertion event and starting the timer, the method further comprises:
detecting at least one second event within a preset time length, wherein the preset time length is a time length from when the first event is determined to be the card inserting event to when the timer is started to finish timing;
judging whether the event at the end of the preset time period is the card pulling event or not;
if the event when the preset duration is over is the card pulling event, closing the timer and entering a new event detection process.
In one possible example, the state of the card slot includes: if the card slot initial state is the card state, the executing unit 504 specifically executes the following steps:
the local event is initially the card insertion event;
after the first event is detected, the method further comprises:
determining that the first event is the card pulling event and the first event is different from the local event;
after sending the second prompt message to the baseband processor, if at least one second event is detected, judging whether the last second event in the at least one second event is the card inserting event;
If the last second event is the card inserting event, starting the timer, and closing the timer after the timer finishes timing;
and setting the local event as the card inserting event, and sending first prompt information to the baseband processor to finish the power-on processing of the communication card.
In one possible example, the steps specifically executed by the execution unit 504 are as follows:
if the last second event is the card pulling event, closing the timer;
and setting the local event as the card pulling event, and sending the second prompt message to the baseband processor to finish the power-off processing of the communication card.
In one possible example, the first prompt information is used to characterize that the current state of the card slot of the electronic device is the card-on state, and instruct the baseband processor to perform a power-on operation for the communication card corresponding to the card slot;
the second prompt information is used for representing that the current state of the card slot of the electronic equipment is the card-free state and indicating the baseband processor to execute power-off operation for the card slot.
In one possible example, the card slot of the electronic device includes a card position for placing the communication card, where the card position includes one or two card positions, and each card position has a corresponding identification ID;
After the detection of the at least one second event, the executing unit 504 specifically performs the following steps:
acquiring a first Identification (ID) of the clamping position aimed at by the first event, wherein the first Identification (ID) corresponds to a first clamping position, and the first clamping position is one of the clamping positions;
judging whether the identification ID of the clamping position aimed at each event in the at least one second event is the same as the first identification ID;
if each event in the at least one second event is the same as the identification ID of the clamping position aimed at by the first event, determining that the hot plug event corresponding to each event in the at least one second event and the first event is aimed at the same clamping position;
if the identification ID of the card bit aimed at by the target event is different from the first identification ID, determining that the first occurring target event is a first event corresponding to a second card bit, wherein the target event is one or more events in the at least one second event, and the identification ID corresponding to the second card bit is a second identification ID.
The foregoing description of the embodiments of the present application has been presented primarily in terms of a method-side implementation. It will be appreciated that the electronic device, in order to achieve the above-described functions, includes corresponding hardware structures and/or software modules that perform the respective functions. Those of skill in the art will readily appreciate that the elements and algorithm steps described in connection with the embodiments disclosed herein may be embodied as hardware or a combination of hardware and computer software. Whether a function is implemented as hardware or computer software driven hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The embodiment of the application may divide the functional units of the electronic device according to the above method example, for example, each functional unit may be divided corresponding to each function, or two or more functions may be integrated in one processing unit. The integrated units may be implemented in hardware or in software functional units. It should be noted that, in the embodiment of the present application, the division of the units is schematic, which is merely a logic function division, and other division manners may be implemented in actual practice.
It should be noted that, all relevant contents of each step related to the above method embodiment may be cited to the functional description of the corresponding functional module, which is not described herein.
The electronic device provided in this embodiment is configured to execute the above-mentioned hot plug identification method, so that the same effects as those of the implementation method can be achieved.
In case an integrated unit is employed, the electronic device may comprise a processing module, a storage module and a communication module. The processing module may be configured to control and manage an action of the electronic device, for example, may be configured to support the electronic device to perform the steps performed by the detecting unit 501, the judging unit 502, the determining unit 503, and the executing unit 504. The memory module may be used to support the electronic device to execute stored program code, data, etc. And the communication module can be used for supporting the communication between the electronic device and other devices.
Wherein the processing module may be a processor or a controller. Which may implement or perform the various exemplary logic blocks, modules, and circuits described in connection with this disclosure. A processor may also be a combination that performs computing functions, e.g., including one or more microprocessors, digital signal processing (digital signal processing, DSP) and microprocessor combinations, and the like. The memory module may be a memory. The communication module can be a radio frequency circuit, a Bluetooth chip, a Wi-Fi chip and other equipment which interact with other electronic equipment.
The embodiment of the application also provides a computer storage medium, where the computer storage medium stores a computer program for electronic data exchange, where the computer program causes a computer to execute part or all of the steps of any one of the methods described in the embodiments of the method, where the computer includes an electronic device.
Embodiments of the present application also provide a computer program product comprising a non-transitory computer-readable storage medium storing a computer program operable to cause a computer to perform some or all of the steps of any one of the methods described in the method embodiments above. The computer program product may be a software installation package, said computer comprising an electronic device.
It should be noted that, for simplicity of description, the foregoing method embodiments are all expressed as a series of action combinations, but it should be understood by those skilled in the art that the present application is not limited by the order of actions described, as some steps may be performed in other order or simultaneously in accordance with the present application. Further, those skilled in the art will also appreciate that the embodiments described in the specification are all preferred embodiments, and that the acts and modules referred to are not necessarily required in the present application.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and for parts of one embodiment that are not described in detail, reference may be made to related descriptions of other embodiments.
In the several embodiments provided in this application, it should be understood that the disclosed apparatus may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, such as the above-described division of units, merely a division of logic functions, and there may be additional manners of dividing in actual implementation, such as multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, or may be in electrical or other forms.
The units described above as separate components may or may not be physically separate, and components shown as units may or may not be physical units, may be located in one place, or may be distributed over a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in each embodiment of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units described above, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable memory. Based on such understanding, the technical solution of the present application may be embodied in essence or a part contributing to the prior art or all or part of the technical solution in the form of a software product stored in a memory, including several instructions for causing a computer device (which may be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the above-mentioned method of the various embodiments of the present application. And the aforementioned memory includes: a U-disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing program codes.
Those of ordinary skill in the art will appreciate that all or a portion of the steps in the various methods of the above embodiments may be implemented by a program that instructs associated hardware, and the program may be stored in a computer readable memory, which may include: flash disk, read-Only Memory (ROM), random access Memory (Random Access Memory, RAM), magnetic disk or optical disk.
The foregoing has outlined rather broadly the more detailed description of embodiments of the present application, wherein specific examples are provided herein to illustrate the principles and embodiments of the present application, the above examples being provided solely to assist in the understanding of the methods of the present application and the core ideas thereof; meanwhile, as those skilled in the art will have modifications in the specific embodiments and application scope in accordance with the ideas of the present application, the present description should not be construed as limiting the present application in view of the above.

Claims (10)

1. The hot plug identification method is applied to electronic equipment and is characterized in that the electronic equipment comprises a baseband processor and a clamping groove, wherein the baseband processor is connected with the clamping groove, and the clamping groove is used for placing a communication card;
The method comprises the following steps:
detecting a first event, and judging whether the first event is identical with a local event, wherein the first event comprises a card inserting event and a card pulling event, and the local event is one of the card inserting event and the card pulling event;
if the first event is different from the local event, judging whether the first event is the card pulling event or not;
if the first event is the card pulling event, closing a timer and entering a new event detection process;
if the first event is not the card pulling event, determining that the first event is the card inserting event and starting the timer;
closing the timer after the timer finishes timing; the method comprises the steps of,
and setting the local event as the card inserting event, and sending first prompt information to the baseband processor to finish the power-on processing of the communication card.
2. The method of claim 1, wherein the state of the card slot comprises: the card-on state and the card-off state, if the initial state of the card slot is the card-off state, the method further comprises:
initially setting the local event as the card pulling event;
Before the first prompt message is sent to the baseband processor to complete the power-on processing of the communication card, the method further includes:
if at least one second event is detected within a preset time length, judging whether the event at the end of the preset time length is the card inserting event, wherein the preset time length is the time length from the moment that the first event is determined to be the card inserting event to the moment that the timer is started until the timer is ended;
if the event when the preset duration is over is the card inserting event, closing the timer;
and setting the local event as the card inserting event.
3. The method of claim 2, wherein the state of the card slot comprises: the card-on state and the card-off state, if the initial state of the card slot is the card-off state, the method further comprises:
initially setting the local event as the card pulling event;
after determining that the first event is the card insertion event and starting the timer, the method further comprises:
detecting at least one second event within a preset time length, wherein the preset time length is a time length from when the first event is determined to be the card inserting event to when the timer is started to finish timing;
Judging whether the event at the end of the preset duration is the card pulling event or not;
if the event when the preset duration is over is the card pulling event, closing the timer and entering a new event detection process.
4. The method of claim 1, wherein the state of the card slot comprises: if the initial state of the card slot is the card-on state, the method further comprises:
initially setting the local event as the card insertion event;
after the first event is detected, the method further comprises:
determining that the first event is the card pulling event and the first event is different from the local event;
after sending the second prompt message to the baseband processor, if at least one second event is detected, judging whether the last second event in the at least one second event is the card inserting event;
if the last second event is the card inserting event, starting the timer, and closing the timer after the timer finishes timing;
and setting the local event as the card inserting event, and sending first prompt information to the baseband processor to finish the power-on processing of the communication card.
5. The method according to claim 4, wherein the method further comprises:
if the last second event is the card pulling event, closing the timer;
and setting the local event as the card pulling event, and sending the second prompt message to the baseband processor to finish the power-off processing of the communication card.
6. The method of any one of claims 1-5, wherein the first prompt message is used to characterize that a current state of the card slot of the electronic device is the card-present state, and instruct the baseband processor to perform a power-on operation for the communication card corresponding to the card slot;
the second prompt information is used for representing that the current state of the card slot of the electronic equipment is the card-free state and indicating the baseband processor to execute power-off operation for the card slot.
7. The method of any of claims 2-5, wherein the card slot of the electronic device includes a card location for placing the communication card, the card location including one or two, each card location having a corresponding identification ID;
after the detection of the at least one second event, the method further comprises:
Acquiring a first Identification (ID) of the clamping position aimed at by the first event, wherein the first Identification (ID) corresponds to a first clamping position, and the first clamping position is one of the clamping positions;
judging whether the identification ID of the clamping position aimed at each event in the at least one second event is the same as the first identification ID;
if each of the at least one second event is the same as the identification ID of the clamping position aimed at by the first event, determining that the hot plug event corresponding to each of the at least one second event and the first event is aimed at the same clamping position;
if the identification ID of the card bit aimed at by the target event is different from the first identification ID, determining that the first occurring target event is a first event corresponding to a second card bit, wherein the target event is one or more events in the at least one second event, and the identification ID corresponding to the second card bit is a second identification ID.
8. The hot plug identification device is applied to electronic equipment and is characterized by comprising a baseband processor and a clamping groove, wherein the baseband processor is connected with the clamping groove, and the clamping groove is used for placing a communication card;
The device comprises a detection unit, a judging unit, a determining unit and an executing unit, wherein,
the detection unit is used for detecting a first event and judging whether the first event is the same as a local event, wherein the first event comprises a card inserting event and a card pulling event, and the local event is one of the card inserting event and the card pulling event;
the judging unit is configured to judge whether the first event is the card pulling event if the first event is different from the local event;
the detection unit is further configured to close a timer and enter a new event detection process if the first event is the card pulling event;
the determining unit is configured to determine that the first event is the card insertion event and start the timer if the first event is not the card pulling event;
the execution unit is used for closing the timer and after the timer finishes timing,
the execution unit is further configured to set the local event as the card insertion event, and send a first prompt message to the baseband processor to complete the power-on processing of the communication card.
9. An electronic device comprising a processor, a memory, a communication interface, and one or more programs stored in the memory and configured to be executed by the processor, the programs comprising instructions for performing the steps in the method of any of claims 1-7.
10. A computer-readable storage medium, characterized in that a computer program for electronic data exchange is stored, wherein the computer program causes a computer to perform the method according to any one of claims 1-7.
CN202310117574.6A 2023-02-09 2023-02-09 Hot plug identification method and device, electronic equipment and readable storage medium Active CN116112603B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310117574.6A CN116112603B (en) 2023-02-09 2023-02-09 Hot plug identification method and device, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310117574.6A CN116112603B (en) 2023-02-09 2023-02-09 Hot plug identification method and device, electronic equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN116112603A true CN116112603A (en) 2023-05-12
CN116112603B CN116112603B (en) 2024-06-11

Family

ID=86255879

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310117574.6A Active CN116112603B (en) 2023-02-09 2023-02-09 Hot plug identification method and device, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN116112603B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101577561A (en) * 2008-12-17 2009-11-11 上海闻泰电子科技有限公司 Mobile terminal realizing hot plug of SIM card and SIM card hot plug method
CN102710827A (en) * 2012-06-11 2012-10-03 无锡力芯微电子股份有限公司 Method and mobile communication terminal for rapidly responding hot plug of SIM card
CN102761346A (en) * 2012-06-19 2012-10-31 中兴通讯股份有限公司 Device and method for processing hot plug of SIM (Subscriber Identity Module) card and mobile terminal
CN104243650A (en) * 2014-09-16 2014-12-24 广东欧珀移动通信有限公司 User identification module card hot plug detection method and device applied to mobile terminal
CN107180005A (en) * 2017-06-15 2017-09-19 烽火通信科技股份有限公司 CF cards realize the method and system of warm connection function
CN109067416A (en) * 2018-09-26 2018-12-21 广东小天才科技有限公司 A kind of method and Intelligent hardware for realizing SIM card hot plug and starting
US20200366328A1 (en) * 2018-02-05 2020-11-19 Samsung Electronics Co., Ltd. Electronic device in which tray for loading sim card is inserted, and control method therefor
CN112468979A (en) * 2019-09-06 2021-03-09 华为技术有限公司 SIM card drop recovery method of electronic equipment and electronic equipment
WO2022111277A1 (en) * 2020-11-25 2022-06-02 中兴通讯股份有限公司 Hot-plug device information transmission method, computer device and readable medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101577561A (en) * 2008-12-17 2009-11-11 上海闻泰电子科技有限公司 Mobile terminal realizing hot plug of SIM card and SIM card hot plug method
CN102710827A (en) * 2012-06-11 2012-10-03 无锡力芯微电子股份有限公司 Method and mobile communication terminal for rapidly responding hot plug of SIM card
CN102761346A (en) * 2012-06-19 2012-10-31 中兴通讯股份有限公司 Device and method for processing hot plug of SIM (Subscriber Identity Module) card and mobile terminal
CN104243650A (en) * 2014-09-16 2014-12-24 广东欧珀移动通信有限公司 User identification module card hot plug detection method and device applied to mobile terminal
CN107180005A (en) * 2017-06-15 2017-09-19 烽火通信科技股份有限公司 CF cards realize the method and system of warm connection function
US20200366328A1 (en) * 2018-02-05 2020-11-19 Samsung Electronics Co., Ltd. Electronic device in which tray for loading sim card is inserted, and control method therefor
CN109067416A (en) * 2018-09-26 2018-12-21 广东小天才科技有限公司 A kind of method and Intelligent hardware for realizing SIM card hot plug and starting
CN112468979A (en) * 2019-09-06 2021-03-09 华为技术有限公司 SIM card drop recovery method of electronic equipment and electronic equipment
WO2022111277A1 (en) * 2020-11-25 2022-06-02 中兴通讯股份有限公司 Hot-plug device information transmission method, computer device and readable medium

Also Published As

Publication number Publication date
CN116112603B (en) 2024-06-11

Similar Documents

Publication Publication Date Title
EP3255912B1 (en) Mobile terminal, maintenance server and maintenance method and apparatus for virtual sim card
CN105704332B (en) Mobile payment method and device
EP2377291B1 (en) Portable mobile communication device and method of controlling near field communication
CN103348714A (en) Switching active subscriber identity of a communication terminal
CN109067416B (en) Method for realizing hot plug and start of SIM card and intelligent hardware
EP1486851A4 (en) Authentication system, authentication server, authentication method, authentication program, terminal, authentication request method, authentication request program, and storage medium
CN108494972B (en) Message reminding method and device, mobile terminal and readable storage medium
CN101577561A (en) Mobile terminal realizing hot plug of SIM card and SIM card hot plug method
WO2015073768A1 (en) Removable memory card discrimination systems and methods
CN113361293A (en) Card swiping method, card controller, electronic device and storage medium
CN112487838B (en) Information prompting method, device, electronic equipment and storage medium
CN116112603B (en) Hot plug identification method and device, electronic equipment and readable storage medium
CN104750575A (en) Restoring method and device for mobile terminal operating system
CN102929676B (en) Based on the quick adaptation method of Android operating system terminal device
CN113950044B (en) User identification card identification method, device, terminal equipment and storage medium
US7836234B2 (en) Communication in accordance with a master-slave communication protocol
CN111367476B (en) Data reading method and device of SIM card
CN108574503B (en) Setting method of interception setting option and related equipment
CN110233773A (en) A kind of SIM card hot plug method, apparatus, terminal device and storage medium
CN108419260B (en) SIM card connection control method, mobile terminal and storage medium
WO2017019169A1 (en) Improvements of subscriber identity module (sim) access profile (sap)
CN107438133B (en) Information response method, device and mobile terminal of the mobile terminal under different scenes
CN109831762B (en) POS data communication method, device, terminal equipment and system
CN114338908B (en) SIM card recovery method, device, chip and module equipment
CN110177173B (en) Switching method and device

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