WO2023024907A1 - 一种sim卡误插卡槽的识别方法及电子设备 - Google Patents

一种sim卡误插卡槽的识别方法及电子设备 Download PDF

Info

Publication number
WO2023024907A1
WO2023024907A1 PCT/CN2022/111512 CN2022111512W WO2023024907A1 WO 2023024907 A1 WO2023024907 A1 WO 2023024907A1 CN 2022111512 W CN2022111512 W CN 2022111512W WO 2023024907 A1 WO2023024907 A1 WO 2023024907A1
Authority
WO
WIPO (PCT)
Prior art keywords
sim card
card
card slot
modem
electronic device
Prior art date
Application number
PCT/CN2022/111512
Other languages
English (en)
French (fr)
Inventor
吕鑫
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2023024907A1 publication Critical patent/WO2023024907A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/32Monitoring with visual or acoustical indication of the functioning of the machine

Definitions

  • the present application relates to the technical field of terminals, and in particular to a method for identifying a SIM card inserted into a card slot by mistake and an electronic device.
  • SIM subscriber identity module
  • SD card secure digital memory card
  • the present application provides a method for identifying a wrongly inserted SIM card into a card slot, electronic equipment, a computer-readable storage medium, and a computer program product, which can detect whether a user has inserted a wrong SIM card, and can intelligently detect whether a user has inserted a wrong SIM card. The user is reminded, so that the user can replace the SIM card into the correct card slot in time, which improves the user experience.
  • the present application provides a method for identifying a SIM card inserted into a card slot by mistake, which is applied to electronic equipment, and the electronic equipment includes a SIM card slot and a non-SIM card slot.
  • the electronic equipment includes a SIM card slot and a non-SIM card slot.
  • the electronic device can detect that the user has inserted the SIM card by mistake, and can intelligently remind the user after detecting that the user has inserted the wrong SIM card.
  • the user can replace the SIM card into the correct card slot in time, which improves the user experience.
  • determining that the card is a SIM card specifically includes: when a card is inserted into a non-SIM card slot, supplying power to the card, and reading the File information; based on the file information, it is determined that the card is a SIM card. In this way, by supplying power to the card in the non-SIM card slot, the file information in the card can be read, and then the card can be determined to be a SIM card based on the read file information.
  • the outputting the wrong card insertion information specifically includes: displaying the wrong card insertion information, and/or broadcasting the wrong card insertion information by voice.
  • the information of wrongly inserted card is output through interface display and/or voice reminder, so that the user can know the wrongly inserted card in time, and replace the SIM card into the correct card slot in time.
  • displaying the information of the wrongly inserted card specifically includes: displaying the information of the wrongly inserted card by one or more ways of a pop-up window, a drop-down menu, or a negative screen.
  • the wrongly inserted card information is displayed through a pop-up window, a drop-down menu, or a negative screen, so that the user can be informed of the wrongly inserted card in time, and the SIM card can be replaced in the correct card slot in time.
  • the electronic device is a single-card device.
  • the electronic device is configured with a first modem and a first SIM card driver, and the first modem is connected to a non-SIM card slot through the first SIM card driver.
  • the SIM card driver and the modem can detect in time whether the non-SIM card slot is a SIM card.
  • the first modem is connected to the SIM card slot through the first SIM card driver.
  • the SIM card driver can poll and interact with the cards in the SIM card slot and the non-SIM card slot, so that the communication function of the electronic device and the detection of non-SIM card slots can be realized through a modem and a SIM card driver. The function of whether to insert the SIM card.
  • a second SIM card driver is configured in the electronic device, and the first modem is connected to the non-SIM card slot through the second SIM card driver.
  • the communication function of the electronic device and the function of detecting whether a SIM card is inserted into the non-SIM card slot can be realized through a modem.
  • the electronic device is configured with a second modem and a second SIM card driver, and the second modem is connected to the SIM card slot through the second SIM card driver.
  • the communication function of the electronic device can be realized through the second modem and the second SIM card driver, and the function of the electronic device to detect whether a SIM card is inserted into a non-SIM card slot can be realized through the first modem and the first SIM card driver.
  • the SIM card slot and the non-SIM card slot correspond to the same card tray.
  • the SIM card slot and the non-SIM card slot correspond to the same card tray.
  • the present application provides a method for identifying a SIM card inserted into a card slot by mistake, which is applied to electronic equipment, and the electronic equipment includes: a SIM card slot, a non-SIM card slot, a wireless communication interface module RIL, a first modem and Information output module, wherein, the first modem corresponds to the non-SIM card slot; the method includes: when a card is inserted in the non-SIM card slot, the first modem identifies whether the card is a SIM card; when the first modem recognizes that the card is a SIM card, the first modem reports the first information to the wireless communication interface module RIL, the first information is used to indicate that the SIM card has been identified; the wireless communication interface module RIL responds to the first information, and sends the second information to the information output module, the second information It is used to indicate that the SIM card is inserted into the card slot by mistake; the information output module outputs the information of incorrectly inserted card, and the information of incorrectly inserted card is used to prompt
  • the electronic device can detect that the user has inserted the SIM card by mistake, and can intelligently remind the user after detecting that the user has inserted the wrong SIM card. Furthermore, the user can replace the SIM card into the correct card slot in time, which improves the user experience.
  • the wireless communication interface module RIL may correspond to the SIM card slots, for example, one-to-one correspondence.
  • the electronic device further includes: a second modem, the second modem corresponds to the SIM card slot, and the second modem corresponds to the wireless communication interface module RIL.
  • the communication function of the electronic device can be realized through the second modem, and the function of the electronic device to detect whether a SIM card is inserted into the non-SIM card slot can be realized through the first modem.
  • both the first modem and the second modem may correspond to the wireless communication interface module RIL.
  • the first modem also corresponds to the SIM card slot.
  • the communication function of the electronic device and the function of detecting whether a SIM card is inserted into the non-SIM card slot can be realized through a modem.
  • the present application provides an electronic device, including: a SIM card slot and a non-SIM card slot; at least one memory for storing programs; at least one processor for executing the programs stored in the memory, when the memory When the stored program is executed, the processor is configured to perform the method provided in the first aspect.
  • the electronic device is a single-card device.
  • the electronic device is configured with a first modem and a first SIM card driver, and the first modem is connected to a non-SIM card slot through the first SIM card driver.
  • the first modem is connected to the non-SIM card slot through the first SIM card driver.
  • a second SIM card driver is configured in the electronic device, and the first modem is connected to the non-SIM card slot through the second SIM card driver.
  • the electronic device is configured with a second modem and a second SIM card driver, and the second modem is connected to the SIM card slot through the second SIM card driver.
  • the SIM card slot and the non-SIM card slot correspond to the same card tray.
  • the present application provides an identification device for misinserting a SIM card into a card slot, which is deployed in an electronic device, and the electronic device includes a SIM card slot and a non-SIM card slot, and the identification device includes: a determination module for when When a card is inserted into a non-SIM card slot, it is determined that the card is a SIM card; the output module is used to output wrong card insertion information, and the wrong card insertion information is used to prompt the user to insert a SIM card into the card slot by mistake.
  • the determining module is specifically configured to: when a card is inserted into a non-SIM card slot, supply power to the card, and read file information in the card; based on the file information, determine that the card is a SIM card.
  • the output module is specifically configured to: display information about a wrongly inserted card, and/or broadcast the information about a wrongly inserted card by voice.
  • the output module is specifically configured to: display the incorrectly inserted card information in one or more ways of a pop-up window, a pull-down menu, or a negative screen.
  • the electronic device is a single-card device.
  • the electronic device is configured with a first modem and a first SIM card driver, and the first modem is connected to a non-SIM card slot through the first SIM card driver.
  • the first modem is connected to the SIM card slot through the first SIM card driver.
  • a second SIM card driver is configured in the electronic device, and the first modem is connected to the non-SIM card slot through the second SIM card driver.
  • the electronic device is configured with a second modem and a second SIM card driver, and the second modem is connected to the SIM card slot through the second SIM card driver.
  • the SIM card slot and the non-SIM card slot correspond to the same card tray.
  • the present application provides an identification device for misinserting a SIM card into a card slot, including at least one processor and an interface; at least one processor obtains program instructions or data through the interface; at least one processor is used to execute program instructions, To realize the method provided in the first aspect, or to realize the method provided in the second aspect.
  • the present application provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when the computer program is run on an electronic device, the electronic device executes the method provided in the first aspect.
  • the present application provides a computer program product, which is characterized in that the computer program product includes a computer program, and when the computer program is executed by a computer, the computer implements the method provided in the first aspect.
  • Fig. 1a is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
  • Fig. 1b is a schematic diagram of a card slot and a card tray on an electronic device provided in an embodiment of the present application;
  • Fig. 1c is a schematic diagram of a card slot and a card tray on an electronic device provided in an embodiment of the present application;
  • FIG. 2 is a schematic diagram of an Android phone communication framework structure of an electronic device provided in an embodiment of the present application
  • Fig. 3 is a schematic flow chart of a method for identifying a SIM card inserted into a card slot by mistake provided by an embodiment of the present application;
  • FIG. 4 is a schematic diagram of a display interface of an electronic device provided in an embodiment of the present application.
  • FIG. 5 is a schematic diagram of the identification process of a method for identifying a SIM card inserted into a card slot by mistake provided by an embodiment of the present application;
  • FIG. 6 is a schematic diagram of an Android phone communication framework structure of another electronic device provided by an embodiment of the present application.
  • FIG. 7 is a schematic diagram of another Android phone communication framework structure of an electronic device provided by an embodiment of the present application.
  • FIG. 8 is a schematic diagram of another Android phone communication framework structure of an electronic device provided by an embodiment of the present application.
  • FIG. 9 is a schematic diagram of another Android phone communication framework structure of an electronic device provided by an embodiment of the present application.
  • FIG. 10 is a schematic structural diagram of an identification device for misinserting a SIM card into a card slot provided by an embodiment of the present application;
  • FIG. 11 is a schematic structural diagram of another identification device for misinserting a SIM card into a card slot provided by an embodiment of the present application.
  • first and second and the like in the specification and claims herein are used to distinguish different objects, not to describe a specific order of objects.
  • first response message and the second response message are used to distinguish different response messages, rather than describing a specific order of the response messages.
  • words such as “exemplary” or “for example” are used as examples, illustrations or illustrations. Any embodiment or design scheme described as “exemplary” or “for example” in the embodiments of the present application shall not be interpreted as being more preferred or more advantageous than other embodiments or design schemes. Rather, the use of words such as “exemplary” or “such as” is intended to present related concepts in a concrete manner.
  • multiple means two or more, for example, multiple processing units refer to two or more processing units, etc.; multiple A component refers to two or more components or the like.
  • the electronic device in the embodiment of the present application may be a mobile phone, a tablet computer, a desktop computer, a laptop computer, a handheld computer, a notebook computer, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook , and cellular phones, personal digital assistants (personal digital assistant, PDA), augmented reality (augmented reality, AR) devices, virtual reality (virtual reality, VR) devices, artificial intelligence (artificial intelligence, AI) devices, wearable Devices, vehicle-mounted devices, smart home devices and/or smart city devices and other electronic devices with non-SIM card slots and SIM card slots, the embodiment of the present application does not specifically limit the specific type of the electronic device.
  • PDA personal digital assistant
  • augmented reality augmented reality, AR
  • virtual reality virtual reality
  • AI artificial intelligence
  • wearable Devices wearable Devices
  • vehicle-mounted devices smart home devices and/or smart city devices and other electronic devices with non-SIM card slots and SIM card slots
  • Fig. 1a shows a schematic structural diagram of an electronic device.
  • the electronic device 100 may include: a processor 110 , a memory 120 , a non-SIM card slot 130 , a SIM card slot 140 and a display screen 150 .
  • the processor 110 , the memory 120 , the non-SIM card slot 130 , the SIM card slot 140 and the display screen 150 may be connected through a bus or in other ways.
  • the processor 110 is a calculation core and a control core of the electronic device 100 .
  • Processor 110 may include one or more processing units.
  • the processor 110 may include an application processor (application processor, AP), a modem (modem), a graphics processing unit (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), a controller, a video encoder One or more of a decoder, a digital signal processor (digital signal processor, DSP), a baseband processor, and/or a neural network processor (neural-network processing unit, NPU), etc.
  • different processing units may be independent devices, or may be integrated in one or more processors.
  • the memory 120 may store a program, and the program may be executed by the processor 110, so that the processor 110 executes the method performed by the electronic device 100 provided in the embodiment of the present application.
  • the memory 120 may also store data.
  • the processor 110 can read data stored in the memory 120 .
  • the memory 120 and the processor 110 may be provided separately.
  • the memory 120 may also be integrated in the processor 110 .
  • the non-SIM card slot 130 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100.
  • the external memory card communicates with the processor 110 through the non-SIM card slot 130 to realize the data storage function. Such as saving music, video and other files in the external memory card.
  • there may be one or more non-SIM card slots 130 and each non-SIM card slot 130 may correspond to a non-SIM card tray for placing a non-SIM card.
  • the non-SIM card can be placed in the non-SIM card tray, and the non-SIM card tray can be inserted into the corresponding non-SIM card slot 130 , that is, the non-SIM card can be fixed on the electronic device 100 .
  • the card holder corresponding to the non-SIM card slot 130 may have a space for placing a non-SIM card.
  • the SIM card slot 140 is used for connecting a SIM card.
  • the SIM card can be connected and separated from the electronic device 100 by being inserted into the SIM card slot 140 or pulled out from the SIM card slot 140 .
  • the electronic device 100 can support 1 or N SIM card slots, where N is a positive integer greater than 1.
  • SIM card slot 140 can support Nano SIM card, Micro SIM card, SIM card etc. Multiple SIM cards can be inserted into the same SIM card slot 140 at the same time. The types of the multiple cards may be the same or different.
  • the SIM card slot 140 is also compatible with different types of SIM cards.
  • the SIM card slot 140 is also compatible with external memory cards.
  • the electronic device 100 interacts with the network through the SIM card to implement functions such as calling and data communication.
  • the electronic device 100 adopts an eSIM, that is, an embedded SIM card.
  • the eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100 .
  • there may be one or more SIM card slots 140 and each SIM card slot 140 may correspond to a SIM card tray for placing a SIM card.
  • the SIM card can be inserted into the SIM card slot, so that the SIM card can be fixed on the electronic device 100 .
  • the card tray corresponding to the SIM card slot 140 may have a space for placing the SIM card.
  • the size of the non-SIM card tray corresponding to the non-SIM card slot 130 may be the same as the size of the SIM card tray corresponding to the SIM card slot 140 . Meanwhile, the size of the non-SIM card corresponding to the non-SIM card slot 130 may be the same as the size of the SIM card corresponding to the SIM card slot 140 .
  • the card tray corresponding to the non-SIM card slot 130 and the card tray corresponding to the SIM card slot 140 can be the same card tray, and at this time, at least one SIM card and at least one non-SIM card can be placed on a card tray at the same time.
  • Card such as SD card, etc.
  • a card slot refers to a slot or space on an electronic device for accommodating a card tray.
  • a SIM card slot refers to a slot or space on an electronic device that accommodates a SIM card holder;
  • a non-SIM card slot refers to a slot or space on an electronic device that accommodates a non-SIM card holder.
  • the electronic device 100 has a non-SIM card slot 130 and a SIM card slot 140, and the corresponding card trays of the two are different; wherein, the non-SIM card slot 130 corresponds to the card tray A, the card tray A can be inserted into the non-SIM card slot 130, and there is a space a for placing a non-SIM card on the card tray A; the SIM card slot 140 corresponds to the card tray B, and the card tray B can be inserted into the SIM card In the card slot 140, a space b for placing a SIM card is configured on the card holder B. Exemplarily, as shown in FIG.
  • the electronic device 100 has a non-SIM card slot 130 and a SIM card slot 140, and the card trays corresponding to the two are the same, and both correspond to the card tray C, wherein the card tray C can be inserted into the non-SIM card slot 130 and the SIM card slot; in addition, a space c1 for placing a non-SIM card and a space c2 for placing a SIM card are configured on the card tray C.
  • the non-SIM card slot 130 and a SIM card slot 140 correspond to the same card holder
  • the non-SIM card slot 130 and the SIM card slot 140 can be understood as the same card slot.
  • the display screen 150 is used for displaying images, videos, information about wrongly inserted cards, and the like.
  • the display screen 150 includes a display panel.
  • the display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active matrix organic light emitting diode or an active matrix organic light emitting diode (active-matrix organic light emitting diode, AMOLED), flexible light-emitting diode (flex light-emitting diode, FLED), Miniled, MicroLed, Micro-oLed, quantum dot light emitting diodes (quantum dot light emitting diodes, QLED), etc.
  • LCD liquid crystal display
  • OLED organic light-emitting diode
  • AMOLED active matrix organic light emitting diode
  • FLED flexible light-emitting diode
  • Miniled MicroLed, Micro-oLed
  • quantum dot light emitting diodes quantum dot light emitting diodes (quantum dot light emit
  • the electronic device 100 may further include a touch sensor, and the touch sensor may be used to detect a touch operation on or near the electronic device 100 .
  • the touch sensor can be implemented in various ways such as resistive, capacitive, infrared, and surface acoustic wave.
  • the touch sensor can be arranged on the display screen 150, and the touch sensor and the display screen 150 can form a touch screen, also called "touch screen”.
  • the structure shown in FIG. 1 a of this embodiment does not constitute a specific limitation on the electronic device 100 .
  • the electronic device 100 may include more or fewer components than shown, or combine certain components, or separate certain components, or arrange different components.
  • the illustrated components can be realized in hardware, software or a combination of software and hardware.
  • FIG. 2 shows a schematic diagram of an Android phone communication framework structure of an electronic device.
  • the electronic device 100 is a single card device, and it has two card slots, the card slot 1 is used to insert the SIM card, and the card slot 2 is used to insert the SD card; wherein, the SIM card can also be inserted into the card slot 2 middle.
  • the card slot 1 can be understood as the SIM card slot 140 shown in FIG. 1
  • the card slot 2 can be understood as the non-SIM card slot 130 shown in FIG. 1 .
  • the electronic device 100 is taken as an example of a single-card device for illustration. Therefore, the Android phone communication framework of the electronic device 100 has a phone module (phone) and a wireless communication interface module (radio layer interface, RIL).
  • RIL radio layer interface
  • the Android telephony framework may include an application layer, an intermediate layer, a kernel layer and a hardware layer.
  • the application layer may include a series of phone applications.
  • the phone applications may include applications such as calling, dialing, short message, and calendar.
  • the phone application may include a service application for reminding the user to insert the SIM card by mistake.
  • the middle layer can provide an application programming interface (application programming interface, API) and a programming framework for the telephone application of the application layer.
  • the middle layer can include some predefined functions.
  • the middle layer may include a telephone module (Phone) and a wireless communication interface module (radio layer interface, RIL).
  • the phone module (Phone) can provide functions such as answering calls, sending and receiving short messages, phone book, monitoring network events, and reading user information.
  • the telephone module (Phone) is the core of the entire telephone communication (Telephony) service.
  • the telephone module (Phone) may also be referred to as a Phone object.
  • main telephone communication (Telephony) services such as: SMS interface management SmsInterfaceManager, phonebook interface management PhoneBookInterfaceManager
  • data connection functions can be provided through specific Phone objects, and specific Phone objects can include CDMAPhone, CDMALTEPhone, GSMPhone and SipPhone.
  • the wireless communication interface module RIL provides an abstraction layer between Android telephony and radio hardware.
  • the wireless communication interface module RIL can be responsible for the communication between the hardware and the phone module (Phone).
  • An attention (AT) command channel may be established between the wireless communication interface module RIL and the modem modem. Wherein, the AT command channel can be used to transmit the communication data between the wireless communication interface module RIL and the modem.
  • the kernel layer is the layer between hardware and software.
  • the kernel layer includes at least a protocol stack and a SIM card driver corresponding to the card slot on the electronic device 100 .
  • the protocol stack can provide the protocol required for the communication between the modem modem and the wireless communication interface module RIL.
  • the number of protocol stacks may be in one-to-one correspondence with the modem.
  • multiple protocol stacks can also correspond to a modem.
  • the SIM card driver may be responsible for functions such as powering on, powering off, or voltage conversion for the SIM card inserted into its corresponding card slot.
  • the SIM card driver can also provide a data transmission function; for example, the SIM card in the card slot 1 can perform data interaction with the modem 1 through the SIM card driver 1 .
  • the SIM card drivers may correspond to the card slots on the electronic device 100 one by one.
  • one SIM card driver can also correspond to multiple card slots, and at this time, the SIM card driver can poll and read the information of the cards on the corresponding card slots.
  • the SIM card driver powers on the card inserted into its corresponding card slot
  • the SIM card driver obtains the reset response (answer to reset, ATR) message fed back by the card in the card slot
  • the SIM card driver can report the ATR message to its corresponding modem, so that the modem can read the file information in the card, and then determine that the card inserted in the card slot is a SIM card.
  • the hardware layer can include modems and card slots.
  • the number of card slots is at least two, and the number of modems can be determined according to actual conditions, which is not limited here. Exemplarily, continue to refer to Fig. 2, take modem modem as two examples, card slot 1, SIM card drive 1, modem modem1, protocol stack 1 and wireless communication interface module RIL can constitute a data transmission path; Card slot 2, SIM card driver 2, modem modem 2, protocol stack 2 and wireless communication interface module RIL can form a data transmission path. Wherein, the data transmission path corresponding to the card slot 2 can make the modem 2 modem2 report the information of the SIM card inserted in the card slot 2 .
  • the modem Modem can read the file information of the card in the card slot corresponding to the SIM card driver after obtaining the ATR message reported by the corresponding SIM card driver, and by the read file information, Determine whether the card is a SIM card.
  • the SIM card driver 1 After the user inserts the SIM card into the card slot 1, the SIM card driver 1 can be powered on. After the SIM card driver 1 obtains the ATR message fed back by the SIM card, the SIM card driver 1 may report the ATR message fed back by the SIM card to the modem 1 . Afterwards, the modem 1 can read the file information of the card in the card slot 1, and then determine that the card is a SIM card. Afterwards, the modem 1 can report the relevant information of the SIM card to the wireless communication interface module RIL through the AT command channel established in advance or in real time with the wireless communication interface module RIL. The wireless communication interface RIL can report the related information of the SIM card to the phone module.
  • the telephone module After the telephone module obtains the relevant information of the SIM card, it can broadcast the relevant information of the SIM card, so that the relevant information of the SIM card can be obtained by the display application used to display the SIM card information, and then the display application can display the relevant information of the SIM card on the electronic device 100.
  • Related information of the SIM card is displayed on the display screen 150, for example, the phone number of the SIM card and the operator it belongs to are displayed.
  • the phone module can also directly send the relevant information of the SIM card to a display application for displaying the information of the SIM card, which is not limited here.
  • the SIM card driver 2 can be powered on. After the SIM card driver 2 obtains the ATR message fed back by the SIM card, the SIM card driver 2 may report the ATR message fed back by the SIM card to the modem 2 . Afterwards, the modem 2 can read the file information of the card in the card slot 1, and then determine that the card is a SIM card. Afterwards, the modem 2 can report the information that it recognizes the SIM card to the wireless communication interface module RIL through the AT command channel established in advance or in real time with the wireless communication interface module RIL. After the wireless communication interface RIL obtains the information reported by the modem 2 that the modem 2 recognizes the SIM card, it can generate abnormal information and report the abnormal information to the phone module.
  • the phone module After the phone module acquires the abnormal information, it can broadcast the abnormal information, so that the service application used to remind the wrongly inserted card can obtain the abnormal information, and then the service application reminds the user on the electronic device 100 of incorrectly inserted the card.
  • the phone module may also directly send the abnormal information to a service application for reminding the wrong card insertion, which is not limited here.
  • FIG. 3 shows a schematic flowchart of a method for identifying a SIM card inserted into a card slot by mistake.
  • the electronic device 100 has at least two card slots into which cards (such as SIM cards, SD cards, etc.) can be inserted, and at least one of the card slots is a non-SIM card slot (such as: SD card slot, etc.) , and at least one card slot is a SIM card slot.
  • cards such as SIM cards, SD cards, etc.
  • non-SIM card slot such as: SD card slot, etc.
  • the size of the space that accommodates the non-SIM card on the card holder corresponding to the non-SIM card slot can be the same as the size of the space that accommodates the SIM card on the card holder corresponding to the SIM card slot, thus, so that it can appear on the non-SIM card When a SIM card is inserted into the card slot.
  • the non-SIM card slot may correspond to a SIM card driver.
  • the identification method for the wrong insertion of the SIM card into the card slot may include the following steps:
  • the electronic device 100 may detect the card to determine the type of the card. Wherein, when a card is inserted into the non-SIM card slot, the electronic device 100 may detect the card, and then determine whether the card is a SIM card. Exemplarily, as shown in FIG. 2, when a card is inserted into the card slot 2 of the electronic device 100, the electronic device 100 can determine whether the card is a SIM card through the SIM card driver 2 and the modem 2 thereon, wherein, For the identification process, refer to the description in Figure 2 above, and will not be repeated here.
  • the electronic device 100 may output wrong card insertion information for prompting the user to insert the SIM card into the card slot by mistake.
  • the user may be reminded in one or more ways of voice, text, and picture.
  • incorrect card insertion information may be displayed in area A of the display screen on the electronic device 100, and the incorrect card insertion information may be: it is detected that the SIM card is inserted into the wrong card slot position, and card slot 2 does not support SIM SIM card, please replace it to the correct SIM card slot position.
  • incorrect card insertion information may be displayed in area A of the display screen on the electronic device 100, and the incorrect card insertion information may be: it is detected that the SIM card is inserted into the wrong card slot position, and card slot 2 does not support SIM SIM card, please replace it to the correct SIM card slot position.
  • the user can close the reminder by selecting the "no more prompt" control in area A. It can be understood that the operation of turning off the reminder may also be other operations, and it is only necessary to turn off the reminder, which is not limited here.
  • the way of outputting the information about the wrongly inserted card may include one or more of a pop-up window, a drop-down menu, and a negative screen, etc., which are not limited here.
  • the electronic device 100 can detect that the user has inserted the SIM card by mistake, and can intelligently remind the user after detecting that the user has inserted the wrong SIM card, so that the user can promptly insert the SIM card.
  • the SIM card is replaced into the correct card slot, which improves the user experience.
  • FIG. 5 shows a schematic diagram of an identification process of a method for identifying a SIM card inserted into a card slot by mistake.
  • the card slot 2, SIM card driver 2, Modem2, RIL and service application shown in Fig. 5 are all the card slot 2, SIM card driver 2, Modem2, RIL and service application described in Fig. 2 .
  • the identification process of the identification method of this SIM card mistaken insertion card slot can comprise the following steps:
  • the user can place the SIM card on the card holder corresponding to the card slot 2, and insert the card holder into the card slot 2, at this time, the SIM card is inserted into the card slot 2.
  • the card slot 2 is a non-SIM card slot, for example, the card slot 2 may be an SD card slot.
  • the SIM card driver 2 supplies power to the SIM card.
  • the SIM card driver 2 can supply power to the card in the card slot 2.
  • the card may be a SIM card.
  • the SIM card feeds back the ATR message to the SIM card driver 2.
  • the SIM card may feed back an ATR message to the SIM card driver 2 .
  • the SIM card driver 2 reports the ATR message to Modem2.
  • the SIM card driver 2 may report the ATR message to Modem2.
  • Modem2 reads the file information in the SIM card.
  • Modem2 after Modem2 obtains the ATR message reported by the SIM card driver, it can read the file information in the SIM card.
  • the file information in the SIM card may include: a file identifier for identifying each file in the SIM card, and the like.
  • the Modem 2 determines that the card inserted into the card slot 2 is a SIM card based on the read file information.
  • Modem2 After Modem2 reads the file information in the SIM card, it can compare the file information it read with the pre-marked file information, and when the comparison is successful, it can determine that the card slot 2 is inserted
  • the card is a SIM card.
  • Modem 2 sends to the RIL first information for indicating that the SIM card is recognized.
  • the Modem 2 can send the first information for identifying the SIM card to the RIL through the AT command channel established with the RIL in advance or in real time.
  • Modem2 can write the first information that is used to represent identifying SIM card in the device file node of Modem2; Afterwards, Modem2 can send AT command to RIL; After RIL obtains AT command, RIL can be from Read the first information from the device file node of Modem2.
  • the RIL broadcasts second information in response to the acquired first information, and the second information is used to indicate that the SIM card is inserted into the card slot by mistake.
  • the RIL may broadcast second information indicating that the SIM card has been inserted into the card slot by mistake.
  • the service application listens to the second information broadcast by the RIL, and outputs wrong card insertion information, and the wrong card insertion information is used to remind the user that the SIM card is wrongly inserted into the card slot.
  • the service application may output the card incorrectly inserted information for prompting the user to insert the SIM card into the card slot incorrectly.
  • S508 can also be replaced by RIL sending a message indicating that the SIM card is wrongly inserted to the module dedicated to outputting wrong card information.
  • the second information of the card slot at this time, the service application in S509 is replaced by the module specially used for outputting the wrong card information.
  • the service application in S509 may also be replaced with other modules or applications, such as a system; wherein, the replaced solution is still within the protection scope of the present application.
  • the Android phone communication framework structure of the electronic device 100 in the embodiment of the present application may also be other structures.
  • the recognition process of the identification method of the SIM card misinserted card slot corresponding to different Android phone communication frame structures can be different, and the different Android phone communication frame structures and the wrongly inserted card under each Android phone communication frame structure are respectively below The identification process of the groove identification method is introduced.
  • FIG. 6 shows a schematic diagram of an Android phone communication framework structure of another electronic device.
  • the difference between the Android phone communication frame structure shown in Figure 6 and the Android phone communication frame structure shown in Figure 2 is that the Android phone communication frame structure shown in Figure 6 has a modem, and the modem corresponds to There are two protocol stacks; and the Android phone communication framework structure shown in FIG. 2 has two modems, and each modem corresponds to a protocol stack.
  • card slot 1, SIM card driver 1, modem modem1, protocol stack 1 and wireless communication interface module RIL can constitute a data transmission path; card slot 2, SIM card driver 2, modem modem1, protocol stack 2 and wireless The communication interface module RIL can constitute a data transmission path.
  • the data transmission path corresponding to the card slot 2 can enable the modem1 to report the information of the SIM card inserted in the card slot 2 .
  • the SIM card driver 2 After the SIM card driver 2 recognizes the SIM card, the SIM card driver 2 sends the status information of the SIM card to Modem1. After Modem 1 acquires the status information of the SIM card, it can send the status information of the SIM card to RIL through the AT command channel established between the protocol stack 2 and RIL in advance or in real time.
  • the SIM card driver 2 After the SIM card driver 2 recognizes the SIM card, the SIM card driver 2 sends the status information of the SIM card to Modem2. After Modem 2 acquires the status information of the SIM card, it can send the status information of the SIM card to the RIL through the AT command channel established between the protocol stack 2 and the RIL in advance or in real time.
  • card slot 1 and the card slot 2 shown in FIG. 6 may correspond to the same card tray, or may correspond to different card trays.
  • the number of card slots 1 may also be multiple, and the number of card slots 2 may also be multiple, which are not limited here.
  • FIG. 7 shows a schematic diagram of another Android phone communication framework structure of an electronic device.
  • the difference between the Android phone communication frame structure shown in Figure 7 and the Android phone communication frame structure shown in Figure 2 is that the Android phone communication frame structure shown in Figure 7 has a modem, and the modem corresponds to There is one protocol stack; and the Android phone communication framework structure shown in FIG. 2 has two modems, and each modem corresponds to a protocol stack.
  • card slot 1, SIM card driver 1, modem modem1, protocol stack 1 and wireless communication interface module RIL can constitute a data transmission path; card slot 2, SIM card driver 2, modem modem1, protocol stack 1 and wireless The communication interface module RIL can constitute a data transmission path.
  • the data transmission path corresponding to the card slot 2 can enable the modem1 to report the information of the SIM card inserted in the card slot 2 .
  • the SIM card driver 2 After the SIM card driver 2 recognizes the SIM card, the SIM card driver 2 sends the status information of the SIM card to Modem1.
  • Modem 1 After Modem 1 obtains the status information of the SIM card, it can send the status information of the SIM card to RIL through the AT command channel established between the protocol stack 1 and RIL in advance or in real time.
  • the type of the message reported by the SIM card driver 1 to the Modem1 may be different from the type of the message reported by the SIM card driver 2 to the Modem1, so that the Modem1 can distinguish the source of the obtained message.
  • the message reported by the SIM card driver 2 to the Modem1 may carry the identity of the SIM card driver 2, so that the Modem1 can distinguish the source of the obtained message.
  • the SIM card driver 2 After the SIM card driver 2 recognizes the SIM card, the SIM card driver 2 sends the status information of the SIM card to Modem2. After Modem 2 acquires the status information of the SIM card, it can send the status information of the SIM card to the RIL through the AT command channel established between the protocol stack 2 and the RIL in advance or in real time.
  • card slot 1 and the card slot 2 shown in FIG. 7 may correspond to the same card tray, or may correspond to different card trays.
  • the number of card slots 1 may also be multiple, and the number of card slots 2 may also be multiple, which are not limited here.
  • FIG. 8 shows a schematic diagram of another Android phone communication framework structure of an electronic device.
  • the Android phone communication frame structure shown in Figure 8 has a modem and a SIM card driver, And this modem modem corresponds to a protocol stack, and the SIM card driver corresponds to a plurality of card slots; and the Android phone communication framework structure shown in Figure 2 has two modem modems and two SIM card drivers, and each modem modem corresponds to A protocol stack, each SIM card driver corresponds to a card slot.
  • card slot 1, SIM card driver 1, modem modem1, protocol stack 1 and wireless communication interface module RIL can constitute a data transmission path; card slot 2, SIM card driver 1, modem modem1, protocol stack 1 and wireless The communication interface module RIL can constitute a data transmission path.
  • the data transmission path corresponding to the card slot 2 can enable the modem1 to report the information of the SIM card inserted in the card slot 2 .
  • the SIM card driver 1 can poll and read the information of the cards inserted in the card slot 1 and the card slot 2 . Wherein, after the SIM card driver 1 recognizes that there is a SIM card in the card slot 2, it can send the status information of the SIM card to the Modem1. After Modem 1 obtains the status information of the SIM card, it can send the status information of the SIM card to RIL through the AT command channel established between the protocol stack 1 and RIL in advance or in real time.
  • the type of the message related to the SIM card in the card slot 1 reported by the SIM card driver 1 may be different from the type of the message related to the SIM card in the card slot 2 reported by the SIM card driver 1, so that Modem1 can distinguish the obtained source of news.
  • the message reported by the SIM card driver 1 to the Modem 1 may carry the ID of the card slot, so that the Modem 1 can distinguish the source of the received message.
  • the SIM card driver 2 After the SIM card driver 2 recognizes the SIM card, the SIM card driver 2 sends the status information of the SIM card to Modem2. After Modem 2 acquires the status information of the SIM card, it can send the status information of the SIM card to the RIL through the AT command channel established between the protocol stack 2 and the RIL in advance or in real time.
  • card slot 1 and the card slot 2 shown in FIG. 8 may correspond to the same card tray, or may correspond to different card trays.
  • the number of card slots 1 may also be multiple, and the number of card slots 2 may also be multiple, which are not limited here.
  • FIG. 9 shows a schematic diagram of another Android phone communication framework structure of an electronic device.
  • the difference between the Android phone communication frame structure shown in Figure 9 and the Android phone communication frame structure shown in Figure 2 is that the Android phone communication frame structure shown in Figure 9 has a modem modem and a SIM card driver, And the modem modem has two protocol stacks correspondingly, and the SIM card driver corresponds to a plurality of card slots; and the Android phone communication frame structure shown in Figure 2 has two modem modems and two SIM card drivers, and each modem modem has two SIM card drivers. Corresponding to a protocol stack, each SIM card driver corresponds to a card slot.
  • card slot 1, SIM card driver 1, modem modem1, protocol stack 1 and wireless communication interface module RIL can constitute a data transmission path; card slot 2, SIM card driver 1, modem modem1, protocol stack 2 and wireless The communication interface module RIL can constitute a data transmission path.
  • the data transmission path corresponding to the card slot 2 can enable the modem1 to report the information of the SIM card inserted in the card slot 2 .
  • the SIM card driver 1 can poll and read the information of the cards inserted in the card slot 1 and the card slot 2 . Wherein, after the SIM card driver 1 recognizes that there is a SIM card in the card slot 2, it can send the status information of the SIM card to the Modem1. After Modem 1 acquires the status information of the SIM card, it can send the status information of the SIM card to RIL through the AT command channel established between the protocol stack 2 and RIL in advance or in real time.
  • the type of the message related to the SIM card in the card slot 1 reported by the SIM card driver 1 may be different from the type of the message related to the SIM card in the card slot 2 reported by the SIM card driver 1, so that Modem1 can distinguish the obtained source of news.
  • the message reported by the SIM card driver 1 to the Modem 1 may carry the ID of the card slot, so that the Modem 1 can distinguish the source of the received message.
  • the SIM card driver 2 After the SIM card driver 2 recognizes the SIM card, the SIM card driver 2 sends the status information of the SIM card to Modem2. After Modem 2 acquires the status information of the SIM card, it can send the status information of the SIM card to the RIL through the AT command channel established between the protocol stack 2 and the RIL in advance or in real time.
  • card slot 1 and the card slot 2 shown in FIG. 9 may correspond to the same card tray, or may correspond to different card trays.
  • the number of card slots 1 may also be multiple, and the number of card slots 2 may also be multiple, which are not limited here.
  • the identification method for misinserting a SIM card into a card slot provided in the embodiment of the present application can be applied to a multi-card device (such as a dual-card dual-standby electronic device, etc.) in addition to being applicable to a single-card device. superior. Wherein, the solution applied to the multi-card device is still within the protection scope of the present application. In addition, the implementation principle when applied to a multi-card device is similar to that when applied to a single-card device, and details will not be repeated here.
  • the SIM card driver corresponding to the card slot 1 can power on the card in the card slot 1 .
  • the SIM card driver corresponding to card slot 1 powers on the card in card slot 1
  • the SIM card driver can send the corresponding modem Report an empty message (ie, a message containing no data).
  • the modem Modem obtains the empty message reported by the SIM card driver, it can know that the card inserted in the current card slot 1 is not a SIM card.
  • the modem Modem can send information for indicating that the SIM card is not recognized to the RIL.
  • the RIL obtains the information sent by the modem, it can respond to the information and broadcast the information indicating that the card is wrongly inserted in the card slot 1 .
  • the service application obtains the information broadcast by the RIL, it may output the information about the wrong card inserted in the card slot 1 .
  • FIG. 10 is a schematic structural diagram of an identification device for misinserting a SIM card into a card slot provided by an embodiment of the present application.
  • the identification device for misinserting a SIM card into a card slot can be deployed on electronic equipment including a SIM card slot and a non-SIM card slot.
  • an identification device 1000 for identifying a SIM card inserted into a card slot by mistake includes: a determination module 1001 and an output module 1002 .
  • the determining module 1001 is configured to determine that the card is a SIM card when a card is inserted into a non-SIM card slot on the electronic device.
  • the output module 1002 is used for outputting wrong card insertion information when the determining module 1001 determines that the card in the non-SIM card slot is a non-SIM card, and the wrong card insertion information is used to prompt the user to insert the SIM card into the card slot by mistake.
  • the determining module 1001 is specifically configured to: when a card is inserted into a non-SIM card slot, supply power to the card, and read file information in the card; based on the file information, determine that the card is a SIM card.
  • the output module 1002 is specifically configured to: display information about a wrongly inserted card, and/or broadcast the information about a wrongly inserted card by voice.
  • the output module 1002 is specifically configured to: display the information of the wrongly inserted card by one or more ways of a pop-up window, a pull-down menu, or a negative screen.
  • the electronic device deployed by the identification device for misinserting a SIM card into a card slot may be a single-card device.
  • the electronic device deployed by the identification device for misinserting a SIM card into a card slot is configured with a first modem and a first SIM card driver, and the first modem is connected to a non-SIM card slot through the first SIM card driver.
  • the first modem is connected to the SIM card slot through the first SIM card driver.
  • the electronic device deployed by the identification device for misinserting a SIM card into a card slot is configured with a second SIM card driver, and the first modem is connected to a non-SIM card slot through the second SIM card driver.
  • a second modem and a second SIM card driver are configured in the electronic equipment deployed by the identification device for the SIM card mistakenly inserted into the card slot, and the second modem is connected to the SIM card slot through the second SIM card driver.
  • the SIM card slot and the non-SIM card slot in the electronic equipment deployed by the identification device for incorrectly inserting the SIM card into the card slot correspond to the same card tray.
  • FIG. 11 is a schematic structural diagram of an identification device for misinserting a SIM card into a card slot provided by an embodiment of the present application.
  • an identification device 1100 for identifying a SIM card inserted into a card slot by mistake includes one or more processors 1101 and an interface circuit 1102 .
  • the chip 1100 may further include a bus 1103 . in:
  • the processor 1101 may be an integrated circuit chip with signal processing capability. In the implementation process, each step of the above method may be implemented by an integrated logic circuit of hardware in the processor 1101 or instructions in the form of software.
  • the above-mentioned processor 1101 may be a general-purpose processor, a digital communicator (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components .
  • DSP digital communicator
  • ASIC application-specific integrated circuit
  • FPGA field programmable gate array
  • a general-purpose processor may be a microprocessor, or the processor may be any conventional processor, or the like.
  • the interface circuit 1102 can be used for sending or receiving data, instructions or information.
  • the processor 1101 can use the data, instructions or other information received by the interface circuit 1102 to process, and can send the processing completion information through the interface circuit 1102 .
  • the chip further includes a memory, which may include a read-only memory and a random access memory, and provides operation instructions and data to the processor.
  • a portion of the memory may also include non-volatile random access memory (NVRAM).
  • the memory stores executable software modules or data structures, and the processor can execute corresponding operations by calling operation instructions stored in the memory (the operation instructions can be stored in the operating system).
  • the interface circuit 1102 may be used to output an execution result of the processor 1101 .
  • processor 1101 and the interface circuit 1102 can be realized by hardware design, software design, or a combination of software and hardware, which is not limited here.
  • each step in the foregoing method embodiments may be implemented by logic circuits in the form of hardware or instructions in the form of software in the processor.
  • the chip can be applied to the above-mentioned electronic device 100 to implement the method provided in the embodiment of the present application.
  • processor in the embodiments of the present application may be a central processing unit (central processing unit, CPU), and may also be other general processors, digital signal processors (digital signal processor, DSP), application specific integrated circuits (application specific integrated circuit, ASIC), field programmable gate array (field programmable gate array, FPGA) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof.
  • CPU central processing unit
  • DSP digital signal processor
  • ASIC application specific integrated circuit
  • FPGA field programmable gate array
  • a general-purpose processor can be a microprocessor, or any conventional processor.
  • the method steps in the embodiments of the present application may be implemented by means of hardware, or may be implemented by means of a processor executing software instructions.
  • the software instructions can be composed of corresponding software modules, and the software modules can be stored in random access memory (random access memory, RAM), flash memory, read-only memory (read-only memory, ROM), programmable read-only memory (programmable rom) , PROM), erasable programmable read-only memory (erasable PROM, EPROM), electrically erasable programmable read-only memory (electrically EPROM, EEPROM), register, hard disk, mobile hard disk, CD-ROM or known in the art any other form of storage medium.
  • An exemplary storage medium is coupled to the processor such the processor can read information from, and write information to, the storage medium.
  • the storage medium may also be a component of the processor.
  • the processor and storage medium can be located in the ASIC.
  • all or part of them may be implemented by software, hardware, firmware or any combination thereof.
  • software When implemented using software, it may be implemented in whole or in part in the form of a computer program product.
  • the computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on the computer, the processes or functions according to the embodiments of the present application will be generated in whole or in part.
  • the computer can be a general purpose computer, a special purpose computer, a computer network, or other programmable devices.
  • the computer instructions may be stored in or transmitted via a computer-readable storage medium.
  • the computer instructions may be transmitted from one website site, computer, server, or data center to another website site by wired (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.) , computer, server or data center for transmission.
  • the computer-readable storage medium may be any available medium that can be accessed by a computer, or a data storage device such as a server or a data center integrated with one or more available media.
  • the available medium may be a magnetic medium (such as a floppy disk, a hard disk, or a magnetic tape), an optical medium (such as a DVD), or a semiconductor medium (such as a solid state disk (solid state disk, SSD)), etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)
  • Telephonic Communication Services (AREA)

Abstract

一种SIM卡误插卡槽的识别方法,该方法可以应用于具备SIM卡卡槽和非SIM卡卡槽的电子设备,以及当非SIM卡卡槽中插入SIM卡时,可以对提醒用户SIM卡插错卡槽,进而使得用户可以及时将SIM卡更换到正确的卡槽中,提升了用户体验。

Description

一种SIM卡误插卡槽的识别方法及电子设备
本申请要求于2021年8月26日提交中国国家知识产权局、申请号为202110991245.5、申请名称为“一种SIM卡误插卡槽的识别方法及电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及终端技术领域,尤其涉及一种SIM卡误插卡槽的识别方法及电子设备。
背景技术
随着移动通信技术的飞速发展,电子设备的功能也在不断丰富。为了满足不同用户的需求,在一个电子设备上可以设置多个卡槽。有的卡槽可以放置用户身份识别(subscriber identity module,SIM)卡,有的卡槽可以放置安全数字卡(secure digital memory card,SD卡)。但目前,当用户将SIM卡误插入到其他的卡槽上时,往往会导致SIM卡无法被识别,进而使得用户误认为电子设备不能识别SIM卡,用户体验较差。
发明内容
本申请提供了一种SIM卡误插卡槽的识别方法、电子设备、计算机可读存储介质及计算机程序产品,能够检测用户是否插错SIM卡,以及在检测到用户插错SIM卡后可以智能提醒用户,进而使得用户可以及时将SIM卡更换到正确的卡槽中,提升了用户体验。
第一方面,本申请提供了一种SIM卡误插卡槽的识别方法,应用于电子设备,电子设备包括SIM卡卡槽和非SIM卡卡槽,方法包括:当非SIM卡卡槽中插入卡片时,确定卡片为SIM卡;输出误插卡信息,误插卡信息用于提示用户SIM卡误插卡槽。这样,在用户使用电子设备过程中,当用户将SIM卡插入到非SIM卡卡槽后,电子设备可以检测到用户误插SIM卡,以及在检测到用户插错SIM卡后可以智能提醒用户,进而使得用户可以及时将SIM卡更换到正确的卡槽中,提升了用户体验。
在一种可能的实现方式中,当非SIM卡卡槽中插入卡片时,确定卡片为SIM卡,具体包括:当非SIM卡卡槽中插入卡片时,向卡片供电,以及读取卡片中的文件信息;基于文件信息,确定卡片为SIM卡。这样,通过向非SIM卡卡槽中的卡片供电,从而可以读取到卡片中的文件信息,进而可以由读取到的文件信息确定出卡片为SIM卡。
在一种可能的实现方式中,输出误插卡信息,具体包括:显示误插卡信息,和/或,语音播报误插卡信息。这样,通过界面显示和/或语音提醒的方式输出误插卡信息,从而使得用户可以及时获知到误插卡,并及时将SIM卡更换到正确的卡槽中。
在一种可能的实现方式中,显示误插卡信息,具体包括:通过弹窗、下拉菜单或负一屏中的一种或多种方式显示误插卡信息。这样,通过过弹窗、下拉菜单或负一屏等方式显示误插卡信息,从而使得用户可以及时获知到误插卡,并及时将SIM卡更换 到正确的卡槽中。
在一种可能的实现方式中,电子设备为单卡设备。
在一种可能的实现方式中,电子设备中配置有第一调制解调器和第一SIM卡驱动,第一调制解调器通过第一SIM卡驱动与非SIM卡卡槽连接。这样,通过为非SIM卡卡槽配置SIM卡驱动和调制解调器,从而可以由该SIM卡驱动和调制解调器及时检测到非SIM卡卡槽中是否为SIM卡。
在一种可能的实现方式中,第一调制解调器通过第一SIM卡驱动与SIM卡卡槽连接。这样,SIM卡驱动可以轮询与SIM卡卡槽和非SIM卡卡槽中的卡片进行交互,从而通过一个调制解调器和一个SIM卡驱动即可以实现电子设备的通信功能和检测非SIM卡卡槽中是否插入SIM卡的功能。
在一种可能的实现方式中,电子设备中配置有第二SIM卡驱动,第一调制解调器通过第二SIM卡驱动与非SIM卡卡槽连接。这样,通过一个调制解调器即可以实现电子设备的通信功能和检测非SIM卡卡槽中是否插入SIM卡的功能。
在一种可能的实现方式中,电子设备中配置有第二调制解调器和第二SIM卡驱动,第二调制解调器通过第二SIM卡驱动与SIM卡卡槽连接。这样,通过第二调制解调器和第二SIM卡驱动可以实现电子设备的通信功能,而通过第一调制解调器和第一SIM卡驱动可以实现电子设备检测非SIM卡卡槽中是否插入SIM卡的功能。
在一种可能的实现方式中,SIM卡卡槽和非SIM卡卡槽对应同一卡托。这样,在一个卡托上可以同时放置SIM卡和非SIM卡时,也可以及时的检测出SIM卡误插卡槽,提升了用户体验。
第二方面,本申请提供了一种SIM卡误插卡槽的识别方法,应用于电子设备,电子设备包括:SIM卡卡槽、非SIM卡卡槽、无线通信接口模块RIL、第一调制解调器和信息输出模块,其中,第一调制解调器与非SIM卡卡槽对应;方法包括:当非SIM卡卡槽中插入卡片时,第一调制解调器识别卡片是否为SIM卡;当第一调制解调器识别到卡片为SIM卡时,第一调制解调器向无线通信接口模块RIL上报第一信息,第一信息用于表示识别到SIM卡;无线通信接口模块RIL响应第一信息,向信息输出模块发送第二信息,第二信息用于指示SIM卡误插卡槽;信息输出模块输出误插卡信息,误插卡信息用于提示用户SIM卡误插卡槽。这样,在用户使用电子设备过程中,当用户将SIM卡插入到非SIM卡卡槽后,电子设备可以检测到用户误插SIM卡,以及在检测到用户插错SIM卡后可以智能提醒用户,进而使得用户可以及时将SIM卡更换到正确的卡槽中,提升了用户体验。示例性的,无线通信接口模块RIL可以与SIM卡卡槽对应,比如,一一对应等。
在一种可能的实现方式中,电子设备还包括:第二调制解调器,第二调制解调器与SIM卡卡槽对应,且第二调制解调器与无线通信接口模块RIL对应。这样,通过第二调制解调器可以实现电子设备的通信功能,而通过第一调制解调器可以实现电子设备检测非SIM卡卡槽中是否插入SIM卡的功能。示例性的,第二调制解调器与SIM卡卡槽之间可以一一对应。示例性的,第一调制解调器和第二调制解调器均可以与无线通信接口模块RIL对应。
在一种可能的实现方式中,第一调制解调器还与SIM卡卡槽对应。这样,通过一个调制解调器即可以实现电子设备的通信功能和检测非SIM卡卡槽中是否插入SIM卡的功能。
第三方面,本申请提供了一种电子设备,包括:SIM卡卡槽和非SIM卡卡槽;至少一个存储器,用于存储程序;至少一个处理器,用于执行存储器存储的程序,当存储器存储的程序被执行时,所述处理器用于执行第一方面中所提供的方法。
在一种可能的实现方式中,电子设备为单卡设备。
在一种可能的实现方式中,电子设备中配置有第一调制解调器和第一SIM卡驱动,第一调制解调器通过第一SIM卡驱动与非SIM卡卡槽连接。
在一种可能的实现方式中,第一调制解调器通过第一SIM卡驱动与非SIM卡卡槽连接。
在一种可能的实现方式中,电子设备中配置有第二SIM卡驱动,第一调制解调器通过第二SIM卡驱动与非SIM卡卡槽连接。
在一种可能的实现方式中,电子设备中配置有第二调制解调器和第二SIM卡驱动,第二调制解调器通过第二SIM卡驱动与SIM卡卡槽连接。
在一种可能的实现方式中,SIM卡卡槽和非SIM卡卡槽对应同一卡托。
第四方面,本申请提供了一种SIM卡误插卡槽的识别装置,部署于电子设备,电子设备包括SIM卡卡槽和非SIM卡卡槽,该识别装置包括:确定模块,用于当非SIM卡卡槽中插入卡片时,确定卡片为SIM卡;输出模块,用于输出误插卡信息,误插卡信息用于提示用户SIM卡误插卡槽。
在一种可能的实现方式中,确定模块,具体用于:当非SIM卡卡槽中插入卡片时,向卡片供电,以及读取卡片中的文件信息;基于文件信息,确定卡片为SIM卡。
在一种可能的实现方式中,输出模块,具体用于:显示误插卡信息,和/或,语音播报误插卡信息。
在一种可能的实现方式中,输出模块,具体用于:通过弹窗、下拉菜单或负一屏中的一种或多种方式显示误插卡信息。
在一种可能的实现方式中,电子设备为单卡设备。
在一种可能的实现方式中,电子设备中配置有第一调制解调器和第一SIM卡驱动,第一调制解调器通过第一SIM卡驱动与非SIM卡卡槽连接。
在一种可能的实现方式中,第一调制解调器通过第一SIM卡驱动与SIM卡卡槽连接。
在一种可能的实现方式中,电子设备中配置有第二SIM卡驱动,第一调制解调器通过第二SIM卡驱动与非SIM卡卡槽连接。
在一种可能的实现方式中,电子设备中配置有第二调制解调器和第二SIM卡驱动,第二调制解调器通过第二SIM卡驱动与SIM卡卡槽连接。
在一种可能的实现方式中,SIM卡卡槽和非SIM卡卡槽对应同一卡托。
第五方面,本申请提供了一种SIM卡误插卡槽的识别装置,包括至少一个处理器和接口;至少一个处理器通过接口获取程序指令或者数据;至少一个处理器用于执行程序行指令,以实现第一方面中提供的方法,或者,实现第二方面中提供的方法。
第六方面,本申请提供了一种计算机可读存储介质,计算机可读存储介质存储有计算机程序,当计算机程序在电子设备上运行时,使得电子设备执行第一方面中所提供的方法。
第七方面,本申请提供了一种计算机程序产品,其特征在于,计算机程序产品包括计算机程序,当计算机程序被计算机执行时,使得计算机实现第一方面中所提供的方法。
可以理解的是,上述第三方面至第七方面的有益效果可以参见上述第一方面和/或第二方面中的相关描述,在此不再赘述。
附图说明
图1a是本申请实施例提供的一种电子设备的结构示意图;
图1b是本申请实施例提供的一种电子设备上卡槽和卡托的示意图;
图1c是本申请实施例提供的一种电子设备上卡槽和卡托的示意图;
图2是本申请实施例提供的一种电子设备的安卓电话通讯框架结构的示意图;
图3是本申请实施例提供的一种SIM卡误插卡槽的识别方法的流程示意图;
图4是本申请实施例提供的一种电子设备的显示界面示意图;
图5是本申请实施例提供的一种SIM卡误插卡槽的识别方法的识别过程示意图;
图6是本申请实施例提供的另一种电子设备的安卓电话通讯框架结构的示意图;
图7是本申请实施例提供的又一种电子设备的安卓电话通讯框架结构的示意图;
图8是本申请实施例提供的再一种电子设备的安卓电话通讯框架结构的示意图;
图9是本申请实施例提供的再一种电子设备的安卓电话通讯框架结构的示意图;
图10是本申请实施例提供的一种SIM卡误插卡槽的识别装置的结构示意图;
图11是本申请实施例提供的另一种SIM卡误插卡槽的识别装置的结构示意图。
具体实施方式
为使本申请实施例的目的、技术方案和优点更加清楚,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
本文中术语“和/或”,是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。本文中符号“/”表示关联对象是或者的关系,例如A/B表示A或者B。
本文中的说明书和权利要求书中的术语“第一”和“第二”等是用于区别不同的对象,而不是用于描述对象的特定顺序。例如,第一响应消息和第二响应消息等是用于区别不同的响应消息,而不是用于描述响应消息的特定顺序。
在本申请实施例中,“示例性的”或者“例如”等词用于表示作例子、例证或说明。本申请实施例中被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比其它实施例或设计方案更优选或更具优势。确切而言,使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念。
在本申请实施例的描述中,除非另有说明,“多个”的含义是指两个或者两个以上,例如,多个处理单元是指两个或者两个以上的处理单元等;多个元件是指两个或者两个以上的元件等。
需要说明的是,本申请实施例中,当用户在具有多个卡槽的电子设备上误将SIM卡插入到非SIM卡的卡槽中时,能够识别出SIM卡误插入到其他卡槽,并对用户进行提醒,从而可以引导用户将SIM卡插入正确的卡槽中,提升了用户体验。
可以理解的是,本申请实施例中的电子设备可以是手机、平板电脑、桌面型计算机、膝上型计算机、手持计算机、笔记本电脑、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本,以及蜂窝电话、个人数字助理(personal digital assistant,PDA)、增强现实(augmented reality,AR)设备、虚拟现实(virtual reality,VR)设备、人工智能(artificial intel ligence,AI)设备、可穿戴式设备、车载设备、智能家居设备和/或智慧城市设备等具备非SIM卡卡槽和SIM卡卡槽的电子设备,本申请实施例对该电子设备的具体类型不作特殊限制。
示例性的,图1a示出了一种电子设备的结构示意图。如图1a所示,该电子设备100可以包括:处理器110、存储器120、非SIM卡卡槽130、SIM卡卡槽140和显示屏150。其中,处理器110、存储器120、非SIM卡卡槽130、SIM卡卡槽140和显示屏150之间可以通过总线或其他方式连接。
处理器110是电子设备100的计算核心及控制核心。处理器110可以包括一个或多个处理单元。例如,处理器110可以包括应用处理器(application processor,AP)、调制解调器(modem)、图形处理器(graphics processing unit,GPU)、图像信号处理器(image signal processor,ISP)、控制器、视频编解码器、数字信号处理器(digital signal processor,DSP)、基带处理器、和/或神经网络处理器(neural-network processing unit,NPU)等中的一项或多项。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。
存储器120可以存储有程序,程序可被处理器110运行,使得处理器110执行本申请实施例中提供的电子设备100所执行的方法。存储器120还可以存储有数据。处理器110可以读取存储器120中存储的数据。存储器120和处理器110可以单独设置。可选地,存储器120也可以集成在处理器110中。
非SIM卡卡槽130可以用于连接外部存储卡,例如Micro SD卡,实现扩展电子设备100的存储能力。外部存储卡通过非SIM卡卡槽130与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。示例性的,非SIM卡卡槽130可以为一个或多个,每个非SIM卡卡槽130均可以对应一个用于放置非SIM卡的非SIM卡卡托。其中,可以将非SIM卡放置于非SIM卡卡托中,并将非SIM卡卡托插入其所对应的非SIM卡卡槽130中,即可以实现将非SIM卡固定于电子设备100上。在一个例子中,非SIM卡卡槽130对应的卡托上可以具有放置非SIM卡的空间。
SIM卡卡槽140用于连接SIM卡。SIM卡可以通过插入SIM卡卡槽140,或从SIM卡卡槽140拔出,实现和电子设备100的接触和分离。电子设备100可以支持1个或N个SIM卡卡槽,N为大于1的正整数。SIM卡卡槽140可以支持Nano SIM卡,Micro SIM卡,SIM卡等。同一个SIM卡卡槽140可以同时插入多张卡。所述多张卡的类型可以相同,也可以不同。SIM卡卡槽140也可以兼容不同类型的SIM卡。SIM卡卡槽140也可以兼容外部存储卡。电子设备100通过SIM卡和网络交互,实现通话以及数据通信等功能。在一些实施例中,电子设备100采用eSIM,即:嵌入式SIM卡。eSIM卡可以嵌在电子设备100中,不能和电子设备100分离。示例性的,SIM卡卡槽140可以为一个或多个,每个SIM卡卡槽140均可以对应一个用于放置SIM卡的SIM卡卡托。其中,可以将SIM卡插入至SIM卡卡槽中,以可以实现将SIM卡固定于电子设备100上。在一个例子中,SIM卡卡槽140对应的卡托上可以具有放置SIM卡的空间。
在一个例子中,非SIM卡卡槽130对应的非SIM卡卡托的尺寸可以与SIM卡卡槽140对应的SIM卡卡托的尺寸相同。同时,非SIM卡卡槽130对应的非SIM卡的尺寸可以与SIM卡卡槽140对应的SIM卡的尺寸相同。
在一个例子中,非SIM卡卡槽130对应的卡托和SIM卡卡槽140对应的卡托可以为同一卡托,此时在一个卡托上可以同时放置至少一个SIM卡和至少一个非SIM卡(比如SD卡等)。
在一个例子中,卡槽是指电子设备上容纳卡托的槽或空间。例如,SIM卡卡槽是指电子设备上容纳SIM卡卡托的槽或空间;非SIM卡卡槽是指电子设备上容纳非SIM卡卡托的槽或空间。示例性的,如图1b所示,电子设备100上具有一个非SIM卡卡槽130和一个SIM卡卡槽140,且两者对应的卡托不同;其中,非SIM卡卡槽130对应卡托A,卡托A可以插入到非SIM卡卡槽130中,在卡托A上配置有用于放置非SIM卡的空间a;SIM卡卡槽140对应卡托B,卡托B可以插入到SIM卡卡槽140中,在卡托B上配置有用于放置SIM卡的空间b。示例性的,如图1c所示,电子设备100上具有一个非SIM卡卡槽130和一个SIM卡卡槽140,且两者对应的卡托相同,且均对应卡托C,其中,卡托C可以插入到非SIM卡卡槽130和SIM卡卡槽中;此外,在卡托C上配置有用于放置非SIM卡的空间c1和用于放置SIM卡的空间c2。在一个例子中,当非SIM卡卡槽130和一个SIM卡卡槽140对应同一个卡托时,非SIM卡卡槽130和SIM卡卡槽140可以理解为是同一个卡槽。
显示屏150用于显示图像、视频、误插卡信息等。显示屏150包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode的,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot light emitting diodes,QLED)等。
可选地,电子设备100还可以包括触摸传感器,该触摸传感器可以用于检测作用于电子设备100上或附近的触摸操作。示例性的,触摸传感器可采用电阻式,电容式,红外线以及表面声波等多种方式实现。触摸传感器可以设置于显示屏150上,由触摸 传感器与显示屏150可以组成触摸屏,也称“触控屏”。
可以理解的是,本实施例图1a示意的结构并不构成对电子设备100的具体限定。在另一些实施例中,电子设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。
以上即是对本申请实施例中电子设备100的硬件结构的相关介绍。下面结合上文所描述的内容,介绍本申请实施例中电子设备100的安卓电话通讯(android telephony)框架结构。
示例性的,图2示出了一种电子设备的安卓电话通讯框架结构的示意图。在图2中,电子设备100为单卡设备,且其具有两个卡槽,卡槽1用于插入SIM卡,卡槽2用于插入SD卡;其中,SIM卡也可以插入到卡槽2中。卡槽1可以理解为图1中所示的SIM卡卡槽140,卡槽2可以理解为图1中所示的非SIM卡卡槽130。可以理解的是,图2中是以电子设备100为单卡设备为例进行说明,因此,该电子设备100的安卓电话通讯框架中具有一个电话模块(phone)和一个无线通信接口模块(radio layer interface,RIL)。
如图2所示,该安卓电话通讯(android telephony)框架结构可以包括应用层、中间层、内核层和硬件层。
其中,应用层可以包括一系列的电话应用(phone application)。示例性的,电话应用可以包括通话、拨号、短信息、日历等应用。在一个例子中,电话应用中可以包括用于提醒用户误插SIM卡的服务应用。
中间层可以为应用层的电话应用提供应用编程接口(application programming interface,API)和编程框架。中间层可以包括一些预先定义的函数。示例性的,中间层可以包括电话模块(Phone)和无线通信接口模块(radio layer interface,RIL)。
示例性的,电话模块(Phone)可以提供接听电话、收发短信、电话薄、网络事件监听、读取用户信息等功能。该电话模块(Phone)是整个电话通讯(Telephony)服务的核心。其中,电话模块(Phone)也可以称之为Phone对象。一般地,主要的电话通讯(Telephony)服务(比如:短信接口管理SmsInterfaceManager、电话本接口管理PhoneBookInterfaceManager)及数据连接功能均可以通过具体的Phone对象提供,具体的Phone对象可以包括CDMAPhone、CDMALTEPhone、GSMPhone及SipPhone。
无线通信接口模块RIL提供了安卓电话通讯服务(android telephony)与无线电硬件之间的抽象层。无线通信接口模块RIL可以负责硬件与电话模块(Phone)进行通信。无线通信接口模块RIL与调制解调器modem之间可以建立注意力(attention,AT)指令通道。其中,AT指令通道可以用于传输无线通信接口模块RIL与调制解调器modem之间的通信数据。
内核层是硬件和软件之间的层。内核层至少包含协议栈和与电子设备100上卡槽对应的SIM卡驱动。
其中,协议栈可以提供调制解调器modem与无线通信接口模块RIL通信所需的协议。示例性的,协议栈的数量可以与调制解调器modem一一对应。此外,多个协议栈 也可以对应一个调制解调器modem。
SIM卡驱动可以负责为插入至其所对应的卡槽中的SIM卡上电、下电或电压转换等功能。此外,SIM卡驱动也可以提供数据传输功能;例如,卡槽1中的SIM卡可以通过SIM卡驱动1与调制解调器1进行数据交互。示例性的,SIM卡驱动可以与电子设备100上的卡槽一一对应。此外,一个SIM卡驱动也可以对应多个卡槽,此时该SIM卡驱动可以轮询读取其所对应的各个卡槽上卡片的信息。
在一个例子中,在SIM卡驱动为插入至其所对应的卡槽中的卡片上电后,若SIM卡驱动获取到卡槽中的卡片反馈的复位应答(answer to reset,ATR)消息,则SIM卡驱动可以将该ATR消息上报至其所对应的调制解调器Modem,以使得该调制解调器Modem可以读取该卡片中的文件信息,进而确定出该卡槽中插入的卡片为SIM卡。
硬件层可以包括调制解调器modem和卡槽。卡槽的数量至少为两个,调制解调器modem的数量可根据实际情况而定,此处不做限定。示例性的,继续参阅图2,以调制解调器modem为两个为例,卡槽1、SIM卡驱动1、调制解调器modem1、协议栈1和无线通信接口模块RIL可以构成一个数据传输通路;卡槽2、SIM卡驱动2、调制解调器modem2、协议栈2和无线通信接口模块RIL可以构成一个数据传输通路。其中,卡槽2对应的数据传输通路可以使得调制解调器2modem2上报卡槽2中插入的SIM卡的信息。
在一个例子中,调制解调器Modem可以在获取到其所对应的SIM卡驱动上报的ATR消息后,读取该SIM卡驱动对应的卡槽中的卡片的文件信息,并由读取到的文件信息,确定出该卡片是否为SIM卡。
下面结合正确插入SIM卡和错误插入SIM卡这两种场景,示例性说明电子设备100软件以及硬件的工作流程。
(1)正确插入SIM卡
在用户将SIM卡插入卡槽1中后,SIM卡驱动1可以上电。在SIM卡驱动1获取到SIM卡反馈的ATR消息后,SIM卡驱动1可以将SIM卡反馈的ATR消息上报至调制解调器1。之后,调制解调器1可以读取卡槽1中卡片的文件信息,进而确定出该卡片为SIM卡。之后,调制解调器1可以通过其预先或实时与无线通信接口模块RIL建立的AT指令通道将该SIM卡的相关信息上报至无线通信接口模块RIL。无线通信接口RIL可以将该SIM卡的相关信息上报至电话模块。电话模块获取到SIM卡的相关信息后,可以将广播该SIM卡的相关信息,以由用于显示SIM卡信息的显示应用获取到该SIM卡的相关信息,进而由显示应用在电子设备100的显示屏150上显示该SIM卡的相关信息,例如,显示该SIM卡的电话号码和其所属的运营商等。此外,电话模块也可以将该SIM卡的相关信息直接发送至用于显示SIM卡信息的显示应用,此处不做限定。
(2)错误插入SIM卡
在用户将SIM卡插入卡槽2中后,SIM卡驱动2可以上电。在SIM卡驱动2获取到SIM卡反馈的ATR消息后,SIM卡驱动2可以将SIM卡反馈的ATR消息上报至调制解调器2。之后,调制解调器2可以读取卡槽1中卡片的文件信息,进而确定出该卡片为SIM卡。之后,调制解调器2可以通过其预先或实时与无线通信接口模块RIL建 立的AT指令通道将其识别到SIM卡的信息上报至无线通信接口模块RIL。无线通信接口RIL获取到调制解调器2上报的调制解调器2识别到SIM卡的信息后,可以生成异常信息,以及将该异常信息上报至电话模块。电话模块获取到异常信息后,可以将广播该异常信息,以由用于提醒误插卡的服务应用获取到该异常信息,进而由服务应用在电子设备100上提醒用户误插卡。此外,电话模块也可以将该异常信息直接发送至用于提醒误插卡的服务应用,此处不做限定。
下面结合图3对本申请提供的技术方案进行详细说明。示例性的,图3示出了一种SIM卡误插卡槽的识别方法的流程示意图。在图3中,电子设备100至少具备两个可插入卡片(比如:SIM卡、SD卡等)的卡槽,且至少有一个卡槽为非SIM卡卡槽(比如:SD卡卡槽等),以及至少一个卡槽为SIM卡卡槽。同时,非SIM卡卡槽对应的卡托上容纳非SIM卡的空间的尺寸可以与SIM卡卡槽对应的卡托上容纳SIM卡的空间的尺寸相同,由此,以便能够出现在非SIM卡卡槽中插入SIM卡的情况。此外,非SIM卡卡槽可以对应有一个SIM卡驱动。
如图3所示,该SIM卡误插卡槽的识别方法可以包括以下步骤:
S301、当非SIM卡卡槽中插入卡片时,确定非SIM卡卡槽中插入的卡片为SIM卡。
具体地,在电子设备100的卡槽(SIM卡卡槽或非SIM卡卡槽)中插入卡片后,电子设备100可以对卡片进行检测,以确定出卡片的类型。其中,当在非SIM卡卡槽中插入卡片后,电子设备100可以对该卡片进行检测,进而确定出该卡片是否为SIM卡。示例性的,如图2所示,当在电子设备100的卡槽2中插入卡片后,电子设备100可以通过其上的SIM卡驱动2和调制解调器2确定出该卡片是否为SIM卡,其中,识别过程详见上文图2中的描述,此处不再赘述。
S302、输出误插卡信息,该误插卡信息用于提示用户SIM卡误插卡槽。
具体地,在电子设备100确定出非SIM卡卡槽中插入SIM卡后,电子设备100可以输出用于提示用户SIM卡误插卡槽的误插卡信息。示例性的,可以通过语音、文字、图片中的一种或多种方式对用户进行提醒。例如,如图4所示,在电子设备100上显示屏的区域A处可以显示误插卡信息,该误插卡信息可以为:检测到SIM卡插错卡槽位置,卡槽2不支持SIM卡,请更换到正确的SIM卡槽位置。继续参阅图4,当输出误插卡信息后,用户可以通过选择区域A中的“不再提示”控件,以关闭此次提醒。可以理解的是,关闭提醒的操作也可以为其他的操作,可以关闭提醒即可,此处不做限定。
在一个例子中,输出误插卡信息的方式可以包括弹窗、下拉菜单、负一屏等中的一种或多种,此处不做限定。
由此,当用户将SIM卡插入到非SIM卡卡槽后,电子设备100可以检测到用户误插SIM卡,以及在检测到用户插错SIM卡后可以智能提醒用户,进而使得用户可以及时将SIM卡更换到正确的卡槽中,提升了用户体验。
为便于理解图3中所示的SIM卡误插卡槽的识别方法,接下来结合图2和图5,举例对本申请实施例提供的SIM卡误插卡槽的识别方法进行详细介绍。
示例性的,图5示出了SIM卡误插卡槽的识别方法的识别过程示意图。图5中所示的卡槽2、SIM卡驱动2、Modem2、RIL和服务应用均为图2中所描述的卡槽2、SIM卡驱动2、Modem2、RIL和服务应用。
如图5所示,该SIM卡误插卡槽的识别方法的识别过程,可以包括以下步骤:
S501、将SIM卡插入到卡槽2中。
具体地,用户可以将SIM卡置于卡槽2对应的卡托上,并将该卡托插入至卡槽2中,此时SIM卡即插入到卡槽2中。其中,卡槽2为非SIM卡卡槽,比如,卡槽2可以是SD卡卡槽。
S502、SIM卡驱动2为SIM卡供电。
具体地,当卡槽2中插入卡片后,SIM卡驱动2可以为卡槽2中的卡片供电。示例性的,该卡片可以为SIM卡。
S503、SIM卡向SIM卡驱动2反馈ATR消息。
具体地,在SIM卡驱动2供电后,SIM卡可以向SIM卡驱动2反馈ATR消息。
S504、SIM卡驱动2向Modem2上报ATR消息。
具体地,SIM卡驱动2获取到ATR消息后,其可以将该ATR消息上报至Modem2。
S505、Modem2读取SIM卡中的文件信息。
具体地,Modem2获取到SIM卡驱动上报的ATR消息后,其可以读取SIM卡中的文件信息。示例性的,SIM卡中的文件信息可以包括:用于标识SIM卡中各个文件的文件标识符等。
S506、Modem2基于读取到的文件信息,确定卡槽2中插入的卡片为SIM卡。
具体地,Modem2读取到SIM卡中的文件信息后,其可以将其读取到的文件信息与预先标定的文件信息进行比对,当比对成功后,即可以确定出卡槽2中插入的卡片为SIM卡。
S507、Modem2向RIL发送用于表示识别到SIM卡的第一信息。
具体地,Modem2识别到卡槽2中的卡片为SIM卡后,其可以通过其预先或实时与RIL建立的AT指令通道向RIL发送用于表示识别到SIM卡的第一信息。
示例性的,Modem2可以将用于表示识别到SIM卡的第一信息写入到Modem2的设备文件节点中;之后,Modem2可以向RIL发送AT命令;在RIL获取到AT命令后,RIL即可以从Modem2的设备文件节点中读取第一信息。
S508、RIL响应获取到的第一信息,广播第二信息,第二信息用于指示SIM卡误插卡槽。
具体地,在RIL获取到用于表示识别到SIM卡的第一信息后,RIL可以向外广播用于指示SIM卡误插卡槽的第二信息。
S509.服务应用监听到RIL广播的第二信息,并输出误插卡信息,该误插卡信息用于提示用户SIM卡误插卡槽。
具体地,服务应用监听到RIL广播的用于指示SIM卡误插卡槽的第二信息后,可以输出用于提示用户SIM卡误插卡槽的误插卡信息。
可以理解的是,当在电子设备100中配置有专门用于输出误插卡信息的模块时,S508也可以替换为RIL向该专门用于输出误插卡信息的模块发送用于指示SIM卡误插 卡槽的第二信息,此时S509中的服务应用则替换为该专门用于输出误插卡信息的模块。此外,S509中的服务应用也可以替换为其他的模块或应用,例如替换为系统;其中,替换后的方案仍在本申请的保护范围内。
需要说明的是,本申请实施例中电子设备100的安卓电话通讯框架结构,除了图2中所示的一种结构外,还可以是其他的结构。其中,不同的安卓电话通讯框架结构对应的SIM卡误插卡槽的识别方法的识别过程可以不同,下面分别对不同的安卓电话通讯框架结构,以及在各个安卓电话通讯框架结构下的误插卡槽的识别方法的识别过程进行介绍。
示例性的,图6示出了另一种电子设备的安卓电话通讯框架结构的示意图。图6中所示的安卓电话通讯框架结构与图2中所示的安卓电话通讯框架结构的不同之处在于:图6中所示的安卓电话通讯框架结构具有一个调制解调器modem,且该调制解调器modem对应有两个协议栈;而图2中所示的安卓电话通讯框架结构具有两个调制解调器modem,每个调制解调器modem均对应一个协议栈。
在图6中,卡槽1、SIM卡驱动1、调制解调器modem1、协议栈1和无线通信接口模块RIL可以构成一个数据传输通路;卡槽2、SIM卡驱动2、调制解调器modem1、协议栈2和无线通信接口模块RIL可以构成一个数据传输通路。其中,卡槽2对应的数据传输通路可以使得调制解调器modem1上报卡槽2中插入的SIM卡的信息。
在图6所示的电子设备的安卓电话通讯框架结构下,SIM卡误插卡槽的识别方法的识别过程,与在图2所示的电子设备的安卓电话通讯框架结构下,SIM卡误插卡槽的识别方法的识别过程的主要不同在于:
图6所示的电子设备的安卓电话通讯框架结构下,SIM卡驱动2在识别到SIM卡后,SIM卡驱动2是将SIM卡的状态信息发送至Modem1。Modem1获取到SIM卡的状态信息后,可以通过其预先或实时经协议栈2与RIL建立的AT指令通道向RIL发送该SIM卡的状态信息。
而图2所示的电子设备的安卓电话通讯框架结构下,SIM卡驱动2在识别到SIM卡后,SIM卡驱动2是将SIM卡的状态信息发送至Modem2。Modem2获取到SIM卡的状态信息后,可以通过其预先或实时经协议栈2与RIL建立的AT指令通道向RIL发送该SIM卡的状态信息。
可以理解的是,图6中所示的卡槽1和卡槽2可以对应同一卡托,也可以对应不同的卡托。此外,卡槽1的数量也可以为多个,卡槽2的数量也可以为多个,此处不做限定。
示例性的,图7示出了又一种电子设备的安卓电话通讯框架结构的示意图。图7中所示的安卓电话通讯框架结构与图2中所示的安卓电话通讯框架结构的不同之处在于:图7中所示的安卓电话通讯框架结构具有一个调制解调器modem,且该调制解调器modem对应有一个协议栈;而图2中所示的安卓电话通讯框架结构具有两个调制解调器modem,每个调制解调器modem均对应一个协议栈。
在图7中,卡槽1、SIM卡驱动1、调制解调器modem1、协议栈1和无线通信接口 模块RIL可以构成一个数据传输通路;卡槽2、SIM卡驱动2、调制解调器modem1、协议栈1和无线通信接口模块RIL可以构成一个数据传输通路。其中,卡槽2对应的数据传输通路可以使得调制解调器modem1上报卡槽2中插入的SIM卡的信息。
在图7所示的电子设备的安卓电话通讯框架结构下,SIM卡误插卡槽的识别方法的识别过程,与在图2所示的电子设备的安卓电话通讯框架结构下,SIM卡误插卡槽的识别方法的识别过程的主要不同在于:
图7所示的电子设备的安卓电话通讯框架结构下,SIM卡驱动2在识别到SIM卡后,SIM卡驱动2是将SIM卡的状态信息发送至Modem1。Modem1获取到SIM卡的状态信息后,可以通过其预先或实时经协议栈1与RIL建立的AT指令通道向RIL发送该SIM卡的状态信息。示例性的,SIM卡驱动1上报至Modem1的消息类型与SIM卡驱动2上报至Modem1的消息类型可以不同,以便Modem1区分其获取到的消息的来源。此外,SIM卡驱动2上报至Modem1的消息中可以携带有SIM卡驱动2的身份标识,由此以便Modem1区分其获取到的消息的来源。
而图2所示的电子设备的安卓电话通讯框架结构下,SIM卡驱动2在识别到SIM卡后,SIM卡驱动2是将SIM卡的状态信息发送至Modem2。Modem2获取到SIM卡的状态信息后,可以通过其预先或实时经协议栈2与RIL建立的AT指令通道向RIL发送该SIM卡的状态信息。
可以理解的是,图7中所示的卡槽1和卡槽2可以对应同一卡托,也可以对应不同的卡托。此外,卡槽1的数量也可以为多个,卡槽2的数量也可以为多个,此处不做限定。
示例性的,图8示出了再一种电子设备的安卓电话通讯框架结构的示意图。图8中所示的安卓电话通讯框架结构与图2中所示的安卓电话通讯框架结构的不同之处在于:图8中所示的安卓电话通讯框架结构具有一个调制解调器modem和一个SIM卡驱动,且该调制解调器modem对应有一个协议栈,该SIM卡驱动对应多个卡槽;而图2中所示的安卓电话通讯框架结构具有两个调制解调器modem和两个SIM卡驱动,每个调制解调器modem均对应一个协议栈,每个SIM卡驱动均对应一个卡槽。
在图8中,卡槽1、SIM卡驱动1、调制解调器modem1、协议栈1和无线通信接口模块RIL可以构成一个数据传输通路;卡槽2、SIM卡驱动1、调制解调器modem1、协议栈1和无线通信接口模块RIL可以构成一个数据传输通路。其中,卡槽2对应的数据传输通路可以使得调制解调器modem1上报卡槽2中插入的SIM卡的信息。
在图8所示的电子设备的安卓电话通讯框架结构下,SIM卡误插卡槽的识别方法的识别过程,与在图2所示的电子设备的安卓电话通讯框架结构下,SIM卡误插卡槽的识别方法的识别过程的主要不同在于:
图8所示的电子设备的安卓电话通讯框架结构下,SIM卡驱动1可以轮询读取卡槽1和卡槽2中插入的卡片的信息。其中,SIM卡驱动1在识别到卡槽2中存在SIM卡后,其可以将该SIM卡的状态信息发送至Modem1。Modem1获取到SIM卡的状态信息后,可以通过其预先或实时经协议栈1与RIL建立的AT指令通道向RIL发送该SIM卡的状态信息。示例性的,SIM卡驱动1上报的卡槽1中与SIM卡相关的消息的类型 与SIM卡驱动1上报的卡槽2中与SIM卡相关的消息的类型可以不同,以便Modem1区分其获取到的消息的来源。此外,SIM卡驱动1上报至Modem1的消息中可以携带有卡槽的身份标识,由此以便Modem1区分其获取到的消息的来源。
而图2所示的电子设备的安卓电话通讯框架结构下,SIM卡驱动2在识别到SIM卡后,SIM卡驱动2是将SIM卡的状态信息发送至Modem2。Modem2获取到SIM卡的状态信息后,可以通过其预先或实时经协议栈2与RIL建立的AT指令通道向RIL发送该SIM卡的状态信息。
可以理解的是,图8中所示的卡槽1和卡槽2可以对应同一卡托,也可以对应不同的卡托。此外,卡槽1的数量也可以为多个,卡槽2的数量也可以为多个,此处不做限定。
示例性的,图9示出了再一种电子设备的安卓电话通讯框架结构的示意图。图9中所示的安卓电话通讯框架结构与图2中所示的安卓电话通讯框架结构的不同之处在于:图9中所示的安卓电话通讯框架结构具有一个调制解调器modem和一个SIM卡驱动,且该调制解调器modem对应有两个协议栈,该SIM卡驱动对应多个卡槽;而图2中所示的安卓电话通讯框架结构具有两个调制解调器modem和两个SIM卡驱动,每个调制解调器modem均对应一个协议栈,每个SIM卡驱动均对应一个卡槽。
在图9中,卡槽1、SIM卡驱动1、调制解调器modem1、协议栈1和无线通信接口模块RIL可以构成一个数据传输通路;卡槽2、SIM卡驱动1、调制解调器modem1、协议栈2和无线通信接口模块RIL可以构成一个数据传输通路。其中,卡槽2对应的数据传输通路可以使得调制解调器modem1上报卡槽2中插入的SIM卡的信息。
在图9所示的电子设备的安卓电话通讯框架结构下,SIM卡误插卡槽的识别方法的识别过程,与在图2所示的电子设备的安卓电话通讯框架结构下,SIM卡误插卡槽的识别方法的识别过程的主要不同在于:
图9所示的电子设备的安卓电话通讯框架结构下,SIM卡驱动1可以轮询读取卡槽1和卡槽2中插入的卡片的信息。其中,SIM卡驱动1在识别到卡槽2中存在SIM卡后,其可以将该SIM卡的状态信息发送至Modem1。Modem1获取到SIM卡的状态信息后,可以通过其预先或实时经协议栈2与RIL建立的AT指令通道向RIL发送该SIM卡的状态信息。示例性的,SIM卡驱动1上报的卡槽1中与SIM卡相关的消息的类型与SIM卡驱动1上报的卡槽2中与SIM卡相关的消息的类型可以不同,以便Modem1区分其获取到的消息的来源。此外,SIM卡驱动1上报至Modem1的消息中可以携带有卡槽的身份标识,由此以便Modem1区分其获取到的消息的来源。
而图2所示的电子设备的安卓电话通讯框架结构下,SIM卡驱动2在识别到SIM卡后,SIM卡驱动2是将SIM卡的状态信息发送至Modem2。Modem2获取到SIM卡的状态信息后,可以通过其预先或实时经协议栈2与RIL建立的AT指令通道向RIL发送该SIM卡的状态信息。
可以理解的是,图9中所示的卡槽1和卡槽2可以对应同一卡托,也可以对应不同的卡托。此外,卡槽1的数量也可以为多个,卡槽2的数量也可以为多个,此处不做限定。
可以理解的是,本申请实施例中提供的SIM卡误插卡槽的识别方法,除了可以应用于单卡设备上,也可以应用于多卡设备(比如:双卡双待的电子设备等)上。其中,应用于多卡设备的方案仍在本申请的保护范围内。另外,应用于多卡设备时的实现原理与应用于单卡设备时的实现原理类似,此处就不再一一赘述。
在一个例子中,继续参阅图2、图6、图7、图8和图9,当在卡槽1中插入卡片后,卡槽1对应的SIM卡驱动可以为卡槽1中的卡片上电。在卡槽1对应的SIM卡驱动对卡槽1中的卡片上电后,若SIM卡驱动未获取到卡槽1中的卡片反馈的ATR消息,则SIM卡驱动可以向其所对应的调制解调器Modem上报一个空消息(即不包含数据的消息)。调制解调器Modem获取到SIM卡驱动上报的空消息后,可以获知到当前卡槽1中插入的卡片不是SIM卡,此时,调制解调器Modem可以向RIL发送用于表示未识别到SIM卡的信息。RIL获取到调制解调器Modem发送的信息后,可以响应该信息,并广播用于指示卡槽1中误插卡片的信息。最后,在服务应用获取到RIL广播的信息后,可以输出卡槽1中误插卡片的信息。由此,以实现在SIM卡卡槽中误插卡片时,对用户进行提醒,进而使得用户可以及时将SIM卡卡槽中的卡片更换为SIM卡,提升了用户体验。
基于上述实施例中的方法,本申请实施例还提供了一种SIM卡误插卡槽的识别装置。请参阅图10,图10为本申请实施例提供的一种SIM卡误插卡槽的识别装置的结构示意图。其中,该SIM卡误插卡槽的识别装置可以部署在包括SIM卡卡槽和非SIM卡槽的电子设备上。如图10所示,SIM卡误插卡槽的识别装置1000包括:确定模块1001和输出模块1002。其中,确定模块1001用于当电子设备上的非SIM卡卡槽中插入卡片时,确定卡片为SIM卡。输出模块1002用于在确定模块1001确定出非SIM卡卡槽中的卡片为非SIM卡时输出误插卡信息,该误插卡信息用于提示用户SIM卡误插卡槽。
在一个例子中,确定模块1001具体用于:当非SIM卡卡槽中插入卡片时,向卡片供电,以及读取卡片中的文件信息;基于文件信息,确定卡片为SIM卡。
在一个例子中,输出模块1002具体用于:显示误插卡信息,和/或,语音播报误插卡信息。
在一个例子中,输出模块1002具体用于:通过弹窗、下拉菜单或负一屏中的一种或多种方式显示误插卡信息。
在一个例子中,该SIM卡误插卡槽的识别装置所部署的电子设备可以为单卡设备。
在一个例子中,该SIM卡误插卡槽的识别装置所部署的电子设备中配置有第一调制解调器和第一SIM卡驱动,第一调制解调器通过第一SIM卡驱动与非SIM卡卡槽连接。
在一个例子中,第一调制解调器通过第一SIM卡驱动与SIM卡卡槽连接。
在一个例子中,该SIM卡误插卡槽的识别装置所部署的电子设备中配置有第二SIM卡驱动,第一调制解调器通过第二SIM卡驱动与非SIM卡卡槽连接。
在一个例子中,该SIM卡误插卡槽的识别装置所部署的电子设备中配置有第二调 制解调器和第二SIM卡驱动,第二调制解调器通过第二SIM卡驱动与SIM卡卡槽连接。
在一个例子中,该SIM卡误插卡槽的识别装置所部署的电子设备中的SIM卡卡槽和非SIM卡卡槽对应同一卡托。
应当理解的是,上述装置用于执行上述实施例中的方法,装置中相应的程序模块,其实现原理和技术效果与上述方法中的描述类似,该装置的工作过程可参考上述方法中的对应过程,此处不再赘述。
基于上述实施例中的方法,本申请实施例还提供了一种SIM卡误插卡槽的识别装置。请参阅图11,图11为本申请实施例提供的一种SIM卡误插卡槽的识别装置的结构示意图。如图11所示,SIM卡误插卡槽的识别装置1100包括一个或多个处理器1101以及接口电路1102。可选的,芯片1100还可以包含总线1103。其中:
处理器1101可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法的各步骤可以通过处理器1101中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器1101可以是通用处理器、数字通信器(DSP)、专用集成电路(ASIC)、现场可编程门阵列(FPGA)或者其它可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。可以实现或者执行本申请实施例中的公开的各方法、步骤。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。接口电路1102可以用于数据、指令或者信息的发送或者接收,处理器1101可以利用接口电路1102接收的数据、指令或者其它信息,进行加工,可以将加工完成信息通过接口电路1102发送出去。
可选的,芯片还包括存储器,存储器可以包括只读存储器和随机存取存储器,并向处理器提供操作指令和数据。存储器的一部分还可以包括非易失性随机存取存储器(NVRAM)。可选的,存储器存储了可执行软件模块或者数据结构,处理器可以通过调用存储器存储的操作指令(该操作指令可存储在操作系统中),执行相应的操作。
可选的,接口电路1102可用于输出处理器1101的执行结果。
需要说明的,处理器1101、接口电路1102各自对应的功能既可以通过硬件设计实现,也可以通过软件设计来实现,还可以通过软硬件结合的方式来实现,这里不作限制。
应理解,上述方法实施例的各步骤可以通过处理器中的硬件形式的逻辑电路或者软件形式的指令完成。其中,该芯片可应用于上述电子设备100中,以实现本申请实施例中提供的方法。
可以理解的是,本申请的实施例中的处理器可以是中央处理单元(central processing unit,CPU),还可以是其他通用处理器、数字信号处理器(digital signal processor,DSP)、专用集成电路(application specific integrated circuit,ASIC)、现场可编程门阵列(field programmable gate array,FPGA)或者其他可编程逻辑器件、晶体管逻辑器件,硬件部件或者其任意组合。通用处理器可以是微处理器,也可以是任何常规的处理器。
本申请的实施例中的方法步骤可以通过硬件的方式来实现,也可以由处理器执行软件指令的方式来实现。软件指令可以由相应的软件模块组成,软件模块可以被存放 于随机存取存储器(random access memory,RAM)、闪存、只读存储器(read-only memory,ROM)、可编程只读存储器(programmable rom,PROM)、可擦除可编程只读存储器(erasable PROM,EPROM)、电可擦除可编程只读存储器(electrically EPROM,EEPROM)、寄存器、硬盘、移动硬盘、CD-ROM或者本领域熟知的任何其它形式的存储介质中。一种示例性的存储介质耦合至处理器,从而使处理器能够从该存储介质读取信息,且可向该存储介质写入信息。当然,存储介质也可以是处理器的组成部分。处理器和存储介质可以位于ASIC中。
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本申请实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者通过所述计算机可读存储介质进行传输。所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如固态硬盘(solid state disk,SSD))等。
可以理解的是,在本申请的实施例中涉及的各种数字编号仅为描述方便进行的区分,并不用来限制本申请的实施例的范围。

Claims (22)

  1. 一种SIM卡误插卡槽的识别方法,其特征在于,应用于电子设备,所述电子设备包括SIM卡卡槽和非SIM卡卡槽,所述方法包括:
    当所述非SIM卡卡槽中插入卡片时,确定所述卡片为SIM卡;
    输出误插卡信息,所述误插卡信息用于提示用户SIM卡误插卡槽。
  2. 根据权利要求1所述的识别方法,其特征在于,所述当所述非SIM卡卡槽中插入卡片时,确定所述卡片为SIM卡,具体包括:
    当所述非SIM卡卡槽中插入卡片时,向所述卡片供电,以及读取所述卡片中的文件信息;
    基于所述文件信息,确定所述卡片为SIM卡。
  3. 根据权利要求1或2所述的识别方法,其特征在于,所述输出误插卡信息,具体包括:
    显示所述误插卡信息,和/或,语音播报所述误插卡信息。
  4. 根据权利要求3所述的识别方法,其特征在于,所述显示所述误插卡信息,具体包括:
    通过弹窗、下拉菜单或负一屏中的一种或多种方式显示所述误插卡信息。
  5. 根据权利要求1-4任一所述的识别方法,其特征在于,所述电子设备为单卡设备。
  6. 根据权利要求5所述的识别方法,其特征在于,所述电子设备中配置有第一调制解调器和第一SIM卡驱动,所述第一调制解调器通过所述第一SIM卡驱动与所述非SIM卡卡槽连接。
  7. 根据权利要求6所述的识别方法,其特征在于,所述第一调制解调器通过所述第一SIM卡驱动与所述SIM卡卡槽连接。
  8. 根据权利要求6所述的识别方法,其特征在于,所述电子设备中配置有第二SIM卡驱动,所述第一调制解调器通过所述第二SIM卡驱动与所述非SIM卡卡槽连接。
  9. 根据权利要求6所述的识别方法,其特征在于,所述电子设备中配置有第二调制解调器和第二SIM卡驱动,所述第二调制解调器通过所述第二SIM卡驱动与所述SIM卡卡槽连接。
  10. 根据权利要求1-9任一所述的识别方法,其特征在于,所述SIM卡卡槽和所述非SIM卡卡槽对应同一卡托。
  11. 一种SIM卡误插卡槽的识别方法,其特征在于,应用于电子设备,所述电子设备包括:SIM卡卡槽、非SIM卡卡槽、无线通信接口模块RIL、第一调制解调器和信息输出模块,其中,所述第一调制解调器与所述非SIM卡卡槽对应;
    所述方法包括:
    当所述非SIM卡卡槽中插入卡片时,所述第一调制解调器识别所述卡片是否为SIM卡;
    当所述第一调制解调器识别到所述卡片为SIM卡时,所述第一调制解调器向所述无线通信接口模块RIL上报第一信息,所述第一信息用于表示识别到SIM卡;
    所述无线通信接口模块RIL响应所述第一信息,向所述信息输出模块发送第二信息,所述第二信息用于指示SIM卡误插卡槽;
    所述信息输出模块输出所述误插卡信息,所述误插卡信息用于提示用户SIM卡误插卡槽。
  12. 根据权利要求11所述的识别方法,其特征在于,所述电子设备还包括:第二调制解调器,所述第二调制解调器与所述SIM卡卡槽对应,且所述第二调制解调器与所述无线通信接口模块RIL对应。
  13. 根据权利要求11所述的识别方法,其特征在于,所述第一调制解调器还与所述SIM卡卡槽对应。
  14. 一种电子设备,其特征在于,包括:
    SIM卡卡槽和非SIM卡卡槽;
    至少一个存储器,用于存储程序;
    至少一个处理器,用于执行所述存储器存储的程序,当所述存储器存储的程序被执行时,所述处理器用于执行如权利要求1-13中任一所述的方法。
  15. 根据权利要求14所述的电子设备,其特征在于,所述电子设备为单卡设备。
  16. 根据权利要求15所述的电子设备,其特征在于,所述电子设备中配置有第一调制解调器和第一SIM卡驱动,所述第一调制解调器通过所述第一SIM卡驱动与所述非SIM卡卡槽连接。
  17. 根据权利要求16所述的电子设备,其特征在于,所述第一调制解调器通过所述第一SIM卡驱动与所述SIM卡卡槽连接。
  18. 根据权利要求16所述的电子设备,其特征在于,所述电子设备中配置有第二SIM卡驱动,所述第一调制解调器通过所述第二SIM卡驱动与所述非SIM卡卡槽连接。
  19. 根据权利要求16所述的电子设备,其特征在于,所述电子设备中配置有第二调制解调器和第二SIM卡驱动,所述第二调制解调器通过所述第二SIM卡驱动与所述SIM卡卡槽连接。
  20. 根据权利要求14-19任一所述的电子设备,其特征在于,所述SIM卡卡槽和所述非SIM卡卡槽对应同一卡托。
  21. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质存储有计算机程序,当所述计算机程序在电子设备上运行时,使得所述电子设备执行如权利要求1-13中任一所述的方法。
  22. 一种计算机程序产品,其特征在于,所述计算机程序产品包括计算机程序,当所述计算机程序被计算机执行时,使得所述计算机实现如权利要求1-13中任一所述的方法。
PCT/CN2022/111512 2021-08-26 2022-08-10 一种sim卡误插卡槽的识别方法及电子设备 WO2023024907A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110991245.5 2021-08-26
CN202110991245.5A CN115904887A (zh) 2021-08-26 2021-08-26 一种sim卡误插卡槽的识别方法及电子设备

Publications (1)

Publication Number Publication Date
WO2023024907A1 true WO2023024907A1 (zh) 2023-03-02

Family

ID=85321514

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/111512 WO2023024907A1 (zh) 2021-08-26 2022-08-10 一种sim卡误插卡槽的识别方法及电子设备

Country Status (2)

Country Link
CN (1) CN115904887A (zh)
WO (1) WO2023024907A1 (zh)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080135628A1 (en) * 2006-12-06 2008-06-12 Sony Corporation Memory card
JP2008269321A (ja) * 2007-04-20 2008-11-06 Alpine Electronics Inc カード挿入警告システムおよび方法、ナビゲーション装置、車載機
CN103686791A (zh) * 2013-12-18 2014-03-26 小米科技有限责任公司 终端用卡情况检测方法和装置
CN111783484A (zh) * 2019-04-04 2020-10-16 深圳市江波龙电子股份有限公司 一种存储卡的识别方法、电子设备以及计算机存储介质

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080135628A1 (en) * 2006-12-06 2008-06-12 Sony Corporation Memory card
JP2008269321A (ja) * 2007-04-20 2008-11-06 Alpine Electronics Inc カード挿入警告システムおよび方法、ナビゲーション装置、車載機
CN103686791A (zh) * 2013-12-18 2014-03-26 小米科技有限责任公司 终端用卡情况检测方法和装置
CN111783484A (zh) * 2019-04-04 2020-10-16 深圳市江波龙电子股份有限公司 一种存储卡的识别方法、电子设备以及计算机存储介质

Also Published As

Publication number Publication date
CN115904887A (zh) 2023-04-04

Similar Documents

Publication Publication Date Title
CN105743158B (zh) 用于为具有电池的电子设备充电的装置和方法
US20170235373A1 (en) Method of providing handwriting style correction function and electronic device adapted thereto
US20200133482A1 (en) Electronic device for displaying list of executable applications on split screen and operating method thereof
CN111566608B (zh) 用于提供与键盘布局相关联的功能的设备和方法
US20160004425A1 (en) Method of displaying graphic user interface and electronic device implementing same
CN104969527A (zh) 向设备驱动器发布通知数据
US9986082B2 (en) Interface device and method between electronic device and external device using ear jack of the electronic device
CN104965580A (zh) 未读消息的展示方法和装置
TW201251357A (en) Communications device for intelligently routing information among multiple user interfaces
KR20150051640A (ko) 전자장치에서 메시지의 상태 확인 방법 및 장치
CN101312574B (zh) 用于在通信终端中管理用户内容的方法
EP2466480A1 (en) Dongle and method for operating external input means, and external input system with the dongle
WO2021185354A1 (zh) 电子墨水显示设备控制和更新方法及相关设备和系统
US20130201211A1 (en) Mobile terminal and controlling method thereof
US20160085424A1 (en) Method and apparatus for inputting object in electronic device
WO2019024039A1 (zh) 指示多业务数据复用传输的方法及装置、终端和基站
US11144190B2 (en) Electronic device and method for sharing data thereof
CN111034232A (zh) 通信系统、通信装置以及省电方法
CN106201295B (zh) 一种消息复制方法和装置、以及智能终端
CN102932533B (zh) 一种供第三方应用程序调用联系人的方法和装置
CN105426032A (zh) 一种终端及终端界面显示方法
US20130326092A1 (en) Processing input event of external device
US20170353215A1 (en) Electronic device and cable and method of driving the same
WO2023024907A1 (zh) 一种sim卡误插卡槽的识别方法及电子设备
WO2023241613A1 (zh) 通话建立方法、装置、终端、系统及可读存储介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22860253

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE